@saasquatch/squatch-js 2.6.0-8 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/.github/workflows/size-limit.yml +14 -14
  2. package/.github/workflows/static.yml +89 -89
  3. package/CHANGELOG.md +388 -326
  4. package/LICENSE +20 -20
  5. package/README.md +259 -208
  6. package/babel.config.js +7 -7
  7. package/cucumber.js +45 -45
  8. package/demo/sandbox.ts +124 -124
  9. package/demo/toolbar.tsx +526 -526
  10. package/dist/api/WidgetApi.d.ts +1 -0
  11. package/dist/async.d.ts +2 -0
  12. package/dist/globals.d.ts +4 -0
  13. package/dist/squatch.esm.js +80 -49
  14. package/dist/squatch.esm.js.map +1 -1
  15. package/dist/squatch.js +80 -49
  16. package/dist/squatch.js.map +1 -1
  17. package/dist/squatch.min.js +1 -1
  18. package/dist/squatch.min.js.br +0 -0
  19. package/dist/squatch.min.js.map +1 -1
  20. package/dist/squatch.modern.js +1 -1
  21. package/dist/squatch.modern.js.map +1 -1
  22. package/dist/stats.html +1 -1
  23. package/dist/utils/decodeJwt.d.ts +1 -0
  24. package/dist/utils/validate.d.ts +0 -2
  25. package/dist/widgets/PopupWidget.d.ts +2 -2
  26. package/dist/widgets/declarative/DeclarativeWidget.d.ts +5 -0
  27. package/jest.config.ts +200 -200
  28. package/package.json +123 -123
  29. package/tsconfig.json +23 -23
  30. package/coverage/clover.xml +0 -865
  31. package/coverage/coverage-final.json +0 -20
  32. package/coverage/lcov-report/DeclarativeWidget.ts.html +0 -790
  33. package/coverage/lcov-report/WidgetApi.ts.html +0 -631
  34. package/coverage/lcov-report/Widgets.ts.html +0 -1105
  35. package/coverage/lcov-report/api/AnalyticsApi.ts.html +0 -304
  36. package/coverage/lcov-report/api/EventsApi.ts.html +0 -352
  37. package/coverage/lcov-report/api/WidgetApi.ts.html +0 -658
  38. package/coverage/lcov-report/api/graphql.ts.html +0 -130
  39. package/coverage/lcov-report/base.css +0 -224
  40. package/coverage/lcov-report/block-navigation.js +0 -87
  41. package/coverage/lcov-report/favicon.png +0 -0
  42. package/coverage/lcov-report/prettify.css +0 -1
  43. package/coverage/lcov-report/prettify.js +0 -2
  44. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  45. package/coverage/lcov-report/sorter.js +0 -196
  46. package/coverage/lcov-report/squatch.ts.html +0 -721
  47. package/coverage/lcov-report/utils/cookieUtils.ts.html +0 -415
  48. package/coverage/lcov-report/utils/decodeUserJwt.ts.html +0 -133
  49. package/coverage/lcov-report/utils/domready.ts.html +0 -160
  50. package/coverage/lcov-report/utils/io.ts.html +0 -400
  51. package/coverage/lcov-report/utils/utmUtils.ts.html +0 -277
  52. package/coverage/lcov-report/utils/validate.ts.html +0 -268
  53. package/coverage/lcov-report/validate.ts.html +0 -268
  54. package/coverage/lcov-report/widgets/EmbedWidget.ts.html +0 -481
  55. package/coverage/lcov-report/widgets/PopupWidget.ts.html +0 -685
  56. package/coverage/lcov-report/widgets/Widget.ts.html +0 -1159
  57. package/coverage/lcov-report/widgets/Widgets.ts.html +0 -1102
  58. package/coverage/lcov-report/widgets/declarative/DeclarativeWidget.ts.html +0 -790
  59. package/coverage/lcov-report/widgets/declarative/DeclarativeWidgets.ts.html +0 -388
  60. package/coverage/lcov.info +0 -1593
  61. package/stats.json +0 -1
@@ -1,15 +1,15 @@
1
- name: "size"
2
- on:
3
- pull_request:
4
- branches:
5
- - master
6
- jobs:
7
- size:
8
- runs-on: ubuntu-latest
9
- env:
10
- CI_JOB_NUMBER: 1
11
- steps:
12
- - uses: actions/checkout@v1
13
- - uses: andresz1/size-limit-action@v1
14
- with:
1
+ name: "size"
2
+ on:
3
+ pull_request:
4
+ branches:
5
+ - master
6
+ jobs:
7
+ size:
8
+ runs-on: ubuntu-latest
9
+ env:
10
+ CI_JOB_NUMBER: 1
11
+ steps:
12
+ - uses: actions/checkout@v1
13
+ - uses: andresz1/size-limit-action@v1
14
+ with:
15
15
  github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,89 +1,89 @@
1
- # Simple workflow for deploying static content to GitHub Pages
2
- name: Deploy static content to Pages
3
-
4
- on:
5
- # Runs on pushes targeting the default branch
6
- push:
7
- branches: ["master"]
8
- pull_request:
9
- branches: ["master"]
10
-
11
- # Allows you to run this workflow manually from the Actions tab
12
- workflow_dispatch:
13
-
14
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15
- permissions:
16
- # Write permissions are needed to push the built site to the gh-pages branch
17
- contents: write
18
- id-token: write
19
- pull-requests: write
20
-
21
- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22
- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
23
- concurrency:
24
- group: "pages"
25
- cancel-in-progress: false
26
-
27
- jobs:
28
- # Single deploy job since we're just deploying
29
- deploy:
30
- runs-on: ubuntu-latest
31
- env:
32
- PR_PATH: pull/${{github.event.number}}
33
-
34
- steps:
35
- - name: Checkout
36
- id: checkout
37
- uses: actions/checkout@v3
38
-
39
- - name: Comment on PR
40
- if: github.ref != 'refs/heads/master'
41
- id: preview-comment
42
- uses: hasura/comment-progress@v2
43
- with:
44
- github-token: ${{ secrets.GITHUB_TOKEN }}
45
- repository: ${{ github.repository }}
46
- number: ${{ github.event.number }}
47
- id: deploy-preview
48
- message: "Starting deployment of docs preview ⏳..."
49
-
50
- - name: Setup NodeJS
51
- id: setup-node
52
- uses: actions/setup-node@v3
53
- with:
54
- node-version-file: package.json
55
- cache: "npm"
56
-
57
- - name: NPM Install
58
- id: npm-ci
59
- run: npm ci
60
-
61
- - name: Build Docs
62
- id: build-docs
63
- run: npm run build:docs
64
-
65
- - name: Deploy Master
66
- if: github.ref == 'refs/heads/master'
67
- uses: peaceiris/actions-gh-pages@v3
68
- with:
69
- github_token: ${{ secrets.GITHUB_TOKEN }}
70
- publish_dir: ./docs
71
-
72
- - name: Deploy Preview
73
- if: github.ref != 'refs/heads/master'
74
- uses: peaceiris/actions-gh-pages@v3
75
- with:
76
- github_token: ${{ secrets.GITHUB_TOKEN }}
77
- publish_dir: ./docs
78
- destination_dir: ${{ env.PR_PATH }}
79
-
80
- - name: Update preview comment
81
- if: github.ref != 'refs/heads/master'
82
- id: update-preview-comment
83
- uses: hasura/comment-progress@v2
84
- with:
85
- github-token: ${{ secrets.GITHUB_TOKEN }}
86
- repository: ${{ github.repository }}
87
- number: ${{ github.event.number }}
88
- id: deploy-preview
89
- message: "A preview of ${{ github.event.after }} is uploaded and can be seen here:\n\n ✨ https://saasquatch.github.io/squatch-js/${{ env.PR_PATH }} ✨"
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name: Deploy static content to Pages
3
+
4
+ on:
5
+ # Runs on pushes targeting the default branch
6
+ push:
7
+ branches: ["master"]
8
+ pull_request:
9
+ branches: ["master"]
10
+
11
+ # Allows you to run this workflow manually from the Actions tab
12
+ workflow_dispatch:
13
+
14
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15
+ permissions:
16
+ # Write permissions are needed to push the built site to the gh-pages branch
17
+ contents: write
18
+ id-token: write
19
+ pull-requests: write
20
+
21
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
23
+ concurrency:
24
+ group: "pages"
25
+ cancel-in-progress: false
26
+
27
+ jobs:
28
+ # Single deploy job since we're just deploying
29
+ deploy:
30
+ runs-on: ubuntu-latest
31
+ env:
32
+ PR_PATH: pull/${{github.event.number}}
33
+
34
+ steps:
35
+ - name: Checkout
36
+ id: checkout
37
+ uses: actions/checkout@v3
38
+
39
+ - name: Comment on PR
40
+ if: github.ref != 'refs/heads/master'
41
+ id: preview-comment
42
+ uses: hasura/comment-progress@v2
43
+ with:
44
+ github-token: ${{ secrets.GITHUB_TOKEN }}
45
+ repository: ${{ github.repository }}
46
+ number: ${{ github.event.number }}
47
+ id: deploy-preview
48
+ message: "Starting deployment of docs preview ⏳..."
49
+
50
+ - name: Setup NodeJS
51
+ id: setup-node
52
+ uses: actions/setup-node@v3
53
+ with:
54
+ node-version-file: package.json
55
+ cache: "npm"
56
+
57
+ - name: NPM Install
58
+ id: npm-ci
59
+ run: npm ci
60
+
61
+ - name: Build Docs
62
+ id: build-docs
63
+ run: npm run build:docs
64
+
65
+ - name: Deploy Master
66
+ if: github.ref == 'refs/heads/master'
67
+ uses: peaceiris/actions-gh-pages@v3
68
+ with:
69
+ github_token: ${{ secrets.GITHUB_TOKEN }}
70
+ publish_dir: ./docs
71
+
72
+ - name: Deploy Preview
73
+ if: github.ref != 'refs/heads/master'
74
+ uses: peaceiris/actions-gh-pages@v3
75
+ with:
76
+ github_token: ${{ secrets.GITHUB_TOKEN }}
77
+ publish_dir: ./docs
78
+ destination_dir: ${{ env.PR_PATH }}
79
+
80
+ - name: Update preview comment
81
+ if: github.ref != 'refs/heads/master'
82
+ id: update-preview-comment
83
+ uses: hasura/comment-progress@v2
84
+ with:
85
+ github-token: ${{ secrets.GITHUB_TOKEN }}
86
+ repository: ${{ github.repository }}
87
+ number: ${{ github.event.number }}
88
+ id: deploy-preview
89
+ message: "A preview of ${{ github.event.after }} is uploaded and can be seen here:\n\n ✨ https://saasquatch.github.io/squatch-js/${{ env.PR_PATH }} ✨"