@memberjunction/react-runtime 5.31.0 → 5.32.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.
@@ -1,13 +1,13 @@
1
1
 
2
- > @memberjunction/react-runtime@5.31.0 build
2
+ > @memberjunction/react-runtime@5.32.0 build
3
3
  > npm run build:node && npm run build:umd
4
4
 
5
5
 
6
- > @memberjunction/react-runtime@5.31.0 build:node
6
+ > @memberjunction/react-runtime@5.32.0 build:node
7
7
  > tsc
8
8
 
9
9
 
10
- > @memberjunction/react-runtime@5.31.0 build:umd
10
+ > @memberjunction/react-runtime@5.32.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.
@@ -28,4 +28,4 @@ cacheable modules 7.2 MiB
28
28
  ../../MJCore/dist/index.js + 75 modules 1.41 MiB [built] [code generated]
29
29
  ../../MJGlobal/dist/index.js + 16 modules 222 KiB [built] [code generated]
30
30
  ../../GraphQLDataProvider/dist/index.mjs 166 KiB [built] [code generated]
31
- webpack 5.105.0 compiled successfully in 70888 ms
31
+ webpack 5.105.0 compiled successfully in 74695 ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @memberjunction/react-runtime
2
2
 
3
+ ## 5.32.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a7e8b3b]
8
+ - Updated dependencies [b9c67ac]
9
+ - @memberjunction/core@5.32.0
10
+ - @memberjunction/graphql-dataprovider@5.32.0
11
+ - @memberjunction/interactive-component-types@5.32.0
12
+ - @memberjunction/core-entities@5.32.0
13
+ - @memberjunction/global@5.32.0
14
+
3
15
  ## 5.31.0
4
16
 
5
17
  ### Patch Changes
@@ -348,7 +348,7 @@ var z=Object.defineProperty;var y=(I,e)=>z(I,"name",{value:e,configurable:!0});c
348
348
  }
349
349
  }
350
350
  }
351
- `,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 */ .ZI)("GraphQLAIClient.FetchEntityVectors failed",void 0,r),{Success:!1,Results:[],TotalCount:0,ElapsedMs:0,ErrorMessage:r.message||"Unknown error"}}}}const L="5.31.0",$="default";class j{static{y(this,"BrowserStorageProviderBase")}constructor(){this._storage=new Map}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 Ie="MJ_Metadata",fe=0;function Re(){try{const I=L.split("."),e=parseInt(I[0],10),t=parseInt(I[1],10);if(!Number.isFinite(e)||!Number.isFinite(t))throw new Error(`Could not parse major.minor from version "${L}"`);return e*1e3+t+fe}catch(I){return (0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1)({error:I,message:"Failed to derive IDB version from PACKAGE_VERSION; using fallback 99999"}),99999}}y(Re,"computeIdbVersion");const Ee=Re(),K=["mj:default","mj:Metadata","mj:RunViewCache","mj:RunQueryCache","mj:DatasetCache"];class J extends j{static{y(this,"BrowserIndexedDBStorageProvider")}constructor(){super(),this._dbReady=!1,this.dbPromise=(0,_tempfix_idb__WEBPACK_IMPORTED_MODULE_10__/* .openDB */ .P2)(Ie,Ee,{upgrade:y((e,t,r)=>{try{(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogStatus */ .b0)(`[IDBCache] Upgrading IndexedDB schema v${t} \u2192 v${r} (package ${L}). Dropping all stores; caches will repopulate on first use.`);for(const s of Array.from(e.objectStoreNames))e.deleteObjectStore(s);for(const s of K)e.objectStoreNames.contains(s)||e.createObjectStore(s)}catch(s){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1)({error:s,message:s?.message})}},"upgrade"),blocked:y((e,t)=>{(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogStatus */ .b0)(`[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 */ .b0)("[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 */ .Q1)({error:e,message:"IndexedDB initialization failed: "+e?.message})})}get IsReady(){return this._dbReady}isKnownCategory(e){const t=`mj:${e}`;return K.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 */ .Q1)({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 */ .Q1)({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"),l=o.objectStore(n),d=i.map(R=>l.get(R)),f=await Promise.all(d);await o.done;for(let R=0;R<a.length;R++){const p=f[R];r.set(a[R],p===void 0?null:p)}return r}catch(s){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1)({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 */ .Q1)({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 l of o)typeof l=="string"&&l.startsWith(n)&&await i.delete(l);await a.done}}catch(t){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1)({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(l=>String(l));const o=`[${r}]:`;return i.map(l=>String(l)).filter(l=>l.startsWith(o)).map(l=>l.slice(o.length))}catch(t){return (0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1)({error:t,message:t?.message}),[]}}}class De extends _memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .ProviderConfigDataBase */ .dZ{static{y(this,"GraphQLProviderConfigData")}get Token(){return this.Data.Token}set Token(e){this.Data.Token=e}get MJAPIKey(){return this.Data.MJAPIKey}set MJAPIKey(e){this.Data.MJAPIKey=e}get UserAPIKey(){return this.Data.UserAPIKey}set UserAPIKey(e){this.Data.UserAPIKey=e}get URL(){return this.Data.URL}get WSURL(){return this.Data.WSURL}get RefreshTokenFunction(){return this.Data.RefreshFunction}get OnAuthenticationError(){return this.Data.OnAuthenticationError}set OnAuthenticationError(e){this.Data.OnAuthenticationError=e}constructor(e,t,r,s,n,a,i,o,l,d){super({Token:e,URL:t,WSURL:r,MJAPIKey:o,UserAPIKey:l,RefreshTokenFunction:s,OnAuthenticationError:d},n,a,i)}}class S extends _memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .ProviderBase */ .Dn{static{y(this,"GraphQLDataProvider")}constructor(){super(),this._refreshPromise=null,this._dynamicHeaders=new Map,this._innerCurrentUserQueryString=`CurrentUser {
351
+ `,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 */ .ZI)("GraphQLAIClient.FetchEntityVectors failed",void 0,r),{Success:!1,Results:[],TotalCount:0,ElapsedMs:0,ErrorMessage:r.message||"Unknown error"}}}}const L="5.32.0",$="default";class j{static{y(this,"BrowserStorageProviderBase")}constructor(){this._storage=new Map}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 Ie="MJ_Metadata",fe=0;function Re(){try{const I=L.split("."),e=parseInt(I[0],10),t=parseInt(I[1],10);if(!Number.isFinite(e)||!Number.isFinite(t))throw new Error(`Could not parse major.minor from version "${L}"`);return e*1e3+t+fe}catch(I){return (0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1)({error:I,message:"Failed to derive IDB version from PACKAGE_VERSION; using fallback 99999"}),99999}}y(Re,"computeIdbVersion");const Ee=Re(),K=["mj:default","mj:Metadata","mj:RunViewCache","mj:RunQueryCache","mj:DatasetCache"];class J extends j{static{y(this,"BrowserIndexedDBStorageProvider")}constructor(){super(),this._dbReady=!1,this.dbPromise=(0,_tempfix_idb__WEBPACK_IMPORTED_MODULE_10__/* .openDB */ .P2)(Ie,Ee,{upgrade:y((e,t,r)=>{try{(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogStatus */ .b0)(`[IDBCache] Upgrading IndexedDB schema v${t} \u2192 v${r} (package ${L}). Dropping all stores; caches will repopulate on first use.`);for(const s of Array.from(e.objectStoreNames))e.deleteObjectStore(s);for(const s of K)e.objectStoreNames.contains(s)||e.createObjectStore(s)}catch(s){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1)({error:s,message:s?.message})}},"upgrade"),blocked:y((e,t)=>{(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogStatus */ .b0)(`[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 */ .b0)("[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 */ .Q1)({error:e,message:"IndexedDB initialization failed: "+e?.message})})}get IsReady(){return this._dbReady}isKnownCategory(e){const t=`mj:${e}`;return K.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 */ .Q1)({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 */ .Q1)({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"),l=o.objectStore(n),d=i.map(R=>l.get(R)),f=await Promise.all(d);await o.done;for(let R=0;R<a.length;R++){const p=f[R];r.set(a[R],p===void 0?null:p)}return r}catch(s){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1)({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 */ .Q1)({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 l of o)typeof l=="string"&&l.startsWith(n)&&await i.delete(l);await a.done}}catch(t){(0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1)({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(l=>String(l));const o=`[${r}]:`;return i.map(l=>String(l)).filter(l=>l.startsWith(o)).map(l=>l.slice(o.length))}catch(t){return (0,_memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .LogErrorEx */ .Q1)({error:t,message:t?.message}),[]}}}class De extends _memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .ProviderConfigDataBase */ .dZ{static{y(this,"GraphQLProviderConfigData")}get Token(){return this.Data.Token}set Token(e){this.Data.Token=e}get MJAPIKey(){return this.Data.MJAPIKey}set MJAPIKey(e){this.Data.MJAPIKey=e}get UserAPIKey(){return this.Data.UserAPIKey}set UserAPIKey(e){this.Data.UserAPIKey=e}get URL(){return this.Data.URL}get WSURL(){return this.Data.WSURL}get RefreshTokenFunction(){return this.Data.RefreshFunction}get OnAuthenticationError(){return this.Data.OnAuthenticationError}set OnAuthenticationError(e){this.Data.OnAuthenticationError=e}constructor(e,t,r,s,n,a,i,o,l,d){super({Token:e,URL:t,WSURL:r,MJAPIKey:o,UserAPIKey:l,RefreshTokenFunction:s,OnAuthenticationError:d},n,a,i)}}class S extends _memberjunction_core__WEBPACK_IMPORTED_MODULE_1__/* .ProviderBase */ .Dn{static{y(this,"GraphQLDataProvider")}constructor(){super(),this._refreshPromise=null,this._dynamicHeaders=new Map,this._innerCurrentUserQueryString=`CurrentUser {
352
352
  ${this.userInfoString()}
353
353
  MJUserRoles_UserIDArray {
354
354
  ${this.userRoleInfoString()}
@@ -23874,7 +23874,7 @@ var EntityFieldInfo = /*#__PURE__*/function (_BaseInfo7) {
23874
23874
  }, {
23875
23875
  key: "NeedsClearCompanion",
23876
23876
  get: function get() {
23877
- return this.AllowsNull && this.HasDefaultValue;
23877
+ return this.AllowsNull;
23878
23878
  }
23879
23879
  /**
23880
23880
  * Returns true if the field is a "special" field (see list below) and is handled inside the DB layer and should be ignored in validation by the BaseEntity architecture
@@ -56405,7 +56405,7 @@ function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, F
56405
56405
  * zod schema definition for the entity MJ: Component Dependencies
56406
56406
  */var MJComponentDependencySchema=z.object({ID:z.string().describe("\n * * Field Name: ID\n * * Display Name: ID\n * * SQL Data Type: uniqueidentifier\n * * Default Value: newsequentialid()\n * * Description: Primary key for component dependency"),ComponentID:z.string().describe("\n * * Field Name: ComponentID\n * * Display Name: Component ID\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)\n * * Description: Foreign key to parent Component that has the dependency"),DependencyComponentID:z.string().describe("\n * * Field Name: DependencyComponentID\n * * Display Name: Dependency Component ID\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)\n * * Description: Foreign key to the Component that is depended upon"),__mj_CreatedAt:z.date().describe("\n * * Field Name: __mj_CreatedAt\n * * Display Name: Created At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),__mj_UpdatedAt:z.date().describe("\n * * Field Name: __mj_UpdatedAt\n * * Display Name: Updated At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),Component:z.string().describe("\n * * Field Name: Component\n * * Display Name: Component\n * * SQL Data Type: nvarchar(500)"),DependencyComponent:z.string().describe("\n * * Field Name: DependencyComponent\n * * Display Name: Dependency Component\n * * SQL Data Type: nvarchar(500)")});/**
56407
56407
  * zod schema definition for the entity MJ: Component Libraries
56408
- */var MJComponentLibrarySchema=z.object({ID:z.string().describe("\n * * Field Name: ID\n * * Display Name: ID\n * * SQL Data Type: uniqueidentifier\n * * Default Value: newsequentialid()\n * * Description: Primary key for the component library"),Name:z.string().describe("\n * * Field Name: Name\n * * Display Name: Name\n * * SQL Data Type: nvarchar(500)\n * * Description: NPM-style package name (e.g., recharts, lodash, @memberjunction/lib-name)"),DisplayName:z.string().nullable().describe("\n * * Field Name: DisplayName\n * * Display Name: Display Name\n * * SQL Data Type: nvarchar(500)\n * * Description: User-friendly display name for the library"),Version:z.string().nullable().describe("\n * * Field Name: Version\n * * Display Name: Version\n * * SQL Data Type: nvarchar(100)\n * * Description: Library version number"),GlobalVariable:z.string().nullable().describe("\n * * Field Name: GlobalVariable\n * * Display Name: Global Variable\n * * SQL Data Type: nvarchar(255)\n * * Description: Global variable name when loaded (e.g., _ for lodash, React for react)"),Category:z.union([z.literal('Charting'),z.literal('Core'),z.literal('Other'),z.literal('Runtime'),z.literal('UI'),z.literal('Utility')]).nullable().describe("\n * * Field Name: Category\n * * Display Name: Category\n * * SQL Data Type: nvarchar(100)\n * * Value List Type: List\n * * Possible Values \n * * Charting\n * * Core\n * * Other\n * * Runtime\n * * UI\n * * Utility\n * * Description: Library category: Core, Runtime, UI, Charting, Utility, or Other"),CDNUrl:z.string().nullable().describe("\n * * Field Name: CDNUrl\n * * Display Name: CDN Url\n * * SQL Data Type: nvarchar(1000)\n * * Description: CDN URL for loading the library JavaScript"),CDNCssUrl:z.string().nullable().describe("\n * * Field Name: CDNCssUrl\n * * Display Name: CDN Css Url\n * * SQL Data Type: nvarchar(1000)\n * * Description: Optional CDN URL for loading library CSS"),Description:z.string().nullable().describe("\n * * Field Name: Description\n * * Display Name: Description\n * * SQL Data Type: nvarchar(MAX)\n * * Description: Description of the library and its capabilities"),__mj_CreatedAt:z.date().describe("\n * * Field Name: __mj_CreatedAt\n * * Display Name: Created At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),__mj_UpdatedAt:z.date().describe("\n * * Field Name: __mj_UpdatedAt\n * * Display Name: Updated At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),Status:z.union([z.literal('Active'),z.literal('Deprecated'),z.literal('Disabled')]).describe("\n * * Field Name: Status\n * * Display Name: Status\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Active\n * * Value List Type: List\n * * Possible Values \n * * Active\n * * Deprecated\n * * Disabled\n * * Description: Status of the component library. Active: fully supported; Deprecated: works but shows console warning; Disabled: throws error if used"),LintRules:z.string().nullable().describe("\n * * Field Name: LintRules\n * * Display Name: Lint Rules\n * * SQL Data Type: nvarchar(MAX)\n * * Description: JSON configuration for library-specific lint rules that are applied during component validation. This field contains structured rules that define how components using this library should be validated, including DOM element requirements, initialization patterns, lifecycle methods, and common error patterns. Example structure: {\"initialization\": {\"constructorName\": \"Chart\", \"elementType\": \"canvas\"}, \"lifecycle\": {\"requiredMethods\": [\"render\"], \"cleanupMethods\": [\"destroy\"]}}. The linter dynamically applies these rules based on the libraries referenced in a component spec, enabling extensible validation without hardcoding library-specific logic."),Dependencies:z.string().nullable().describe("\n * * Field Name: Dependencies\n * * Display Name: Dependencies\n * * SQL Data Type: nvarchar(MAX)\n * * Description: JSON object defining dependencies for this component library. Format: { \"libraryName\": \"versionSpec\", ... }. Version specifications follow NPM-style syntax (e.g., \"~1.0.0\", \"^1.2.3\", \"2.3.4\"). Dependencies are loaded before this library to ensure proper execution context."),UsageType:z.union([z.literal('Both'),z.literal('Dependency'),z.literal('Direct')]).describe("\n * * Field Name: UsageType\n * * Display Name: Usage Type\n * * SQL Data Type: nvarchar(50)\n * * Default Value: Both\n * * Value List Type: List\n * * Possible Values \n * * Both\n * * Dependency\n * * Direct\n * * Description: Controls how the library can be used: Direct (by components), Dependency (only as dependency), or Both")});/**
56408
+ */var MJComponentLibrarySchema=z.object({ID:z.string().describe("\n * * Field Name: ID\n * * Display Name: ID\n * * SQL Data Type: uniqueidentifier\n * * Default Value: newsequentialid()\n * * Description: Primary key for the component library"),Name:z.string().describe("\n * * Field Name: Name\n * * Display Name: Name\n * * SQL Data Type: nvarchar(500)\n * * Description: NPM-style package name (e.g., recharts, lodash, @memberjunction/lib-name)"),DisplayName:z.string().nullable().describe("\n * * Field Name: DisplayName\n * * Display Name: Display Name\n * * SQL Data Type: nvarchar(500)\n * * Description: User-friendly display name for the library"),Version:z.string().nullable().describe("\n * * Field Name: Version\n * * Display Name: Version\n * * SQL Data Type: nvarchar(100)\n * * Description: Library version number"),GlobalVariable:z.string().nullable().describe("\n * * Field Name: GlobalVariable\n * * Display Name: Global Variable\n * * SQL Data Type: nvarchar(255)\n * * Description: Global variable name when loaded (e.g., _ for lodash, React for react)"),Category:z.union([z.literal('Charting'),z.literal('Core'),z.literal('Other'),z.literal('Runtime'),z.literal('UI'),z.literal('Utility')]).nullable().describe("\n * * Field Name: Category\n * * Display Name: Category\n * * SQL Data Type: nvarchar(100)\n * * Value List Type: List\n * * Possible Values \n * * Charting\n * * Core\n * * Other\n * * Runtime\n * * UI\n * * Utility\n * * Description: Library category: Core, Runtime, UI, Charting, Utility, or Other"),CDNUrl:z.string().nullable().describe("\n * * Field Name: CDNUrl\n * * Display Name: CDN URL\n * * SQL Data Type: nvarchar(1000)\n * * Description: CDN URL for loading the library JavaScript"),CDNCssUrl:z.string().nullable().describe("\n * * Field Name: CDNCssUrl\n * * Display Name: CDN CSS URL\n * * SQL Data Type: nvarchar(1000)\n * * Description: Optional CDN URL for loading library CSS"),Description:z.string().nullable().describe("\n * * Field Name: Description\n * * Display Name: Description\n * * SQL Data Type: nvarchar(MAX)\n * * Description: Description of the library and its capabilities"),__mj_CreatedAt:z.date().describe("\n * * Field Name: __mj_CreatedAt\n * * Display Name: Created At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),__mj_UpdatedAt:z.date().describe("\n * * Field Name: __mj_UpdatedAt\n * * Display Name: Updated At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),Status:z.union([z.literal('Active'),z.literal('Deprecated'),z.literal('Disabled')]).describe("\n * * Field Name: Status\n * * Display Name: Status\n * * SQL Data Type: nvarchar(20)\n * * Default Value: Active\n * * Value List Type: List\n * * Possible Values \n * * Active\n * * Deprecated\n * * Disabled\n * * Description: Status of the component library. Active: fully supported; Deprecated: works but shows console warning; Disabled: throws error if used"),LintRules:z.string().nullable().describe("\n * * Field Name: LintRules\n * * Display Name: Lint Rules\n * * SQL Data Type: nvarchar(MAX)\n * * Description: JSON configuration for library-specific lint rules that are applied during component validation. This field contains structured rules that define how components using this library should be validated, including DOM element requirements, initialization patterns, lifecycle methods, and common error patterns. Example structure: {\"initialization\": {\"constructorName\": \"Chart\", \"elementType\": \"canvas\"}, \"lifecycle\": {\"requiredMethods\": [\"render\"], \"cleanupMethods\": [\"destroy\"]}}. The linter dynamically applies these rules based on the libraries referenced in a component spec, enabling extensible validation without hardcoding library-specific logic."),Dependencies:z.string().nullable().describe("\n * * Field Name: Dependencies\n * * Display Name: Dependencies\n * * SQL Data Type: nvarchar(MAX)\n * * Description: JSON object defining dependencies for this component library. Format: { \"libraryName\": \"versionSpec\", ... }. Version specifications follow NPM-style syntax (e.g., \"~1.0.0\", \"^1.2.3\", \"2.3.4\"). Dependencies are loaded before this library to ensure proper execution context."),UsageType:z.union([z.literal('Both'),z.literal('Dependency'),z.literal('Direct')]).describe("\n * * Field Name: UsageType\n * * Display Name: Usage Type\n * * SQL Data Type: nvarchar(50)\n * * Default Value: Both\n * * Value List Type: List\n * * Possible Values \n * * Both\n * * Dependency\n * * Direct\n * * Description: Controls how the library can be used: Direct (by components), Dependency (only as dependency), or Both"),UsageInstructions:z.string().nullable().describe("\n * * Field Name: UsageInstructions\n * * Display Name: Usage Instructions\n * * SQL Data Type: nvarchar(MAX)\n * * Description: Markdown-formatted usage instructions for AI code generators and agents. Injected into prompts when a component references this library. Covers container requirements, initialization patterns, required config options, and common pitfalls. Distinct from Description which is a high-level summary of what the library does.")});/**
56409
56409
  * zod schema definition for the entity MJ: Component Library Links
56410
56410
  */var MJComponentLibraryLinkSchema=z.object({ID:z.string().describe("\n * * Field Name: ID\n * * Display Name: ID\n * * SQL Data Type: uniqueidentifier\n * * Default Value: newsequentialid()\n * * Description: Primary key for component-library relationship"),ComponentID:z.string().describe("\n * * Field Name: ComponentID\n * * Display Name: Component ID\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: Components (vwComponents.ID)\n * * Description: Foreign key to Component that depends on the library"),LibraryID:z.string().describe("\n * * Field Name: LibraryID\n * * Display Name: Library ID\n * * SQL Data Type: uniqueidentifier\n * * Related Entity/Foreign Key: MJ: Component Libraries (vwComponentLibraries.ID)\n * * Description: Foreign key to ComponentLibrary that the component depends on"),MinVersion:z.string().nullable().describe("\n * * Field Name: MinVersion\n * * Display Name: Min Version\n * * SQL Data Type: nvarchar(100)\n * * Description: Minimum version requirement using semantic versioning (e.g., ^1.0.0, ~2.5.0)"),__mj_CreatedAt:z.date().describe("\n * * Field Name: __mj_CreatedAt\n * * Display Name: Created At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),__mj_UpdatedAt:z.date().describe("\n * * Field Name: __mj_UpdatedAt\n * * Display Name: Updated At\n * * SQL Data Type: datetimeoffset\n * * Default Value: getutcdate()"),Component:z.string().describe("\n * * Field Name: Component\n * * Display Name: Component\n * * SQL Data Type: nvarchar(500)"),Library:z.string().describe("\n * * Field Name: Library\n * * Display Name: Library\n * * SQL Data Type: nvarchar(500)")});/**
56411
56411
  * zod schema definition for the entity MJ: Component Registries
@@ -68476,12 +68476,12 @@ _context63.p=1;_context63.n=2;return provider.BeginTransaction();case 2:_context
68476
68476
  * * Description: Library category: Core, Runtime, UI, Charting, Utility, or Other
68477
68477
  */},{key:"Category",get:function get(){return this.Get('Category');},set:function set(value){this.Set('Category',value);}/**
68478
68478
  * * Field Name: CDNUrl
68479
- * * Display Name: CDN Url
68479
+ * * Display Name: CDN URL
68480
68480
  * * SQL Data Type: nvarchar(1000)
68481
68481
  * * Description: CDN URL for loading the library JavaScript
68482
68482
  */},{key:"CDNUrl",get:function get(){return this.Get('CDNUrl');},set:function set(value){this.Set('CDNUrl',value);}/**
68483
68483
  * * Field Name: CDNCssUrl
68484
- * * Display Name: CDN Css Url
68484
+ * * Display Name: CDN CSS URL
68485
68485
  * * SQL Data Type: nvarchar(1000)
68486
68486
  * * Description: Optional CDN URL for loading library CSS
68487
68487
  */},{key:"CDNCssUrl",get:function get(){return this.Get('CDNCssUrl');},set:function set(value){this.Set('CDNCssUrl',value);}/**
@@ -68531,7 +68531,12 @@ _context63.p=1;_context63.n=2;return provider.BeginTransaction();case 2:_context
68531
68531
  * * Dependency
68532
68532
  * * Direct
68533
68533
  * * Description: Controls how the library can be used: Direct (by components), Dependency (only as dependency), or Both
68534
- */},{key:"UsageType",get:function get(){return this.Get('UsageType');},set:function set(value){this.Set('UsageType',value);}}]);}(dist/* BaseEntity */.HC);MJComponentLibraryEntity=__decorate([(0,MJGlobal_dist/* RegisterClass */.Y5)(dist/* BaseEntity */.HC,'MJ: Component Libraries')],MJComponentLibraryEntity);/**
68534
+ */},{key:"UsageType",get:function get(){return this.Get('UsageType');},set:function set(value){this.Set('UsageType',value);}/**
68535
+ * * Field Name: UsageInstructions
68536
+ * * Display Name: Usage Instructions
68537
+ * * SQL Data Type: nvarchar(MAX)
68538
+ * * Description: Markdown-formatted usage instructions for AI code generators and agents. Injected into prompts when a component references this library. Covers container requirements, initialization patterns, required config options, and common pitfalls. Distinct from Description which is a high-level summary of what the library does.
68539
+ */},{key:"UsageInstructions",get:function get(){return this.Get('UsageInstructions');},set:function set(value){this.Set('UsageInstructions',value);}}]);}(dist/* BaseEntity */.HC);MJComponentLibraryEntity=__decorate([(0,MJGlobal_dist/* RegisterClass */.Y5)(dist/* BaseEntity */.HC,'MJ: Component Libraries')],MJComponentLibraryEntity);/**
68535
68540
  * MJ: Component Library Links - strongly typed entity sub-class
68536
68541
  * * Schema: __mj
68537
68542
  * * Base Table: ComponentLibraryLink
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/react-runtime",
3
- "version": "5.31.0",
3
+ "version": "5.32.0",
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",
@@ -29,11 +29,11 @@
29
29
  },
30
30
  "homepage": "https://github.com/MemberJunction/MJ#readme",
31
31
  "dependencies": {
32
- "@memberjunction/core": "5.31.0",
33
- "@memberjunction/global": "5.31.0",
34
- "@memberjunction/interactive-component-types": "5.31.0",
35
- "@memberjunction/core-entities": "5.31.0",
36
- "@memberjunction/graphql-dataprovider": "5.31.0",
32
+ "@memberjunction/core": "5.32.0",
33
+ "@memberjunction/global": "5.32.0",
34
+ "@memberjunction/interactive-component-types": "5.32.0",
35
+ "@memberjunction/core-entities": "5.32.0",
36
+ "@memberjunction/graphql-dataprovider": "5.32.0",
37
37
  "@babel/standalone": "^7.29.1",
38
38
  "rxjs": "^7.8.2"
39
39
  },