Repository: midzer/tobii Branch: production Commit: de587ab9be22 Files: 25 Total size: 283.4 KB Directory structure: gitextract_tri8bljk/ ├── .github/ │ ├── FUNDING.yml │ └── workflows/ │ └── npm-publish.yml ├── .gitignore ├── .nvmrc ├── .stylelintrc ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── add-banner.js ├── demo/ │ ├── index.html │ └── styles.css ├── dist/ │ ├── tobii.js │ ├── tobii.modern.js │ ├── tobii.module.js │ └── tobii.umd.js ├── eslint.config.js ├── package.json └── src/ ├── js/ │ ├── browser.js │ ├── index.js │ └── types/ │ ├── html.js │ ├── iframe.js │ ├── image.js │ └── youtube.js └── scss/ ├── _variables.scss └── tobii.scss ================================================ FILE CONTENTS ================================================ ================================================ FILE: .github/FUNDING.yml ================================================ # These are supported funding model platforms github: midzer patreon: # Replace with a single Patreon username open_collective: # Replace with a single Open Collective username ko_fi: # Replace with a single Ko-fi username tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry liberapay: # Replace with a single Liberapay username issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] ================================================ FILE: .github/workflows/npm-publish.yml ================================================ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created # For more information see: https://docs.github.com/en/actions/guides/publishing-nodejs-packages#publishing-packages-to-npm-and-github-packages name: Node.js Package on: release: types: [created] jobs: build: runs-on: ubuntu-latest permissions: contents: read packages: write steps: - uses: actions/checkout@v4 # Setup .npmrc file to publish to npm - uses: actions/setup-node@v4 with: node-version: 18 registry-url: 'https://registry.npmjs.org' - run: npm ci # Publish to npm - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Setup .npmrc file to publish to GitHub Packages - uses: actions/setup-node@v4 with: node-version: 18 registry-url: 'https://npm.pkg.github.com' scope: '@midzer' # Publish to GitHub Packages - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ================================================ FILE: .gitignore ================================================ .vscode .idea node_modules test ================================================ FILE: .nvmrc ================================================ lts/hydrogen ================================================ FILE: .stylelintrc ================================================ { "rules": { "indentation": 2, "string-quotes": "single", "no-duplicate-selectors": true, "color-hex-case": "lower", "color-hex-length": "long", "color-named": "never", "selector-no-qualifying-type": true, "selector-max-id": 0, "selector-combinator-space-after": "always", "selector-attribute-quotes": "always", "selector-attribute-operator-space-before": "never", "selector-attribute-operator-space-after": "never", "selector-attribute-brackets-space-inside": "never", "declaration-block-trailing-semicolon": "always", "declaration-no-important": true, "declaration-colon-space-before": "never", "declaration-colon-space-after": "always", "number-leading-zero": "always", "function-url-quotes": "always", "font-weight-notation": "ignore", "font-family-name-quotes": "always-where-recommended", "comment-whitespace-inside": "always", "comment-empty-line-before": "always", "at-rule-no-vendor-prefix": true, "rule-empty-line-before": "always", "selector-pseudo-element-colon-notation": "double", "selector-pseudo-class-parentheses-space-inside": "never", "media-feature-range-operator-space-before": "always", "media-feature-range-operator-space-after": "always", "media-feature-parentheses-space-inside": "never", "media-feature-colon-space-before": "never", "media-feature-colon-space-after": "always" } } ================================================ FILE: CHANGELOG.md ================================================ # Changelog ## v3.2.0 ### New - introduce ARIA live region instead of focus approach + configurable `announcementLabel` + optional data attribute `data-label` as text to be used for screen readers - replace has() CSS selector for wider browser support ## v3.1.3 ### Fixed - replace legacy allowfullscreen with allow attribute on IFrames ## v3.1.2 ### Fixed - do not show caption initially on mobile devices ## v3.1.1 ### Fixed - remove() for single slide removal - multiple Tobii instances race conditions ## v3.1.0 ### New - empty or false `selector` option does only init Tobii (to `add()` elements later) ### Fixed - do not clone html-type target ## v3.0.0 ### Breaking Changes - remove legacy prefixes - zoom icon default to false - remove autoplay settings, Media elements like YouTube `