@memberjunction/react-runtime 5.40.1 → 5.41.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/.turbo/turbo-build.log +14 -14
- package/CHANGELOG.md +56 -0
- package/dist/324.runtime.umd.js +144 -133
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime.umd.js +4868 -3113
- package/dist/utilities/user-state.d.ts +7 -0
- package/dist/utilities/user-state.d.ts.map +1 -0
- package/dist/utilities/user-state.js +48 -0
- package/dist/utilities/user-state.js.map +1 -0
- package/package.json +6 -6
- package/src/__tests__/user-state.test.ts +155 -0
- package/src/index.ts +9 -0
- package/src/utilities/user-state.ts +129 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
|
|
2
|
-
> @memberjunction/react-runtime@5.
|
|
2
|
+
> @memberjunction/react-runtime@5.41.0 build
|
|
3
3
|
> npm run build:node && npm run build:umd
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @memberjunction/react-runtime@5.
|
|
6
|
+
> @memberjunction/react-runtime@5.41.0 build:node
|
|
7
7
|
> tsc && tsc-alias -f
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @memberjunction/react-runtime@5.
|
|
10
|
+
> @memberjunction/react-runtime@5.41.0 build:umd
|
|
11
11
|
> webpack --config webpack.umd.config.cjs
|
|
12
12
|
|
|
13
13
|
[BABEL] Note: The code generator has deoptimised the styling of /home/runner/work/MJ/MJ/packages/MJCoreEntities/dist/generated/entity_subclasses.js as it exceeds the max of 500KB.
|
|
14
|
-
asset [1m[33mruntime.umd.js[39m[22m [1m[33m7.
|
|
15
|
-
asset [1m[32m324.runtime.umd.js[39m[22m
|
|
14
|
+
asset [1m[33mruntime.umd.js[39m[22m [1m[33m7.83 MiB[39m[22m [1m[33m[compared for emit][39m[22m [1m[33m[big][39m[22m (name: main)
|
|
15
|
+
asset [1m[32m324.runtime.umd.js[39m[22m 208 KiB [1m[33m[compared for emit][39m[22m
|
|
16
16
|
asset [1m[32m490.runtime.umd.js[39m[22m 182 KiB [1m[33m[compared for emit][39m[22m (id hint: vendors)
|
|
17
|
-
orphan modules 7.
|
|
17
|
+
orphan modules 7.83 MiB [1m[33m[orphan][39m[22m 538 modules
|
|
18
18
|
runtime modules 6.94 KiB 10 modules
|
|
19
|
-
cacheable modules 7.
|
|
19
|
+
cacheable modules 7.98 MiB
|
|
20
20
|
modules by path [1m../../../node_modules/[39m[22m 781 KiB
|
|
21
21
|
modules by path [1m../../../node_modules/rxjs/dist/esm5/internal/[39m[22m 30.4 KiB 15 modules
|
|
22
22
|
modules by path [1m../../../node_modules/debug/src/*.js[39m[22m 12.7 KiB 2 modules
|
|
23
23
|
+ 7 modules
|
|
24
|
-
modules by path [1m../../MJCoreEntities/dist/[39m[22m 4.
|
|
25
|
-
[1m../../MJCoreEntities/dist/index.js + 54 modules[39m[22m 4.
|
|
24
|
+
modules by path [1m../../MJCoreEntities/dist/[39m[22m 4.77 MiB
|
|
25
|
+
[1m../../MJCoreEntities/dist/index.js + 54 modules[39m[22m 4.75 MiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
26
26
|
[1m../../MJCoreEntities/dist/engines/UserViewEngine.js[39m[22m 19.6 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
27
|
-
[1m./dist/index.js +
|
|
28
|
-
[1m../../MJCore/dist/index.js + 81 modules[39m[22m 1.
|
|
29
|
-
[1m../../MJGlobal/dist/index.js + 17 modules[39m[22m
|
|
30
|
-
[1m../../GraphQLDataProvider/dist/index.mjs[39m[22m
|
|
31
|
-
webpack 5.105.0 compiled [1m[32msuccessfully[39m[22m in
|
|
27
|
+
[1m./dist/index.js + 28 modules[39m[22m 431 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
28
|
+
[1m../../MJCore/dist/index.js + 81 modules[39m[22m 1.61 MiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
29
|
+
[1m../../MJGlobal/dist/index.js + 17 modules[39m[22m 247 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
30
|
+
[1m../../GraphQLDataProvider/dist/index.mjs[39m[22m 186 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
31
|
+
webpack 5.105.0 compiled [1m[32msuccessfully[39m[22m in 59722 ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
# @memberjunction/react-runtime
|
|
2
2
|
|
|
3
|
+
## 5.41.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 133dfa7: Interactive components: persist `savedUserSettings` per-user, cross-device
|
|
8
|
+
|
|
9
|
+
The existing interactive-component settings contract (`savedUserSettings` in /
|
|
10
|
+
`onSaveUserSettings` out) is now durably persisted **per-user, cross-device** via
|
|
11
|
+
`UserInfoEngine`, automatically scoped per component — with no change to the component
|
|
12
|
+
contract. The Angular host (`MJReactComponent`) seeds `savedUserSettings` from the
|
|
13
|
+
store on load and saves (debounced) on every `onSaveUserSettings` call, under the key
|
|
14
|
+
`InteractiveComponents_UserState_Root/<scope>` where scope defaults to
|
|
15
|
+
`<namespace>/<name>` (override via the new
|
|
16
|
+
`UserStateScope` input). Set the new `PersistUserSettings` input to `false` to opt out
|
|
17
|
+
and own persistence via the `userSettingsChanged` output instead.
|
|
18
|
+
|
|
19
|
+
Saves **merge, never replace**: the host overlays each `onSaveUserSettings` payload
|
|
20
|
+
onto the saved settings, so a component that passes only the changed keys (or spreads
|
|
21
|
+
a stale prop) cannot wipe other preferences. Removing a key requires explicit intent —
|
|
22
|
+
set its value to `null`.
|
|
23
|
+
- `@memberjunction/react-runtime`: new framework-agnostic `user-state` helpers
|
|
24
|
+
(`resolveUserStateScope`, `userStateStorageKey`, `parseStoredUserSettings`,
|
|
25
|
+
`mergeUserSettings`, `applyUserSettingsUpdate`) plus unit tests.
|
|
26
|
+
- `@memberjunction/react-test-harness`: `ComponentExecutionOptions.savedUserSettings`
|
|
27
|
+
seeds the prop and `onSaveUserSettings` now merges into a real in-memory snapshot
|
|
28
|
+
with the same null-removes-key semantics as the production host.
|
|
29
|
+
|
|
30
|
+
Fully additive — existing components that already use the blob gain durable
|
|
31
|
+
persistence for free.
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [8fd6f59]
|
|
34
|
+
- Updated dependencies [2e48d1a]
|
|
35
|
+
- Updated dependencies [34d17e2]
|
|
36
|
+
- Updated dependencies [cd6c5f0]
|
|
37
|
+
- Updated dependencies [8c8b658]
|
|
38
|
+
- Updated dependencies [659ee5b]
|
|
39
|
+
- Updated dependencies [cc604aa]
|
|
40
|
+
- Updated dependencies [15b743b]
|
|
41
|
+
- Updated dependencies [a5f5472]
|
|
42
|
+
- Updated dependencies [ddaa30e]
|
|
43
|
+
- @memberjunction/core@5.41.0
|
|
44
|
+
- @memberjunction/core-entities@5.41.0
|
|
45
|
+
- @memberjunction/graphql-dataprovider@5.41.0
|
|
46
|
+
- @memberjunction/interactive-component-types@5.41.0
|
|
47
|
+
- @memberjunction/global@5.41.0
|
|
48
|
+
|
|
49
|
+
## 5.40.2
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- @memberjunction/graphql-dataprovider@5.40.2
|
|
54
|
+
- @memberjunction/interactive-component-types@5.40.2
|
|
55
|
+
- @memberjunction/core@5.40.2
|
|
56
|
+
- @memberjunction/core-entities@5.40.2
|
|
57
|
+
- @memberjunction/global@5.40.2
|
|
58
|
+
|
|
3
59
|
## 5.40.1
|
|
4
60
|
|
|
5
61
|
### Patch Changes
|