Repository: shipshapecode/ember-shepherd Branch: main Commit: 41769b7e9312 Files: 99 Total size: 178.5 KB Directory structure: gitextract_y9qvqvon/ ├── .editorconfig ├── .github/ │ ├── dependabot.yml │ └── workflows/ │ ├── addon-docs.yml │ ├── ci.yml │ ├── plan-release.yml │ ├── publish.yml │ └── push-dist.yml ├── .gitignore ├── .npmrc ├── .prettierignore ├── .prettierrc.cjs ├── .release-plan.json ├── .tool-versions ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── RELEASE.md ├── config/ │ └── ember-cli-update.json ├── ember-shepherd/ │ ├── .gitignore │ ├── .prettierignore │ ├── .prettierrc.cjs │ ├── .template-lintrc.cjs │ ├── addon-main.cjs │ ├── babel.config.json │ ├── eslint.config.mjs │ ├── package.json │ ├── rollup.config.mjs │ ├── src/ │ │ ├── .gitkeep │ │ ├── index.ts │ │ ├── services/ │ │ │ └── tour.ts │ │ ├── template-registry.ts │ │ ├── unpublished-development-types/ │ │ │ └── index.d.ts │ │ └── utils/ │ │ ├── buttons.ts │ │ └── dom.ts │ ├── tsconfig.json │ └── unpublished-development-types/ │ └── index.d.ts ├── package.json ├── pnpm-workspace.yaml └── test-app/ ├── .editorconfig ├── .ember-cli ├── .gitignore ├── .prettierignore ├── .prettierrc.js ├── .stylelintignore ├── .stylelintrc.js ├── .template-lintrc.js ├── .watchmanconfig ├── README.md ├── app/ │ ├── app.ts │ ├── components/ │ │ └── .gitkeep │ ├── config/ │ │ └── environment.d.ts │ ├── controllers/ │ │ ├── .gitkeep │ │ └── docs/ │ │ └── demo.js │ ├── data.js │ ├── deprecation-workflow.ts │ ├── helpers/ │ │ └── .gitkeep │ ├── index.html │ ├── models/ │ │ └── .gitkeep │ ├── router.js │ ├── routes/ │ │ ├── .gitkeep │ │ └── docs/ │ │ └── demo.js │ ├── styles/ │ │ ├── app.css │ │ ├── fonts.css │ │ └── shepherd-theme.css │ └── templates/ │ ├── application.hbs │ ├── docs/ │ │ ├── demo.hbs │ │ ├── faq.md │ │ ├── index.md │ │ ├── not-found.hbs │ │ └── usage.md │ ├── docs.hbs │ └── index.hbs ├── config/ │ ├── addon-docs.js │ ├── deploy.js │ ├── ember-cli-update.json │ ├── ember-try.js │ ├── environment.js │ ├── optional-features.json │ └── targets.js ├── ember-cli-build.js ├── eslint.config.mjs ├── package.json ├── public/ │ ├── crossdomain.xml │ └── robots.txt ├── testem.js ├── tests/ │ ├── acceptance/ │ │ └── ember-shepherd-test.js │ ├── data.js │ ├── helpers/ │ │ ├── index.js │ │ └── index.ts │ ├── index.html │ ├── integration/ │ │ └── .gitkeep │ ├── test-helper.js │ ├── test-helper.ts │ └── unit/ │ ├── .gitkeep │ ├── services/ │ │ └── tour-test.js │ └── utils/ │ └── make-button-test.js ├── tsconfig.json └── types/ └── global.d.ts ================================================ FILE CONTENTS ================================================ ================================================ FILE: .editorconfig ================================================ # EditorConfig helps developers define and maintain consistent # coding styles between different editors and IDEs # editorconfig.org root = true [*] end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true indent_style = space indent_size = 2 [*.hbs] insert_final_newline = false [*.{diff,md}] trim_trailing_whitespace = false ================================================ FILE: .github/dependabot.yml ================================================ version: 2 updates: - package-ecosystem: npm directory: "/" schedule: interval: daily time: "10:00" open-pull-requests-limit: 10 labels: - dependencies ignore: - dependency-name: ember-cli versions: - ">= 0" ================================================ FILE: .github/workflows/addon-docs.yml ================================================ name: Publish Addon Docs on: push: branches: - main - master tags: - "**" jobs: build: env: DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.GITHUB_TOKEN }} - name: Check for tags and set short-circuit condition id: check-tags run: | # Fetch tags pointing to the current commit TAGS=$(git tag --points-at $GITHUB_SHA) echo "Tags found: $TAGS" # Check if a tag exists and if the ref is 'refs/heads/main' or 'refs/heads/master' if [ -n "$TAGS" ] && ([[ "${GITHUB_REF}" == "refs/heads/main" ]] || [[ "${GITHUB_REF}" == "refs/heads/master" ]]); then echo "SHORT_CIRCUIT=true" >> $GITHUB_ENV else echo "SHORT_CIRCUIT=false" >> $GITHUB_ENV fi - uses: pnpm/action-setup@v4 if: env.SHORT_CIRCUIT == 'false' with: version: 10 - uses: actions/setup-node@v4 if: env.SHORT_CIRCUIT == 'false' with: node-version: 20 cache: pnpm - name: Install Dependencies if: env.SHORT_CIRCUIT == 'false' run: pnpm install --no-lockfile - name: Deploy Docs if: env.SHORT_CIRCUIT == 'false' run: | cd test-app pnpm ember deploy production ================================================ FILE: .github/workflows/ci.yml ================================================ name: CI on: push: branches: - main - master pull_request: {} concurrency: group: ci-${{ github.head_ref || github.ref }} cancel-in-progress: true jobs: test: name: "Tests" runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 with: version: 10 - uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm - name: Install Dependencies run: pnpm install --frozen-lockfile - name: Lint run: pnpm lint - name: Run Tests run: pnpm test floating: name: "Floating Dependencies" runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 with: version: 10 - uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm - name: Install Dependencies run: pnpm install --no-lockfile - name: Run Tests run: pnpm test try-scenarios: name: ${{ matrix.try-scenario }} runs-on: ubuntu-latest needs: 'test' timeout-minutes: 10 strategy: fail-fast: false matrix: try-scenario: - ember-lts-4.8 - ember-lts-4.12 - ember-lts-5.4 - ember-release - ember-beta - ember-canary - embroider-safe - embroider-optimized steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 with: version: 10 - uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm - name: Install Dependencies run: pnpm install --frozen-lockfile - name: Run Tests run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup working-directory: test-app ================================================ FILE: .github/workflows/plan-release.yml ================================================ name: Plan Release on: workflow_dispatch: push: branches: - main - master pull_request_target: # This workflow has permissions on the repo, do NOT run code from PRs in this workflow. See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ types: - labeled - unlabeled concurrency: group: plan-release # only the latest one of these should ever be running cancel-in-progress: true jobs: should-run-release-plan-prepare: name: Should we run release-plan prepare? runs-on: ubuntu-latest outputs: should-prepare: ${{ steps.should-prepare.outputs.should-prepare }} steps: - uses: release-plan/actions/should-prepare-release@v1 with: ref: 'main' id: should-prepare create-prepare-release-pr: name: Create Prepare Release PR runs-on: ubuntu-latest timeout-minutes: 5 needs: should-run-release-plan-prepare permissions: contents: write issues: read pull-requests: write if: needs.should-run-release-plan-prepare.outputs.should-prepare == 'true' steps: - uses: release-plan/actions/prepare@v1 name: Run release-plan prepare with: ref: 'main' env: GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }} id: explanation - uses: peter-evans/create-pull-request@v8 name: Create Prepare Release PR with: commit-message: "Prepare Release ${{ steps.explanation.outputs.new-version}} using 'release-plan'" labels: "internal" sign-commits: true branch: release-preview title: Prepare Release ${{ steps.explanation.outputs.new-version }} body: | This PR is a preview of the release that [release-plan](https://github.com/embroider-build/release-plan) has prepared. To release you should just merge this PR 👍 ----------------------------------------- ${{ steps.explanation.outputs.text }} ================================================ FILE: .github/workflows/publish.yml ================================================ # For every push to the primary branch with .release-plan.json modified, # runs release-plan. name: Publish Stable on: workflow_dispatch: push: branches: - main - master paths: - '.release-plan.json' concurrency: group: publish-${{ github.head_ref || github.ref }} cancel-in-progress: true jobs: publish: name: "NPM Publish" runs-on: ubuntu-latest permissions: contents: write id-token: write attestations: write steps: - uses: actions/checkout@v6 - uses: pnpm/action-setup@v4 with: version: 9 - uses: actions/setup-node@v6 with: node-version: 22 registry-url: 'https://registry.npmjs.org' cache: pnpm - run: npm install -g npm@latest # ensure that the globally installed npm is new enough to support OIDC - run: pnpm install --frozen-lockfile - name: Publish to NPM run: NPM_CONFIG_PROVENANCE=true pnpm release-plan publish env: GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }} ================================================ FILE: .github/workflows/push-dist.yml ================================================ # Because this library needs to be built, # we can't easily point package.json files at the git repo for easy cross-repo testing. # # This workflow brings back that capability by placing the compiled assets on a "dist" branch # (configurable via the "branch" option below) name: Push dist on: push: branches: - main - master jobs: push-dist: name: Push dist permissions: contents: write runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 with: version: 10 - uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm - name: Install Dependencies run: pnpm install --frozen-lockfile - uses: kategengler/put-built-npm-package-contents-on-branch@v2.0.0 with: branch: dist token: ${{ secrets.GITHUB_TOKEN }} working-directory: 'ember-shepherd' ================================================ FILE: .gitignore ================================================ # See https://help.github.com/ignore-files/ for more about ignoring files. # dependencies node_modules/ # misc .env* .pnp* .pnpm-debug.log .sass-cache .eslintcache coverage/ npm-debug.log* yarn-error.log # ember-try /.node_modules.ember-try/ /package.json.ember-try /package-lock.json.ember-try /yarn.lock.ember-try /pnpm-lock.ember-try.yaml # addon-docs deploy-test-app ================================================ FILE: .npmrc ================================================ #################### # super strict mode #################### auto-install-peers=false strict-peer-dependents=true resolve-peers-from-workspace-root=false ################ # Optimizations ################ # Less strict, but required for tooling to not barf on duplicate peer trees. # (many libraries declare the same peers, which resolve to the same # versions) dedupe-peer-dependents=true public-hoist-pattern[]=ember-source ################ # Compatibility ################ # highest is what everyone is used to, but # not ensuring folks are actually compatible with declared ranges. resolution-mode=highest ================================================ FILE: .prettierignore ================================================ # Prettier is also run from each package, so the ignores here # protect against files that may not be within a package # misc !.* .lint-todo/ # ember-try /.node_modules.ember-try/ /pnpm-lock.ember-try.yaml ================================================ FILE: .prettierrc.cjs ================================================ 'use strict'; module.exports = { plugins: ['prettier-plugin-ember-template-tag'], singleQuote: true, }; ================================================ FILE: .release-plan.json ================================================ { "solution": { "ember-shepherd": { "impact": "major", "oldVersion": "17.3.1", "newVersion": "18.0.0", "tagName": "latest", "constraints": [ { "impact": "major", "reason": "Appears in changelog section :boom: Breaking Change" }, { "impact": "patch", "reason": "Appears in changelog section :house: Internal" } ], "pkgJSONPath": "./ember-shepherd/package.json" } }, "description": "## Release (2026-02-16)\n\n* ember-shepherd 18.0.0 (major)\n\n#### :boom: Breaking Change\n* `ember-shepherd`\n * [#1816](https://github.com/RobbieTheWagner/ember-shepherd/pull/1816) Update to shepherd.js 15 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))\n * [#1815](https://github.com/RobbieTheWagner/ember-shepherd/pull/1815) Update license to AGPL ([@RobbieTheWagner](https://github.com/RobbieTheWagner))\n * [#1808](https://github.com/RobbieTheWagner/ember-shepherd/pull/1808) Drop support for Ember < 4.8 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))\n\n#### :house: Internal\n* Other\n * [#1817](https://github.com/RobbieTheWagner/ember-shepherd/pull/1817) release-it -> release-plan ([@RobbieTheWagner](https://github.com/RobbieTheWagner))\n * [#1807](https://github.com/RobbieTheWagner/ember-shepherd/pull/1807) node 20 / pnpm 10 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))\n* `ember-shepherd`\n * [#1729](https://github.com/RobbieTheWagner/ember-shepherd/pull/1729) Update blueprints ([@RobbieTheWagner](https://github.com/RobbieTheWagner))\n\n#### Committers: 1\n- Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner))\n" } ================================================ FILE: .tool-versions ================================================ nodejs 20.20.0 pnpm 10.28.0 ================================================ FILE: CHANGELOG.md ================================================ # Changelog ## Release (2026-02-16) * ember-shepherd 18.0.0 (major) #### :boom: Breaking Change * `ember-shepherd` * [#1816](https://github.com/RobbieTheWagner/ember-shepherd/pull/1816) Update to shepherd.js 15 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#1815](https://github.com/RobbieTheWagner/ember-shepherd/pull/1815) Update license to AGPL ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#1808](https://github.com/RobbieTheWagner/ember-shepherd/pull/1808) Drop support for Ember < 4.8 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### :house: Internal * Other * [#1817](https://github.com/RobbieTheWagner/ember-shepherd/pull/1817) release-it -> release-plan ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#1807](https://github.com/RobbieTheWagner/ember-shepherd/pull/1807) node 20 / pnpm 10 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * `ember-shepherd` * [#1729](https://github.com/RobbieTheWagner/ember-shepherd/pull/1729) Update blueprints ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v17.3.1 (2024-12-07) #### :bug: Bug Fix * [#1716](https://github.com/RobbieTheWagner/ember-shepherd/pull/1716) Ensure `tourObject` is defined before using it ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### :house: Internal * [#1717](https://github.com/RobbieTheWagner/ember-shepherd/pull/1717) Run TypeScript blueprints ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v17.3.0 (2024-12-07) #### :rocket: Enhancement * [#1715](https://github.com/RobbieTheWagner/ember-shepherd/pull/1715) Add destructor and set container when testing ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v17.2.0 (2024-12-07) #### :rocket: Enhancement * [#1714](https://github.com/RobbieTheWagner/ember-shepherd/pull/1714) Add support for `stepsContainer` ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v17.1.4 (2024-12-06) #### :bug: Bug Fix * [#1712](https://github.com/RobbieTheWagner/ember-shepherd/pull/1712) Make button type optional ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### :house: Internal * [#1713](https://github.com/RobbieTheWagner/ember-shepherd/pull/1713) Add addon-docs deploy action ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v17.1.3 (2024-11-27) #### :bug: Bug Fix * [#1711](https://github.com/RobbieTheWagner/ember-shepherd/pull/1711) Use tracked properties for everything ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v17.1.2 (2024-11-26) #### :bug: Bug Fix * [#1710](https://github.com/RobbieTheWagner/ember-shepherd/pull/1710) Use EmberShepherdStepOptions type for steps ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v17.1.1 (2024-11-26) #### :bug: Bug Fix * [#1709](https://github.com/RobbieTheWagner/ember-shepherd/pull/1709) Update button types ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v17.1.0 (2024-11-26) #### :rocket: Enhancement * [#1708](https://github.com/RobbieTheWagner/ember-shepherd/pull/1708) Add types ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v17.0.8 (2024-11-20) ## v17.0.7 (2024-11-20) #### :house: Internal * [#1707](https://github.com/RobbieTheWagner/ember-shepherd/pull/1707) Try embroider again ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v17.0.6 (2024-11-20) ## v17.0.5 (2024-11-19) ## v17.0.4 (2024-11-19) #### :house: Internal * [#1706](https://github.com/RobbieTheWagner/ember-shepherd/pull/1706) Go back to not full embroider ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v17.0.3 (2024-11-19) ## v17.0.2 (2024-11-19) ## v17.0.1 (2024-11-19) ## v17.0.0 (2024-11-19) #### :boom: Breaking Change * [#1705](https://github.com/RobbieTheWagner/ember-shepherd/pull/1705) Convert to v2 addon ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v16.0.0 (2024-11-19) #### :boom: Breaking Change * [#1693](https://github.com/RobbieTheWagner/ember-shepherd/pull/1693) Bump shepherd.js from 11.2.0 to 14.1.0 ([@dependabot[bot]](https://github.com/apps/dependabot)) #### :rocket: Enhancement * [#1704](https://github.com/RobbieTheWagner/ember-shepherd/pull/1704) Add back support for Ember >= 4.4 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### :memo: Documentation * [#1703](https://github.com/RobbieTheWagner/ember-shepherd/pull/1703) Update demo and docs ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#1689](https://github.com/RobbieTheWagner/ember-shepherd/pull/1689) Update README.md with working docs link ([@zion](https://github.com/zion)) #### :house: Internal * [#1702](https://github.com/RobbieTheWagner/ember-shepherd/pull/1702) Disable embroider-optimized ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#1701](https://github.com/RobbieTheWagner/ember-shepherd/pull/1701) Switch to pnpm ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 2 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) - Simeon ([@zion](https://github.com/zion)) ## v15.0.0 (2024-03-28) #### :boom: Breaking Change * [#1636](https://github.com/RobbieTheWagner/ember-shepherd/pull/1636) Drop support for Ember < 4.8 and node < 18 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#1373](https://github.com/RobbieTheWagner/ember-shepherd/pull/1373) ember/ember-cli 4.12 drop support for Ember < 4.4 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v14.0.0 (2022-11-30) #### :boom: Breaking Change * [#1237](https://github.com/RobbieTheWagner/ember-shepherd/pull/1237) Bump shepherd.js from 10.0.1 to 11.0.0 ([@dependabot[bot]](https://github.com/apps/dependabot)) #### :house: Internal * [#1227](https://github.com/RobbieTheWagner/ember-shepherd/pull/1227) Pin ember-data ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v13.1.0 (2022-10-25) #### :house: Internal * [#1211](https://github.com/RobbieTheWagner/ember-shepherd/pull/1211) ESLint 8, ember-cli 4.8 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v13.0.0 (2022-08-26) #### :boom: Breaking Change * [#1166](https://github.com/RobbieTheWagner/ember-shepherd/pull/1166) ember-cli 4.6, drop node 12 support ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v12.1.0 (2022-02-16) #### :house: Internal * [#983](https://github.com/RobbieTheWagner/ember-shepherd/pull/983) ember-cli 4.1.0 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#975](https://github.com/RobbieTheWagner/ember-shepherd/pull/975) ember-cli 4 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#952](https://github.com/RobbieTheWagner/ember-shepherd/pull/952) Ember 3.28 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#950](https://github.com/RobbieTheWagner/ember-shepherd/pull/950) Bump deps ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v12.0.0 (2021-09-16) #### :boom: Breaking Change * [#779](https://github.com/RobbieTheWagner/ember-shepherd/pull/779) Ember 3.26, ember-auto-import 2 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### :house: Internal * [#773](https://github.com/RobbieTheWagner/ember-shepherd/pull/773) Add dependabot automerge ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#654](https://github.com/RobbieTheWagner/ember-shepherd/pull/654) Update eslint-plugin-ember, fix lint ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v11.0.2 (2020-12-14) #### :memo: Documentation * [#551](https://github.com/RobbieTheWagner/ember-shepherd/pull/551) Use the new CodeBlock format ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### :house: Internal * [#634](https://github.com/RobbieTheWagner/ember-shepherd/pull/634) Switch from Travis to GitHub actions ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#633](https://github.com/RobbieTheWagner/ember-shepherd/pull/633) Ember 3.22 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v11.0.1 (2020-07-08) #### :rocket: Enhancement * [#450](https://github.com/RobbieTheWagner/ember-shepherd/pull/450) Add support for modalContainer, fix Tour options ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### :house: Internal * [#516](https://github.com/RobbieTheWagner/ember-shepherd/pull/516) Add embroider tests ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v11.0.0 (2020-02-25) #### :boom: Breaking Change * [#432](https://github.com/RobbieTheWagner/ember-shepherd/pull/432) Shepherd.js v7 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v9.0.0 (2019-08-29) #### :boom: Breaking Change * [#338](https://github.com/RobbieTheWagner/ember-shepherd/pull/338) Shepherd 5.x ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v8.0.0 (2019-08-01) #### :boom: Breaking Change * [#333](https://github.com/RobbieTheWagner/ember-shepherd/pull/333) Shepherd 4 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v7.0.0 (2019-06-23) #### :boom: Breaking Change * [#325](https://github.com/RobbieTheWagner/ember-shepherd/pull/325) Remove body-scroll-lock, shepherd.js 3.0.0 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### :rocket: Enhancement * [#325](https://github.com/RobbieTheWagner/ember-shepherd/pull/325) Remove body-scroll-lock, shepherd.js 3.0.0 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v6.0.0 (2019-05-26) #### :boom: Breaking Change * [#316](https://github.com/RobbieTheWagner/ember-shepherd/pull/316) Ember 3.10, drop support for node 6 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### :rocket: Enhancement * [#317](https://github.com/RobbieTheWagner/ember-shepherd/pull/317) Shepherd.js 2.9.0, bump other deps ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v5.0.0 (2019-05-03) #### :boom: Breaking Change * [#305](https://github.com/RobbieTheWagner/ember-shepherd/pull/305) load shepherd.js lazily using ember-auto-import ([@st-h](https://github.com/st-h)) #### :rocket: Enhancement * [#307](https://github.com/RobbieTheWagner/ember-shepherd/pull/307) replace fastboot guards with an initializer ([@st-h](https://github.com/st-h)) * [#305](https://github.com/RobbieTheWagner/ember-shepherd/pull/305) load shepherd.js lazily using ember-auto-import ([@st-h](https://github.com/st-h)) #### Committers: 2 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) - Steve ([@st-h](https://github.com/st-h)) ## v4.9.0 (2019-04-15) #### :rocket: Enhancement * [#302](https://github.com/RobbieTheWagner/ember-shepherd/pull/302) Update to Shepherd 2.6.0 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v4.8.0 (2019-04-06) #### :rocket: Enhancement * [#297](https://github.com/RobbieTheWagner/ember-shepherd/pull/297) Use ember-cli-addon-docs for documentation ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v4.7.0 (2019-04-05) #### :rocket: Enhancement * [#295](https://github.com/RobbieTheWagner/ember-shepherd/pull/295) Use rootElement, if defined, rather than document.body ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#296](https://github.com/RobbieTheWagner/ember-shepherd/pull/296) Use ember-auto-import to import disable-scroll, bump disable-scroll to 0.4.1 ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 1 - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v4.1.0 (2019-01-02) #### :rocket: Enhancement * [#282](https://github.com/RobbieTheWagner/ember-shepherd/pull/282) feat: Pass tourName option when initializing the Shepherd.Tour ([@scottkidder](https://github.com/scottkidder)) #### Committers: 1 - Scott Kidder ([@scottkidder](https://github.com/scottkidder)) ## v4.0.0-beta.14 (2018-11-09) #### :rocket: Enhancement * [#261](https://github.com/RobbieTheWagner/ember-shepherd/pull/261) Add method to hide current step ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) * [#239](https://github.com/RobbieTheWagner/ember-shepherd/pull/239) Document required elements order; add requiredElements tests ([@BrianSipple](https://github.com/BrianSipple)) #### Committers: 3 - Brian Sipple ([@BrianSipple](https://github.com/BrianSipple)) - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) - Scott Kidder ([@scottkidder](https://github.com/scottkidder)) ## v4.0.0-beta.11 (2018-10-08) #### :boom: Breaking Change * [#248](https://github.com/RobbieTheWagner/ember-shepherd/pull/248) Implement SVG-based modal mode ([@BrianSipple](https://github.com/BrianSipple)) #### :rocket: Enhancement * [#256](https://github.com/RobbieTheWagner/ember-shepherd/pull/256) Update project to use shepherd versions with Tippy ([@BrianSipple](https://github.com/BrianSipple)) * [#253](https://github.com/RobbieTheWagner/ember-shepherd/pull/253) Fix css rules for pointer-events ([@BrianSipple](https://github.com/BrianSipple)) * [#252](https://github.com/RobbieTheWagner/ember-shepherd/pull/252) Block clicks outside of visible modal opening. ([@BrianSipple](https://github.com/BrianSipple)) * [#250](https://github.com/RobbieTheWagner/ember-shepherd/pull/250) Hide modal when hiding the current step ([@BrianSipple](https://github.com/BrianSipple)) #### :bug: Bug Fix * [#251](https://github.com/RobbieTheWagner/ember-shepherd/pull/251) Use Ember.set to set `this.tourObject` ([@BrianSipple](https://github.com/BrianSipple)) * [#247](https://github.com/RobbieTheWagner/ember-shepherd/pull/247) Remove cleanupShepherdElements ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) #### Committers: 2 - Brian Sipple ([@BrianSipple](https://github.com/BrianSipple)) - Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner)) ## v4.0.0-beta.10 (2018-09-14) #### :boom: Breaking Change * [#241](https://github.com/RobbieTheWagner/ember-shepherd/pull/241) Change builtInButtons to buttons ([@chuckcarpenter](https://github.com/chuckcarpenter)) #### Committers: 1 - Chuck Carpenter ([@chuckcarpenter](https://github.com/chuckcarpenter)) ## v4.0.0-beta.9 (2018-09-13) #### :boom: Breaking Change * [#243](https://github.com/RobbieTheWagner/ember-shepherd/pull/243) Rename `defaults` to `defaultStepOptions`. ([@BrianSipple](https://github.com/BrianSipple)) * [#245](https://github.com/RobbieTheWagner/ember-shepherd/pull/245) Stop disabling target element pointer events ([@BrianSipple](https://github.com/BrianSipple)) #### Committers: 1 - Brian Sipple ([@BrianSipple](https://github.com/BrianSipple)) ## v4.0.0-beta.8 (2018-09-07) #### :rocket: Enhancement * [#237](https://github.com/RobbieTheWagner/ember-shepherd/pull/237) remove required buttons options ([@chuckcarpenter](https://github.com/chuckcarpenter)) #### Committers: 1 - Chuck Carpenter ([@chuckcarpenter](https://github.com/chuckcarpenter)) ================================================ FILE: CONTRIBUTING.md ================================================ # How To Contribute ## Installation - `git clone ` - `cd ember-shepherd` - `pnpm install` ## Linting - `pnpm lint` - `pnpm lint:fix` ## Building the addon - `cd ember-shepherd` - `pnpm build` ## Running tests - `cd test-app` - `pnpm test` – Runs the test suite on the current Ember version - `pnpm test:watch` – Runs the test suite in "watch mode" ## Running the test application - `cd test-app` - `pnpm start` - Visit the test application at [http://localhost:4200](http://localhost:4200). For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/). ================================================ FILE: LICENSE.md ================================================ # Shepherd.js License Shepherd.js is dual-licensed under **AGPL-3.0** (for open source and non-commercial use) and a **Commercial License** (for commercial use). --- 🆓 Free Use - AGPL-3.0 License You may use Shepherd.js **FREE OF CHARGE** under the AGPL-3.0 license if you are: ✅ Open Source Projects - Your project is open source and licensed under an AGPL-compatible license (GPL, AGPL, etc.) - Your complete source code is publicly available ✅ Personal & Non-Commercial Use - Personal projects, portfolios, and hobby websites - Educational purposes (students, teachers, coursework) - Academic research projects ✅ Evaluation & Testing - Evaluating Shepherd.js for up to 30 days - Development, testing, and staging environments during evaluation - Proof-of-concept and demo projects **Important:** If you use Shepherd.js under AGPL-3.0, you must: - Make your complete source code available if you distribute or provide your software over a network - License your code under AGPL-3.0 or a compatible license - Comply with all AGPL-3.0 terms (see full license text below) --- 💳 Commercial License Required You **must purchase a commercial license** at [shepherdjs.dev/pricing](https://shepherdjs.dev/pricing) if: ❌ Commercial Products & Services - You're building a commercial product, application, SaaS, or website that generates revenue - Your company generates revenue (even if the specific project using Shepherd.js does not) - You're using Shepherd.js in any customer-facing commercial application ❌ Closed-Source Use - You cannot or don't want to open-source your code under AGPL-3.0 - You want to keep your source code proprietary - You want to avoid AGPL's source code disclosure requirements ❌ White-Label, Resale, or OEM Use - You're embedding Shepherd.js in a product you sell or distribute - You're offering Shepherd.js as part of a commercial service or hosting - You're using Shepherd.js in a product sold to other businesses ❌ Internal Business Tools - You're using Shepherd.js for internal tools, dashboards, or admin panels in a revenue-generating company - Even if the tool is not customer-facing, commercial licenses are required for for-profit companies **Why Commercial License?** - ✅ No AGPL obligations - keep your code proprietary - ✅ Legal protection and indemnification - ✅ Priority support and updates - ✅ Lifetime license with no recurring fees [**Purchase Commercial License →**](https://shepherdjs.dev/pricing) --- ❓ Still Not Sure? If you're unsure whether you need a commercial license: - **Contact us:** [ahoy@shipshape.io](mailto:ahoy@shipshape.io) - **View pricing:** [shepherdjs.dev/pricing](https://shepherdjs.dev/pricing) **When in doubt:** If your organization generates revenue, you likely need a commercial license. --- ### GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. ### Preamble The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software. A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public. The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version. An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license. The precise terms and conditions for copying, distribution and modification follow. ### TERMS AND CONDITIONS #### 0. Definitions. "This License" refers to version 3 of the GNU Affero General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. #### 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. #### 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. #### 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. #### 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. #### 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: - a) The work must carry prominent notices stating that you modified it, and giving a relevant date. - b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". - c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. - d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. #### 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: - a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. - b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. - c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. - d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. - e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. #### 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or - b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or - c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or - d) Limiting the use for publicity purposes of names of licensors or authors of the material; or - e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or - f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. #### 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. #### 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. #### 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. #### 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. #### 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. #### 13. Remote Network Interaction; Use with the GNU General Public License. Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License. #### 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. #### 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. #### 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. #### 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS ### How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Better introductions for websites and features with a step-by-step guide for your projects. Copyright (C) 2012-2021 Afshin Mehrabani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see . ================================================ FILE: README.md ================================================ # ember-shepherd Ship Shape **[ember-shepherd is built and maintained by Ship Shape. Contact us for Ember.js consulting, development, and training for your project](https://shipshape.io/ember-consulting/)**. [![npm version](https://badge.fury.io/js/ember-shepherd.svg)](http://badge.fury.io/js/ember-shepherd) ![Download count all time](https://img.shields.io/npm/dt/ember-shepherd.svg) [![npm](https://img.shields.io/npm/dm/ember-shepherd.svg)]() [![Ember Observer Score](http://emberobserver.com/badges/ember-shepherd.svg)](http://emberobserver.com/addons/ember-shepherd) [![CI](https://github.com/RobbieTheWagner/ember-shepherd/actions/workflows/ci.yml/badge.svg)](https://github.com/RobbieTheWagner/ember-shepherd/actions/workflows/ci.yml) This is an Ember wrapper for the [Shepherd](https://github.com/shipshapecode/shepherd), site tour, library. It provides additional functionality, on top of Shepherd, as well. ## Compatibility - Ember.js v4.8 or above - Ember CLI v4.8 or above ## Installation ``` ember install ember-shepherd ``` ## Documentation [View Docs](https://RobbieTheWagner.github.io/ember-shepherd/) ## Contributing See the [Contributing](CONTRIBUTING.md) guide for details. ## License `ember-shepherd` is licensed under **AGPL-3.0** (for open source and non-commercial use) with a **Commercial License** available for commercial use. - **Free** for open source and non-commercial projects under AGPL-3.0 - **Commercial license required** for commercial products and revenue-generating companies 📄 [Read License Details](LICENSE.md) 💳 [Purchase Commercial License](https://shepherdjs.dev/pricing) ================================================ FILE: RELEASE.md ================================================ # Release Process Releases in this repo are mostly automated using [release-plan](https://github.com/embroider-build/release-plan/). Once you label all your PRs correctly (see below) you will have an automatically generated PR that updates your CHANGELOG.md file and a `.release-plan.json` that is used to prepare the release once the PR is merged. ## Preparation Since the majority of the actual release process is automated, the remaining tasks before releasing are: - correctly labeling **all** pull requests that have been merged since the last release - updating pull request titles so they make sense to our users Some great information on why this is important can be found at [keepachangelog.com](https://keepachangelog.com/en/1.1.0/), but the overall guiding principle here is that changelogs are for humans, not machines. When reviewing merged PR's the labels to be used are: - breaking - Used when the PR is considered a breaking change. - enhancement - Used when the PR adds a new feature or enhancement. - bug - Used when the PR fixes a bug included in a previous release. - documentation - Used when the PR adds or updates documentation. - internal - Internal changes or things that don't fit in any other category. **Note:** `release-plan` requires that **all** PRs are labeled. If a PR doesn't fit in a category it's fine to label it as `internal` ## Release Once the prep work is completed, the actual release is straight forward: you just need to merge the open [Plan Release](https://github.com/RobbieTheWagner/ember-shepherd/pulls?q=is%3Apr+is%3Aopen+%22Prepare+Release%22+in%3Atitle) PR ================================================ FILE: config/ember-cli-update.json ================================================ { "schemaVersion": "1.0.0", "projectName": "ember-shepherd", "packages": [ { "name": "@embroider/addon-blueprint", "version": "4.1.2", "blueprints": [ { "name": "@embroider/addon-blueprint", "isBaseBlueprint": true, "options": [ "--ci-provider=github", "--pnpm", "--typescript" ] } ] } ] } ================================================ FILE: ember-shepherd/.gitignore ================================================ # The authoritative copies of these live in the monorepo root (because they're # more useful on github that way), but the build copies them into here so they # will also appear in published NPM packages. /README.md /LICENSE.md # compiled output dist/ declarations/ # npm/pnpm/yarn pack output *.tgz # deps & caches node_modules/ .eslintcache .prettiercache ================================================ FILE: ember-shepherd/.prettierignore ================================================ # unconventional js /blueprints/*/files/ # compiled output /dist/ /declarations/ # misc /coverage/ ================================================ FILE: ember-shepherd/.prettierrc.cjs ================================================ 'use strict'; module.exports = { plugins: ['prettier-plugin-ember-template-tag'], overrides: [ { files: '*.{js,gjs,ts,gts,mjs,mts,cjs,cts}', options: { singleQuote: true, templateSingleQuote: false, }, }, ], }; ================================================ FILE: ember-shepherd/.template-lintrc.cjs ================================================ 'use strict'; module.exports = { extends: 'recommended', }; ================================================ FILE: ember-shepherd/addon-main.cjs ================================================ 'use strict'; const { addonV1Shim } = require('@embroider/addon-shim'); module.exports = addonV1Shim(__dirname); ================================================ FILE: ember-shepherd/babel.config.json ================================================ { "plugins": [ [ "@babel/plugin-transform-typescript", { "allExtensions": true, "onlyRemoveTypeImports": true, "allowDeclareFields": true } ], "@embroider/addon-dev/template-colocation-plugin", [ "babel-plugin-ember-template-compilation", { "targetFormat": "hbs", "transforms": [] } ], [ "module:decorator-transforms", { "runtime": { "import": "decorator-transforms/runtime" } } ] ] } ================================================ FILE: ember-shepherd/eslint.config.mjs ================================================ /** * Debugging: * https://eslint.org/docs/latest/use/configure/debug * ---------------------------------------------------- * * Print a file's calculated configuration * * npx eslint --print-config path/to/file.js * * Inspecting the config * * npx eslint --inspect-config * */ import babelParser from '@babel/eslint-parser'; import js from '@eslint/js'; import prettier from 'eslint-config-prettier'; import ember from 'eslint-plugin-ember/recommended'; import importPlugin from 'eslint-plugin-import'; import n from 'eslint-plugin-n'; import globals from 'globals'; import ts from 'typescript-eslint'; const parserOptions = { esm: { js: { ecmaFeatures: { modules: true }, ecmaVersion: 'latest', }, ts: { projectService: true, tsconfigRootDir: import.meta.dirname, }, }, }; export default ts.config( js.configs.recommended, ember.configs.base, ember.configs.gjs, ember.configs.gts, prettier, /** * Ignores must be in their own object * https://eslint.org/docs/latest/use/configure/ignore */ { ignores: ['dist/', 'declarations/', 'node_modules/', 'coverage/', '!**/.*'], }, /** * https://eslint.org/docs/latest/use/configure/configuration-files#configuring-linter-options */ { linterOptions: { reportUnusedDisableDirectives: 'error', }, }, { files: ['**/*.js'], languageOptions: { parser: babelParser, }, }, { files: ['**/*.{js,gjs}'], languageOptions: { parserOptions: parserOptions.esm.js, globals: { ...globals.browser, }, }, }, { files: ['**/*.{ts,gts}'], languageOptions: { parser: ember.parser, parserOptions: parserOptions.esm.ts, }, extends: [...ts.configs.recommendedTypeChecked, ember.configs.gts], }, { files: ['src/**/*'], plugins: { import: importPlugin, }, rules: { // require relative imports use full extensions 'import/extensions': ['error', 'always', { ignorePackages: true }], }, }, /** * CJS node files */ { files: [ '**/*.cjs', '.prettierrc.js', '.stylelintrc.js', '.template-lintrc.js', 'addon-main.cjs', ], plugins: { n, }, languageOptions: { sourceType: 'script', ecmaVersion: 'latest', globals: { ...globals.node, }, }, }, /** * ESM node files */ { files: ['**/*.mjs'], plugins: { n, }, languageOptions: { sourceType: 'module', ecmaVersion: 'latest', parserOptions: parserOptions.esm.js, globals: { ...globals.node, }, }, }, ); ================================================ FILE: ember-shepherd/package.json ================================================ { "name": "ember-shepherd", "version": "18.0.0", "description": "An Ember wrapper for the site tour library Shepherd.", "keywords": [ "ember-addon", "tour", "shepherd", "user journey", "site tour" ], "repository": "https://github.com/RobbieTheWagner/ember-shepherd", "license": "AGPL-3.0", "author": { "name": "Robert Wagner", "email": "rwwagner90@gmail.com", "url": "https://github.com/RobbieTheWagner" }, "exports": { ".": { "types": "./declarations/index.d.ts", "default": "./dist/index.js" }, "./*": { "types": "./declarations/*.d.ts", "default": "./dist/*.js" }, "./addon-main.js": "./addon-main.cjs" }, "typesVersions": { "*": { "*": [ "declarations/*" ] } }, "files": [ "addon-main.cjs", "declarations", "dist", "LICENSE.md" ], "scripts": { "build": "rollup --config", "format": "prettier . --cache --write", "lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\" --prefixColors auto", "lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\" --prefixColors auto && pnpm run format", "lint:format": "prettier . --cache --check", "lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern", "lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern", "lint:js": "eslint . --cache", "lint:js:fix": "eslint . --fix", "lint:types": "glint", "prepack": "rollup --config", "start": "rollup --config --watch", "test": "echo 'A v2 addon does not have tests, run tests in test-app'" }, "dependencies": { "@embroider/addon-shim": "^1.10.2", "@embroider/macros": "^1.19.6", "decorator-transforms": "^2.3.1", "shepherd.js": "^15.0.0" }, "devDependencies": { "@babel/core": "^7.29.0", "@babel/eslint-parser": "^7.28.6", "@babel/plugin-transform-typescript": "^7.28.6", "@babel/runtime": "^7.28.6", "@ember/library-tsconfig": "^1.1.3", "@embroider/addon-dev": "^7.1.6", "@eslint/js": "^9.39.2", "@glint/core": "^1.5.2", "@glint/environment-ember-loose": "^1.5.2", "@glint/environment-ember-template-imports": "^1.5.2", "@glint/template": "^1.7.4", "@rollup/plugin-babel": "^6.1.0", "@tsconfig/ember": "^3.0.12", "@typescript-eslint/eslint-plugin": "^8.57.0", "@typescript-eslint/parser": "^8.54.0", "babel-plugin-ember-template-compilation": "^2.4.1", "concurrently": "^9.2.1", "ember-source": "~5.12.0", "ember-template-lint": "^6.1.0", "eslint": "^9.39.2", "eslint-config-prettier": "^9.1.2", "eslint-plugin-ember": "^12.7.5", "eslint-plugin-import": "^2.32.0", "eslint-plugin-n": "^17.23.2", "globals": "^15.15.0", "prettier": "^3.8.1", "prettier-plugin-ember-template-tag": "^2.1.3", "rollup": "^4.57.1", "rollup-plugin-copy": "^3.5.0", "typescript": "^5.9.3", "typescript-eslint": "^8.54.0", "webpack": "^5.105.0" }, "ember": { "edition": "octane" }, "ember-addon": { "version": 2, "type": "addon", "main": "addon-main.cjs", "app-js": { "./services/tour.js": "./dist/_app_/services/tour.js" } } } ================================================ FILE: ember-shepherd/rollup.config.mjs ================================================ import { babel } from '@rollup/plugin-babel'; import copy from 'rollup-plugin-copy'; import { Addon } from '@embroider/addon-dev/rollup'; const addon = new Addon({ srcDir: 'src', destDir: 'dist', }); export default { // This provides defaults that work well alongside `publicEntrypoints` below. // You can augment this if you need to. output: addon.output(), plugins: [ // These are the modules that users should be able to import from your // addon. Anything not listed here may get optimized away. // By default all your JavaScript modules (**/*.js) will be importable. // But you are encouraged to tweak this to only cover the modules that make // up your addon's public API. Also make sure your package.json#exports // is aligned to the config here. // See https://github.com/embroider-build/embroider/blob/main/docs/v2-faq.md#how-can-i-define-the-public-exports-of-my-addon addon.publicEntrypoints(['index.js', '**/*.js']), // These are the modules that should get reexported into the traditional // "app" tree. Things in here should also be in publicEntrypoints above, but // not everything in publicEntrypoints necessarily needs to go here. addon.appReexports([ 'components/**/*.js', 'helpers/**/*.js', 'modifiers/**/*.js', 'services/**/*.js', ]), // Follow the V2 Addon rules about dependencies. Your code can import from // `dependencies` and `peerDependencies` as well as standard Ember-provided // package names. addon.dependencies(), // This babel config should *not* apply presets or compile away ES modules. // It exists only to provide development niceties for you, like automatic // template colocation. // // By default, this will load the actual babel config from the file // babel.config.json. babel({ extensions: ['.js', '.gjs', '.ts', '.gts'], babelHelpers: 'bundled', }), // Ensure that standalone .hbs files are properly integrated as Javascript. addon.hbs(), // Ensure that .gjs files are properly integrated as Javascript addon.gjs(), // Emit .d.ts declaration files addon.declarations('declarations'), // addons are allowed to contain imports of .css files, which we want rollup // to leave alone and keep in the published output. addon.keepAssets(['**/*.css']), // Remove leftover build artifacts when starting a new build. addon.clean(), // Copy Readme and License into published package copy({ targets: [ { src: '../README.md', dest: '.' }, { src: '../LICENSE.md', dest: '.' }, ], }), ], }; ================================================ FILE: ember-shepherd/src/.gitkeep ================================================ ================================================ FILE: ember-shepherd/src/index.ts ================================================ ================================================ FILE: ember-shepherd/src/services/tour.ts ================================================ /* eslint-disable ember/no-runloop */ import { isEmpty, isPresent } from '@ember/utils'; import Service from '@ember/service'; import Evented from '@ember/object/evented'; import { registerDestructor } from '@ember/destroyable'; import type Owner from '@ember/owner'; import { bind } from '@ember/runloop'; import { isTesting } from '@embroider/macros'; import { tracked } from '@glimmer/tracking'; import { type StepOptions, type Tour } from 'shepherd.js'; import { type EmberShepherdButton, makeButton } from '../utils/buttons.ts'; import { elementIsHidden } from '../utils/dom.ts'; interface EmberShepherdStepOptions extends Omit { buttons?: Array; } /** * Interaction with `ember-shepherd` is done entirely through the Tour service, which you can access from any object using the `service` syntax: * * ```js * import Component from '@glimmer/component'; * import { service } from '@ember/service'; * * export default class MyCoolComponent extends Component { * * @service tour; * * // OR * * @service('tour') tourService; * }; * ``` * * The following configuration options can be `set` on the Tour service to control the way that Shepherd is used. **The only required option is `steps`, which is set via `addSteps`.** * * @class Tour */ export default class TourService extends Service.extend(Evented) { declare tourName?: string; // Configuration Options /** * The prefix to add to all the `shepherd-*` class names. * * @default undefined * @property classPrefix * @type String */ @tracked classPrefix?: string; /** * `confirmCancel` is a boolean flag, when set to `true` it will pop up a native browser * confirm window on cancel, to ensure you want to cancel. * * @default false * @property confirmCancel * @type Boolean */ @tracked confirmCancel = false; /** * `confirmCancelMessage` is a string to display in the confirm dialog when `confirmCancel` * is set to true. * * @default undefined * @property confirmCancelMessage * @type String */ @tracked confirmCancelMessage?: string; /** * `defaultStepOptions` is used to set the options that will be applied to each step by default. * You can pass in any of the options that you can with Shepherd. * * **⚠️ You must set `defaultStepOptions` *BEFORE* calling `addSteps` to set the steps.** * * It will be an object of a form something like: * * ```js * this.tour.set('defaultStepOptions', { * classes: 'custom-class-name-1 custom-class-name-2', * scrollTo: true, * cancelIcon: { * enabled: true * }, * }); * ``` * * > **default value:** `{}` * * @default {} * @property defaultStepOptions * @type StepOptions */ @tracked defaultStepOptions: StepOptions = {}; /** * @default undefined * @property errorTitle * @type String */ @tracked errorTitle?: string; /** * Exiting the tour with the escape key will be enabled unless this is explicitly set to false. * * @default undefined * @property exitOnEsc * @type Boolean */ @tracked exitOnEsc?: boolean; /** * @default false * @property isActive * @type Boolean */ @tracked isActive = false; /** * Navigating the tour via left and right arrow keys will be enabled unless this is explicitly set to false. * * @default undefined * @property keyboardNavigation * @type Boolean */ @tracked keyboardNavigation?: boolean; /** * @default undefined * @property messageForUser * @type String */ @tracked messageForUser?: string; /** * `modal` is a boolean, that should be set to true, if you would like the rest of the screen, other than the current element, greyed out, and the current element highlighted. If you do not need modal functionality, you can remove this option or set it to false. * * > **default value:** `false` * * @default false * @property modal * @type Boolean */ @tracked modal = false; /** * An optional container element for the modal. If not set, the modal will be appended to `document.body`. * @default undefined * @property modalContainer * @type HTMLElement */ @tracked modalContainer?: HTMLElement; /** * `requiredElements` is an array of objects that indicate DOM elements that are **REQUIRED** by your tour and must * exist and be visible for the tour to start. If any elements are not present, it will keep the tour from starting. * * You can also specify a message, which will tell the user what they need to do to make the tour work. * * **⚠️ You must set `requiredElements` *BEFORE* calling `addSteps` to set the steps.** * * _Example_ * ```js * this.tour.requiredElements = [ * { * selector: '.search-result-element', * message: 'No search results found. Please execute another search, and try to start the tour again.', * title: 'No results' * }, * { * selector: '.username-element', * message: 'User not logged in, please log in to start this tour.', * title: 'Please login' * }, * ]; * ``` * > **default value:** `[]` * * @default [] * @property requiredElements * @type Array */ @tracked requiredElements = []; /** * An optional container element for the steps. If not set, the steps will be appended to `document.body`. * @default undefined * @property stepsContainer * @type HTMLElement */ @tracked stepsContainer?: HTMLElement; /** * A reference to the Shepherd Tour instance. * * @property tourObject * @type Tour */ @tracked declare tourObject?: Tour; constructor(owner: Owner) { super(owner); // eslint-disable-next-line @typescript-eslint/no-misused-promises registerDestructor(this, () => this.tourObject?.cancel()); } /** * Take a set of steps, create a tour object based on the current configuration and load the shepherd.js dependency. * This method returns a promise which resolves when the shepherd.js dependency has been loaded and shepherd is ready to use. * * You must pass an array of steps to `addSteps`, something like this: * * ```js * this.tour.addSteps([ * { * attachTo: { * element:'.first-element', * on: 'bottom' * }, * beforeShowPromise: function() { * return new Promise(function(resolve) { * Ember.run.scheduleOnce('afterRender', this, function() { * window.scrollTo(0, 0); * this.get('documents.firstObject').set('isSelected', true); * resolve(); * }); * }); * }, * buttons: [ * { * classes: 'shepherd-button-secondary', * text: 'Exit', * type: 'cancel' * }, * { * classes: 'shepherd-button-primary', * text: 'Back', * type: 'back' * }, * { * classes: 'shepherd-button-primary', * text: 'Next', * type: 'next' * } * ], * cancelIcon: { * enabled: true * }, * classes: 'custom-class-name-1 custom-class-name-2', * highlightClass: 'highlight', * id: 'intro', * scrollTo: false, * title: 'Welcome to Ember-Shepherd!', * text: 'Ember-Shepherd is a JavaScript library for guiding users through your Ember app.', * when: { * show: () => { * console.log('show step'); * }, * hide: () => { * console.log('hide step'); * } * } * }, * ... * ]); * ``` * * @method addSteps * @param {array} steps An array of steps * @returns {Promise} Promise that resolves when everything has been set up and shepherd is ready to use * @public */ addSteps(steps: Array) { return this._initialize().then(() => { const tour = this.tourObject as Tour; // Return nothing if there are no steps if (isEmpty(steps)) { return; } /* istanbul ignore next: also can't test this due to things attached to root blowing up tests */ if (!this._requiredElementsPresent()) { tour.addStep({ buttons: [ { text: 'Exit', // eslint-disable-next-line @typescript-eslint/no-misused-promises, @typescript-eslint/unbound-method action: tour.cancel, }, ], id: 'error', title: this.errorTitle, text: this.messageForUser, }); return; } steps.forEach((step) => { if (step.buttons) { step.buttons = step.buttons.map(makeButton.bind(this), this); } tour.addStep(step); }); }); } /** * Get the tour object and call back * * @method back * @public */ back() { this.tourObject?.back(); // @ts-expect-error TODO: refactor away from Evented mixin // eslint-disable-next-line @typescript-eslint/no-unsafe-call this.trigger('back'); } /** * Cancel the tour * * @method cancel * @public */ async cancel() { await this.tourObject?.cancel(); } /** * Complete the tour * * @method complete * @public */ complete() { this.tourObject?.complete(); } /** * Hides the current step * * @method hide * @public */ hide() { this.tourObject?.hide(); } /** * Advance the tour to the next step and trigger next * * @method next * @public */ next() { this.tourObject?.next(); // @ts-expect-error TODO: refactor away from Evented mixin // eslint-disable-next-line @typescript-eslint/no-unsafe-call this.trigger('next'); } /** * Show a specific step, by passing its id * * @param {string} [id] The id of the step you want to show * @method show * @public */ show(id: string) { this.tourObject?.show(id); } /** * Start the tour. The Promise from addSteps() must be in a resolved state prior to starting the tour! * * @method start * @public */ async start() { const tourObject = this.tourObject; if (tourObject == undefined) { throw new Error( 'the Promise from addSteps must be in a resolved state before the tour can be started', ); } this.isActive = true; await tourObject.start(); } /** * When the tour starts, setup the step event listeners * * @method _onTourStart * @private */ _onTourStart() { // @ts-expect-error TODO: refactor away from Evented mixin // eslint-disable-next-line @typescript-eslint/no-unsafe-call this.trigger('start'); } /** * This function is called when a tour is completed or cancelled to initiate cleanup. * * @method _onTourFinish * @param {string} [completeOrCancel] 'complete' or 'cancel' * @private */ _onTourFinish(completeOrCancel: 'complete' | 'cancel') { if (!this.isDestroyed) { this.isActive = false; } // @ts-expect-error TODO: refactor away from Evented mixin // eslint-disable-next-line @typescript-eslint/no-unsafe-call this.trigger(completeOrCancel); } /** * Initializes the tour, creates a new Shepherd.Tour. sets options, and binds events * * @method _initialize * @private */ _initialize() { const { classPrefix, confirmCancel, confirmCancelMessage, defaultStepOptions, exitOnEsc, keyboardNavigation, modal, modalContainer, stepsContainer, tourName, } = this; // Ensure `floatingUIOptions` exists on `defaultStepOptions` defaultStepOptions.floatingUIOptions = defaultStepOptions.floatingUIOptions || {}; return import('shepherd.js').then((module) => { const Shepherd = module.default; const tourObject = new Shepherd.Tour({ classPrefix, confirmCancel, confirmCancelMessage, defaultStepOptions, exitOnEsc, keyboardNavigation, modalContainer: modalContainer ?? (isTesting() ? (document.querySelector('#ember-testing') as HTMLElement) : document.body), stepsContainer: stepsContainer ?? (isTesting() ? (document.querySelector('#ember-testing') as HTMLElement) : document.body), tourName, useModalOverlay: modal, }); tourObject.on('start', bind(this, '_onTourStart')); tourObject.on('complete', bind(this, '_onTourFinish', 'complete')); tourObject.on('cancel', bind(this, '_onTourFinish', 'cancel')); this.tourObject = tourObject; }); } /** * Observes the array of requiredElements, which are the elements that must be present at the start of the tour, * and determines if they exist, and are visible, if either is false, it will stop the tour from executing. * * @method _requiredElementsPresent * @private */ _requiredElementsPresent() { let allElementsPresent = true; const requiredElements = this.requiredElements; if (isPresent(requiredElements)) { /* istanbul ignore next: also can't test this due to things attached to root blowing up tests */ requiredElements.forEach( (element: { message: string; selector: string; title: string }) => { const selectedElement = document.querySelector(element.selector); if ( allElementsPresent && (!selectedElement || elementIsHidden(selectedElement as HTMLElement)) ) { allElementsPresent = false; this.errorTitle = element.title; this.messageForUser = element.message; } }, ); } return allElementsPresent; } } ================================================ FILE: ember-shepherd/src/template-registry.ts ================================================ // Easily allow apps, which are not yet using strict mode templates, to consume your Glint types, by importing this file. // Add all your components, helpers and modifiers to the template registry here, so apps don't have to do this. // See https://typed-ember.gitbook.io/glint/environments/ember/authoring-addons // import type MyComponent from './components/my-component'; // Uncomment this once entries have been added! 👇 // export default interface Registry { // MyComponent: typeof MyComponent // } ================================================ FILE: ember-shepherd/src/unpublished-development-types/index.d.ts ================================================ // Add any types here that you need for local development only. // These will *not* be published as part of your addon, so be careful that your published code does not rely on them! import 'ember-source/types/stable'; import 'ember-source/types/preview'; ================================================ FILE: ember-shepherd/src/utils/buttons.ts ================================================ /* eslint-disable ember/no-runloop */ import { bind } from '@ember/runloop'; import { assert } from '@ember/debug'; import { type StepOptionsButton } from 'shepherd.js'; import type TourService from '../services/tour'; export type EmberShepherdButton = StepOptionsButton & { type?: 'back' | 'cancel' | 'next'; }; /** * Creates a button of the specified type, with the given classes and text * * @function makeButton * @param {object} [button] Description here * @param {string} [button.type] The type of button cancel, back, or next * @param {classes} [button.classes] Classes to apply to the button * @param {string} [button.text] The text for the button * @param {action} [button.action] The action to call * @private * @return {{action: *, classes: *, text: *}} Description here */ export function makeButton( this: TourService, button: EmberShepherdButton, ): EmberShepherdButton { const { classes, disabled, label, secondary, text, type } = button; const builtInButtonTypes = ['back', 'cancel', 'next']; if (!type) { return button; } assert( `'type' property must be one of 'back', 'cancel', or 'next'`, builtInButtonTypes.includes(type), ); const action = bind(this, function () { void this[type](); }); return { action, classes, disabled, label, secondary, text, type, }; } ================================================ FILE: ember-shepherd/src/utils/dom.ts ================================================ /** * Helper method to check if element is hidden, since we cannot use :visible without jQuery * * @function elementIsHidden * @param {HTMLElement} element The element to check for visibility * @private * @return {boolean} true if element is hidden */ export function elementIsHidden(element: HTMLElement) { return element.offsetWidth === 0 && element.offsetHeight === 0; } ================================================ FILE: ember-shepherd/tsconfig.json ================================================ { "extends": "@ember/library-tsconfig", "include": ["src/**/*", "unpublished-development-types/**/*"], "glint": { "environment": ["ember-loose", "ember-template-imports"] }, "compilerOptions": { "allowJs": true, "declarationDir": "declarations", /** https://www.typescriptlang.org/tsconfig#rootDir "Default: The longest common path of all non-declaration input files." Because we want our declarations' structure to match our rollup output, we need this "rootDir" to match the "srcDir" in the rollup.config.mjs. This way, we can have simpler `package.json#exports` that matches imports to files on disk */ "rootDir": "./src", "types": ["ember-source/types"] } } ================================================ FILE: ember-shepherd/unpublished-development-types/index.d.ts ================================================ // Add any types here that you need for local development only. // These will *not* be published as part of your addon, so be careful that your published code does not rely on them! import '@glint/environment-ember-loose'; import '@glint/environment-ember-template-imports'; // Uncomment if you need to support consuming projects in loose mode // // declare module '@glint/environment-ember-loose/registry' { // export default interface Registry { // // Add any registry entries from other addons here that your addon itself uses (in non-strict mode templates) // // See https://typed-ember.gitbook.io/glint/using-glint/ember/using-addons // } // } ================================================ FILE: package.json ================================================ { "version": "17.3.1", "private": true, "repository": "https://github.com/RobbieTheWagner/ember-shepherd", "license": "AGPL-3.0", "author": { "name": "Robert Wagner", "email": "rwwagner90@gmail.com", "url": "https://github.com/RobbieTheWagner" }, "scripts": { "build": "pnpm --filter ember-shepherd build", "lint": "pnpm --filter '*' lint", "lint:fix": "pnpm --filter '*' lint:fix", "prepare": "pnpm build", "start": "concurrently 'pnpm:start:*' --restart-after 5000 --prefixColors auto", "start:addon": "pnpm --filter ember-shepherd start --no-watch.clearScreen", "start:test-app": "pnpm --filter test-app start", "test": "pnpm --filter '*' test", "test:ember": "pnpm --filter '*' test:ember" }, "devDependencies": { "@glint/core": "^1.5.2", "concurrently": "^9.2.1", "prettier": "^3.8.1", "prettier-plugin-ember-template-tag": "^2.1.3", "release-plan": "^0.17.4" }, "engines": { "node": ">= 20" } } ================================================ FILE: pnpm-workspace.yaml ================================================ packages: - ember-shepherd - test-app onlyBuiltDependencies: - '@parcel/watcher' - core-js - ember-modal-dialog ================================================ FILE: test-app/.editorconfig ================================================ # EditorConfig helps developers define and maintain consistent # coding styles between different editors and IDEs # editorconfig.org root = true [*] end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true indent_style = space indent_size = 2 [*.hbs] insert_final_newline = false [*.{diff,md}] trim_trailing_whitespace = false ================================================ FILE: test-app/.ember-cli ================================================ { /** Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript rather than JavaScript by default, when a TypeScript version of a given blueprint is available. */ "isTypeScriptProject": true, /** Setting `componentAuthoringFormat` to "strict" will force the blueprint generators to generate GJS or GTS files for the component and the component rendering test. "strict" is the default. */ "componentAuthoringFormat": "strict", /** Setting `routeAuthoringFormat` to "strict" will force the blueprint generators to generate GJS or GTS templates for routes. "strict" is the default */ "routeAuthoringFormat": "strict" } ================================================ FILE: test-app/.gitignore ================================================ # compiled output /dist/ /declarations/ # dependencies /node_modules/ # misc /.env* /.pnp* /.eslintcache /coverage/ /npm-debug.log* /testem.log /yarn-error.log # broccoli-debug /DEBUG/ # addon-docs deploy-test-app/ tmp/ ================================================ FILE: test-app/.prettierignore ================================================ # unconventional js /blueprints/*/files/ # compiled output /dist/ # misc /coverage/ !.* .*/ /pnpm-lock.yaml ember-cli-update.json *.html ================================================ FILE: test-app/.prettierrc.js ================================================ 'use strict'; module.exports = { plugins: ['prettier-plugin-ember-template-tag'], overrides: [ { files: '*.{js,gjs,ts,gts,mjs,mts,cjs,cts}', options: { singleQuote: true, templateSingleQuote: false, }, }, ], }; ================================================ FILE: test-app/.stylelintignore ================================================ # unconventional files /blueprints/*/files/ # compiled output /dist/ ================================================ FILE: test-app/.stylelintrc.js ================================================ 'use strict'; module.exports = { extends: ['stylelint-config-standard'], rules: { 'color-hex-length': null, 'font-family-no-missing-generic-family-keyword': null, }, }; ================================================ FILE: test-app/.template-lintrc.js ================================================ 'use strict'; module.exports = { extends: 'recommended', }; ================================================ FILE: test-app/.watchmanconfig ================================================ { "ignore_dirs": ["dist"] } ================================================ FILE: test-app/README.md ================================================ # test-app This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here. ## Prerequisites You will need the following things properly installed on your computer. - [Git](https://git-scm.com/) - [Node.js](https://nodejs.org/) (with npm) - [Ember CLI](https://cli.emberjs.com/release/) - [Google Chrome](https://google.com/chrome/) ## Installation - `git clone ` this repository - `cd test-app` - `npm install` ## Running / Development - `npm run start` - Visit your app at [http://localhost:4200](http://localhost:4200). - Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests). ### Code Generators Make use of the many generators for code, try `ember help generate` for more details ### Running Tests - `npm run test` - `npm run test:ember -- --server` ### Linting - `npm run lint` - `npm run lint:fix` ### Building - `npm exec ember build` (development) - `npm run build` (production) ### Deploying Specify what it takes to deploy your app. ## Further Reading / Useful Links - [ember.js](https://emberjs.com/) - [ember-cli](https://cli.emberjs.com/release/) - Development Browser Extensions - [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi) - [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/) ================================================ FILE: test-app/app/app.ts ================================================ import '@warp-drive/ember/install'; import Application from '@ember/application'; import Resolver from 'ember-resolver'; import loadInitializers from 'ember-load-initializers'; import config from 'test-app/config/environment'; import { importSync, isDevelopingApp, macroCondition } from '@embroider/macros'; if (macroCondition(isDevelopingApp())) { importSync('./deprecation-workflow'); } export default class App extends Application { modulePrefix = config.modulePrefix; podModulePrefix = config.podModulePrefix; Resolver = Resolver; } loadInitializers(App, config.modulePrefix); ================================================ FILE: test-app/app/components/.gitkeep ================================================ ================================================ FILE: test-app/app/config/environment.d.ts ================================================ /** * Type declarations for * import config from 'test-app/config/environment' */ declare const config: { environment: string; modulePrefix: string; podModulePrefix: string; locationType: 'history' | 'hash' | 'none'; rootURL: string; APP: Record; }; export default config; ================================================ FILE: test-app/app/controllers/.gitkeep ================================================ ================================================ FILE: test-app/app/controllers/docs/demo.js ================================================ import Controller from '@ember/controller'; import { action } from '@ember/object'; import { inject as service } from '@ember/service'; import { steps as defaultSteps } from '../../data'; export default class DocsDemoController extends Controller { @service tour; usage = `//Inject the service: tour: service() let tour = this.tour; tour.set('defaultStepOptions', shepherdStepDefaults); tour.set('disableScroll', true); tour.set('modal', true); tour.set('requiredElements', requiredElements); tour.addSteps(steps); // Methods to control the tour tour.start(); tour.next(); tour.back(); tour.cancel();`; @action toggleHelpModal() { this.tour.set('modal', true); this.tour.addSteps(defaultSteps); this.tour.start(); } @action toggleHelpNonmodal() { this.tour.set('modal', false); this.tour.addSteps(defaultSteps); this.tour.start(); } } ================================================ FILE: test-app/app/data.js ================================================ export const builtInButtons = { cancel: { classes: 'cancel-button', secondary: true, text: 'Exit', type: 'cancel', }, next: { classes: 'next-button', text: 'Next', type: 'next', }, back: { classes: 'back-button', text: 'Back', type: 'back', }, }; export const defaultStepOptions = { classes: 'shepherd-theme-arrows custom-default-class', scrollTo: true, cancelIcon: { enabled: true, }, }; export const steps = [ { attachTo: { element: '.first-element', on: 'bottom', }, buttons: [builtInButtons.cancel, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', id: 'intro', title: 'Welcome to Ember Shepherd!', text: `

Ember Shepherd is a JavaScript library for guiding users through your Ember app. It is an Ember addon that wraps Shepherd and extends its functionality. Shepherd uses Popper.js, another open source library, to render dialogs for each tour "step".

Popper makes sure your steps never end up off screen or cropped by an overflow. Try resizing your browser to see what we mean.

`, }, { attachTo: { element: '.install-element .shiki-code-block', on: 'bottom', }, buttons: [builtInButtons.cancel, builtInButtons.back, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', id: 'installation', title: 'Installation', text: 'Installation is simple, if you are using Ember-CLI, just install like any other addon.', }, { attachTo: { element: '.usage-element .shiki-code-block', on: 'bottom', }, buttons: [builtInButtons.cancel, builtInButtons.back, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', id: 'usage', title: 'Usage', text: 'To use the tour service, simply inject it into your application and use it like this example.', }, { attachTo: { element: '.modal-element', on: 'top', }, buttons: [builtInButtons.cancel, builtInButtons.back, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', id: 'modal', text: `

We implemented true modal functionality by disabling clicking of the rest of the page.

If you would like to enable modal, simply do this.tour.set('modal', true).

`, }, { attachTo: { element: '.built-in-buttons-element', on: 'top', }, buttons: [builtInButtons.cancel, builtInButtons.back, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', id: 'buttons', text: `For the common button types ("next", "back", "cancel", etc.), we implemented Ember actions that perform these actions on your tour automatically. To use them, simply include in the buttons array in each step.`, }, { attachTo: { element: '.disable-scroll-element', on: 'top', }, buttons: [builtInButtons.cancel, builtInButtons.back, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', id: 'disableScroll', text: `

When navigating the user through a tour, you may want to disable scrolling, so they cannot mess up your carefully planned out, amazing tour. This is now easily achieved with this.tour.set('disableScroll', true).

Try scrolling right now, then exit the tour and see that you can again!

`, }, { buttons: [builtInButtons.cancel, builtInButtons.back], id: 'noAttachTo', title: 'Centered Modals', classes: 'custom-class-name-1 custom-class-name-2', text: 'If no attachTo is specified, the modal will appear in the center of the screen, as per the Shepherd docs.', }, ]; ================================================ FILE: test-app/app/deprecation-workflow.ts ================================================ import setupDeprecationWorkflow from 'ember-cli-deprecation-workflow'; /** * Docs: https://github.com/ember-cli/ember-cli-deprecation-workflow */ setupDeprecationWorkflow({ /** false by default, but if a developer / team wants to be more aggressive about being proactive with handling their deprecations, this should be set to "true" */ throwOnUnhandled: false, workflow: [ /* ... handlers ... */ /* to generate this list, run your app for a while (or run the test suite), * and then run in the browser console: * * deprecationWorkflow.flushDeprecations() * * And copy the handlers here */ /* example: */ /* { handler: 'silence', matchId: 'template-action' }, */ ], }); ================================================ FILE: test-app/app/helpers/.gitkeep ================================================ ================================================ FILE: test-app/app/index.html ================================================ Ember Shepherd {{content-for "head"}} {{content-for "head-footer"}} {{content-for "body"}} {{content-for "body-footer"}} ================================================ FILE: test-app/app/models/.gitkeep ================================================ ================================================ FILE: test-app/app/router.js ================================================ import AddonDocsRouter, { docsRoute } from 'ember-cli-addon-docs/router'; import config from 'test-app/config/environment'; const Router = AddonDocsRouter.extend({ location: config.locationType, rootURL: config.rootURL, }); Router.map(function () { docsRoute(this, function () { this.route('demo'); this.route('faq'); this.route('style-variables'); this.route('usage'); this.route('not-found', { path: '/*path' }); }); }); export default Router; ================================================ FILE: test-app/app/routes/.gitkeep ================================================ ================================================ FILE: test-app/app/routes/docs/demo.js ================================================ import Route from '@ember/routing/route'; import config from '../../config/environment'; import { inject as service } from '@ember/service'; import { scheduleOnce } from '@ember/runloop'; import { steps as defaultSteps, defaultStepOptions } from '../../data'; export default class DocsDemoRoute extends Route { @service tour; disableScroll = false; async beforeModel() { const tour = this.tour; tour.set('defaultStepOptions', defaultStepOptions); tour.set('disableScroll', this.disableScroll); tour.set('modal', true); tour.set('confirmCancel', false); await tour.addSteps(defaultSteps); tour.on('cancel', () => { console.log('cancel'); }); } model() { return { links: [ { href: 'https://github.com/RobbieTheWagner/ember-shepherd', text: 'Docs', type: 'href', }, { href: 'https://github.com/RobbieTheWagner/ember-shepherd', text: 'GitHub', type: 'href', }, { href: 'https://shipshape.io', text: 'Ship Shape', type: 'href', }, ], }; } activate() { if (config.environment !== 'test') { // eslint-disable-next-line ember/no-runloop scheduleOnce('afterRender', this, this._startTour); } } _startTour() { this.tour.start(); } } ================================================ FILE: test-app/app/styles/app.css ================================================ @import url("https://cdn.jsdelivr.net/npm/shepherd.js@14.3.0/dist/css/shepherd.min.css"); @import url("./fonts.css"); @import url("./shepherd-theme.css"); html, body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { height: 100%; margin: 0; } a, button { transition: 0.25s ease-in-out; } .button { cursor: pointer; display: inline-block; text-decoration: none; text-transform: uppercase; transition: 0.25s ease-in-out; } .button:hover { background: #f3f5f5; transform: translateX(10px) translateY(-10px); } .demo-page .panel { background-color: rgb(248 250 252); border-color: #d8d8d8; border-style: solid; border-width: 1px; color: black; font-size: 0.75em; margin-bottom: 1.25rem; padding: 1.25rem; text-align: center; } .demo-page .button.dark { background: white; color: black; } @media (width <= 568px) { .demo-page .button { display: block; margin: 1em auto 0; } } .demo-page .page-title { color: black; font-size: 50pt; .ember-title { font-family: Pacifico; } } @media only screen and (width >= 40.0625em) { .demo-page h1, .demo-page h2, .demo-page h3, .demo-page h4, .demo-page h5, .demo-page h6 { line-height: 1.4; } .demo-page h1 { font-size: 2.75rem; } .demo-page h2 { font-size: 2.3125rem; } .demo-page h3 { font-size: 1.6875rem; } .demo-page h4 { font-size: 1.4375rem; } .demo-page h5 { font-size: 1.125rem; } .demo-page h6 { font-size: 1rem; } } :root { --brand-primary: #ef898b; } .hero { padding: 0 2rem; } ================================================ FILE: test-app/app/styles/fonts.css ================================================ @import url("https://fonts.googleapis.com/css?family=Pacifico"); @font-face { font-family: "GT Pressura"; src: url("/fonts/GTPressura-Bold.woff2") format("woff2"), url("/fonts/GTPressura-Bold.woff") format("woff"); font-weight: bold; font-style: normal; } @font-face { font-family: "Founders Grotesk"; src: url("/fonts/FoundersGrotesk-Regular.woff2") format("woff2"), url("/fonts/FoundersGrotesk-Regular.woff") format("woff"); font-weight: normal; font-style: normal; } ================================================ FILE: test-app/app/styles/shepherd-theme.css ================================================ .shepherd-logo { height: auto; width: 217px; } .shepherd-logo .lines, .shepherd-logo .open-eye, .shepherd-logo .wink { transition: visibility 0s, opacity 0.25s ease-in-out; } .shepherd-logo .open-eye { opacity: 1; visibility: visible; } .shepherd-logo .lines, .shepherd-logo .wink { opacity: 0; visibility: hidden; } .shepherd-logo:hover .lines, .shepherd-logo:hover .wink { opacity: 1; visibility: visible; } .shepherd-logo:hover .open-eye { opacity: 0; visibility: hidden; } .footer-icon path { fill: #16202d; transition: 0.25s ease-in-out; } .footer-icon:hover path { fill: #959fac; } .footer-logo { left: 50%; transform: translateX(-50%) translateY(-50%); } .hero-outer .hero-followup { padding-top: 20px; } pre { border: 1px solid rgb(0 0 0 / 15%); line-height: 1.4em; } .shepherd-button { background: #ffffff; border-top: solid 4px #16202d; border-radius: 0; color: #16202d; display: flex; flex-grow: 1; font-family: "GT Pressura", sans-serif; font-size: 1rem; justify-content: center; margin: 0; padding: 1rem; text-align: center; text-transform: uppercase; } .shepherd-button:hover { background: #16202d; color: #ffffff; } .shepherd-button.shepherd-button-secondary { background: #cad5d5; } .shepherd-button.shepherd-button-secondary:hover { color: #cad5d5; background: #16202d; } .shepherd-cancel-icon { font-family: "GT Pressura", sans-serif; } .shepherd-element { border: solid 4px #16202d; padding: 0; } .shepherd-element, .shepherd-header, .shepherd-footer { border-radius: 0; } .shepherd-element .shepherd-arrow { border-width: 0; height: auto; width: auto; } .shepherd-arrow::before { display: none; } .shepherd-element .shepherd-arrow::after { content: url("/img/arrow.svg"); display: inline-block; } .shepherd-element[data-popper-placement^="top"] .shepherd-arrow, .shepherd-element.shepherd-pinned-top .shepherd-arrow { bottom: -35px; } .shepherd-element[data-popper-placement^="top"] .shepherd-arrow::after, .shepherd-element.shepherd-pinned-top .shepherd-arrow::after { transform: rotate(270deg); } .shepherd-element[data-popper-placement^="bottom"] .shepherd-arrow { top: -35px; } .shepherd-element[data-popper-placement^="bottom"] .shepherd-arrow::after { transform: rotate(90deg); } .shepherd-element[data-popper-placement^="left"] .shepherd-arrow, .shepherd-element.shepherd-pinned-left .shepherd-arrow { right: -35px; } .shepherd-element[data-popper-placement^="left"] .shepherd-arrow::after, .shepherd-element.shepherd-pinned-left .shepherd-arrow::after { transform: rotate(180deg); } .shepherd-element[data-popper-placement^="right"] .shepherd-arrow, .shepherd-element.shepherd-pinned-right .shepherd-arrow { left: -35px; } .shepherd-footer { padding: 0; } .shepherd-footer button:not(:last-of-type) { border-right: solid 4px #16202d; } .shepherd-has-title .shepherd-content .shepherd-cancel-icon { margin-top: -7px; } .shepherd-has-title .shepherd-content .shepherd-header { background: transparent; font-family: "GT Pressura", sans-serif; padding-bottom: 0; padding-left: 2rem; } .shepherd-has-title .shepherd-content .shepherd-header .shepherd-title { font-size: 1.2rem; text-transform: uppercase; } .shepherd-text { font-size: 1.2rem; padding: 2rem; } .shepherd-text a, .shepherd-text a:visited, .shepherd-text a:active { border-bottom: 1px dotted; border-bottom-color: rgb(0 0 0 / 75%); color: rgb(0 0 0 / 75%); text-decoration: none; } .shepherd-text a:hover, .shepherd-text a:visited:hover, .shepherd-text a:active:hover { border-bottom-style: solid; } ================================================ FILE: test-app/app/templates/application.hbs ================================================
{{outlet}}
================================================ FILE: test-app/app/templates/docs/demo.hbs ================================================ {{! template-lint-disable }}

ember Shepherd

Guide your users through a tour of your app.

Installation
Usage
Additional Features
Built-in Buttons
Disable Scroll
{{!-- --}}
================================================ FILE: test-app/app/templates/docs/faq.md ================================================ ## Q/A ### Q: Woah, events? How does that work with buttons? A: Don't worry, it's not too bad! You can just set up an action to start (or cancel, or advance, etc.) the tour like so: ```js // app/routes/application.js import Route from "@ember/routing/route"; import { service } from "@ember/service"; export default Route.extend({ tour: service(), actions: { startTour() { this.tour.start(); }, }, }); ``` ### Q: How do I make a tour span multiple route transitions? A : You can use `beforeShowPromise` to ensure you have fully transitioned to the new route before showing the step by doing something like this: ```js beforeShowPromise() { return new Promise(function(resolve) { router.transitionTo('myurl').finally(() => { Ember.run.scheduleOnce('afterRender', this, function() { resolve(); }); }); }); } ``` ================================================ FILE: test-app/app/templates/docs/index.md ================================================ # ember-shepherd Ship Shape **[ember-shepherd is built and maintained by Ship Shape. Contact us for Ember.js consulting, development, and training for your project](https://shipshape.io/ember-consulting/)**. [![npm version](https://badge.fury.io/js/ember-shepherd.svg)](http://badge.fury.io/js/ember-shepherd) ![Download count all time](https://img.shields.io/npm/dt/ember-shepherd.svg) [![npm](https://img.shields.io/npm/dm/ember-shepherd.svg)]() [![Ember Observer Score](http://emberobserver.com/badges/ember-shepherd.svg)](http://emberobserver.com/addons/ember-shepherd) [![CI](https://github.com/RobbieTheWagner/ember-shepherd/actions/workflows/ci.yml/badge.svg)](https://github.com/RobbieTheWagner/ember-shepherd/actions/workflows/ci.yml) ## Installation ``` ember install ember-shepherd ``` ================================================ FILE: test-app/app/templates/docs/not-found.hbs ================================================

Not found

This page doesn't exist. Head home?

================================================ FILE: test-app/app/templates/docs/usage.md ================================================ ## Usage The styles are no longer automatically added for Shepherd. You will need to add them to your styles manually. How you do this will vary depending on your app, but one possible way is to add this to your app's CSS: ```css @import url("https://cdn.jsdelivr.net/npm/shepherd.js@14.3.0/dist/css/shepherd.min.css"); ``` Most of the usage documentation can be found in the [API Reference for the Tour Service](api/services/tour). ## Step Options See the [Step docs](https://docs.shepherdjs.dev/api/step/interfaces/stepoptions/) for all available Step options. ## Interacting with `ember-shepherd` `ember-shepherd` uses the [`Ember.Evented`](http://emberjs.com/api/classes/Ember.Evented.html) mixin to manage events. The API is demonstrated below. ```js // Start the tour this.tour.start(); //Show a specific step this.tour.show(id); // Stop the tour this.tour.cancel(); // Go to the next step this.tour.next(); // Go to the previous step this.tour.back(); ``` ================================================ FILE: test-app/app/templates/docs.hbs ================================================
{{outlet}}
================================================ FILE: test-app/app/templates/index.hbs ================================================

{{svg-jar "ember" class="docs-h-full docs-w-auto docs-max-w-full docs-fill-current" height="auto" width="125px" }} Shepherd

An Ember addon for the site tour library Shepherd

Read the docs →
{{svg-jar "ember-consulting"}}
================================================ FILE: test-app/config/addon-docs.js ================================================ /* eslint-env node */ 'use strict'; const AddonDocsConfig = require('ember-cli-addon-docs/lib/config'); module.exports = class extends AddonDocsConfig { // See https://ember-learn.github.io/ember-cli-addon-docs/docs/deploying // for details on configuration you can override here. }; ================================================ FILE: test-app/config/deploy.js ================================================ 'use strict'; module.exports = function (deployTarget) { let ENV = { build: {}, // include other plugin configuration that applies to all deploy targets here }; if (deployTarget === 'development') { ENV.build.environment = 'development'; // configure other plugins for development deploy target here } if (deployTarget === 'staging') { ENV.build.environment = 'production'; // configure other plugins for staging deploy target here } if (deployTarget === 'production') { ENV.build.environment = 'production'; // configure other plugins for production deploy target here } // Note: if you need to build some configuration asynchronously, you can return // a promise that resolves with the ENV object instead of returning the // ENV object synchronously. return ENV; }; ================================================ FILE: test-app/config/ember-cli-update.json ================================================ { "schemaVersion": "1.0.0", "packages": [ { "name": "@ember-tooling/classic-build-app-blueprint", "version": "6.10.0", "blueprints": [ { "name": "@ember-tooling/classic-build-app-blueprint", "isBaseBlueprint": true, "options": [ "--no-welcome", "--pnpm", "--ci-provider=github", "--typescript" ] } ] } ] } ================================================ FILE: test-app/config/ember-try.js ================================================ 'use strict'; const getChannelURL = require('ember-source-channel-url'); const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup'); module.exports = async function () { return { usePnpm: true, scenarios: [ { name: 'ember-lts-4.8', npm: { devDependencies: { 'ember-resolver': '^11.0.1', 'ember-source': '~4.8.0', }, }, }, { name: 'ember-lts-4.12', npm: { devDependencies: { 'ember-source': '~4.12.0', }, }, }, { name: 'ember-lts-5.4', npm: { devDependencies: { 'ember-source': '~5.4.0', }, }, }, { name: 'ember-release', npm: { devDependencies: { 'ember-source': await getChannelURL('release'), }, }, }, { name: 'ember-beta', npm: { devDependencies: { 'ember-source': await getChannelURL('beta'), }, }, }, { name: 'ember-canary', npm: { devDependencies: { 'ember-source': await getChannelURL('canary'), }, }, }, embroiderSafe(), embroiderOptimized(), ], }; }; ================================================ FILE: test-app/config/environment.js ================================================ 'use strict'; module.exports = function (environment) { const ENV = { modulePrefix: 'test-app', environment, rootURL: '/', locationType: 'history', EmberENV: { EXTEND_PROTOTYPES: false, FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true }, }, APP: { // Here you can pass flags/options to your application instance // when it is created }, }; if (environment === 'development') { // ENV.APP.LOG_RESOLVER = true; // ENV.APP.LOG_ACTIVE_GENERATION = true; // ENV.APP.LOG_TRANSITIONS = true; // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; // ENV.APP.LOG_VIEW_LOOKUPS = true; } if (environment === 'test') { // Testem prefers this... ENV.locationType = 'none'; // keep test console output quieter ENV.APP.LOG_ACTIVE_GENERATION = false; ENV.APP.LOG_VIEW_LOOKUPS = false; ENV.APP.rootElement = '#ember-testing'; ENV.APP.autoboot = false; } if (environment === 'production') { // Allow ember-cli-addon-docs to update the rootURL in compiled assets ENV.rootURL = 'ADDON_DOCS_ROOT_URL'; } return ENV; }; ================================================ FILE: test-app/config/optional-features.json ================================================ { "application-template-wrapper": false, "default-async-observers": true, "jquery-integration": false, "template-only-glimmer-components": true, "no-implicit-route-model": true } ================================================ FILE: test-app/config/targets.js ================================================ 'use strict'; const browsers = [ 'last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions', ]; module.exports = { browsers, }; ================================================ FILE: test-app/ember-cli-build.js ================================================ 'use strict'; const EmberApp = require('ember-cli/lib/broccoli/ember-app'); // const { Webpack } = require('@embroider/webpack'); module.exports = function (defaults) { let app = new EmberApp(defaults, { autoImport: { watchDependencies: ['ember-shepherd'], }, 'ember-cli-addon-docs': { documentingAddonAt: '../ember-shepherd', }, 'ember-cli-babel': { enableTypeScriptTransform: true }, }); return app.toTree(); // const { maybeEmbroider } = require('@embroider/test-setup'); // return maybeEmbroider(app); // return require('@embroider/compat').compatBuild(app, Webpack, { // staticAddonTrees: true, // staticAddonTestSupportTrees: true, // staticHelpers: true, // staticModifiers: true, // staticComponents: true, // staticEmberSource: true, // packagerOptions: { // webpackConfig: { // // slow, but highest fidelity // devtool: 'source-map', // module: { // rules: [ // { // test: /\.(png|svg|jpg|jpeg|gif)$/i, // type: 'asset/resource', // }, // { // test: /\.(woff|woff2|eot|ttf|otf)$/i, // type: 'asset/resource', // }, // ], // }, // }, // }, // }); }; ================================================ FILE: test-app/eslint.config.mjs ================================================ /** * Debugging: * https://eslint.org/docs/latest/use/configure/debug * ---------------------------------------------------- * * Print a file's calculated configuration * * npx eslint --print-config path/to/file.js * * Inspecting the config * * npx eslint --inspect-config * */ import { fileURLToPath } from 'node:url'; import { dirname } from 'node:path'; import globals from 'globals'; import js from '@eslint/js'; import ts from 'typescript-eslint'; import ember from 'eslint-plugin-ember/recommended'; import eslintConfigPrettier from 'eslint-config-prettier'; import qunit from 'eslint-plugin-qunit'; import n from 'eslint-plugin-n'; import babelParser from '@babel/eslint-parser'; const parserOptions = { esm: { js: { ecmaFeatures: { modules: true }, ecmaVersion: 'latest', requireConfigFile: false, babelOptions: { plugins: [ [ '@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }, ], ], }, }, ts: { projectService: true, tsconfigRootDir: dirname(fileURLToPath(import.meta.url)), }, }, }; export default ts.config( js.configs.recommended, ember.configs.base, ember.configs.gjs, ember.configs.gts, eslintConfigPrettier, /** * Ignores must be in their own object * https://eslint.org/docs/latest/use/configure/ignore */ { ignores: ['dist/', 'node_modules/', 'coverage/', '!**/.*'], }, /** * https://eslint.org/docs/latest/use/configure/configuration-files#configuring-linter-options */ { linterOptions: { reportUnusedDisableDirectives: 'error', }, }, { files: ['**/*.js'], languageOptions: { parser: babelParser, }, }, { files: ['**/*.{js,gjs}'], languageOptions: { parserOptions: parserOptions.esm.js, globals: { ...globals.browser, }, }, }, { files: ['**/*.{ts,gts}'], languageOptions: { parser: ember.parser, parserOptions: parserOptions.esm.ts, }, extends: [...ts.configs.recommendedTypeChecked, ember.configs.gts], }, { ...qunit.configs.recommended, files: ['tests/**/*-test.{js,gjs,ts,gts}'], plugins: { qunit, }, }, /** * CJS node files */ { ...n.configs['flat/recommended-script'], files: [ '**/*.cjs', 'config/**/*.js', 'tests/dummy/config/**/*.js', 'testem.js', 'testem*.js', 'index.js', '.prettierrc.js', '.stylelintrc.js', '.template-lintrc.js', 'ember-cli-build.js', ], plugins: { n, }, languageOptions: { sourceType: 'script', ecmaVersion: 'latest', globals: { ...globals.node, }, }, }, /** * ESM node files */ { ...n.configs['flat/recommended-module'], files: ['**/*.mjs'], plugins: { n, }, languageOptions: { sourceType: 'module', ecmaVersion: 'latest', parserOptions: parserOptions.esm.js, globals: { ...globals.node, }, }, }, ); ================================================ FILE: test-app/package.json ================================================ { "name": "test-app", "version": "0.0.0", "private": true, "description": "Test app for ember-shepherd addon", "repository": "https://github.com/RobbieTheWagner/ember-shepherd", "license": "MIT", "author": "", "directories": { "doc": "doc", "test": "tests" }, "scripts": { "build": "ember build --environment=production", "format": "prettier . --cache --write", "lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\" --prefixColors auto", "lint:css": "stylelint \"**/*.css\"", "lint:css:fix": "concurrently \"pnpm:lint:css -- --fix\"", "lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\" --prefixColors auto && pnpm format", "lint:format": "prettier . --cache --check", "lint:hbs": "ember-template-lint .", "lint:hbs:fix": "ember-template-lint . --fix", "lint:js": "eslint . --cache", "lint:js:fix": "eslint . --fix", "start": "ember serve", "test": "concurrently \"pnpm:lint\" \"pnpm:test:*\" --names \"lint,test:\" --prefixColors auto", "test:ember": "ember test" }, "dependencies": { "ember-shepherd": "workspace:*" }, "devDependencies": { "@babel/core": "^7.29.0", "@babel/eslint-parser": "^7.28.6", "@babel/helper-module-imports": "^7.28.6", "@babel/plugin-proposal-decorators": "^7.29.0", "@ember-data/adapter": "~5.7.0", "@ember-data/graph": "~5.7.0", "@ember-data/json-api": "~5.8.1", "@ember-data/legacy-compat": "~5.7.0", "@ember-data/model": "~5.7.0", "@ember-data/request": "~5.7.0", "@ember-data/request-utils": "~5.8.1", "@ember-data/serializer": "~5.7.0", "@ember-data/store": "~5.7.0", "@ember/optional-features": "^2.3.0", "@ember/test-helpers": "^5.4.1", "@embroider/macros": "^1.19.6", "@embroider/test-setup": "^4.0.0", "@eslint/js": "^9.39.2", "@glimmer/component": "^1.1.2", "@glimmer/tracking": "^1.1.2", "@glint/environment-ember-loose": "^1.5.2", "@glint/environment-ember-template-imports": "^1.5.2", "@glint/template": "^1.7.4", "@tsconfig/ember": "^3.0.12", "@types/qunit": "^2.19.13", "@types/rsvp": "^4.0.9", "@warp-drive/core-types": "~5.7.0", "@warp-drive/ember": "~5.7.0", "broccoli-asset-rev": "^3.0.0", "concurrently": "^9.2.1", "ember-auto-import": "^2.12.0", "ember-cli": "~6.10.0", "ember-cli-addon-docs": "^10.1.0", "ember-cli-addon-docs-yuidoc": "^1.1.0", "ember-cli-app-version": "^7.0.0", "ember-cli-babel": "^8.3.1", "ember-cli-clean-css": "^3.0.0", "ember-cli-dependency-checker": "^3.3.3", "ember-cli-deploy": "^2.0.0", "ember-cli-deploy-build": "^3.0.0", "ember-cli-deploy-git": "^1.3.4", "ember-cli-deploy-git-ci": "^1.0.1", "ember-cli-deprecation-workflow": "^3.4.0", "ember-cli-htmlbars": "^6.3.0", "ember-cli-inject-live-reload": "^2.1.0", "ember-cli-sri": "^2.1.1", "ember-cli-terser": "^4.0.2", "ember-data": "~5.7.0", "ember-inflector": "^6.0.0", "ember-load-initializers": "^3.0.1", "ember-modifier": "^4.2.2", "ember-page-title": "^9.0.3", "ember-qunit": "^9.0.4", "ember-resolver": "^13.1.1", "ember-shepherd": "workspace:*", "ember-shiki": "^0.3.0", "ember-source": "~6.10.1", "ember-source-channel-url": "^3.0.0", "ember-template-imports": "^4.4.0", "ember-template-lint": "^6.1.0", "ember-try": "^3.0.0", "eslint": "^9.39.2", "eslint-config-prettier": "^9.1.2", "eslint-plugin-ember": "^12.7.5", "eslint-plugin-n": "^17.23.2", "eslint-plugin-qunit": "^8.2.5", "globals": "^15.15.0", "liquid-fire": "^0.37.1", "loader.js": "^4.7.0", "prettier": "^3.8.1", "prettier-plugin-ember-template-tag": "^2.1.3", "qunit": "^2.25.0", "qunit-dom": "^3.5.0", "stylelint": "^16.26.1", "stylelint-config-standard": "^40.0.0", "tracked-built-ins": "^4.1.0", "typescript": "^5.9.3", "typescript-eslint": "^8.54.0", "velocity-animate": "^1.5.2", "webpack": "^5.105.0" }, "engines": { "node": ">= 20.19" }, "ember": { "edition": "octane" } } ================================================ FILE: test-app/public/crossdomain.xml ================================================ ================================================ FILE: test-app/public/robots.txt ================================================ # http://www.robotstxt.org User-agent: * Disallow: ================================================ FILE: test-app/testem.js ================================================ 'use strict'; module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, launch_in_ci: ['Chrome'], launch_in_dev: ['Chrome'], browser_start_timeout: 120, browser_args: { Chrome: { ci: [ // --no-sandbox is needed when running Chrome inside a container process.env.CI ? '--no-sandbox' : null, '--headless', '--disable-dev-shm-usage', '--disable-software-rasterizer', '--mute-audio', '--remote-debugging-port=0', '--window-size=1440,900', ].filter(Boolean), }, }, }; ================================================ FILE: test-app/tests/acceptance/ember-shepherd-test.js ================================================ import { module, test } from 'qunit'; import { visit, click, find } from '@ember/test-helpers'; import { setupApplicationTest } from 'ember-qunit'; import { builtInButtons, steps as defaultSteps } from '../data'; const toggleTour = async (tour, modal) => { tour.set('modal', modal); await tour.addSteps(defaultSteps); return await tour.start(); }; module('Acceptance | Tour functionality tests', function (hooks) { let tour; setupApplicationTest(hooks); hooks.beforeEach(function () { tour = this.owner.lookup('service:tour'); tour.set('confirmCancel', false); tour.set('modal', true); }); hooks.afterEach(async function () { return await tour.complete(); }); module('Cancel link', function () { test('Shows cancel link', async function (assert) { await visit('/docs/demo'); await toggleTour(tour, true); const cancelIcon = document.querySelector('.shepherd-cancel-icon'); assert.ok(cancelIcon, 'Cancel icon shown'); }); test('Hides cancel link', async function (assert) { const defaultStepOptions = { cancelIcon: { enabled: false, }, classes: 'shepherd-theme-arrows test-defaults', }; const steps = [ { attachTo: { element: '.first-element', on: 'bottom', }, buttons: [builtInButtons.cancel, builtInButtons.next], cancelIcon: { enabled: false, }, id: 'step-without-cancel-icon', }, ]; await visit('/docs/demo'); tour.set('defaultStepOptions', defaultStepOptions); await tour.addSteps(steps); tour.start(); assert.notOk( document.querySelector('.shepherd-element button.shepherd-cancel-icon'), ); }); test('Cancel link cancels the tour', async function (assert) { await visit('/docs/demo'); await toggleTour(tour, true); assert.dom('.shepherd-enabled').exists(); await click( document.querySelector('.shepherd-content button.shepherd-cancel-icon'), ); assert.dom('.shepherd-enabled').doesNotExist(); }); }); module('Required Elements', function () { test('Does not warn about required elements when none are specified', async function (assert) { await visit('/docs/demo'); await toggleTour(tour, true); assert .dom('.shepherd-element', document.body) .hasAttribute('data-shepherd-step-id', defaultSteps[0].id); }); test('Does not warn about required elements when none are missing', async function (assert) { const requiredElements = [ { selector: 'body', message: 'Body element not found 🤔', title: 'Error', }, ]; tour.set('requiredElements', requiredElements); await visit('/docs/demo'); await toggleTour(tour, true); assert .dom('.shepherd-element', document.body) .hasAttribute('data-shepherd-step-id', defaultSteps[0].id); }); test('Warns about missing required elements when all are not present', async function (assert) { const requiredElements = [ { selector: '👻', message: '👻 element not found', title: 'Missing Required Elements', }, ]; tour.set('requiredElements', requiredElements); await visit('/docs/demo'); await toggleTour(tour, true); assert .dom('.shepherd-element', document.body) .hasAttribute('data-shepherd-step-id', 'error'); }); }); module('Tour options', function () { test('Defaults applied', async function (assert) { const stepsWithoutClasses = [ { attachTo: { element: '.first-element', on: 'bottom', }, buttons: [builtInButtons.cancel, builtInButtons.next], id: 'test-highlight', }, ]; await visit('/docs/demo'); await tour.addSteps(stepsWithoutClasses); tour.start(); assert.ok( document.querySelector('.custom-default-class'), 'defaults class applied', ); }); test('configuration works with attachTo object when element is a simple string', async function (assert) { const steps = [ { attachTo: { element: '.first-element', on: 'bottom', }, buttons: [builtInButtons.cancel, builtInButtons.next], id: 'test-attachTo-string', }, ]; await tour.addSteps(steps); await visit('/docs/demo'); tour.start(); assert.ok(document.querySelector('.shepherd-element'), 'tour is visible'); }); test('configuration works with attachTo object when element is dom element', async function (assert) { await visit('/docs/demo'); const steps = [ { attachTo: { element: find('.first-element'), on: 'bottom', }, buttons: [builtInButtons.cancel, builtInButtons.next], id: 'test-attachTo-dom', }, ]; await tour.addSteps(steps); tour.start(); assert.ok(document.querySelector('.shepherd-element'), 'tour is visible'); }); test('buttons work when type is not specified and passed action is triggered', async function (assert) { let buttonActionCalled = false; const steps = [ { attachTo: { element: '.first-element', on: 'bottom', }, buttons: [ { classes: 'shepherd-button-secondary button-one', text: 'button one', }, { classes: 'shepherd-button-secondary button-two', text: 'button two', action() { buttonActionCalled = true; }, }, { classes: 'shepherd-button-secondary button-three', text: 'button three', }, ], id: 'test-buttons-custom-action', }, ]; await visit('/docs/demo'); await tour.addSteps(steps); await tour.start(); assert.ok( document.querySelector('.button-one'), 'tour button one is visible', ); assert.ok( document.querySelector('.button-two'), 'tour button two is visible', ); assert.ok( document.querySelector('.button-three'), 'tour button three is visible', ); await click(document.querySelector('.button-two')); assert.ok(buttonActionCalled, 'button action triggered'); }); test('scrollTo works with disableScroll on', async function (assert) { // Setup controller tour settings tour.set('disableScroll', true); tour.set('scrollTo', true); // Visit route await visit('/docs/demo'); document.querySelector('#ember-testing-container').scrollTop = 0; assert.strictEqual( document.querySelector('#ember-testing-container').scrollTop, 0, 'Scroll is initially 0', ); await tour.start(); await click(document.querySelector('.shepherd-content .next-button')); await click(document.querySelector('.shepherd-content .next-button')); assert.ok( document.querySelector('#ember-testing-container').scrollTop > 0, 'Scrolled down correctly', ); }); test('scrollTo works with a custom scrollToHandler', async function (assert) { const done = assert.async(); // Override default behavior const steps = [ { attachTo: { element: '.first-element', on: 'bottom', }, buttons: [builtInButtons.cancel, builtInButtons.next], id: 'intro', scrollTo: true, scrollToHandler() { document.querySelector('#ember-testing-container').scrollTop = 120; assert.strictEqual( document.querySelector('#ember-testing-container').scrollTop, 120, 'Scrolled correctly', ); done(); }, }, ]; // Visit route await visit('/docs/demo'); await tour.addSteps(steps); document.querySelector('#ember-testing-container').scrollTop = 0; assert.strictEqual( document.querySelector('#ember-testing-container').scrollTop, 0, 'Scroll is initially 0', ); await tour.start(); await click(document.querySelector('.shepherd-content .next-button')); }); test('scrollTo works without a custom scrollToHandler', async function (assert) { // Setup controller tour settings tour.set('scrollTo', true); // Visit route await visit('/docs/demo'); document.querySelector('#ember-testing-container').scrollTop = 0; assert.strictEqual( document.querySelector('#ember-testing-container').scrollTop, 0, 'Scroll is initially 0', ); await tour.start(); await click(document.querySelector('.shepherd-content .next-button')); assert.ok( document.querySelector('#ember-testing-container').scrollTop > 0, 'Scrolled correctly', ); }); test('Show by id works', async function (assert) { await visit('/docs/demo'); tour.show('usage'); assert.strictEqual( tour.get('tourObject').currentStep.el.querySelector('.shepherd-text') .textContent, 'To use the tour service, simply inject it into your application and use it like this example.', 'Usage step shown', ); }); test('hide method hides the current step', async function (assert) { await visit('/docs/demo'); tour.show('usage'); tour.hide(); assert.false( tour.get('tourObject').currentStep.isOpen(), 'The step is hidden', ); }); }); }); ================================================ FILE: test-app/tests/data.js ================================================ export const builtInButtons = { cancel: { classes: 'cancel-button', secondary: true, text: 'Exit', type: 'cancel', }, next: { classes: 'next-button', text: 'Next', type: 'next', }, back: { classes: 'back-button', text: 'Back', type: 'back', }, }; export const defaultStepOptions = { classes: 'shepherd-theme-arrows custom-default-class', scrollTo: true, cancelIcon: { enabled: true, }, }; export const steps = [ { attachTo: { element: '.first-element', on: 'bottom', }, buttons: [builtInButtons.cancel, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', id: 'intro', title: 'Welcome to Ember Shepherd!', text: `

Ember Shepherd is a JavaScript library for guiding users through your Ember app. It is an Ember addon that wraps Shepherd and extends its functionality. Shepherd uses Popper.js, another open source library, to render dialogs for each tour "step".

Popper makes sure your steps never end up off screen or cropped by an overflow. Try resizing your browser to see what we mean.

`, }, { attachTo: { element: '.install-element .shiki-code-block', on: 'bottom', }, buttons: [builtInButtons.cancel, builtInButtons.back, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', id: 'installation', title: 'Installation', text: 'Installation is simple, if you are using Ember-CLI, just install like any other addon.', }, { attachTo: { element: '.usage-element .shiki-code-block', on: 'bottom', }, buttons: [builtInButtons.cancel, builtInButtons.back, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', id: 'usage', title: 'Usage', text: 'To use the tour service, simply inject it into your application and use it like this example.', }, { attachTo: { element: '.modal-element', on: 'top', }, buttons: [builtInButtons.cancel, builtInButtons.back, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', id: 'modal', text: `

We implemented true modal functionality by disabling clicking of the rest of the page.

If you would like to enable modal, simply do this.tour.set('modal', true).

`, }, { attachTo: { element: '.built-in-buttons-element', on: 'top', }, buttons: [builtInButtons.cancel, builtInButtons.back, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', id: 'buttons', text: `For the common button types ("next", "back", "cancel", etc.), we implemented Ember actions that perform these actions on your tour automatically. To use them, simply include in the buttons array in each step.`, }, { attachTo: { element: '.disable-scroll-element', on: 'top', }, buttons: [builtInButtons.cancel, builtInButtons.back, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', id: 'disableScroll', text: `

When navigating the user through a tour, you may want to disable scrolling, so they cannot mess up your carefully planned out, amazing tour. This is now easily achieved with this.tour.set('disableScroll', true).

Try scrolling right now, then exit the tour and see that you can again!

`, }, { buttons: [builtInButtons.cancel, builtInButtons.back], id: 'noAttachTo', title: 'Centered Modals', classes: 'custom-class-name-1 custom-class-name-2', text: 'If no attachTo is specified, the modal will appear in the center of the screen, as per the Shepherd docs.', }, ]; ================================================ FILE: test-app/tests/helpers/index.js ================================================ import { setupApplicationTest as upstreamSetupApplicationTest, setupRenderingTest as upstreamSetupRenderingTest, setupTest as upstreamSetupTest, } from 'ember-qunit'; // This file exists to provide wrappers around ember-qunit's // test setup functions. This way, you can easily extend the setup that is // needed per test type. function setupApplicationTest(hooks, options) { upstreamSetupApplicationTest(hooks, options); // Additional setup for application tests can be done here. // // For example, if you need an authenticated session for each // application test, you could do: // // hooks.beforeEach(async function () { // await authenticateSession(); // ember-simple-auth // }); // // This is also a good place to call test setup functions coming // from other addons: // // setupIntl(hooks, 'en-us'); // ember-intl // setupMirage(hooks); // ember-cli-mirage } function setupRenderingTest(hooks, options) { upstreamSetupRenderingTest(hooks, options); // Additional setup for rendering tests can be done here. } function setupTest(hooks, options) { upstreamSetupTest(hooks, options); // Additional setup for unit tests can be done here. } export { setupApplicationTest, setupRenderingTest, setupTest }; ================================================ FILE: test-app/tests/helpers/index.ts ================================================ import { setupApplicationTest as upstreamSetupApplicationTest, setupRenderingTest as upstreamSetupRenderingTest, setupTest as upstreamSetupTest, type SetupTestOptions, } from 'ember-qunit'; // This file exists to provide wrappers around ember-qunit's // test setup functions. This way, you can easily extend the setup that is // needed per test type. function setupApplicationTest(hooks: NestedHooks, options?: SetupTestOptions) { upstreamSetupApplicationTest(hooks, options); // Additional setup for application tests can be done here. // // For example, if you need an authenticated session for each // application test, you could do: // // hooks.beforeEach(async function () { // await authenticateSession(); // ember-simple-auth // }); // // This is also a good place to call test setup functions coming // from other addons: // // setupIntl(hooks, 'en-us'); // ember-intl // setupMirage(hooks); // ember-cli-mirage } function setupRenderingTest(hooks: NestedHooks, options?: SetupTestOptions) { upstreamSetupRenderingTest(hooks, options); // Additional setup for rendering tests can be done here. } function setupTest(hooks: NestedHooks, options?: SetupTestOptions) { upstreamSetupTest(hooks, options); // Additional setup for unit tests can be done here. } export { setupApplicationTest, setupRenderingTest, setupTest }; ================================================ FILE: test-app/tests/index.html ================================================ Dummy Tests {{content-for "head"}} {{content-for "test-head"}} {{content-for "head-footer"}} {{content-for "test-head-footer"}} {{content-for "body"}} {{content-for "test-body"}}
{{content-for "body-footer"}} {{content-for "test-body-footer"}} ================================================ FILE: test-app/tests/integration/.gitkeep ================================================ ================================================ FILE: test-app/tests/test-helper.js ================================================ import Application from 'test-app/app'; import config from 'test-app/config/environment'; import * as QUnit from 'qunit'; import { setApplication } from '@ember/test-helpers'; import { setup } from 'qunit-dom'; import { start } from 'ember-qunit'; setApplication(Application.create(config.APP)); setup(QUnit.assert); start(); ================================================ FILE: test-app/tests/test-helper.ts ================================================ import Application from 'test-app/app'; import config from 'test-app/config/environment'; import * as QUnit from 'qunit'; import { setApplication } from '@ember/test-helpers'; import { setup } from 'qunit-dom'; import { loadTests } from 'ember-qunit/test-loader'; import { start, setupEmberOnerrorValidation } from 'ember-qunit'; setApplication(Application.create(config.APP)); setup(QUnit.assert); setupEmberOnerrorValidation(); loadTests(); start(); ================================================ FILE: test-app/tests/unit/.gitkeep ================================================ ================================================ FILE: test-app/tests/unit/services/tour-test.js ================================================ /* eslint-disable ember/no-runloop */ import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; import EmberObject from '@ember/object'; import { run } from '@ember/runloop'; import { builtInButtons } from '../../data'; const steps = [ { id: 'intro', options: { attachTo: { element: '.test-element', on: 'bottom', }, buttons: [builtInButtons.cancel, builtInButtons.next], classes: 'custom-class-name-1 custom-class-name-2', title: 'Welcome to Ember-Shepherd!', text: 'Test text', scrollTo: true, scrollToHandler() { return 'custom scrollToHandler'; }, }, }, ]; module('Unit | Service | tour', function (hooks) { setupTest(hooks); test('it starts the tour when the `start` event is triggered', function (assert) { class mockTourObject extends EmberObject { start() { assert.ok(true, 'The tour was started'); } } const service = this.owner.factoryFor('service:tour').create({ steps, }); service.set('tourObject', mockTourObject.create()); run(function () { service.start(); }); }); test('it allows another object to bind to events', function (assert) { class mockTourObject extends EmberObject { next() {} } const service = this.owner.factoryFor('service:tour').create({ steps, }); service.set('tourObject', mockTourObject.create()); service.on('next', function () { assert.ok(true); }); run(function () { service.next(); }); }); test('it passes through a custom scrollToHandler option', function (assert) { class mockTourObject extends EmberObject { start() { assert.strictEqual( steps[0].options.scrollToHandler(), 'custom scrollToHandler', 'The handler was passed through as an option on the step', ); } } const service = this.owner.factoryFor('service:tour').create({ steps, }); service.set('tourObject', mockTourObject.create()); run(function () { service.start(); }); }); }); ================================================ FILE: test-app/tests/unit/utils/make-button-test.js ================================================ import { makeButton } from 'ember-shepherd/utils/buttons'; import { module, test } from 'qunit'; module('Unit | Utility | make-button', function () { module('Making an `action` handler for Shepherd button types', function () { test('returning an object with an `action` handler if a supported built-in button "type" is specified', async function (assert) { const context = { next() { assert.ok(true, 'Action was called in calling context'); }, }; const buttonOpts = { type: 'next', classes: 'foo', text: 'Suivant!', }; const button = makeButton.call(context, buttonOpts); assert.strictEqual(button.classes, buttonOpts.classes); assert.strictEqual(button.text, buttonOpts.text); button.action(); }); test('Throwing an error if the built-in button "type" specified is not supported', async function (assert) { const badButtonOpts = { type: 'cipher', classes: 'foo', text: 'Encrypt', }; const goodButtonOpts = { type: 'next', classes: 'foo', text: 'Encrypt', }; assert.throws(() => makeButton(badButtonOpts)); assert.strictEqual(makeButton(goodButtonOpts).text, goodButtonOpts.text); assert.strictEqual( makeButton(goodButtonOpts).classes, goodButtonOpts.classes, ); }); }); }); ================================================ FILE: test-app/tsconfig.json ================================================ { "extends": "@tsconfig/ember/tsconfig.json", "glint": { "environment": ["ember-loose", "ember-template-imports"] }, "compilerOptions": { "skipLibCheck": true, "noEmit": true, "noEmitOnError": false, "declaration": false, "declarationMap": false, // The combination of `baseUrl` with `paths` allows Ember's classic package // layout, which is not resolvable with the Node resolution algorithm, to // work with TypeScript. "baseUrl": ".", "paths": { "test-app/tests/*": ["tests/*"], "test-app/*": ["app/*"], "*": ["types/*"] }, "types": ["ember-source/types"] } } ================================================ FILE: test-app/types/global.d.ts ================================================ import '@glint/environment-ember-loose';