@integry/sdk 4.5.12 → 4.5.13
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/dist/esm/index.csm.js
CHANGED
|
@@ -2298,7 +2298,9 @@ var e,t,n,i,o,s,a,l={},r=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]
|
|
|
2298
2298
|
</span>
|
|
2299
2299
|
</div>`}
|
|
2300
2300
|
</div>`:R` <div className="${Zo.mappedFieldMenu}">
|
|
2301
|
-
${v?R
|
|
2301
|
+
${v?R`<div
|
|
2302
|
+
dangerouslySetInnerHTML=${{__html:v}}
|
|
2303
|
+
/>`:R`${Object.keys(c?n:Po(n,L)).length>0?Object.keys(c?n:Po(n,L)).map(((e,t,i)=>R`
|
|
2302
2304
|
<${Vo}
|
|
2303
2305
|
objectKey="${e}"
|
|
2304
2306
|
keyValue="${e}"
|
|
@@ -7004,7 +7006,7 @@ var e,t,n,i,o,s,a,l={},r=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]
|
|
|
7004
7006
|
</div>
|
|
7005
7007
|
</div>
|
|
7006
7008
|
`}
|
|
7007
|
-
`}});const Rd={getAuthHash:async function(e,t){const n=e=>new Uint8Array([...unescape(encodeURIComponent(e))].map((e=>e.charCodeAt(0)))),i=n(t),o=n(e),s=await crypto.subtle.importKey("raw",i,{name:"HMAC",hash:"SHA-256"},!0,["sign"]),a=await crypto.subtle.sign("HMAC",s,o);return[...new Uint8Array(a)].map((e=>e.toString(16).padStart(2,"0"))).join("")}};class Wd{static SDK_VERSION="4.5.
|
|
7009
|
+
`}});const Rd={getAuthHash:async function(e,t){const n=e=>new Uint8Array([...unescape(encodeURIComponent(e))].map((e=>e.charCodeAt(0)))),i=n(t),o=n(e),s=await crypto.subtle.importKey("raw",i,{name:"HMAC",hash:"SHA-256"},!0,["sign"]),a=await crypto.subtle.sign("HMAC",s,o);return[...new Uint8Array(a)].map((e=>e.toString(16).padStart(2,"0"))).join("")}};class Wd{static SDK_VERSION="4.5.13";config;apiHandler;initConfig;eventEmitter=(()=>new G)();static html=(()=>R)();static RenderModes=(()=>ee)();static TemplateFormRenderModes=(()=>Y)();static Layouts=(()=>X)();static ViewStyles=(()=>J)();static MarketplaceRenderModes=(()=>Q)();static Helpers;authModalId="";forceRerender=!1;constructor(e){let t;const n=e.baseUrl||"https://app.integry.io",i=e;if(i.user){const{userId:e,apiKey:t,...n}=i.user;"userId"in i||(i.userId=""),"userId"in i&&(i.userId=e.toString()),i.xIntegryConfig||(i.xIntegryConfig={}),i.xIntegryConfig.appAuth||(i.xIntegryConfig.appAuth={}),i.xIntegryConfig.appAuth.extras||(i.xIntegryConfig.appAuth.extras={}),i.xIntegryConfig.appAuth.apiKey=(t||"").toString(),i.xIntegryConfig.appAuth.extras=n}const o={oauthVerifyPath:"auth/verify",endpointsUrl:"https://integry-app.appspot.com",baseUrl:n,baseUrlv2:`${n}/v2`,baseAPIUrl:"https://api.integry.io",apiKey:i.xIntegryConfig?.appAuth?.apiKey,authId:i.xIntegryConfig?.appAuth?.authId,extras:i.xIntegryConfig?.appAuth?.extras},s=i.options||i.userConfig||{};if(i.options&&i.payloads&&(i.options.objects=e.payloads),"appKey"in i)t={...i,...o,appKey:i.appKey,hash:i.hash,userId:i.userId},this.config={...i,...o,appKey:i.appKey,hash:i.hash,userId:i.userId,deploymentId:i.deploymentId,userConfig:i.deploymentId?{...s,tags:s?.tags?[...s?.tags,`${i.deploymentId}`]:[`${i.deploymentId}`]}:s};else{const e=this.getAuthParamsFromUrl()||{};t={...o,...e},this.config={...o,...e,userConfig:i.userConfig}}this.authModalId=this.getRandomFlowId(6),this.apiHandler=new j(t),this.verifyAuthConfig().then((e=>{e?.config_verified?this.eventEmitter.emit("ready",{isReady:!0}):console.error("IntegrySDK: Auth config verification failed, are your auth parameters correct?")})).catch((e=>console.error(e))),this.initConfig={containerId:"",renderMode:Y.INLINE}}SDKFailedHandler=(e,t)=>{const n=e.options||e.userConfig||{},i=document.getElementById(t);throw i&&T(R`
|
|
7008
7010
|
<${nl}
|
|
7009
7011
|
message="SDK failed to load"
|
|
7010
7012
|
debug=${n.debug}
|
package/dist/umd/index.umd.js
CHANGED
|
@@ -2298,7 +2298,9 @@
|
|
|
2298
2298
|
</span>
|
|
2299
2299
|
</div>`}
|
|
2300
2300
|
</div>`:R` <div className="${Zo.mappedFieldMenu}">
|
|
2301
|
-
${v?R
|
|
2301
|
+
${v?R`<div
|
|
2302
|
+
dangerouslySetInnerHTML=${{__html:v}}
|
|
2303
|
+
/>`:R`${Object.keys(c?n:Po(n,L)).length>0?Object.keys(c?n:Po(n,L)).map(((e,t,i)=>R`
|
|
2302
2304
|
<${Vo}
|
|
2303
2305
|
objectKey="${e}"
|
|
2304
2306
|
keyValue="${e}"
|
|
@@ -7004,7 +7006,7 @@
|
|
|
7004
7006
|
</div>
|
|
7005
7007
|
</div>
|
|
7006
7008
|
`}
|
|
7007
|
-
`}});class Rd{static SDK_VERSION="4.5.
|
|
7009
|
+
`}});class Rd{static SDK_VERSION="4.5.13";config;apiHandler;initConfig;eventEmitter=(()=>new G)();static html=(()=>R)();static RenderModes=(()=>ee)();static TemplateFormRenderModes=(()=>Y)();static Layouts=(()=>X)();static ViewStyles=(()=>J)();static MarketplaceRenderModes=(()=>Q)();static Helpers;authModalId="";forceRerender=!1;constructor(e){let t;const n=e.baseUrl||"https://app.integry.io",i=e;if(i.user){const{userId:e,apiKey:t,...n}=i.user;"userId"in i||(i.userId=""),"userId"in i&&(i.userId=e.toString()),i.xIntegryConfig||(i.xIntegryConfig={}),i.xIntegryConfig.appAuth||(i.xIntegryConfig.appAuth={}),i.xIntegryConfig.appAuth.extras||(i.xIntegryConfig.appAuth.extras={}),i.xIntegryConfig.appAuth.apiKey=(t||"").toString(),i.xIntegryConfig.appAuth.extras=n}const o={oauthVerifyPath:"auth/verify",endpointsUrl:"https://integry-app.appspot.com",baseUrl:n,baseUrlv2:`${n}/v2`,baseAPIUrl:"https://api.integry.io",apiKey:i.xIntegryConfig?.appAuth?.apiKey,authId:i.xIntegryConfig?.appAuth?.authId,extras:i.xIntegryConfig?.appAuth?.extras},s=i.options||i.userConfig||{};if(i.options&&i.payloads&&(i.options.objects=e.payloads),"appKey"in i)t={...i,...o,appKey:i.appKey,hash:i.hash,userId:i.userId},this.config={...i,...o,appKey:i.appKey,hash:i.hash,userId:i.userId,deploymentId:i.deploymentId,userConfig:i.deploymentId?{...s,tags:s?.tags?[...s?.tags,`${i.deploymentId}`]:[`${i.deploymentId}`]}:s};else{const e=this.getAuthParamsFromUrl()||{};t={...o,...e},this.config={...o,...e,userConfig:i.userConfig}}this.authModalId=this.getRandomFlowId(6),this.apiHandler=new j(t),this.verifyAuthConfig().then((e=>{e?.config_verified?this.eventEmitter.emit("ready",{isReady:!0}):console.error("IntegrySDK: Auth config verification failed, are your auth parameters correct?")})).catch((e=>console.error(e))),this.initConfig={containerId:"",renderMode:Y.INLINE}}SDKFailedHandler=(e,t)=>{const n=e.options||e.userConfig||{},i=document.getElementById(t);throw i&&T(R`
|
|
7008
7010
|
<${nl}
|
|
7009
7011
|
message="SDK failed to load"
|
|
7010
7012
|
debug=${n.debug}
|
package/package.json
CHANGED
|
@@ -330,7 +330,9 @@ const FieldDropdown = (props: FieldMenuProps) => {
|
|
|
330
330
|
</div>`
|
|
331
331
|
: html` <div className="${styles.mappedFieldMenu}">
|
|
332
332
|
${tagsComponent
|
|
333
|
-
? html
|
|
333
|
+
? html`<div
|
|
334
|
+
dangerouslySetInnerHTML=${{ __html: tagsComponent }}
|
|
335
|
+
/>`
|
|
334
336
|
: html`${Object.keys(
|
|
335
337
|
!isEditable ? searchJSON(tags, searchValue) : tags,
|
|
336
338
|
).length > 0
|