@memberjunction/react-runtime 6.1.0-edge.7 → 6.1.1

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @memberjunction/react-runtime@6.1.0-edge.7 build /home/runner/work/MJ/MJ/packages/React/runtime
2
+ > @memberjunction/react-runtime@6.1.1 build /home/runner/work/MJ/MJ/packages/React/runtime
3
3
  > npm run build:node && npm run build:umd
4
4
 
5
5
  npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
@@ -7,7 +7,7 @@ npm warn Unknown env config "npm-globalconfig". This will stop working in the ne
7
7
  npm warn Unknown env config "link-workspace-packages". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
8
8
  npm warn Unknown env config "_jsr-registry". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
9
9
 
10
- > @memberjunction/react-runtime@6.1.0-edge.7 build:node
10
+ > @memberjunction/react-runtime@6.1.1 build:node
11
11
  > tsc && tsc-alias -f
12
12
 
13
13
  npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
@@ -15,7 +15,7 @@ npm warn Unknown env config "npm-globalconfig". This will stop working in the ne
15
15
  npm warn Unknown env config "link-workspace-packages". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
16
16
  npm warn Unknown env config "_jsr-registry". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
17
17
 
18
- > @memberjunction/react-runtime@6.1.0-edge.7 build:umd
18
+ > @memberjunction/react-runtime@6.1.1 build:umd
19
19
  > webpack --config webpack.umd.config.cjs
20
20
 
21
21
  Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
@@ -39,4 +39,4 @@ cacheable modules 10.2 MiB
39
39
  ../../MJCore/dist/index.js + 105 modules 2.5 MiB [built] [code generated]
40
40
  ../../MJGlobal/dist/index.js + 25 modules 585 KiB [built] [code generated]
41
41
  ../../GraphQLDataProvider/dist/index.mjs 201 KiB [built] [code generated]
42
- webpack 5.105.0 compiled successfully in 53266 ms
42
+ webpack 5.105.0 compiled successfully in 50441 ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,158 @@
1
1
  # @memberjunction/react-runtime
2
2
 
3
+ ## 6.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f219477]
8
+ - @memberjunction/core@6.1.1
9
+ - @memberjunction/graphql-dataprovider@6.1.1
10
+ - @memberjunction/interactive-component-types@6.1.1
11
+ - @memberjunction/core-entities@6.1.1
12
+ - @memberjunction/global@6.1.1
13
+
14
+ ## 6.1.0
15
+
16
+ ### Minor Changes
17
+
18
+ - 5c6e36c: feat(components): theme-aware registry components — viz ramps, spec-level StyleOverrides, hardcoded-color migration.
19
+
20
+ `ComponentStyles` gains `sequentialScale`/`divergingScale` visualization ramps (backed by new `--mj-viz-seq-*`/`--mj-viz-div-*` theme tokens with dark-mode re-anchors), plus status text/border and overlay color slots bridged from `--mj-status-*`/`--mj-bg-overlay`, and `secondary`/`secondaryHover` bridged from `--mj-brand-secondary(-hover)`. `ComponentSpec` gains an optional `styleOverrides` field (`chartPalette`, `sequentialScale`, `divergingScale`, `fontScale`, with provenance) so user-requested styling is carried as spec data instead of color literals in generated code; the new `ApplyStyleOverrides` utility in `@memberjunction/react-runtime` layers it above theme-resolved styles. `MJReactComponent` applies overrides over both explicit styles and the bridged live theme (memoized so styles identity stays stable), and restyles in place when a spec change touches only `styleOverrides`. The test harness applies overrides to generation-time screenshots. All 10 generic registry components now read `styles.colors.*`/palette slots with their previous literals kept as no-theme fallbacks.
21
+
22
+ ### Patch Changes
23
+
24
+ - 80fcb61: Memory/resource leak fixes surfaced by the Round 13 audit: drain previously-discarded `fetch()` response bodies at six call sites (BlackForestLabs, IntegrationDiscoveryResolver's webhook sender, WebPageContentAction's content-too-large guard, the React runtime's external component registry client, and RuntimeSchemaManager's restart poll) so undici no longer pins keep-alive connections; bound `RemoteBrowserActionResolver`'s process-lifetime screencast/audio-stream idempotency maps with a TTL sweep so a crashed or disconnected session no longer leaks a permanent entry; add missing SQL connection-pool `'error'` listeners (ComponentRegistry's server, DBAutoDoc's three drivers) and close DBAutoDoc's connection pool on its error path so a failed analysis run no longer leaves it open for the rest of the CLI process.
25
+ - Updated dependencies [834f8d7]
26
+ - Updated dependencies [a987913]
27
+ - Updated dependencies [e533ce5]
28
+ - Updated dependencies [b1b24d7]
29
+ - Updated dependencies [2c826f7]
30
+ - Updated dependencies [61b5612]
31
+ - Updated dependencies [ee15cf7]
32
+ - Updated dependencies [b7819d2]
33
+ - Updated dependencies [394d276]
34
+ - Updated dependencies [c42c0e8]
35
+ - Updated dependencies [4586215]
36
+ - Updated dependencies [197fdf8]
37
+ - Updated dependencies [67e4c9e]
38
+ - Updated dependencies [1a2ce13]
39
+ - Updated dependencies [0d3094c]
40
+ - Updated dependencies [255d506]
41
+ - Updated dependencies [0ec1980]
42
+ - Updated dependencies [199eb2b]
43
+ - Updated dependencies [1940a4d]
44
+ - Updated dependencies [07cb22e]
45
+ - Updated dependencies [1d2ffd4]
46
+ - Updated dependencies [711c208]
47
+ - Updated dependencies [e2ad3c0]
48
+ - Updated dependencies [c581b4f]
49
+ - Updated dependencies [d79fe39]
50
+ - Updated dependencies [2412415]
51
+ - Updated dependencies [06ccfb2]
52
+ - Updated dependencies [9699d0e]
53
+ - Updated dependencies [394d276]
54
+ - Updated dependencies [43f9133]
55
+ - Updated dependencies [08829f5]
56
+ - Updated dependencies [815b9bc]
57
+ - Updated dependencies [2cc08e1]
58
+ - Updated dependencies [a5f92d2]
59
+ - Updated dependencies [2d14c62]
60
+ - Updated dependencies [394d276]
61
+ - Updated dependencies [c996a56]
62
+ - Updated dependencies [de6eb14]
63
+ - Updated dependencies [38d4482]
64
+ - Updated dependencies [052b4c7]
65
+ - Updated dependencies [8ec1515]
66
+ - Updated dependencies [9a905e8]
67
+ - Updated dependencies [f5ec13b]
68
+ - Updated dependencies [50987c4]
69
+ - Updated dependencies [c996a56]
70
+ - Updated dependencies [7b4abe7]
71
+ - Updated dependencies [051e0ff]
72
+ - Updated dependencies [95fc3e6]
73
+ - Updated dependencies [8d880cc]
74
+ - Updated dependencies [1fa6f6b]
75
+ - Updated dependencies [cefc302]
76
+ - Updated dependencies [841e6ea]
77
+ - Updated dependencies [394d276]
78
+ - Updated dependencies [00a2483]
79
+ - Updated dependencies [8f199e2]
80
+ - Updated dependencies [6485ef0]
81
+ - Updated dependencies [b954812]
82
+ - Updated dependencies [080f4cd]
83
+ - Updated dependencies [bbb7fcc]
84
+ - Updated dependencies [b8130f3]
85
+ - Updated dependencies [d66a26a]
86
+ - Updated dependencies [c643ba3]
87
+ - Updated dependencies [e9e9873]
88
+ - Updated dependencies [1d88e00]
89
+ - Updated dependencies [647bd71]
90
+ - Updated dependencies [8288711]
91
+ - Updated dependencies [be0bdb2]
92
+ - Updated dependencies [9b9e5a4]
93
+ - Updated dependencies [f544a93]
94
+ - Updated dependencies [48ff99f]
95
+ - Updated dependencies [076fa5d]
96
+ - Updated dependencies [9f73528]
97
+ - Updated dependencies [68b9cf0]
98
+ - Updated dependencies [27e4d09]
99
+ - Updated dependencies [d90a3ea]
100
+ - Updated dependencies [23c2521]
101
+ - Updated dependencies [2741d46]
102
+ - Updated dependencies [048c5ce]
103
+ - Updated dependencies [63bc733]
104
+ - Updated dependencies [92f2ac9]
105
+ - Updated dependencies [8ad04e8]
106
+ - Updated dependencies [7300953]
107
+ - Updated dependencies [7300953]
108
+ - Updated dependencies [98841bb]
109
+ - Updated dependencies [53c341c]
110
+ - Updated dependencies [2e2879e]
111
+ - Updated dependencies [b46330e]
112
+ - Updated dependencies [fccd0b2]
113
+ - Updated dependencies [84f276e]
114
+ - Updated dependencies [6ecfaa0]
115
+ - Updated dependencies [0db4f4f]
116
+ - Updated dependencies [53d256f]
117
+ - Updated dependencies [0677595]
118
+ - Updated dependencies [2be2960]
119
+ - Updated dependencies [cf2484c]
120
+ - Updated dependencies [7f3c60c]
121
+ - Updated dependencies [97aefcc]
122
+ - Updated dependencies [0967ba7]
123
+ - Updated dependencies [f5ec13b]
124
+ - Updated dependencies [de343b5]
125
+ - Updated dependencies [5fc861f]
126
+ - Updated dependencies [1748491]
127
+ - Updated dependencies [4cdfdcf]
128
+ - Updated dependencies [d7feeae]
129
+ - Updated dependencies [7fefca2]
130
+ - Updated dependencies [a1a8989]
131
+ - Updated dependencies [b00a985]
132
+ - Updated dependencies [041865c]
133
+ - Updated dependencies [905820a]
134
+ - Updated dependencies [ca3657d]
135
+ - Updated dependencies [1bd9674]
136
+ - Updated dependencies [394d276]
137
+ - Updated dependencies [394d276]
138
+ - Updated dependencies [394d276]
139
+ - Updated dependencies [394d276]
140
+ - Updated dependencies [394d276]
141
+ - Updated dependencies [5c6e36c]
142
+ - Updated dependencies [d078c54]
143
+ - Updated dependencies [7fcdc2d]
144
+ - Updated dependencies [15319b4]
145
+ - Updated dependencies [d0a2a55]
146
+ - Updated dependencies [4b1257f]
147
+ - Updated dependencies [ca4feb4]
148
+ - Updated dependencies [6cd337d]
149
+ - Updated dependencies [1c0d586]
150
+ - @memberjunction/global@6.1.0
151
+ - @memberjunction/core@6.1.0
152
+ - @memberjunction/core-entities@6.1.0
153
+ - @memberjunction/graphql-dataprovider@6.1.0
154
+ - @memberjunction/interactive-component-types@6.1.0
155
+
3
156
  ## 6.1.0-edge.7
4
157
 
5
158
  ### Patch Changes
@@ -366,7 +366,7 @@ var ye=Object.defineProperty;var l=(d,e)=>ye(d,"name",{value:e,configurable:!0})
366
366
  }
367
367
  }
368
368
  }
369
- `,r={entityDocumentID:e.entityDocumentID};e.maxRecords!==void 0&&(r.maxRecords=e.maxRecords),e.filter!==void 0&&(r.filter=e.filter);const s=await this._dataProvider.ExecuteGQL(t,r);if(!s?.FetchEntityVectors)throw new Error("Invalid response from server");return s.FetchEntityVectors}catch(t){const r=t;return (0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogError */ .ZI8)("GraphQLAIClient.FetchEntityVectors failed",void 0,r),{Success:!1,Results:[],TotalCount:0,ElapsedMs:0,ErrorMessage:r.message||"Unknown error"}}}}const F="6.1.0-edge.7",$="default";class ne{static{l(this,"BrowserStorageProviderBase")}constructor(){this._storage=new Map}get SharesReferences(){return!0}getCategoryMap(e){const t=e||$;let r=this._storage.get(t);return r||(r=new Map,this._storage.set(t,r)),r}async GetItem(e,t){const s=this.getCategoryMap(t||$).get(e);return s===void 0?null:s}async GetItems(e,t){const r=new Map;if(e.length===0)return r;const s=this.getCategoryMap(t||$);for(const n of new Set(e)){const a=s.get(n);r.set(n,a===void 0?null:a)}return r}async SetItem(e,t,r){this.getCategoryMap(r||$).set(e,t)}async Remove(e,t){this.getCategoryMap(t||$).delete(e)}async ClearCategory(e){const t=e||$;this._storage.delete(t)}async GetCategoryKeys(e){const t=this._storage.get(e||$);return t?Array.from(t.keys()):[]}}const Te="MJ_Metadata",Le=0;function Fe(){try{const d=F.split("."),e=parseInt(d[0],10),t=parseInt(d[1],10);if(!Number.isFinite(e)||!Number.isFinite(t))throw new Error(`Could not parse major.minor from version "${F}"`);return e*1e3+t+Le}catch(d){return (0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:d,message:"Failed to derive IDB version from PACKAGE_VERSION; using fallback 99999"}),99999}}l(Fe,"computeIdbVersion");const Ge=Fe(),ae=["mj:default","mj:Metadata","mj:RunViewCache","mj:RunQueryCache","mj:DatasetCache"];class oe extends ne{static{l(this,"BrowserIndexedDBStorageProvider")}constructor(){super(),this._dbReady=!1,this.dbPromise=(0,_tempfix_idb__WEBPACK_IMPORTED_MODULE_10__/* .openDB */ .P2)(Te,Ge,{upgrade:l((e,t,r)=>{try{(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogStatus */ .b09)(`[IDBCache] Upgrading IndexedDB schema v${t} \u2192 v${r} (package ${F}). Dropping all stores; caches will repopulate on first use.`);for(const s of Array.from(e.objectStoreNames))e.deleteObjectStore(s);for(const s of ae)e.objectStoreNames.contains(s)||e.createObjectStore(s)}catch(s){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:s,message:s?.message})}},"upgrade"),blocked:l((e,t)=>{(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogStatus */ .b09)(`[IDBCache] Upgrade from v${e} to v${t} blocked by another tab. Close other tabs to allow the upgrade to proceed.`)},"blocked")}),this.dbPromise.then(e=>{this._dbReady=!0,e.onversionchange=()=>{(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogStatus */ .b09)("[IDBCache] DB schema upgraded in another tab \u2014 closing local connection."),e.close(),this._dbReady=!1}}).catch(e=>{(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:e,message:"IndexedDB initialization failed: "+e?.message})})}get SharesReferences(){return!1}get IsReady(){return this._dbReady}isKnownCategory(e){const t=`mj:${e}`;return ae.includes(t)}getStoreName(e){const t=e||$;return this.isKnownCategory(t)?`mj:${t}`:"mj:default"}getStoreKey(e,t){const r=t||$;return this.isKnownCategory(r)?e:`[${r}]:${e}`}async SetItem(e,t,r){try{const s=await this.dbPromise,n=this.getStoreName(r),a=this.getStoreKey(e,r),i=s.transaction(n,"readwrite");await i.objectStore(n).put(t,a),await i.done}catch(s){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:s,message:s?.message})}}async GetItem(e,t){try{const r=await this.dbPromise,s=this.getStoreName(t),n=this.getStoreKey(e,t),a=await r.transaction(s).objectStore(s).get(n);return a===void 0?null:a}catch(r){return (0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:r,message:r?.message}),null}}async GetItems(e,t){const r=new Map;if(e.length===0)return r;try{const s=await this.dbPromise,n=this.getStoreName(t),a=Array.from(new Set(e)),i=a.map(R=>this.getStoreKey(R,t)),o=s.transaction(n,"readonly"),m=o.objectStore(n),u=i.map(R=>m.get(R)),g=await Promise.all(u);await o.done;for(let R=0;R<a.length;R++){const S=g[R];r.set(a[R],S===void 0?null:S)}return r}catch(s){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:s,message:s?.message});for(const n of new Set(e))r.set(n,null);return r}}async Remove(e,t){try{const r=await this.dbPromise,s=this.getStoreName(t),n=this.getStoreKey(e,t),a=r.transaction(s,"readwrite");await a.objectStore(s).delete(n),await a.done}catch(r){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:r,message:r?.message})}}async ClearCategory(e){try{const t=await this.dbPromise,r=e||$,s=this.getStoreName(e);if(this.isKnownCategory(r)){const n=t.transaction(s,"readwrite");await n.objectStore(s).clear(),await n.done}else{const n=`[${r}]:`,a=t.transaction("mj:default","readwrite"),i=a.objectStore("mj:default"),o=await i.getAllKeys();for(const m of o)typeof m=="string"&&m.startsWith(n)&&await i.delete(m);await a.done}}catch(t){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:t,message:t?.message})}}async GetCategoryKeys(e){try{const t=await this.dbPromise,r=e||$,s=this.getStoreName(e),i=await t.transaction(s,"readonly").objectStore(s).getAllKeys();if(this.isKnownCategory(r))return i.map(m=>String(m));const o=`[${r}]:`;return i.map(m=>String(m)).filter(m=>m.startsWith(o)).map(m=>m.slice(o.length))}catch(t){return (0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:t,message:t?.message}),[]}}}class V extends Error{static{l(this,"SafeGraphQLError")}constructor(e){super(e.message),this.name=e.name,this.response={status:e.status,errors:e.errors},this.request={query:e.query},this.Code=e.code,this.VariableShape=e.variableShape,this.stack=e.stackFrames?`${e.name}: ${e.message}
369
+ `,r={entityDocumentID:e.entityDocumentID};e.maxRecords!==void 0&&(r.maxRecords=e.maxRecords),e.filter!==void 0&&(r.filter=e.filter);const s=await this._dataProvider.ExecuteGQL(t,r);if(!s?.FetchEntityVectors)throw new Error("Invalid response from server");return s.FetchEntityVectors}catch(t){const r=t;return (0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogError */ .ZI8)("GraphQLAIClient.FetchEntityVectors failed",void 0,r),{Success:!1,Results:[],TotalCount:0,ElapsedMs:0,ErrorMessage:r.message||"Unknown error"}}}}const F="6.1.1",$="default";class ne{static{l(this,"BrowserStorageProviderBase")}constructor(){this._storage=new Map}get SharesReferences(){return!0}getCategoryMap(e){const t=e||$;let r=this._storage.get(t);return r||(r=new Map,this._storage.set(t,r)),r}async GetItem(e,t){const s=this.getCategoryMap(t||$).get(e);return s===void 0?null:s}async GetItems(e,t){const r=new Map;if(e.length===0)return r;const s=this.getCategoryMap(t||$);for(const n of new Set(e)){const a=s.get(n);r.set(n,a===void 0?null:a)}return r}async SetItem(e,t,r){this.getCategoryMap(r||$).set(e,t)}async Remove(e,t){this.getCategoryMap(t||$).delete(e)}async ClearCategory(e){const t=e||$;this._storage.delete(t)}async GetCategoryKeys(e){const t=this._storage.get(e||$);return t?Array.from(t.keys()):[]}}const Te="MJ_Metadata",Le=0;function Fe(){try{const d=F.split("."),e=parseInt(d[0],10),t=parseInt(d[1],10);if(!Number.isFinite(e)||!Number.isFinite(t))throw new Error(`Could not parse major.minor from version "${F}"`);return e*1e3+t+Le}catch(d){return (0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:d,message:"Failed to derive IDB version from PACKAGE_VERSION; using fallback 99999"}),99999}}l(Fe,"computeIdbVersion");const Ge=Fe(),ae=["mj:default","mj:Metadata","mj:RunViewCache","mj:RunQueryCache","mj:DatasetCache"];class oe extends ne{static{l(this,"BrowserIndexedDBStorageProvider")}constructor(){super(),this._dbReady=!1,this.dbPromise=(0,_tempfix_idb__WEBPACK_IMPORTED_MODULE_10__/* .openDB */ .P2)(Te,Ge,{upgrade:l((e,t,r)=>{try{(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogStatus */ .b09)(`[IDBCache] Upgrading IndexedDB schema v${t} \u2192 v${r} (package ${F}). Dropping all stores; caches will repopulate on first use.`);for(const s of Array.from(e.objectStoreNames))e.deleteObjectStore(s);for(const s of ae)e.objectStoreNames.contains(s)||e.createObjectStore(s)}catch(s){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:s,message:s?.message})}},"upgrade"),blocked:l((e,t)=>{(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogStatus */ .b09)(`[IDBCache] Upgrade from v${e} to v${t} blocked by another tab. Close other tabs to allow the upgrade to proceed.`)},"blocked")}),this.dbPromise.then(e=>{this._dbReady=!0,e.onversionchange=()=>{(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogStatus */ .b09)("[IDBCache] DB schema upgraded in another tab \u2014 closing local connection."),e.close(),this._dbReady=!1}}).catch(e=>{(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:e,message:"IndexedDB initialization failed: "+e?.message})})}get SharesReferences(){return!1}get IsReady(){return this._dbReady}isKnownCategory(e){const t=`mj:${e}`;return ae.includes(t)}getStoreName(e){const t=e||$;return this.isKnownCategory(t)?`mj:${t}`:"mj:default"}getStoreKey(e,t){const r=t||$;return this.isKnownCategory(r)?e:`[${r}]:${e}`}async SetItem(e,t,r){try{const s=await this.dbPromise,n=this.getStoreName(r),a=this.getStoreKey(e,r),i=s.transaction(n,"readwrite");await i.objectStore(n).put(t,a),await i.done}catch(s){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:s,message:s?.message})}}async GetItem(e,t){try{const r=await this.dbPromise,s=this.getStoreName(t),n=this.getStoreKey(e,t),a=await r.transaction(s).objectStore(s).get(n);return a===void 0?null:a}catch(r){return (0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:r,message:r?.message}),null}}async GetItems(e,t){const r=new Map;if(e.length===0)return r;try{const s=await this.dbPromise,n=this.getStoreName(t),a=Array.from(new Set(e)),i=a.map(R=>this.getStoreKey(R,t)),o=s.transaction(n,"readonly"),m=o.objectStore(n),u=i.map(R=>m.get(R)),g=await Promise.all(u);await o.done;for(let R=0;R<a.length;R++){const S=g[R];r.set(a[R],S===void 0?null:S)}return r}catch(s){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:s,message:s?.message});for(const n of new Set(e))r.set(n,null);return r}}async Remove(e,t){try{const r=await this.dbPromise,s=this.getStoreName(t),n=this.getStoreKey(e,t),a=r.transaction(s,"readwrite");await a.objectStore(s).delete(n),await a.done}catch(r){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:r,message:r?.message})}}async ClearCategory(e){try{const t=await this.dbPromise,r=e||$,s=this.getStoreName(e);if(this.isKnownCategory(r)){const n=t.transaction(s,"readwrite");await n.objectStore(s).clear(),await n.done}else{const n=`[${r}]:`,a=t.transaction("mj:default","readwrite"),i=a.objectStore("mj:default"),o=await i.getAllKeys();for(const m of o)typeof m=="string"&&m.startsWith(n)&&await i.delete(m);await a.done}}catch(t){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:t,message:t?.message})}}async GetCategoryKeys(e){try{const t=await this.dbPromise,r=e||$,s=this.getStoreName(e),i=await t.transaction(s,"readonly").objectStore(s).getAllKeys();if(this.isKnownCategory(r))return i.map(m=>String(m));const o=`[${r}]:`;return i.map(m=>String(m)).filter(m=>m.startsWith(o)).map(m=>m.slice(o.length))}catch(t){return (0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1A)({error:t,message:t?.message}),[]}}}class V extends Error{static{l(this,"SafeGraphQLError")}constructor(e){super(e.message),this.name=e.name,this.response={status:e.status,errors:e.errors},this.request={query:e.query},this.Code=e.code,this.VariableShape=e.variableShape,this.stack=e.stackFrames?`${e.name}: ${e.message}
370
370
  ${e.stackFrames}`:this.stack}}function ie(d){return d instanceof V?d:new V(O(d))}l(ie,"ToSafeGraphQLError");const Ue=3,Qe=25;function k(d,e=0){if(d===null)return"null";if(d===void 0)return"undefined";if(Array.isArray(d))return d.length===0?"array(empty)":`array(${d.length} \xD7 ${_e(k(d[0],e+1))})`;if(typeof d=="object"){if(e>=Ue)return"object(\u2026)";const t=Object.keys(d);if(t.length>Qe)return`object(${t.length} keys)`;const r={};for(const s of t)r[s]=k(d[s],e+1);return r}return typeof d=="string"?d.length===0?"string(empty)":"string":typeof d}l(k,"describeShape");function _e(d){return typeof d=="string"?d:"object"}l(_e,"typeOf");function Ve(d){const e=d.indexOf(`
371
371
  at `);return e===-1?"":d.slice(e+1)}l(Ve,"stripStackHeader");function ke(d,e){const t=d?.[0]?.message;return typeof t=="string"&&t.length>0?t:`GraphQL Error (Code: ${String(e??"unknown")})`}l(ke,"deriveMessage");function Oe(d){if(Array.isArray(d))return d.map(e=>{const t=e??{};return{message:typeof t.message=="string"?t.message:void 0,path:Array.isArray(t.path)?t.path:void 0,extensions:t.extensions&&typeof t.extensions=="object"?t.extensions:void 0}})}l(Oe,"extractErrors");function O(d,e=!1){if(!d||typeof d!="object")return{name:typeof d,message:"Non-object value thrown; contents withheld",variables:"[REDACTED]"};const t=d,r=typeof t.response?.status=="number"?t.response.status:void 0,s=Oe(t.response?.errors),n=s?.[0]?.extensions?.code;return{name:typeof t.name=="string"?t.name:"Error",message:ke(s,r),status:r,errors:s,code:typeof n=="string"?n:void 0,query:typeof t.request?.query=="string"?t.request.query:void 0,stackFrames:typeof t.stack=="string"?Ve(t.stack):void 0,variables:e?t.request?.variables:"[REDACTED]",variableShape:t.request?.variables===void 0?void 0:k(t.request.variables)}}l(O,"SanitizeGraphQLError");const M=new A,qe=(0,graphql_request__WEBPACK_IMPORTED_MODULE_0__/* .gql */ .J1)`subscription RemoteOperationProgress($channelId: ID!) {
372
372
  RemoteOperationProgress(channelId: $channelId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/react-runtime",
3
- "version": "6.1.0-edge.7",
3
+ "version": "6.1.1",
4
4
  "description": "Platform-agnostic React component runtime for MemberJunction. Provides core compilation, registry, and execution capabilities for React components in any JavaScript environment.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -19,11 +19,11 @@
19
19
  },
20
20
  "homepage": "https://github.com/MemberJunction/MJ#readme",
21
21
  "dependencies": {
22
- "@memberjunction/core": "6.1.0-edge.7",
23
- "@memberjunction/global": "6.1.0-edge.7",
24
- "@memberjunction/interactive-component-types": "6.1.0-edge.7",
25
- "@memberjunction/core-entities": "6.1.0-edge.7",
26
- "@memberjunction/graphql-dataprovider": "6.1.0-edge.7",
22
+ "@memberjunction/core": "6.1.1",
23
+ "@memberjunction/global": "6.1.1",
24
+ "@memberjunction/interactive-component-types": "6.1.1",
25
+ "@memberjunction/core-entities": "6.1.1",
26
+ "@memberjunction/graphql-dataprovider": "6.1.1",
27
27
  "@babel/standalone": "^7.29.1",
28
28
  "rxjs": "^7.8.2"
29
29
  },