@chili-publish/studio-sdk 1.46.1 → 1.47.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.
Files changed (63) hide show
  1. package/_bundles/main.js +4 -4
  2. package/_bundles/main.js.map +1 -1
  3. package/lib/src/controllers/ComponentGridController.cjs.js.map +1 -1
  4. package/lib/src/controllers/ComponentGridController.es.js.map +1 -1
  5. package/lib/src/controllers/FrameController.cjs.js +8 -0
  6. package/lib/src/controllers/FrameController.cjs.js.map +1 -1
  7. package/lib/src/controllers/FrameController.d.ts +14 -0
  8. package/lib/src/controllers/FrameController.es.js +8 -0
  9. package/lib/src/controllers/FrameController.es.js.map +1 -1
  10. package/lib/src/controllers/UtilsController.cjs.js +4 -1
  11. package/lib/src/controllers/UtilsController.cjs.js.map +1 -1
  12. package/lib/src/controllers/UtilsController.es.js +4 -1
  13. package/lib/src/controllers/UtilsController.es.js.map +1 -1
  14. package/lib/src/interactions/Connector.cjs.js +29 -10
  15. package/lib/src/interactions/Connector.cjs.js.map +1 -1
  16. package/lib/src/interactions/Connector.d.ts +2 -2
  17. package/lib/src/interactions/Connector.es.js +29 -10
  18. package/lib/src/interactions/Connector.es.js.map +1 -1
  19. package/lib/src/next/controllers/PageController.cjs.js +1 -0
  20. package/lib/src/next/controllers/PageController.cjs.js.map +1 -1
  21. package/lib/src/next/controllers/PageController.es.js +1 -0
  22. package/lib/src/next/controllers/PageController.es.js.map +1 -1
  23. package/lib/src/sdk/editor-engine.json.cjs.js +1 -1
  24. package/lib/src/sdk/editor-engine.json.es.js +1 -1
  25. package/lib/src/sdk/package.json.cjs.js +1 -1
  26. package/lib/src/sdk/package.json.es.js +1 -1
  27. package/lib/src/sdk.cjs.js +26 -13
  28. package/lib/src/sdk.cjs.js.map +1 -1
  29. package/lib/src/sdk.d.ts +14 -0
  30. package/lib/src/sdk.es.js +26 -13
  31. package/lib/src/sdk.es.js.map +1 -1
  32. package/lib/src/types/BarcodeTypes.cjs.js.map +1 -1
  33. package/lib/src/types/BarcodeTypes.d.ts +3 -1
  34. package/lib/src/types/BarcodeTypes.es.js.map +1 -1
  35. package/lib/src/types/BrandKitTypes.d.ts +4 -2
  36. package/lib/src/types/CharacterStyleTypes.d.ts +6 -2
  37. package/lib/src/types/ColorStyleTypes.cjs.js.map +1 -1
  38. package/lib/src/types/ColorStyleTypes.es.js.map +1 -1
  39. package/lib/src/types/ComponentGridTypes.cjs.js.map +1 -1
  40. package/lib/src/types/ComponentGridTypes.es.js.map +1 -1
  41. package/lib/src/types/ConnectorTypes.cjs.js.map +1 -1
  42. package/lib/src/types/ConnectorTypes.es.js.map +1 -1
  43. package/lib/src/types/FrameTypes.cjs.js.map +1 -1
  44. package/lib/src/types/FrameTypes.d.ts +5 -0
  45. package/lib/src/types/FrameTypes.es.js.map +1 -1
  46. package/lib/src/types/ParagraphStyleTypes.cjs.js.map +1 -1
  47. package/lib/src/types/ParagraphStyleTypes.d.ts +6 -2
  48. package/lib/src/types/ParagraphStyleTypes.es.js.map +1 -1
  49. package/lib/src/types/RichTextRuleTypes.cjs.js.map +1 -1
  50. package/lib/src/types/RichTextRuleTypes.es.js.map +1 -1
  51. package/lib/src/types/ShapeTypes.cjs.js.map +1 -1
  52. package/lib/src/types/ShapeTypes.d.ts +2 -0
  53. package/lib/src/types/ShapeTypes.es.js.map +1 -1
  54. package/lib/src/types/TextStyleTypes.cjs.js.map +1 -1
  55. package/lib/src/types/TextStyleTypes.d.ts +2 -1
  56. package/lib/src/types/TextStyleTypes.es.js.map +1 -1
  57. package/lib/src/types/VariableTypes.cjs.js.map +1 -1
  58. package/lib/src/types/VariableTypes.es.js.map +1 -1
  59. package/lib/src/utils/EngineCallbackHandler.cjs.js.map +1 -1
  60. package/lib/src/utils/EngineCallbackHandler.es.js.map +1 -1
  61. package/lib/src/utils/EngineEvent.cjs.js.map +1 -1
  62. package/lib/src/utils/EngineEvent.es.js.map +1 -1
  63. package/package.json +17 -20
@@ -1 +1 @@
1
- {"version":3,"file":"VariableTypes.es.js","sources":["../../../src/types/VariableTypes.ts"],"sourcesContent":["import { DataModelProperty, Dictionary } from '@chili-studio/connector-types';\nimport { Id, PrivateData } from './CommonTypes';\n\nexport interface ConnectorImageVariableSource {\n connectorId: string;\n /**\n * The requested asset id or name\n */\n assetId: string;\n /**\n * If the connector was able to query, this will contain\n * the actual resolved media Id.\n */\n resolved?: ResolvedMedia;\n\n /**\n * The context of the variable that will be passed to the connector\n */\n context: Dictionary;\n}\n\n/**\n * Image variable query lookup result\n */\nexport interface ResolvedMedia {\n /**\n * The resolved media Id.\n * This id can be used to perform the download call.\n */\n mediaId: string;\n}\n\nexport enum VariableType {\n shortText = 'shortText',\n longText = 'longText',\n richText = 'richText',\n image = 'image',\n list = 'list',\n boolean = 'boolean',\n group = 'group',\n number = 'number',\n date = 'date',\n dataSource = 'dataSource',\n}\n\nexport interface Variable {\n id: string;\n type: VariableType;\n parentId?: string;\n name: string;\n label?: string | null;\n isVisible: boolean;\n visibility: VariableVisibility;\n isReadonly: boolean;\n isRequired: boolean;\n occurrences: number;\n placeholder?: string | null;\n helpText?: string | null;\n privateData: PrivateData;\n}\n\nexport interface ImageVariable extends Variable {\n value?: ConnectorImageVariableSource;\n allowQuery: boolean;\n allowUpload: boolean;\n uploadMinHeight?: number | null;\n uploadMinWidth?: number | null;\n}\n\nexport interface ListVariableItem {\n value: string;\n displayValue?: string;\n}\n\nexport interface ListVariable extends Variable {\n items: string[];\n selected?: string;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n}\n\nexport interface BooleanVariable extends Variable {\n value: boolean;\n}\n\nexport interface ShortTextVariable extends Variable {\n value: string;\n removeParagraphIfEmpty: boolean;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n isDontBreak: boolean;\n maxCharacters?: number;\n}\n\nexport interface NumberVariable extends Variable {\n value: number;\n numberOfDecimals: number;\n decimalCharacterStyleId?: string;\n decimalSeparator: string;\n thousandsSeparator: string;\n minValue?: number;\n maxValue?: number;\n showStepper: boolean;\n stepSize: number;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n}\n\nexport interface DateVariable extends Variable {\n value?: string;\n removeParagraphIfEmpty: boolean;\n displayFormat: string;\n startDate?: DateRestriction;\n endDate?: DateRestriction;\n excludedDays: Day[];\n locale: Locale;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n}\n\nexport type LongTextVariable = ShortTextVariable;\n\nexport type GroupVariable = Variable;\n\nexport interface DataSourceVariable extends Variable {\n value?: DataSourceVariableSource;\n displayOptions: DataSourceVariableDisplayOptions;\n entryId?: RowId;\n}\n\nexport interface RichTextVariable extends Variable {\n value: null;\n ruleSetId: string;\n}\n\nexport type DateRestriction = RelativeDate | AbsoluteDate;\n\nexport interface ValueWithStyle {\n value?: string;\n style?: string;\n}\n\nexport interface RelativeDate {\n offset: number;\n type: 'relative';\n}\n\nexport interface AbsoluteDate {\n value: string;\n type: 'absolute';\n}\n\nexport enum Day {\n Monday = 'monday',\n Tuesday = 'tuesday',\n Wednesday = 'wednesday',\n Thursday = 'thursday',\n Friday = 'friday',\n Saturday = 'saturday',\n Sunday = 'sunday',\n}\n\nexport enum Locale {\n en_US = 'en_US',\n cs = 'cs',\n da = 'da',\n nl = 'nl',\n fi = 'fi',\n fr = 'fr',\n de = 'de',\n it = 'it',\n no = 'no',\n pl = 'pl',\n pt_PT = 'pt_PT',\n es_ES = 'es_ES',\n sv = 'sv',\n}\n\nexport interface DateVariablePropertiesDeltaUpdate {\n startDate?: {\n value: DateRestriction | null;\n };\n endDate?: {\n value: DateRestriction | null;\n };\n excludedDays?: {\n value: Day[] | null;\n };\n locale?: {\n value: Locale;\n };\n displayFormat?: {\n value: string;\n };\n}\n\nexport interface NumberVariablePropertiesDeltaUpdate {\n minValue?: {\n value: number | null;\n };\n maxValue?: {\n value: number | null;\n };\n showStepper?: {\n value: boolean;\n };\n stepSize?: {\n value: number;\n };\n numberOfDecimals?: {\n value: number;\n };\n decimalCharacterStyleId?: {\n value: string | null;\n };\n decimalSeparator?: {\n value: string;\n };\n thousandsSeparator?: {\n value: string;\n };\n}\n\nexport interface PrefixSuffixDeltaUpdate {\n prefix?: {\n value: string | null;\n };\n suffix?: {\n value: string | null;\n };\n prefixCharacterStyleId?: {\n value: string | null;\n };\n suffixCharacterStyleId?: {\n value: string | null;\n };\n}\n\nexport enum VariableVisibilityType {\n visible = 'visible',\n invisible = 'invisible',\n conditional = 'conditional',\n}\n\nexport enum VariableVisibilityTargetType {\n boolean = 'boolean',\n text = 'text',\n number = 'number',\n}\n\nexport enum VariableVisibilityOperator {\n equals = '=',\n notEquals = '!=',\n greaterThan = '>',\n greaterThanOrEquals = '>=',\n lessThan = '<',\n lessThanOrEquals = '<=',\n}\n\nexport interface VariableVisibilityBase {\n type: VariableVisibilityType;\n}\n\nexport interface VariableVisibilityVisible extends VariableVisibilityBase {\n type: VariableVisibilityType.visible;\n}\n\nexport interface VariableVisibilityInvisible extends VariableVisibilityBase {\n type: VariableVisibilityType.invisible;\n}\n\nexport interface VariableVisibilityConditional extends VariableVisibilityBase {\n type: VariableVisibilityType.conditional;\n layouts: VariableVisibilityLayout[];\n variables: VariableWithValue[];\n}\n\nexport type VariableVisibility =\n | VariableVisibilityVisible\n | VariableVisibilityInvisible\n | VariableVisibilityConditional;\n\nexport interface VariableVisibilityLayout {\n layoutId: string;\n includeChildren: boolean;\n}\n\nexport interface VariableWithValue {\n id: string;\n value: VariableVisibilityConditionValue;\n}\n\nexport interface VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType;\n}\n\nexport interface VariableVisibilityConditionValueBoolean extends VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType.boolean;\n value: boolean;\n}\n\nexport interface VariableVisibilityConditionValueText extends VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType.text;\n value: string;\n operator: VariableVisibilityOperator;\n}\n\nexport interface VariableVisibilityConditionValueNumber extends VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType.number;\n value: number;\n operator: VariableVisibilityOperator;\n}\n\nexport type VariableVisibilityConditionValue =\n | VariableVisibilityConditionValueBoolean\n | VariableVisibilityConditionValueText\n | VariableVisibilityConditionValueNumber;\n\nexport type VariableUsagesReport = {\n pages: Id[];\n frames: Id[];\n actionTrigger: Id[];\n variables: Id[];\n outputDataSource: boolean;\n};\n\n// Data Source Variable Types\n\nexport type RowId = string;\n\nexport enum DataSourceVariableSourceType {\n injected = 'injected',\n connector = 'connector',\n}\n\nexport type InjectedDataSourceVariableSource = {\n type: DataSourceVariableSourceType.injected;\n model: DataModelProperty[];\n itemIdPropertyName: string;\n};\n\nexport type ConnectorDataSourceVariableSource = {\n type: DataSourceVariableSourceType.connector;\n connectorId: string;\n};\n\nexport type DataSourceVariableSource = InjectedDataSourceVariableSource | ConnectorDataSourceVariableSource;\n\nexport enum DataSourceVariableDisplayOptionsType {\n table = 'table',\n list = 'list',\n}\n\nexport interface DataSourceVariableDisplayOptionsTable {\n type: DataSourceVariableDisplayOptionsType.table;\n}\n\nexport interface DataSourceVariableDisplayOptionsList {\n type: DataSourceVariableDisplayOptionsType.list;\n displayColumn: string;\n}\n\nexport type DataSourceVariableDisplayOptions =\n | DataSourceVariableDisplayOptionsTable\n | DataSourceVariableDisplayOptionsList;\n"],"names":["VariableType","Day","Locale","VariableVisibilityType","VariableVisibilityTargetType","VariableVisibilityOperator","DataSourceVariableSourceType","DataSourceVariableDisplayOptionsType"],"mappings":"AAgCO,IAAK,iCAAAA,kBAAL;AACHA,gBAAA,WAAA,IAAY;AACZA,gBAAA,UAAA,IAAW;AACXA,gBAAA,UAAA,IAAW;AACXA,gBAAA,OAAA,IAAQ;AACRA,gBAAA,MAAA,IAAO;AACPA,gBAAA,SAAA,IAAU;AACVA,gBAAA,OAAA,IAAQ;AACRA,gBAAA,QAAA,IAAS;AACTA,gBAAA,MAAA,IAAO;AACPA,gBAAA,YAAA,IAAa;AAVL,SAAAA;AAAA,GAAA,gBAAA,CAAA,CAAA;AAwHL,IAAK,wBAAAC,SAAL;AACHA,OAAA,QAAA,IAAS;AACTA,OAAA,SAAA,IAAU;AACVA,OAAA,WAAA,IAAY;AACZA,OAAA,UAAA,IAAW;AACXA,OAAA,QAAA,IAAS;AACTA,OAAA,UAAA,IAAW;AACXA,OAAA,QAAA,IAAS;AAPD,SAAAA;AAAA,GAAA,OAAA,CAAA,CAAA;AAUL,IAAK,2BAAAC,YAAL;AACHA,UAAA,OAAA,IAAQ;AACRA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,OAAA,IAAQ;AACRA,UAAA,OAAA,IAAQ;AACRA,UAAA,IAAA,IAAK;AAbG,SAAAA;AAAA,GAAA,UAAA,CAAA,CAAA;AA4EL,IAAK,2CAAAC,4BAAL;AACHA,0BAAA,SAAA,IAAU;AACVA,0BAAA,WAAA,IAAY;AACZA,0BAAA,aAAA,IAAc;AAHN,SAAAA;AAAA,GAAA,0BAAA,CAAA,CAAA;AAML,IAAK,iDAAAC,kCAAL;AACHA,gCAAA,SAAA,IAAU;AACVA,gCAAA,MAAA,IAAO;AACPA,gCAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,gCAAA,CAAA,CAAA;AAML,IAAK,+CAAAC,gCAAL;AACHA,8BAAA,QAAA,IAAS;AACTA,8BAAA,WAAA,IAAY;AACZA,8BAAA,aAAA,IAAc;AACdA,8BAAA,qBAAA,IAAsB;AACtBA,8BAAA,UAAA,IAAW;AACXA,8BAAA,kBAAA,IAAmB;AANX,SAAAA;AAAA,GAAA,8BAAA,CAAA,CAAA;AAgFL,IAAK,iDAAAC,kCAAL;AACHA,gCAAA,UAAA,IAAW;AACXA,gCAAA,WAAA,IAAY;AAFJ,SAAAA;AAAA,GAAA,gCAAA,CAAA,CAAA;AAkBL,IAAK,yDAAAC,0CAAL;AACHA,wCAAA,OAAA,IAAQ;AACRA,wCAAA,MAAA,IAAO;AAFC,SAAAA;AAAA,GAAA,wCAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"VariableTypes.es.js","sources":["../../../src/types/VariableTypes.ts"],"sourcesContent":["import { DataModelProperty, Dictionary } from '@chili-studio/connector-types';\nimport { Id, PrivateData } from './CommonTypes';\n\nexport interface ConnectorImageVariableSource {\n connectorId: string;\n /**\n * The requested asset id or name\n */\n assetId: string;\n /**\n * If the connector was able to query, this will contain\n * the actual resolved media Id.\n */\n resolved?: ResolvedMedia;\n\n /**\n * The context of the variable that will be passed to the connector\n */\n context: Dictionary;\n}\n\n/**\n * Image variable query lookup result\n */\nexport interface ResolvedMedia {\n /**\n * The resolved media Id.\n * This id can be used to perform the download call.\n */\n mediaId: string;\n}\n\nexport enum VariableType {\n shortText = 'shortText',\n longText = 'longText',\n richText = 'richText',\n image = 'image',\n list = 'list',\n boolean = 'boolean',\n group = 'group',\n number = 'number',\n date = 'date',\n dataSource = 'dataSource',\n}\n\nexport interface Variable {\n id: string;\n type: VariableType;\n parentId?: string;\n name: string;\n label?: string | null;\n isVisible: boolean;\n visibility: VariableVisibility;\n isReadonly: boolean;\n isRequired: boolean;\n occurrences: number;\n placeholder?: string | null;\n helpText?: string | null;\n privateData: PrivateData;\n}\n\nexport interface ImageVariable extends Variable {\n value?: ConnectorImageVariableSource;\n allowQuery: boolean;\n allowUpload: boolean;\n uploadMinHeight?: number | null;\n uploadMinWidth?: number | null;\n}\n\nexport interface ListVariableItem {\n value: string;\n displayValue?: string;\n}\n\nexport interface ListVariable extends Variable {\n items: string[];\n selected?: string;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n}\n\nexport interface BooleanVariable extends Variable {\n value: boolean;\n}\n\nexport interface ShortTextVariable extends Variable {\n value: string;\n removeParagraphIfEmpty: boolean;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n isDontBreak: boolean;\n maxCharacters?: number;\n}\n\nexport interface NumberVariable extends Variable {\n value: number;\n numberOfDecimals: number;\n decimalCharacterStyleId?: string;\n decimalSeparator: string;\n thousandsSeparator: string;\n minValue?: number;\n maxValue?: number;\n showStepper: boolean;\n stepSize: number;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n}\n\nexport interface DateVariable extends Variable {\n value?: string;\n removeParagraphIfEmpty: boolean;\n displayFormat: string;\n startDate?: DateRestriction;\n endDate?: DateRestriction;\n excludedDays: Day[];\n locale: Locale;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n}\n\nexport type LongTextVariable = ShortTextVariable;\n\nexport type GroupVariable = Variable;\n\nexport interface DataSourceVariable extends Variable {\n value?: DataSourceVariableSource;\n displayOptions: DataSourceVariableDisplayOptions;\n entryId?: RowId;\n}\n\nexport interface RichTextVariable extends Variable {\n value: null;\n ruleSetId: string;\n}\n\nexport type DateRestriction = RelativeDate | AbsoluteDate;\n\nexport interface ValueWithStyle {\n value?: string;\n style?: string;\n}\n\nexport interface RelativeDate {\n offset: number;\n type: 'relative';\n}\n\nexport interface AbsoluteDate {\n value: string;\n type: 'absolute';\n}\n\nexport enum Day {\n Monday = 'monday',\n Tuesday = 'tuesday',\n Wednesday = 'wednesday',\n Thursday = 'thursday',\n Friday = 'friday',\n Saturday = 'saturday',\n Sunday = 'sunday',\n}\n\nexport enum Locale {\n en_US = 'en_US',\n cs = 'cs',\n da = 'da',\n nl = 'nl',\n fi = 'fi',\n fr = 'fr',\n de = 'de',\n it = 'it',\n no = 'no',\n pl = 'pl',\n pt_PT = 'pt_PT',\n es_ES = 'es_ES',\n sv = 'sv',\n}\n\nexport interface DateVariablePropertiesDeltaUpdate {\n startDate?: {\n value: DateRestriction | null;\n };\n endDate?: {\n value: DateRestriction | null;\n };\n excludedDays?: {\n value: Day[] | null;\n };\n locale?: {\n value: Locale;\n };\n displayFormat?: {\n value: string;\n };\n}\n\nexport interface NumberVariablePropertiesDeltaUpdate {\n minValue?: {\n value: number | null;\n };\n maxValue?: {\n value: number | null;\n };\n showStepper?: {\n value: boolean;\n };\n stepSize?: {\n value: number;\n };\n numberOfDecimals?: {\n value: number;\n };\n decimalCharacterStyleId?: {\n value: string | null;\n };\n decimalSeparator?: {\n value: string;\n };\n thousandsSeparator?: {\n value: string;\n };\n}\n\nexport interface PrefixSuffixDeltaUpdate {\n prefix?: {\n value: string | null;\n };\n suffix?: {\n value: string | null;\n };\n prefixCharacterStyleId?: {\n value: string | null;\n };\n suffixCharacterStyleId?: {\n value: string | null;\n };\n}\n\nexport enum VariableVisibilityType {\n visible = 'visible',\n invisible = 'invisible',\n conditional = 'conditional',\n}\n\nexport enum VariableVisibilityTargetType {\n boolean = 'boolean',\n text = 'text',\n number = 'number',\n}\n\nexport enum VariableVisibilityOperator {\n equals = '=',\n notEquals = '!=',\n greaterThan = '>',\n greaterThanOrEquals = '>=',\n lessThan = '<',\n lessThanOrEquals = '<=',\n}\n\nexport interface VariableVisibilityBase {\n type: VariableVisibilityType;\n}\n\nexport interface VariableVisibilityVisible extends VariableVisibilityBase {\n type: VariableVisibilityType.visible;\n}\n\nexport interface VariableVisibilityInvisible extends VariableVisibilityBase {\n type: VariableVisibilityType.invisible;\n}\n\nexport interface VariableVisibilityConditional extends VariableVisibilityBase {\n type: VariableVisibilityType.conditional;\n layouts: VariableVisibilityLayout[];\n variables: VariableWithValue[];\n}\n\nexport type VariableVisibility =\n VariableVisibilityVisible | VariableVisibilityInvisible | VariableVisibilityConditional;\n\nexport interface VariableVisibilityLayout {\n layoutId: string;\n includeChildren: boolean;\n}\n\nexport interface VariableWithValue {\n id: string;\n value: VariableVisibilityConditionValue;\n}\n\nexport interface VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType;\n}\n\nexport interface VariableVisibilityConditionValueBoolean extends VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType.boolean;\n value: boolean;\n}\n\nexport interface VariableVisibilityConditionValueText extends VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType.text;\n value: string;\n operator: VariableVisibilityOperator;\n}\n\nexport interface VariableVisibilityConditionValueNumber extends VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType.number;\n value: number;\n operator: VariableVisibilityOperator;\n}\n\nexport type VariableVisibilityConditionValue =\n | VariableVisibilityConditionValueBoolean\n | VariableVisibilityConditionValueText\n | VariableVisibilityConditionValueNumber;\n\nexport type VariableUsagesReport = {\n pages: Id[];\n frames: Id[];\n actionTrigger: Id[];\n variables: Id[];\n outputDataSource: boolean;\n};\n\n// Data Source Variable Types\n\nexport type RowId = string;\n\nexport enum DataSourceVariableSourceType {\n injected = 'injected',\n connector = 'connector',\n}\n\nexport type InjectedDataSourceVariableSource = {\n type: DataSourceVariableSourceType.injected;\n model: DataModelProperty[];\n itemIdPropertyName: string;\n};\n\nexport type ConnectorDataSourceVariableSource = {\n type: DataSourceVariableSourceType.connector;\n connectorId: string;\n};\n\nexport type DataSourceVariableSource = InjectedDataSourceVariableSource | ConnectorDataSourceVariableSource;\n\nexport enum DataSourceVariableDisplayOptionsType {\n table = 'table',\n list = 'list',\n}\n\nexport interface DataSourceVariableDisplayOptionsTable {\n type: DataSourceVariableDisplayOptionsType.table;\n}\n\nexport interface DataSourceVariableDisplayOptionsList {\n type: DataSourceVariableDisplayOptionsType.list;\n displayColumn: string;\n}\n\nexport type DataSourceVariableDisplayOptions =\n DataSourceVariableDisplayOptionsTable | DataSourceVariableDisplayOptionsList;\n"],"names":["VariableType","Day","Locale","VariableVisibilityType","VariableVisibilityTargetType","VariableVisibilityOperator","DataSourceVariableSourceType","DataSourceVariableDisplayOptionsType"],"mappings":"AAgCO,IAAK,iCAAAA,kBAAL;AACHA,gBAAA,WAAA,IAAY;AACZA,gBAAA,UAAA,IAAW;AACXA,gBAAA,UAAA,IAAW;AACXA,gBAAA,OAAA,IAAQ;AACRA,gBAAA,MAAA,IAAO;AACPA,gBAAA,SAAA,IAAU;AACVA,gBAAA,OAAA,IAAQ;AACRA,gBAAA,QAAA,IAAS;AACTA,gBAAA,MAAA,IAAO;AACPA,gBAAA,YAAA,IAAa;AAVL,SAAAA;AAAA,GAAA,gBAAA,CAAA,CAAA;AAwHL,IAAK,wBAAAC,SAAL;AACHA,OAAA,QAAA,IAAS;AACTA,OAAA,SAAA,IAAU;AACVA,OAAA,WAAA,IAAY;AACZA,OAAA,UAAA,IAAW;AACXA,OAAA,QAAA,IAAS;AACTA,OAAA,UAAA,IAAW;AACXA,OAAA,QAAA,IAAS;AAPD,SAAAA;AAAA,GAAA,OAAA,CAAA,CAAA;AAUL,IAAK,2BAAAC,YAAL;AACHA,UAAA,OAAA,IAAQ;AACRA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,OAAA,IAAQ;AACRA,UAAA,OAAA,IAAQ;AACRA,UAAA,IAAA,IAAK;AAbG,SAAAA;AAAA,GAAA,UAAA,CAAA,CAAA;AA4EL,IAAK,2CAAAC,4BAAL;AACHA,0BAAA,SAAA,IAAU;AACVA,0BAAA,WAAA,IAAY;AACZA,0BAAA,aAAA,IAAc;AAHN,SAAAA;AAAA,GAAA,0BAAA,CAAA,CAAA;AAML,IAAK,iDAAAC,kCAAL;AACHA,gCAAA,SAAA,IAAU;AACVA,gCAAA,MAAA,IAAO;AACPA,gCAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,gCAAA,CAAA,CAAA;AAML,IAAK,+CAAAC,gCAAL;AACHA,8BAAA,QAAA,IAAS;AACTA,8BAAA,WAAA,IAAY;AACZA,8BAAA,aAAA,IAAc;AACdA,8BAAA,qBAAA,IAAsB;AACtBA,8BAAA,UAAA,IAAW;AACXA,8BAAA,kBAAA,IAAmB;AANX,SAAAA;AAAA,GAAA,8BAAA,CAAA,CAAA;AA8EL,IAAK,iDAAAC,kCAAL;AACHA,gCAAA,UAAA,IAAW;AACXA,gCAAA,WAAA,IAAY;AAFJ,SAAAA;AAAA,GAAA,gCAAA,CAAA,CAAA;AAkBL,IAAK,yDAAAC,0CAAL;AACHA,wCAAA,OAAA,IAAQ;AACRA,wCAAA,MAAA,IAAO;AAFC,SAAAA;AAAA,GAAA,wCAAA,CAAA,CAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"EngineCallbackHandler.cjs.js","sources":["../../../src/utils/EngineCallbackHandler.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { CallbackErrorBehavior, LoggerFunction } from '../types/CommonTypes';\nimport { EngineEventTrigger } from './EngineEventTrigger';\n\nexport class EngineCallbackHandler<T extends (...args: any[]) => any> extends EngineEventTrigger<T> {\n constructor(private handler: () => T | undefined, logger?: LoggerFunction) {\n super(logger);\n }\n /**\n * Executes the defined handler with the provided arguments.\n *\n * @param args The arguments to pass to the callbacks.\n * @returns The result of executing the callbacks.\n */\n trigger(...args: Parameters<T>): ReturnType<T> {\n const handler = this.handler();\n if (handler) {\n return this.createEventHandlerFn(handler, CallbackErrorBehavior.throw)(...args);\n }\n return undefined as ReturnType<T>;\n }\n}\n"],"names":["EngineEventTrigger","CallbackErrorBehavior"],"mappings":";;;;AAIO,MAAM,8BAAiEA,mBAAAA,mBAAsB;AAAA,EAChG,YAAoB,SAA8B,QAAyB;AACvE,UAAM,MAAM;AADI,SAAA,UAAA;AAAA,EAEpB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,WAAW,MAAoC;AAC3C,UAAM,UAAU,KAAK,QAAA;AACrB,QAAI,SAAS;AACT,aAAO,KAAK,qBAAqB,SAASC,YAAAA,sBAAsB,KAAK,EAAE,GAAG,IAAI;AAAA,IAClF;AACA,WAAO;AAAA,EACX;AACJ;;"}
1
+ {"version":3,"file":"EngineCallbackHandler.cjs.js","sources":["../../../src/utils/EngineCallbackHandler.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { CallbackErrorBehavior, LoggerFunction } from '../types/CommonTypes';\nimport { EngineEventTrigger } from './EngineEventTrigger';\n\nexport class EngineCallbackHandler<T extends (...args: any[]) => any> extends EngineEventTrigger<T> {\n constructor(\n private handler: () => T | undefined,\n logger?: LoggerFunction,\n ) {\n super(logger);\n }\n /**\n * Executes the defined handler with the provided arguments.\n *\n * @param args The arguments to pass to the callbacks.\n * @returns The result of executing the callbacks.\n */\n trigger(...args: Parameters<T>): ReturnType<T> {\n const handler = this.handler();\n if (handler) {\n return this.createEventHandlerFn(handler, CallbackErrorBehavior.throw)(...args);\n }\n return undefined as ReturnType<T>;\n }\n}\n"],"names":["EngineEventTrigger","CallbackErrorBehavior"],"mappings":";;;;AAIO,MAAM,8BAAiEA,mBAAAA,mBAAsB;AAAA,EAChG,YACY,SACR,QACF;AACE,UAAM,MAAM;AAHJ,SAAA,UAAA;AAAA,EAIZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,WAAW,MAAoC;AAC3C,UAAM,UAAU,KAAK,QAAA;AACrB,QAAI,SAAS;AACT,aAAO,KAAK,qBAAqB,SAASC,YAAAA,sBAAsB,KAAK,EAAE,GAAG,IAAI;AAAA,IAClF;AACA,WAAO;AAAA,EACX;AACJ;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"EngineCallbackHandler.es.js","sources":["../../../src/utils/EngineCallbackHandler.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { CallbackErrorBehavior, LoggerFunction } from '../types/CommonTypes';\nimport { EngineEventTrigger } from './EngineEventTrigger';\n\nexport class EngineCallbackHandler<T extends (...args: any[]) => any> extends EngineEventTrigger<T> {\n constructor(private handler: () => T | undefined, logger?: LoggerFunction) {\n super(logger);\n }\n /**\n * Executes the defined handler with the provided arguments.\n *\n * @param args The arguments to pass to the callbacks.\n * @returns The result of executing the callbacks.\n */\n trigger(...args: Parameters<T>): ReturnType<T> {\n const handler = this.handler();\n if (handler) {\n return this.createEventHandlerFn(handler, CallbackErrorBehavior.throw)(...args);\n }\n return undefined as ReturnType<T>;\n }\n}\n"],"names":[],"mappings":";;AAIO,MAAM,8BAAiE,mBAAsB;AAAA,EAChG,YAAoB,SAA8B,QAAyB;AACvE,UAAM,MAAM;AADI,SAAA,UAAA;AAAA,EAEpB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,WAAW,MAAoC;AAC3C,UAAM,UAAU,KAAK,QAAA;AACrB,QAAI,SAAS;AACT,aAAO,KAAK,qBAAqB,SAAS,sBAAsB,KAAK,EAAE,GAAG,IAAI;AAAA,IAClF;AACA,WAAO;AAAA,EACX;AACJ;"}
1
+ {"version":3,"file":"EngineCallbackHandler.es.js","sources":["../../../src/utils/EngineCallbackHandler.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { CallbackErrorBehavior, LoggerFunction } from '../types/CommonTypes';\nimport { EngineEventTrigger } from './EngineEventTrigger';\n\nexport class EngineCallbackHandler<T extends (...args: any[]) => any> extends EngineEventTrigger<T> {\n constructor(\n private handler: () => T | undefined,\n logger?: LoggerFunction,\n ) {\n super(logger);\n }\n /**\n * Executes the defined handler with the provided arguments.\n *\n * @param args The arguments to pass to the callbacks.\n * @returns The result of executing the callbacks.\n */\n trigger(...args: Parameters<T>): ReturnType<T> {\n const handler = this.handler();\n if (handler) {\n return this.createEventHandlerFn(handler, CallbackErrorBehavior.throw)(...args);\n }\n return undefined as ReturnType<T>;\n }\n}\n"],"names":[],"mappings":";;AAIO,MAAM,8BAAiE,mBAAsB;AAAA,EAChG,YACY,SACR,QACF;AACE,UAAM,MAAM;AAHJ,SAAA,UAAA;AAAA,EAIZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,WAAW,MAAoC;AAC3C,UAAM,UAAU,KAAK,QAAA;AACrB,QAAI,SAAS;AACT,aAAO,KAAK,qBAAqB,SAAS,sBAAsB,KAAK,EAAE,GAAG,IAAI;AAAA,IAClF;AACA,WAAO;AAAA,EACX;AACJ;"}
@@ -1 +1 @@
1
- {"version":3,"file":"EngineEvent.cjs.js","sources":["../../../src/utils/EngineEvent.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { CallbackErrorBehavior, LoggerFunction } from '../types/CommonTypes';\nimport { EngineEventTrigger } from './EngineEventTrigger';\n\ninterface Unsubscriber {\n (): void;\n}\n\nexport class EngineEvent<T extends (...args: any[]) => void> extends EngineEventTrigger<T> {\n private subscriptions: Set<T> = new Set();\n\n constructor(private legacyHandler: () => T | undefined, logger?: LoggerFunction) {\n super(logger);\n }\n\n /**\n * Executes the registered callbacks with provided arguments\n *\n * @param args The arguments to pass to the callbacks.\n * @returns The result of executing the callbacks.\n */\n trigger(...args: Parameters<T>): ReturnType<T> {\n const handler = this.legacyHandler();\n if (handler) {\n this.createEventHandlerFn(handler, CallbackErrorBehavior.log)(...args);\n }\n for (const callback of this.subscriptions) {\n callback(...args);\n }\n return undefined as ReturnType<T>;\n }\n\n /**\n * Registers a callback function.\n *\n * @param callback - The callback function to register. This function will be invoked when the event occurs.\n * @param errorBehavior - An optional parameter to define how to handle errors that appear in the callback function.\n * Accepted values are:\n * - \"log\": Logs the error to the console (default behavior)\n * - \"throw\": Throws an error. Keep in mind that throwing of error in one of the callback will prevent calling of others\n * @returns A function to unsubscribe the callback, preventing it from being invoked in the future.\n */\n registerCallback(callback: T, errorBehavior: CallbackErrorBehavior = CallbackErrorBehavior.log): Unsubscriber {\n const callbackFn = this.createEventHandlerFn(callback, errorBehavior);\n this.subscriptions.add(callbackFn);\n\n return () => {\n this.subscriptions.delete(callbackFn);\n };\n }\n}\n"],"names":["EngineEventTrigger","CallbackErrorBehavior"],"mappings":";;;;AAQO,MAAM,oBAAwDA,mBAAAA,mBAAsB;AAAA,EAGvF,YAAoB,eAAoC,QAAyB;AAC7E,UAAM,MAAM;AADI,SAAA,gBAAA;AAFpB,SAAQ,oCAA4B,IAAA;AAAA,EAIpC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,WAAW,MAAoC;AAC3C,UAAM,UAAU,KAAK,cAAA;AACrB,QAAI,SAAS;AACT,WAAK,qBAAqB,SAASC,YAAAA,sBAAsB,GAAG,EAAE,GAAG,IAAI;AAAA,IACzE;AACA,eAAW,YAAY,KAAK,eAAe;AACvC,eAAS,GAAG,IAAI;AAAA,IACpB;AACA,WAAO;AAAA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,iBAAiB,UAAa,gBAAuCA,YAAAA,sBAAsB,KAAmB;AAC1G,UAAM,aAAa,KAAK,qBAAqB,UAAU,aAAa;AACpE,SAAK,cAAc,IAAI,UAAU;AAEjC,WAAO,MAAM;AACT,WAAK,cAAc,OAAO,UAAU;AAAA,IACxC;AAAA,EACJ;AACJ;;"}
1
+ {"version":3,"file":"EngineEvent.cjs.js","sources":["../../../src/utils/EngineEvent.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { CallbackErrorBehavior, LoggerFunction } from '../types/CommonTypes';\nimport { EngineEventTrigger } from './EngineEventTrigger';\n\ninterface Unsubscriber {\n (): void;\n}\n\nexport class EngineEvent<T extends (...args: any[]) => void> extends EngineEventTrigger<T> {\n private subscriptions: Set<T> = new Set();\n\n constructor(\n private legacyHandler: () => T | undefined,\n logger?: LoggerFunction,\n ) {\n super(logger);\n }\n\n /**\n * Executes the registered callbacks with provided arguments\n *\n * @param args The arguments to pass to the callbacks.\n * @returns The result of executing the callbacks.\n */\n trigger(...args: Parameters<T>): ReturnType<T> {\n const handler = this.legacyHandler();\n if (handler) {\n this.createEventHandlerFn(handler, CallbackErrorBehavior.log)(...args);\n }\n for (const callback of this.subscriptions) {\n callback(...args);\n }\n return undefined as ReturnType<T>;\n }\n\n /**\n * Registers a callback function.\n *\n * @param callback - The callback function to register. This function will be invoked when the event occurs.\n * @param errorBehavior - An optional parameter to define how to handle errors that appear in the callback function.\n * Accepted values are:\n * - \"log\": Logs the error to the console (default behavior)\n * - \"throw\": Throws an error. Keep in mind that throwing of error in one of the callback will prevent calling of others\n * @returns A function to unsubscribe the callback, preventing it from being invoked in the future.\n */\n registerCallback(callback: T, errorBehavior: CallbackErrorBehavior = CallbackErrorBehavior.log): Unsubscriber {\n const callbackFn = this.createEventHandlerFn(callback, errorBehavior);\n this.subscriptions.add(callbackFn);\n\n return () => {\n this.subscriptions.delete(callbackFn);\n };\n }\n}\n"],"names":["EngineEventTrigger","CallbackErrorBehavior"],"mappings":";;;;AAQO,MAAM,oBAAwDA,mBAAAA,mBAAsB;AAAA,EAGvF,YACY,eACR,QACF;AACE,UAAM,MAAM;AAHJ,SAAA,gBAAA;AAHZ,SAAQ,oCAA4B,IAAA;AAAA,EAOpC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,WAAW,MAAoC;AAC3C,UAAM,UAAU,KAAK,cAAA;AACrB,QAAI,SAAS;AACT,WAAK,qBAAqB,SAASC,YAAAA,sBAAsB,GAAG,EAAE,GAAG,IAAI;AAAA,IACzE;AACA,eAAW,YAAY,KAAK,eAAe;AACvC,eAAS,GAAG,IAAI;AAAA,IACpB;AACA,WAAO;AAAA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,iBAAiB,UAAa,gBAAuCA,YAAAA,sBAAsB,KAAmB;AAC1G,UAAM,aAAa,KAAK,qBAAqB,UAAU,aAAa;AACpE,SAAK,cAAc,IAAI,UAAU;AAEjC,WAAO,MAAM;AACT,WAAK,cAAc,OAAO,UAAU;AAAA,IACxC;AAAA,EACJ;AACJ;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"EngineEvent.es.js","sources":["../../../src/utils/EngineEvent.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { CallbackErrorBehavior, LoggerFunction } from '../types/CommonTypes';\nimport { EngineEventTrigger } from './EngineEventTrigger';\n\ninterface Unsubscriber {\n (): void;\n}\n\nexport class EngineEvent<T extends (...args: any[]) => void> extends EngineEventTrigger<T> {\n private subscriptions: Set<T> = new Set();\n\n constructor(private legacyHandler: () => T | undefined, logger?: LoggerFunction) {\n super(logger);\n }\n\n /**\n * Executes the registered callbacks with provided arguments\n *\n * @param args The arguments to pass to the callbacks.\n * @returns The result of executing the callbacks.\n */\n trigger(...args: Parameters<T>): ReturnType<T> {\n const handler = this.legacyHandler();\n if (handler) {\n this.createEventHandlerFn(handler, CallbackErrorBehavior.log)(...args);\n }\n for (const callback of this.subscriptions) {\n callback(...args);\n }\n return undefined as ReturnType<T>;\n }\n\n /**\n * Registers a callback function.\n *\n * @param callback - The callback function to register. This function will be invoked when the event occurs.\n * @param errorBehavior - An optional parameter to define how to handle errors that appear in the callback function.\n * Accepted values are:\n * - \"log\": Logs the error to the console (default behavior)\n * - \"throw\": Throws an error. Keep in mind that throwing of error in one of the callback will prevent calling of others\n * @returns A function to unsubscribe the callback, preventing it from being invoked in the future.\n */\n registerCallback(callback: T, errorBehavior: CallbackErrorBehavior = CallbackErrorBehavior.log): Unsubscriber {\n const callbackFn = this.createEventHandlerFn(callback, errorBehavior);\n this.subscriptions.add(callbackFn);\n\n return () => {\n this.subscriptions.delete(callbackFn);\n };\n }\n}\n"],"names":[],"mappings":";;AAQO,MAAM,oBAAwD,mBAAsB;AAAA,EAGvF,YAAoB,eAAoC,QAAyB;AAC7E,UAAM,MAAM;AADI,SAAA,gBAAA;AAFpB,SAAQ,oCAA4B,IAAA;AAAA,EAIpC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,WAAW,MAAoC;AAC3C,UAAM,UAAU,KAAK,cAAA;AACrB,QAAI,SAAS;AACT,WAAK,qBAAqB,SAAS,sBAAsB,GAAG,EAAE,GAAG,IAAI;AAAA,IACzE;AACA,eAAW,YAAY,KAAK,eAAe;AACvC,eAAS,GAAG,IAAI;AAAA,IACpB;AACA,WAAO;AAAA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,iBAAiB,UAAa,gBAAuC,sBAAsB,KAAmB;AAC1G,UAAM,aAAa,KAAK,qBAAqB,UAAU,aAAa;AACpE,SAAK,cAAc,IAAI,UAAU;AAEjC,WAAO,MAAM;AACT,WAAK,cAAc,OAAO,UAAU;AAAA,IACxC;AAAA,EACJ;AACJ;"}
1
+ {"version":3,"file":"EngineEvent.es.js","sources":["../../../src/utils/EngineEvent.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { CallbackErrorBehavior, LoggerFunction } from '../types/CommonTypes';\nimport { EngineEventTrigger } from './EngineEventTrigger';\n\ninterface Unsubscriber {\n (): void;\n}\n\nexport class EngineEvent<T extends (...args: any[]) => void> extends EngineEventTrigger<T> {\n private subscriptions: Set<T> = new Set();\n\n constructor(\n private legacyHandler: () => T | undefined,\n logger?: LoggerFunction,\n ) {\n super(logger);\n }\n\n /**\n * Executes the registered callbacks with provided arguments\n *\n * @param args The arguments to pass to the callbacks.\n * @returns The result of executing the callbacks.\n */\n trigger(...args: Parameters<T>): ReturnType<T> {\n const handler = this.legacyHandler();\n if (handler) {\n this.createEventHandlerFn(handler, CallbackErrorBehavior.log)(...args);\n }\n for (const callback of this.subscriptions) {\n callback(...args);\n }\n return undefined as ReturnType<T>;\n }\n\n /**\n * Registers a callback function.\n *\n * @param callback - The callback function to register. This function will be invoked when the event occurs.\n * @param errorBehavior - An optional parameter to define how to handle errors that appear in the callback function.\n * Accepted values are:\n * - \"log\": Logs the error to the console (default behavior)\n * - \"throw\": Throws an error. Keep in mind that throwing of error in one of the callback will prevent calling of others\n * @returns A function to unsubscribe the callback, preventing it from being invoked in the future.\n */\n registerCallback(callback: T, errorBehavior: CallbackErrorBehavior = CallbackErrorBehavior.log): Unsubscriber {\n const callbackFn = this.createEventHandlerFn(callback, errorBehavior);\n this.subscriptions.add(callbackFn);\n\n return () => {\n this.subscriptions.delete(callbackFn);\n };\n }\n}\n"],"names":[],"mappings":";;AAQO,MAAM,oBAAwD,mBAAsB;AAAA,EAGvF,YACY,eACR,QACF;AACE,UAAM,MAAM;AAHJ,SAAA,gBAAA;AAHZ,SAAQ,oCAA4B,IAAA;AAAA,EAOpC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,WAAW,MAAoC;AAC3C,UAAM,UAAU,KAAK,cAAA;AACrB,QAAI,SAAS;AACT,WAAK,qBAAqB,SAAS,sBAAsB,GAAG,EAAE,GAAG,IAAI;AAAA,IACzE;AACA,eAAW,YAAY,KAAK,eAAe;AACvC,eAAS,GAAG,IAAI;AAAA,IACpB;AACA,WAAO;AAAA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,iBAAiB,UAAa,gBAAuC,sBAAsB,KAAmB;AAC1G,UAAM,aAAa,KAAK,qBAAqB,UAAU,aAAa;AACpE,SAAK,cAAc,IAAI,UAAU;AAEjC,WAAO,MAAM;AACT,WAAK,cAAc,OAAO,UAAU;AAAA,IACxC;AAAA,EACJ;AACJ;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chili-publish/studio-sdk",
3
3
  "private": false,
4
- "version": "1.46.1",
4
+ "version": "1.47.0",
5
5
  "description": "The sdk for the chili editor",
6
6
  "repository": {
7
7
  "type": "git",
@@ -18,32 +18,34 @@
18
18
  "@babel/preset-env": "^7.14.8",
19
19
  "@babel/preset-typescript": "^7.14.5",
20
20
  "@babel/runtime": "^7.14.8",
21
- "cross-env": "^7.0.3",
21
+ "@eslint/js": "^9.32.0",
22
22
  "@inthepocket/npm-license-scraper": "^2.3.0",
23
23
  "@testing-library/jest-dom": "^5.14.1",
24
24
  "@types/jest": "^29.5.0",
25
- "@typescript-eslint/eslint-plugin": "^5.36.0",
26
- "@typescript-eslint/parser": "^5.36.0",
27
- "eslint": "^7.31.0",
28
- "eslint-config-prettier": "^8.3.0",
29
- "eslint-plugin-import": "^2.23.4",
30
- "eslint-plugin-jsx-a11y": "^6.4.1",
31
- "eslint-plugin-prettier": "^3.4.0",
32
- "husky": "^7.0.1",
33
- "jest": "^27.0.6",
25
+ "cross-env": "^7.0.3",
26
+ "eslint": "^9.39.1",
27
+ "eslint-config-prettier": "^9.1.0",
28
+ "eslint-import-resolver-node": "^0.4.0",
29
+ "eslint-plugin-import": "^2.32.0",
30
+ "eslint-plugin-jsx-a11y": "^6.10.2",
31
+ "eslint-plugin-prettier": "^5.1.3",
32
+ "globals": "^15.15.0",
33
+ "jest": "^29.7.0",
34
+ "jest-environment-jsdom": "^29.5.0",
34
35
  "jest-junit": "^12.3.0",
35
- "prettier": "^2.3.2",
36
- "pretty-quick": "^3.1.1",
36
+ "prettier": "^3.2.5",
37
+ "pretty-quick": "^4.2.2",
37
38
  "shx": "^0.3.3",
38
39
  "ts-jest": "^29.2.5",
39
40
  "typedoc": "^0.27.9",
40
41
  "typedoc-plugin-markdown": "^3.13.4",
41
42
  "typescript": "^5.7.3",
43
+ "typescript-eslint": "^8.53.1",
42
44
  "vite": "^6.1.6",
43
45
  "vite-plugin-dts": "^4.5.3"
44
46
  },
45
47
  "engines": {
46
- "node": ">=18.0.0"
48
+ "node": ">=22.0.0 <25.0.0"
47
49
  },
48
50
  "scripts": {
49
51
  "clean": "shx rm -rf _bundles lib connector-types",
@@ -61,11 +63,6 @@
61
63
  "build-docs-md": "npx typedoc --out ./docs/md",
62
64
  "build-docs-html": "npx typedoc --out ./docs/html --readme ./src/README_HTML.md"
63
65
  },
64
- "husky": {
65
- "hooks": {
66
- "pre-commit": "npm run format-staged"
67
- }
68
- },
69
66
  "main": "./_bundles/main.js",
70
67
  "module": "./lib/src/index.es.js",
71
68
  "browser": "./_bundles/main.js",
@@ -97,4 +94,4 @@
97
94
  "doc": "docs",
98
95
  "lib": "lib"
99
96
  }
100
- }
97
+ }