@saasquatch/component-boilerplate 1.3.1 → 1.4.0-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.
package/package.json CHANGED
@@ -1,59 +1,59 @@
1
- {
2
- "name": "@saasquatch/component-boilerplate",
3
- "version": "1.3.1",
4
- "private": false,
5
- "description": "Boilerplate for writing web components for the SaaSquatch widget environments",
6
- "source": "src/index.ts",
7
- "main": "dist/index.js",
8
- "exports": "./dist/index.modern.js",
9
- "module": "dist/index.module.js",
10
- "types": "dist/index.d.ts",
11
- "files": [
12
- "dist"
13
- ],
14
- "scripts": {
15
- "build": "microbundle",
16
- "test": "jest --forceExit",
17
- "test-watch": "jest --watch"
18
- },
19
- "author": "SaaSquatch",
20
- "license": "ISC",
21
- "devDependencies": {
22
- "@graphql-tools/mock": "^7.0.0",
23
- "@saasquatch/stencil-hooks": "^2.0.0",
24
- "@saasquatch/universal-hooks-testing-library": "^0.1.0",
25
- "@testing-library/react-hooks": "^5.1.0",
26
- "@types/debounce": "^1.2.0",
27
- "@types/debug": "^4.1.5",
28
- "@types/jest": "^26.0.20",
29
- "axios": "^0.21.1",
30
- "esbuild-jest": "^0.5.0",
31
- "graphql-tools": "^7.0.5",
32
- "jest": "^26.6.3",
33
- "jest-cucumber": "^3.0.1",
34
- "microbundle": "^0.13.0",
35
- "msw": "^0.28.1",
36
- "react": "^17.0.1",
37
- "react-test-renderer": "^17.0.1",
38
- "ts-jest": "^26.5.4",
39
- "ts-node": "^9.1.1",
40
- "typescript": "^4.1.5"
41
- },
42
- "dependencies": {
43
- "@formatjs/intl": "^1.8.2",
44
- "@saasquatch/dom-context-hooks": "^1.0.0",
45
- "@saasquatch/universal-hooks": "^1.0.0",
46
- "@wry/equality": "^0.3.3",
47
- "debounce": "^1.2.0",
48
- "dom-context": "^1.2.0",
49
- "fast-memoize": "^2.5.2",
50
- "graphql": "^15.5.0",
51
- "graphql-combine-query": "^1.2.3",
52
- "graphql-request": "^3.4.0",
53
- "history": "^5.0.0",
54
- "jsonpointer": "^4.1.0",
55
- "jwt-decode": "^3.1.2",
56
- "nanoid": "^3.1.23",
57
- "rxjs": "^6.6.7"
58
- }
59
- }
1
+ {
2
+ "name": "@saasquatch/component-boilerplate",
3
+ "version": "1.4.0-0",
4
+ "private": false,
5
+ "description": "Boilerplate for writing web components for the SaaSquatch widget environments",
6
+ "source": "src/index.ts",
7
+ "main": "dist/index.js",
8
+ "exports": "./dist/index.modern.js",
9
+ "module": "dist/index.module.js",
10
+ "types": "dist/index.d.ts",
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "scripts": {
15
+ "build": "microbundle",
16
+ "test": "jest --forceExit",
17
+ "test-watch": "jest --watch"
18
+ },
19
+ "author": "SaaSquatch",
20
+ "license": "ISC",
21
+ "devDependencies": {
22
+ "@graphql-tools/mock": "^7.0.0",
23
+ "@saasquatch/stencil-hooks": "^2.0.0",
24
+ "@saasquatch/universal-hooks-testing-library": "^0.1.0",
25
+ "@testing-library/react-hooks": "^5.1.0",
26
+ "@types/debounce": "^1.2.0",
27
+ "@types/debug": "^4.1.5",
28
+ "@types/jest": "^26.0.20",
29
+ "axios": "^0.21.1",
30
+ "esbuild-jest": "^0.5.0",
31
+ "graphql-tools": "^7.0.5",
32
+ "jest": "^26.6.3",
33
+ "jest-cucumber": "^3.0.1",
34
+ "microbundle": "^0.13.0",
35
+ "msw": "^0.28.1",
36
+ "react": "^17.0.1",
37
+ "react-test-renderer": "^17.0.1",
38
+ "ts-jest": "^26.5.4",
39
+ "ts-node": "^9.1.1",
40
+ "typescript": "^4.1.5"
41
+ },
42
+ "dependencies": {
43
+ "@formatjs/intl": "^1.8.2",
44
+ "@saasquatch/dom-context-hooks": "^1.0.0",
45
+ "@saasquatch/universal-hooks": "^1.0.0",
46
+ "@wry/equality": "^0.3.3",
47
+ "debounce": "^1.2.0",
48
+ "dom-context": "^1.2.0",
49
+ "fast-memoize": "^2.5.2",
50
+ "graphql": "^15.5.0",
51
+ "graphql-combine-query": "^1.2.3",
52
+ "graphql-request": "^3.4.0",
53
+ "history": "^5.0.0",
54
+ "jsonpointer": "^4.1.0",
55
+ "jwt-decode": "^3.1.2",
56
+ "nanoid": "^3.1.23",
57
+ "rxjs": "^6.6.7"
58
+ }
59
+ }
package/CHANGELOG.md DELETED
@@ -1,122 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [1.3.1] - 2022-02-23
9
-
10
- ### Changed
11
-
12
- - useLocale hook uses locale from SaaSquatch user instead of browser
13
-
14
- ### Added
15
-
16
- - useRefreshDispatcher hook and `sq:refresh` event listener added to give ability to refresh query data without triggering a loading state
17
-
18
- ## [1.3.0] - 2021-12-09
19
-
20
- ### Fixed
21
-
22
- - Rare race condition causing queries to not return their data fixed
23
- - User identity no longer being cleared if identity is not immediately available in context
24
-
25
- ### Added
26
-
27
- - redirectPath is now included with registration, password reset, and verify email requests
28
-
29
- ## [1.2.2] - 2021-08-23
30
-
31
- ### Added
32
-
33
- - Support for theme engine JWTs for determining user identity, enabling support for hybrid themes
34
-
35
- ## [1.2.1] - 2021-08-20
36
-
37
- ### Changed
38
-
39
- - Fixed infinite loop caused by calling useToken while logged out
40
- - Changed environment detection to support `widgetIdent.env = "demo"` in vanilla components
41
-
42
- ## [1.2.0] - 2021-08-04
43
-
44
- ### Added
45
-
46
- - Portal environment now supports storing and retrieving user identity from localStorage
47
- and validating JWT expiry
48
- - New hooks:
49
- - useAuthenticatedWithEmailAndPasswordMutation: Login a user with email and password
50
- - useChangePasswordMutation: Change a user's password
51
- - useManagedIdentityQuery: Query a user's managed identity
52
- - useRegisterWithEmailAndPasswordMutation: Register a user with email and password
53
- - useRequestPasswordResetEmailMutation: Request a password reset for an email address
54
- - useRequestVerificationEmailMutation: Request an email verification for a user
55
- - useResetPasswordMutation: Reset a user's password from an oobCode
56
- - useVerifyEmailMutation: Verify a user's email from an oobCode
57
- - useVerifyPasswordResetCodeMutation: Verify a password reset oobCode
58
-
59
- ### Changed
60
-
61
- ## [1.1.0] - 2021-05-20
62
-
63
- ### Added
64
-
65
- - BatchedGraphQLClient - Updated client to allow queries to be batched if run in the same 200ms interval
66
- - useLocale Added back due to usage in mint-components
67
-
68
- ### Changed
69
-
70
- - useGraphQLClient - Use BatchedGraphQLClient instead of client from graphql-request
71
- - useBaseQuery - Handle component unmounts with a cleanup function
72
- - useForm - No longer automatically queries for the form, getForm function must be called manually from the component using the hook
73
- - useQuery - New "skip" parameter based on https://www.apollographql.com/docs/react/data/queries/#skip. Also added to usePaginatedQuery
74
- - Jest tests rewritten to use BatchedGraphQLClient
75
-
76
- ## [1.0.0] - 2021-04-21
77
-
78
- ### Added
79
-
80
- - Initial release
81
- - exported hooks available:
82
- - identity hooks:
83
- - useUserIdentity
84
- setUserIdentity
85
- useToken
86
- - environment hooks:
87
- - getEnvironmentSDK
88
- useTenantAlias
89
- useProgramId
90
- setProgramId
91
- useAppDomain
92
- isDemo
93
- useEngagementMedium
94
- - graphql hooks:
95
- - useQuery
96
- useMutation
97
- useLazyQuery
98
- - navigation hooks
99
- - navigation
100
- useCurrentPage
101
- - pagination hooks
102
- - usePagination
103
- usePaginatedQuery
104
- - Generic low-level helpers
105
- - useDebounce
106
- useDebouncedCallback
107
- useTick
108
- useHost
109
- setUseHostImplementation
110
- - Common higher-level functionality
111
- - useShareEvent
112
- useForm
113
-
114
- [unreleased]: https://github.com/saasquatch/program-tools/compare/component-boilerplate@1.3.1...HEAD
115
- [1.3.1]: https://github.com/saasquatch/program-tools/releases/tag/%40saasquatch%2Fcomponent-boilerplate%401.3.1
116
- [1.3.0]: https://github.com/saasquatch/program-tools/releases/tag/%40saasquatch%2Fcomponent-boilerplate%401.3.0
117
- [1.2.2]: https://github.com/saasquatch/program-tools/releases/tag/%40saasquatch%2Fcomponent-boilerplate%401.2.2
118
- [1.2.1]: https://github.com/saasquatch/program-tools/releases/tag/%40saasquatch%2Fcomponent-boilerplate%401.2.1
119
- [1.2.0]: https://github.com/saasquatch/program-tools/releases/tag/%40saasquatch%2Fcomponent-boilerplate%401.2.0
120
- [1.1.0]: https://github.com/saasquatch/program-tools/releases/tag/%40saasquatch%2Fcomponent-boilerplate%401.1.0
121
- [1.0.1]: https://github.com/saasquatch/program-tools/releases/tag/%40saasquatch%2Fcomponent-boilerplate%401.0.1
122
- [1.0.0]: https://github.com/saasquatch/program-tools/releases/tag/%40saasquatch%2Fcomponent-boilerplate%401.0.0