@kizenapps/engine 1.3.0 → 1.3.1-a0c3bfb

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.
Files changed (44) hide show
  1. package/dist/{ThirdPartyScript-SJ9auPZm.d.ts → ThirdPartyScript-Bg-ZNlC4.d.ts} +17 -2
  2. package/dist/{automation-V0iUhnR7.d.ts → automation-nAOwIFAV.d.ts} +1 -1
  3. package/dist/{chunk-MH5PHO6V.js → chunk-4U7AGDGE.js} +5 -5
  4. package/dist/{chunk-MH5PHO6V.js.map → chunk-4U7AGDGE.js.map} +1 -1
  5. package/dist/{chunk-EFIJAPTR.js → chunk-566JDWZK.js} +8 -4
  6. package/dist/chunk-566JDWZK.js.map +1 -0
  7. package/dist/{chunk-OWSNCND3.js → chunk-66LV36OV.js} +3 -3
  8. package/dist/{chunk-OWSNCND3.js.map → chunk-66LV36OV.js.map} +1 -1
  9. package/dist/{chunk-6MOFWE4S.js → chunk-66QQE5I2.js} +3 -3
  10. package/dist/{chunk-6MOFWE4S.js.map → chunk-66QQE5I2.js.map} +1 -1
  11. package/dist/{chunk-DBOOGEEF.js → chunk-AL7FIWSH.js} +3 -3
  12. package/dist/{chunk-DBOOGEEF.js.map → chunk-AL7FIWSH.js.map} +1 -1
  13. package/dist/{chunk-FWN7T3WB.js → chunk-GSH5DRWA.js} +5 -5
  14. package/dist/{chunk-FWN7T3WB.js.map → chunk-GSH5DRWA.js.map} +1 -1
  15. package/dist/{chunk-FQB442MR.js → chunk-GSUCUVXR.js} +3 -3
  16. package/dist/{chunk-FQB442MR.js.map → chunk-GSUCUVXR.js.map} +1 -1
  17. package/dist/{chunk-ULFX2VOC.js → chunk-I5B5DRUT.js} +3 -3
  18. package/dist/{chunk-ULFX2VOC.js.map → chunk-I5B5DRUT.js.map} +1 -1
  19. package/dist/{chunk-PJRGATVY.js → chunk-LODMJH2K.js} +4 -4
  20. package/dist/{chunk-PJRGATVY.js.map → chunk-LODMJH2K.js.map} +1 -1
  21. package/dist/communication.d.ts +2 -2
  22. package/dist/communication.js +2 -2
  23. package/dist/contexts/base.d.ts +1 -1
  24. package/dist/contexts/base.js +4 -4
  25. package/dist/contexts/floatingFrame.d.ts +1 -1
  26. package/dist/contexts/floatingFrame.js +5 -5
  27. package/dist/contexts/recordDetail.d.ts +1 -1
  28. package/dist/contexts/recordDetail.js +5 -5
  29. package/dist/{generic-StPcwyG1.d.ts → generic-B_BmEHix.d.ts} +1 -1
  30. package/dist/index.d.ts +6 -6
  31. package/dist/index.js +3 -3
  32. package/dist/react.d.ts +3 -3
  33. package/dist/react.js +5 -5
  34. package/dist/{routeScript-BsZNrggO.d.ts → routeScript-BExlCmGg.d.ts} +1 -1
  35. package/dist/types.d.ts +6 -6
  36. package/dist/util.d.ts +8 -4
  37. package/dist/util.js +55 -7
  38. package/dist/util.js.map +1 -1
  39. package/dist/workers/calendarSource.worker.js +6 -6
  40. package/dist/workers/floatingFrame.worker.js +7 -7
  41. package/dist/workers/generic.worker.js +6 -6
  42. package/dist/workers/recordDetail.worker.js +7 -7
  43. package/package.json +1 -1
  44. package/dist/chunk-EFIJAPTR.js.map +0 -1
@@ -186,9 +186,14 @@ interface AssistantConfigAction {
186
186
  name: string;
187
187
  hint_object_name?: string;
188
188
  }
189
+ interface AssistantLink {
190
+ href: string;
191
+ text: string;
192
+ }
193
+ type IncludeOption = 'email' | 'name' | 'business_id' | 'user_id' | 'base_url';
189
194
  interface AssistantField {
190
195
  key: string;
191
- type: 'custom_object' | 'description' | 'container' | 'field' | 'text' | 'number' | 'select' | 'boolean';
196
+ type: 'custom_object' | 'description' | 'container' | 'field' | 'text' | 'number' | 'select' | 'boolean' | 'qr' | 'image' | 'link';
192
197
  columns?: number;
193
198
  fields?: AssistantField[];
194
199
  content?: string;
@@ -212,6 +217,16 @@ interface AssistantField {
212
217
  dependencies?: string[];
213
218
  validation_pattern?: string;
214
219
  match_hint?: string;
220
+ src?: string;
221
+ link?: AssistantLink;
222
+ title?: string;
223
+ width?: number;
224
+ height?: number;
225
+ href?: string;
226
+ text?: string;
227
+ size?: number;
228
+ value?: string;
229
+ include?: IncludeOption[];
215
230
  }
216
231
  type BooleanCleanValue = boolean;
217
232
  interface BooleanValueStore {
@@ -471,4 +486,4 @@ declare class ThirdPartyScript {
471
486
  call(...params: unknown[]): void;
472
487
  }
473
488
 
474
- export { type ErrorHandler as $, type Args as A, type BaseAPI as B, type CurrentUser as C, type DataCache as D, type CurriedInstallThirdPartyScriptFn as E, type CurriedKizenRequestFn as F, type GetOptions as G, type CurriedOpenCreateRecordFn as H, type Instance as I, type CurriedOpenCreateRelatedRecordFn as J, type CurriedPostFormDataFn as K, type CurriedPromptFn as L, type ModalConfig as M, type CurriedRefreshEntityFn as N, type CurriedUploadFileFn as O, type PartialEntity as P, type CustomObjectCleanValue as Q, type RequestWithErrorsResponse as R, type StateChangePayload as S, ThirdPartyScript as T, type UnknownJSON as U, type CustomObjectValueStore as V, type WorkerContextArgs as W, type DataCacheEntry as X, type DeleteReturnValue as Y, type DynamicPromptFn as Z, type EmployeeConfig as _, type PartialCustomObject as a, type ErrorResponse as a0, type FieldCleanValue as a1, type FieldValueStore as a2, type GetReturnValue as a3, type InstallThirdPartyScriptFn as a4, type JSONArray as a5, type JSONObject as a6, type JSONPrimitive as a7, type JSONValue as a8, type KizenConfig as a9, type PromiseResolve as aA, type PromiseState as aB, type PromptFn as aC, type PutReturnValue as aD, type RefreshEntityFn as aE, type ReleaseBlockingScriptHandler as aF, type SelectCleanValue as aG, type SelectValueStore as aH, type SetInternalSessionDataFn as aI, type SetupAssistantConfig as aJ, type SetupAssistantField as aK, type TextValueStore as aL, type UnknownFunction as aM, type UploadFileData as aN, type UploadFileFn as aO, type UserConfig as aP, type ValueStore as aQ, ACTIONS as aR, ALLOWED_INTEGRATIONS as aS, KizenRequestError as aT, IFRAME_PREFIX as aU, INDICATOR_TYPE as aV, type KizenNetworkResponse as aa, type KizenProxySuccessResponse as ab, type KizenRequestFn as ac, type KizenRequestFnHandler as ad, type KnownArgs as ae, type MatchSetupAssistantField as af, type MaybeMessageError as ag, type ModalBlock as ah, type ModalCancelEventSource as ai, type ModalContainer as aj, type ModalQueue as ak, type NumberCleanValue as al, type NumberValueStore as am, type OnNetworkErrorFn as an, type OnShowCreateRecordModalFn as ao, type OnShowCreateRelatedRecordModalFn as ap, type OnShowModalFn as aq, type OpenCreateRecordFn as ar, type OpenCreateRelatedRecordFn as as, type PartialRelatedObject as at, type PatchReturnValue as au, type PostFormDataPayload as av, type PostReturnValue as aw, type Profile as ax, type PromiseMap as ay, type PromiseReject as az, type PartialUser as b, type PartialTeamMember as c, type PartialBusiness as d, type PartialClientObject as e, type PostFormDataFn as f, type PromptState as g, type InternalSessionData as h, type PartialLocation as i, type RequestOptions as j, type ShowToastOptions as k, type DynamicPromptConfig as l, type SelectOption as m, type AppPlugin as n, type AppPlugins as o, type AssistantConfigAction as p, type AssistantField as q, type BooleanCleanValue as r, type BooleanValueStore as s, type ButtonConfig as t, type CleanValueStore as u, type CleanValueStoreType as v, type ConfigService as w, type CreateRecordModalQueue as x, type CreateRelatedRecordModalQueue as y, type CurriedDynamicPromptFn as z };
489
+ export { type EmployeeConfig as $, type Args as A, type BaseAPI as B, type CurrentUser as C, type DataCache as D, type CurriedDynamicPromptFn as E, type CurriedInstallThirdPartyScriptFn as F, type GetOptions as G, type CurriedKizenRequestFn as H, type Instance as I, type CurriedOpenCreateRecordFn as J, type CurriedOpenCreateRelatedRecordFn as K, type CurriedPostFormDataFn as L, type ModalConfig as M, type CurriedPromptFn as N, type CurriedRefreshEntityFn as O, type PartialEntity as P, type CurriedUploadFileFn as Q, type RequestWithErrorsResponse as R, type StateChangePayload as S, ThirdPartyScript as T, type UnknownJSON as U, type CustomObjectCleanValue as V, type WorkerContextArgs as W, type CustomObjectValueStore as X, type DataCacheEntry as Y, type DeleteReturnValue as Z, type DynamicPromptFn as _, type PartialCustomObject as a, type ErrorHandler as a0, type ErrorResponse as a1, type FieldCleanValue as a2, type FieldValueStore as a3, type GetReturnValue as a4, type IncludeOption as a5, type InstallThirdPartyScriptFn as a6, type JSONArray as a7, type JSONObject as a8, type JSONPrimitive as a9, type PromiseMap as aA, type PromiseReject as aB, type PromiseResolve as aC, type PromiseState as aD, type PromptFn as aE, type PutReturnValue as aF, type RefreshEntityFn as aG, type ReleaseBlockingScriptHandler as aH, type SelectCleanValue as aI, type SelectValueStore as aJ, type SetInternalSessionDataFn as aK, type SetupAssistantConfig as aL, type SetupAssistantField as aM, type TextValueStore as aN, type UnknownFunction as aO, type UploadFileData as aP, type UploadFileFn as aQ, type UserConfig as aR, type ValueStore as aS, ACTIONS as aT, ALLOWED_INTEGRATIONS as aU, KizenRequestError as aV, IFRAME_PREFIX as aW, INDICATOR_TYPE as aX, type JSONValue as aa, type KizenConfig as ab, type KizenNetworkResponse as ac, type KizenProxySuccessResponse as ad, type KizenRequestFn as ae, type KizenRequestFnHandler as af, type KnownArgs as ag, type MatchSetupAssistantField as ah, type MaybeMessageError as ai, type ModalBlock as aj, type ModalCancelEventSource as ak, type ModalContainer as al, type ModalQueue as am, type NumberCleanValue as an, type NumberValueStore as ao, type OnNetworkErrorFn as ap, type OnShowCreateRecordModalFn as aq, type OnShowCreateRelatedRecordModalFn as ar, type OnShowModalFn as as, type OpenCreateRecordFn as at, type OpenCreateRelatedRecordFn as au, type PartialRelatedObject as av, type PatchReturnValue as aw, type PostFormDataPayload as ax, type PostReturnValue as ay, type Profile as az, type PartialUser as b, type PartialTeamMember as c, type PartialBusiness as d, type PartialClientObject as e, type PostFormDataFn as f, type PromptState as g, type InternalSessionData as h, type PartialLocation as i, type RequestOptions as j, type ShowToastOptions as k, type DynamicPromptConfig as l, type SelectOption as m, type AppPlugin as n, type AppPlugins as o, type AssistantConfigAction as p, type AssistantField as q, type AssistantLink as r, type BooleanCleanValue as s, type BooleanValueStore as t, type ButtonConfig as u, type CleanValueStore as v, type CleanValueStoreType as w, type ConfigService as x, type CreateRecordModalQueue as y, type CreateRelatedRecordModalQueue as z };
@@ -1,4 +1,4 @@
1
- import { a as CommonPluginDefinition } from './routeScript-BsZNrggO.js';
1
+ import { a as CommonPluginDefinition } from './routeScript-BExlCmGg.js';
2
2
 
3
3
  interface DataAdornmentConfig extends CommonPluginDefinition {
4
4
  id?: string;
@@ -1,6 +1,6 @@
1
- import { generateUUIDV4, getPartialLocation } from './chunk-6MOFWE4S.js';
1
+ import { generateUUIDV4, getPartialLocation } from './chunk-66QQE5I2.js';
2
2
  import { KizenRequestError } from './chunk-7ALAP3YN.js';
3
- import { IFRAME_PREFIX, ACTIONS, RESPONSES, COMMUNICATIONS, thirdPartyGlobalNames, getScriptIntegrationType, thirdPartySetupScripts, thirdPartyReadyPredicates } from './chunk-ULFX2VOC.js';
3
+ import { IFRAME_PREFIX, ACTIONS, RESPONSES, COMMUNICATIONS, thirdPartyGlobalNames, getScriptIntegrationType, thirdPartySetupScripts, thirdPartyReadyPredicates } from './chunk-I5B5DRUT.js';
4
4
  import { __commonJS, __toESM } from './chunk-5WRI5ZAA.js';
5
5
  import DOMPurify from 'dompurify';
6
6
 
@@ -2428,8 +2428,8 @@ var runObjectExpression = async (expression, values) => {
2428
2428
  };
2429
2429
 
2430
2430
  // src/index.ts
2431
- var version = "1.3.0";
2431
+ var version = "1.3.1-a0c3bfb";
2432
2432
 
2433
2433
  export { getHash, getStableHash, isFlagEnabled, runExpression, runObjectExpression, runOptionExpression, runScript, runStringExpression, version };
2434
- //# sourceMappingURL=chunk-MH5PHO6V.js.map
2435
- //# sourceMappingURL=chunk-MH5PHO6V.js.map
2434
+ //# sourceMappingURL=chunk-4U7AGDGE.js.map
2435
+ //# sourceMappingURL=chunk-4U7AGDGE.js.map