@chili-publish/studio-sdk 1.43.0 → 1.44.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 (695) hide show
  1. package/_bundles/main.js +2 -2
  2. package/_bundles/main.js.map +1 -1
  3. package/connector-types/src/Connector.Shared.d.ts +1 -1
  4. package/connector-types/src/DataConnector.d.ts +8 -2
  5. package/lib/src/connector-types/src/Common.cjs.js +12 -0
  6. package/lib/src/connector-types/src/Common.cjs.js.map +1 -0
  7. package/lib/src/connector-types/src/Common.es.js +12 -0
  8. package/lib/src/connector-types/src/Common.es.js.map +1 -0
  9. package/lib/src/controllers/ActionController.cjs.js +78 -0
  10. package/lib/src/controllers/ActionController.cjs.js.map +1 -0
  11. package/lib/src/controllers/ActionController.es.js +78 -0
  12. package/lib/src/controllers/ActionController.es.js.map +1 -0
  13. package/lib/src/controllers/AnimationController.cjs.js +68 -0
  14. package/lib/src/controllers/AnimationController.cjs.js.map +1 -0
  15. package/lib/src/controllers/AnimationController.es.js +68 -0
  16. package/lib/src/controllers/AnimationController.es.js.map +1 -0
  17. package/lib/src/controllers/BarcodeController.cjs.js +159 -0
  18. package/lib/src/controllers/BarcodeController.cjs.js.map +1 -0
  19. package/lib/src/controllers/BarcodeController.es.js +159 -0
  20. package/lib/src/controllers/BarcodeController.es.js.map +1 -0
  21. package/lib/src/controllers/BrandKitController.cjs.js +142 -0
  22. package/lib/src/controllers/BrandKitController.cjs.js.map +1 -0
  23. package/lib/src/controllers/BrandKitController.es.js +142 -0
  24. package/lib/src/controllers/BrandKitController.es.js.map +1 -0
  25. package/lib/src/controllers/CanvasController.cjs.js +45 -0
  26. package/lib/src/controllers/CanvasController.cjs.js.map +1 -0
  27. package/lib/src/controllers/CanvasController.es.js +45 -0
  28. package/lib/src/controllers/CanvasController.es.js.map +1 -0
  29. package/lib/src/controllers/CharacterStyleController.cjs.js +58 -0
  30. package/lib/src/controllers/CharacterStyleController.cjs.js.map +1 -0
  31. package/lib/src/controllers/CharacterStyleController.es.js +58 -0
  32. package/lib/src/controllers/CharacterStyleController.es.js.map +1 -0
  33. package/lib/src/controllers/ClipboardController.cjs.js +54 -0
  34. package/lib/src/controllers/ClipboardController.cjs.js.map +1 -0
  35. package/lib/src/controllers/ClipboardController.es.js +54 -0
  36. package/lib/src/controllers/ClipboardController.es.js.map +1 -0
  37. package/lib/src/controllers/ColorConversionController.cjs.js +30 -0
  38. package/lib/src/controllers/ColorConversionController.cjs.js.map +1 -0
  39. package/lib/src/controllers/ColorConversionController.es.js +30 -0
  40. package/lib/src/controllers/ColorConversionController.es.js.map +1 -0
  41. package/lib/src/controllers/ColorStyleController.cjs.js +63 -0
  42. package/lib/src/controllers/ColorStyleController.cjs.js.map +1 -0
  43. package/lib/src/controllers/ColorStyleController.es.js +63 -0
  44. package/lib/src/controllers/ColorStyleController.es.js.map +1 -0
  45. package/lib/src/controllers/ComponentConnectorController.cjs.js +54 -0
  46. package/lib/src/controllers/ComponentConnectorController.cjs.js.map +1 -0
  47. package/lib/src/controllers/ComponentConnectorController.es.js +54 -0
  48. package/lib/src/controllers/ComponentConnectorController.es.js.map +1 -0
  49. package/lib/src/controllers/ComponentController.cjs.js +38 -0
  50. package/lib/src/controllers/ComponentController.cjs.js.map +1 -0
  51. package/lib/src/controllers/ComponentController.es.js +38 -0
  52. package/lib/src/controllers/ComponentController.es.js.map +1 -0
  53. package/lib/src/controllers/ComponentGridController.cjs.js +50 -0
  54. package/lib/src/controllers/ComponentGridController.cjs.js.map +1 -0
  55. package/lib/src/controllers/ComponentGridController.d.ts +59 -0
  56. package/lib/src/controllers/ComponentGridController.es.js +50 -0
  57. package/lib/src/controllers/ComponentGridController.es.js.map +1 -0
  58. package/lib/src/controllers/ConfigurationController.cjs.js +68 -0
  59. package/lib/src/controllers/ConfigurationController.cjs.js.map +1 -0
  60. package/lib/src/controllers/ConfigurationController.d.ts +6 -0
  61. package/lib/src/controllers/ConfigurationController.es.js +68 -0
  62. package/lib/src/controllers/ConfigurationController.es.js.map +1 -0
  63. package/lib/src/controllers/ConnectorController.cjs.js +190 -0
  64. package/lib/src/controllers/ConnectorController.cjs.js.map +1 -0
  65. package/lib/src/controllers/ConnectorController.es.js +190 -0
  66. package/lib/src/controllers/ConnectorController.es.js.map +1 -0
  67. package/lib/src/controllers/DataConnectorController.cjs.js +88 -0
  68. package/lib/src/controllers/DataConnectorController.cjs.js.map +1 -0
  69. package/lib/src/controllers/DataConnectorController.es.js +88 -0
  70. package/lib/src/controllers/DataConnectorController.es.js.map +1 -0
  71. package/lib/src/controllers/DataSourceController.cjs.js +46 -0
  72. package/lib/src/controllers/DataSourceController.cjs.js.map +1 -0
  73. package/lib/src/controllers/DataSourceController.es.js +46 -0
  74. package/lib/src/controllers/DataSourceController.es.js.map +1 -0
  75. package/lib/src/controllers/DebugController.cjs.js +42 -0
  76. package/lib/src/controllers/DebugController.cjs.js.map +1 -0
  77. package/lib/src/controllers/DebugController.es.js +42 -0
  78. package/lib/src/controllers/DebugController.es.js.map +1 -0
  79. package/lib/src/controllers/DocumentController.cjs.js +40 -0
  80. package/lib/src/controllers/DocumentController.cjs.js.map +1 -0
  81. package/lib/src/controllers/DocumentController.d.ts +6 -0
  82. package/lib/src/controllers/DocumentController.es.js +40 -0
  83. package/lib/src/controllers/DocumentController.es.js.map +1 -0
  84. package/lib/src/controllers/ExperimentController.cjs.js +60 -0
  85. package/lib/src/controllers/ExperimentController.cjs.js.map +1 -0
  86. package/lib/src/controllers/ExperimentController.es.js +60 -0
  87. package/lib/src/controllers/ExperimentController.es.js.map +1 -0
  88. package/lib/src/controllers/FontConnectorController.cjs.js +58 -0
  89. package/lib/src/controllers/FontConnectorController.cjs.js.map +1 -0
  90. package/lib/src/controllers/FontConnectorController.es.js +58 -0
  91. package/lib/src/controllers/FontConnectorController.es.js.map +1 -0
  92. package/lib/src/controllers/FontController.cjs.js +82 -0
  93. package/lib/src/controllers/FontController.cjs.js.map +1 -0
  94. package/lib/src/controllers/FontController.es.js +82 -0
  95. package/lib/src/controllers/FontController.es.js.map +1 -0
  96. package/lib/src/controllers/FrameController.cjs.js +585 -0
  97. package/lib/src/controllers/FrameController.cjs.js.map +1 -0
  98. package/lib/src/controllers/FrameController.d.ts +10 -1
  99. package/lib/src/controllers/FrameController.es.js +585 -0
  100. package/lib/src/controllers/FrameController.es.js.map +1 -0
  101. package/lib/src/controllers/GradientStyleController.cjs.js +59 -0
  102. package/lib/src/controllers/GradientStyleController.cjs.js.map +1 -0
  103. package/lib/src/controllers/GradientStyleController.es.js +59 -0
  104. package/lib/src/controllers/GradientStyleController.es.js.map +1 -0
  105. package/lib/src/controllers/InfoController.cjs.js +12 -0
  106. package/lib/src/controllers/InfoController.cjs.js.map +1 -0
  107. package/lib/src/controllers/InfoController.es.js +12 -0
  108. package/lib/src/controllers/InfoController.es.js.map +1 -0
  109. package/lib/src/controllers/LayoutController.cjs.js +179 -0
  110. package/lib/src/controllers/LayoutController.cjs.js.map +1 -0
  111. package/lib/src/controllers/LayoutController.es.js +179 -0
  112. package/lib/src/controllers/LayoutController.es.js.map +1 -0
  113. package/lib/src/controllers/MediaConnectorController.cjs.js +93 -0
  114. package/lib/src/controllers/MediaConnectorController.cjs.js.map +1 -0
  115. package/lib/src/controllers/MediaConnectorController.es.js +93 -0
  116. package/lib/src/controllers/MediaConnectorController.es.js.map +1 -0
  117. package/lib/src/controllers/PageController.cjs.js +95 -0
  118. package/lib/src/controllers/PageController.cjs.js.map +1 -0
  119. package/lib/src/controllers/PageController.es.js +95 -0
  120. package/lib/src/controllers/PageController.es.js.map +1 -0
  121. package/lib/src/controllers/ParagraphStyleController.cjs.js +58 -0
  122. package/lib/src/controllers/ParagraphStyleController.cjs.js.map +1 -0
  123. package/lib/src/controllers/ParagraphStyleController.es.js +58 -0
  124. package/lib/src/controllers/ParagraphStyleController.es.js.map +1 -0
  125. package/lib/src/controllers/ShapeController.cjs.js +78 -0
  126. package/lib/src/controllers/ShapeController.cjs.js.map +1 -0
  127. package/lib/src/controllers/ShapeController.es.js +78 -0
  128. package/lib/src/controllers/ShapeController.es.js.map +1 -0
  129. package/lib/src/controllers/SubscriberController.cjs.js +188 -0
  130. package/lib/src/controllers/SubscriberController.cjs.js.map +1 -0
  131. package/lib/src/controllers/SubscriberController.d.ts +6 -0
  132. package/lib/src/controllers/SubscriberController.es.js +188 -0
  133. package/lib/src/controllers/SubscriberController.es.js.map +1 -0
  134. package/lib/src/controllers/TextStyleController.cjs.js +38 -0
  135. package/lib/src/controllers/TextStyleController.cjs.js.map +1 -0
  136. package/lib/src/controllers/TextStyleController.es.js +38 -0
  137. package/lib/src/controllers/TextStyleController.es.js.map +1 -0
  138. package/lib/src/controllers/ToolController.cjs.js +65 -0
  139. package/lib/src/controllers/ToolController.cjs.js.map +1 -0
  140. package/lib/src/controllers/ToolController.d.ts +4 -0
  141. package/lib/src/controllers/ToolController.es.js +65 -0
  142. package/lib/src/controllers/ToolController.es.js.map +1 -0
  143. package/lib/src/controllers/UndoManagerController.cjs.js +134 -0
  144. package/lib/src/controllers/UndoManagerController.cjs.js.map +1 -0
  145. package/lib/src/controllers/UndoManagerController.es.js +134 -0
  146. package/lib/src/controllers/UndoManagerController.es.js.map +1 -0
  147. package/lib/src/controllers/UtilsController.cjs.js +97 -0
  148. package/lib/src/controllers/UtilsController.cjs.js.map +1 -0
  149. package/lib/src/controllers/UtilsController.es.js +97 -0
  150. package/lib/src/controllers/UtilsController.es.js.map +1 -0
  151. package/lib/src/controllers/VariableController.cjs.js +433 -0
  152. package/lib/src/controllers/VariableController.cjs.js.map +1 -0
  153. package/lib/src/controllers/VariableController.d.ts +16 -0
  154. package/lib/src/controllers/VariableController.es.js +433 -0
  155. package/lib/src/controllers/VariableController.es.js.map +1 -0
  156. package/lib/src/exceptions/AsyncExceptions.cjs.js +22 -0
  157. package/lib/src/exceptions/AsyncExceptions.cjs.js.map +1 -0
  158. package/lib/src/exceptions/AsyncExceptions.es.js +22 -0
  159. package/lib/src/exceptions/AsyncExceptions.es.js.map +1 -0
  160. package/lib/src/exceptions/Codes.cjs.js +7 -0
  161. package/lib/src/exceptions/Codes.cjs.js.map +1 -0
  162. package/lib/src/exceptions/Codes.es.js +7 -0
  163. package/lib/src/exceptions/Codes.es.js.map +1 -0
  164. package/lib/src/exceptions/Exceptions.cjs.js +17 -0
  165. package/lib/src/exceptions/Exceptions.cjs.js.map +1 -0
  166. package/lib/src/exceptions/Exceptions.es.js +17 -0
  167. package/lib/src/exceptions/Exceptions.es.js.map +1 -0
  168. package/lib/src/exceptions/Helpers.cjs.js +50 -0
  169. package/lib/src/exceptions/Helpers.cjs.js.map +1 -0
  170. package/lib/src/exceptions/Helpers.es.js +50 -0
  171. package/lib/src/exceptions/Helpers.es.js.map +1 -0
  172. package/lib/src/index.cjs.js +138 -0
  173. package/lib/src/index.cjs.js.map +1 -0
  174. package/lib/src/index.d.ts +8 -4
  175. package/lib/src/index.es.js +138 -0
  176. package/lib/src/index.es.js.map +1 -0
  177. package/lib/src/interactions/Connector.cjs.js +199 -0
  178. package/lib/src/interactions/Connector.cjs.js.map +1 -0
  179. package/lib/src/interactions/Connector.d.ts +1 -0
  180. package/lib/src/interactions/Connector.es.js +199 -0
  181. package/lib/src/interactions/Connector.es.js.map +1 -0
  182. package/lib/src/next/NextInitiator.cjs.js +28 -0
  183. package/lib/src/next/NextInitiator.cjs.js.map +1 -0
  184. package/lib/src/next/NextInitiator.es.js +28 -0
  185. package/lib/src/next/NextInitiator.es.js.map +1 -0
  186. package/lib/src/next/controllers/BrandKitController.cjs.js +34 -0
  187. package/lib/src/next/controllers/BrandKitController.cjs.js.map +1 -0
  188. package/lib/src/next/controllers/BrandKitController.es.js +34 -0
  189. package/lib/src/next/controllers/BrandKitController.es.js.map +1 -0
  190. package/lib/src/next/controllers/ConnectorController.cjs.js +38 -0
  191. package/lib/src/next/controllers/ConnectorController.cjs.js.map +1 -0
  192. package/lib/src/next/controllers/ConnectorController.es.js +38 -0
  193. package/lib/src/next/controllers/ConnectorController.es.js.map +1 -0
  194. package/lib/src/next/controllers/PageController.cjs.js +40 -0
  195. package/lib/src/next/controllers/PageController.cjs.js.map +1 -0
  196. package/lib/src/next/controllers/PageController.es.js +40 -0
  197. package/lib/src/next/controllers/PageController.es.js.map +1 -0
  198. package/lib/src/next/controllers/SubscriberController.cjs.js +24 -0
  199. package/lib/src/next/controllers/SubscriberController.cjs.js.map +1 -0
  200. package/lib/src/next/controllers/SubscriberController.es.js +24 -0
  201. package/lib/src/next/controllers/SubscriberController.es.js.map +1 -0
  202. package/lib/src/next/controllers/VariableController.cjs.js +87 -0
  203. package/lib/src/next/controllers/VariableController.cjs.js.map +1 -0
  204. package/lib/src/next/controllers/VariableController.es.js +87 -0
  205. package/lib/src/next/controllers/VariableController.es.js.map +1 -0
  206. package/lib/src/next/index.cjs.js +5 -0
  207. package/lib/src/next/index.cjs.js.map +1 -0
  208. package/lib/src/next/index.es.js +5 -0
  209. package/lib/src/next/index.es.js.map +1 -0
  210. package/lib/src/next/types/ConnectorTypes.cjs.js +10 -0
  211. package/lib/src/next/types/ConnectorTypes.cjs.js.map +1 -0
  212. package/lib/src/next/types/ConnectorTypes.es.js +10 -0
  213. package/lib/src/next/types/ConnectorTypes.es.js.map +1 -0
  214. package/lib/src/sdk/editor-engine.json.cjs.js +9 -0
  215. package/lib/src/sdk/editor-engine.json.cjs.js.map +1 -0
  216. package/lib/src/sdk/editor-engine.json.es.js +9 -0
  217. package/lib/src/sdk/editor-engine.json.es.js.map +1 -0
  218. package/lib/src/sdk/package.json.cjs.js +9 -0
  219. package/lib/src/sdk/package.json.cjs.js.map +1 -0
  220. package/lib/src/sdk/package.json.es.js +9 -0
  221. package/lib/src/sdk/package.json.es.js.map +1 -0
  222. package/lib/src/sdk.cjs.js +231 -0
  223. package/lib/src/sdk.cjs.js.map +1 -0
  224. package/lib/src/sdk.d.ts +2 -0
  225. package/lib/src/sdk.es.js +231 -0
  226. package/lib/src/sdk.es.js.map +1 -0
  227. package/lib/src/types/ActionTypes.cjs.js +12 -0
  228. package/lib/src/types/ActionTypes.cjs.js.map +1 -0
  229. package/lib/src/types/ActionTypes.es.js +12 -0
  230. package/lib/src/types/ActionTypes.es.js.map +1 -0
  231. package/lib/src/types/AnimationTypes.cjs.js +56 -0
  232. package/lib/src/types/AnimationTypes.cjs.js.map +1 -0
  233. package/lib/src/types/AnimationTypes.es.js +56 -0
  234. package/lib/src/types/AnimationTypes.es.js.map +1 -0
  235. package/lib/src/types/BarcodeTypes.cjs.js +45 -0
  236. package/lib/src/types/BarcodeTypes.cjs.js.map +1 -0
  237. package/lib/src/types/BarcodeTypes.es.js +45 -0
  238. package/lib/src/types/BarcodeTypes.es.js.map +1 -0
  239. package/lib/src/types/ColorStyleTypes.cjs.js +23 -0
  240. package/lib/src/types/ColorStyleTypes.cjs.js.map +1 -0
  241. package/lib/src/types/ColorStyleTypes.es.js +23 -0
  242. package/lib/src/types/ColorStyleTypes.es.js.map +1 -0
  243. package/lib/src/types/CommonTypes.cjs.js +30 -0
  244. package/lib/src/types/CommonTypes.cjs.js.map +1 -0
  245. package/lib/src/types/CommonTypes.d.ts +8 -0
  246. package/lib/src/types/CommonTypes.es.js +30 -0
  247. package/lib/src/types/CommonTypes.es.js.map +1 -0
  248. package/lib/src/types/ComponentConnectorTypes.cjs.js +10 -0
  249. package/lib/src/types/ComponentConnectorTypes.cjs.js.map +1 -0
  250. package/lib/src/types/ComponentConnectorTypes.es.js +10 -0
  251. package/lib/src/types/ComponentConnectorTypes.es.js.map +1 -0
  252. package/lib/src/types/ComponentGridTypes.cjs.js +8 -0
  253. package/lib/src/types/ComponentGridTypes.cjs.js.map +1 -0
  254. package/lib/src/types/ComponentGridTypes.d.ts +25 -0
  255. package/lib/src/types/ComponentGridTypes.es.js +8 -0
  256. package/lib/src/types/ComponentGridTypes.es.js.map +1 -0
  257. package/lib/src/types/ConfigurationTypes.cjs.js +39 -0
  258. package/lib/src/types/ConfigurationTypes.cjs.js.map +1 -0
  259. package/lib/src/types/ConfigurationTypes.d.ts +2 -0
  260. package/lib/src/types/ConfigurationTypes.es.js +39 -0
  261. package/lib/src/types/ConfigurationTypes.es.js.map +1 -0
  262. package/lib/src/types/ConnectorTypes.cjs.js +159 -0
  263. package/lib/src/types/ConnectorTypes.cjs.js.map +1 -0
  264. package/lib/src/types/ConnectorTypes.d.ts +10 -6
  265. package/lib/src/types/ConnectorTypes.es.js +159 -0
  266. package/lib/src/types/ConnectorTypes.es.js.map +1 -0
  267. package/lib/src/types/DataConnectorTypes.d.ts +1 -1
  268. package/lib/src/types/DocumentTypes.cjs.js +19 -0
  269. package/lib/src/types/DocumentTypes.cjs.js.map +1 -0
  270. package/lib/src/types/DocumentTypes.es.js +19 -0
  271. package/lib/src/types/DocumentTypes.es.js.map +1 -0
  272. package/lib/src/types/EngineEditModeTypes.cjs.js +13 -0
  273. package/lib/src/types/EngineEditModeTypes.cjs.js.map +1 -0
  274. package/lib/src/types/EngineEditModeTypes.es.js +13 -0
  275. package/lib/src/types/EngineEditModeTypes.es.js.map +1 -0
  276. package/lib/src/types/FontConnectorTypes.cjs.js +9 -0
  277. package/lib/src/types/FontConnectorTypes.cjs.js.map +1 -0
  278. package/lib/src/types/FontConnectorTypes.es.js +9 -0
  279. package/lib/src/types/FontConnectorTypes.es.js.map +1 -0
  280. package/lib/src/types/FrameTypes.cjs.js +174 -0
  281. package/lib/src/types/FrameTypes.cjs.js.map +1 -0
  282. package/lib/src/types/FrameTypes.d.ts +48 -4
  283. package/lib/src/types/FrameTypes.es.js +174 -0
  284. package/lib/src/types/FrameTypes.es.js.map +1 -0
  285. package/lib/src/types/GradientStyleTypes.cjs.js +14 -0
  286. package/lib/src/types/GradientStyleTypes.cjs.js.map +1 -0
  287. package/lib/src/types/GradientStyleTypes.es.js +14 -0
  288. package/lib/src/types/GradientStyleTypes.es.js.map +1 -0
  289. package/lib/src/types/LayoutTypes.cjs.js +31 -0
  290. package/lib/src/types/LayoutTypes.cjs.js.map +1 -0
  291. package/lib/src/types/LayoutTypes.es.js +31 -0
  292. package/lib/src/types/LayoutTypes.es.js.map +1 -0
  293. package/lib/src/types/MediaConnectorTypes.cjs.js +18 -0
  294. package/lib/src/types/MediaConnectorTypes.cjs.js.map +1 -0
  295. package/lib/src/types/MediaConnectorTypes.es.js +18 -0
  296. package/lib/src/types/MediaConnectorTypes.es.js.map +1 -0
  297. package/lib/src/types/ParagraphStyleTypes.cjs.js +21 -0
  298. package/lib/src/types/ParagraphStyleTypes.cjs.js.map +1 -0
  299. package/lib/src/types/ParagraphStyleTypes.es.js +21 -0
  300. package/lib/src/types/ParagraphStyleTypes.es.js.map +1 -0
  301. package/lib/src/types/RichTextRuleTypes.cjs.js +22 -0
  302. package/lib/src/types/RichTextRuleTypes.cjs.js.map +1 -0
  303. package/lib/src/types/RichTextRuleTypes.d.ts +119 -0
  304. package/lib/src/types/RichTextRuleTypes.es.js +22 -0
  305. package/lib/src/types/RichTextRuleTypes.es.js.map +1 -0
  306. package/lib/src/types/ShapeTypes.cjs.js +17 -0
  307. package/lib/src/types/ShapeTypes.cjs.js.map +1 -0
  308. package/lib/src/types/ShapeTypes.es.js +17 -0
  309. package/lib/src/types/ShapeTypes.es.js.map +1 -0
  310. package/lib/src/types/TextStyleTypes.cjs.js +86 -0
  311. package/lib/src/types/TextStyleTypes.cjs.js.map +1 -0
  312. package/lib/src/types/TextStyleTypes.es.js +86 -0
  313. package/lib/src/types/TextStyleTypes.es.js.map +1 -0
  314. package/lib/src/types/VariableTypes.cjs.js +81 -0
  315. package/lib/src/types/VariableTypes.cjs.js.map +1 -0
  316. package/lib/src/types/VariableTypes.d.ts +5 -0
  317. package/lib/src/types/VariableTypes.es.js +81 -0
  318. package/lib/src/types/VariableTypes.es.js.map +1 -0
  319. package/lib/src/types/ViewModeTypes.cjs.js +9 -0
  320. package/lib/src/types/ViewModeTypes.cjs.js.map +1 -0
  321. package/lib/src/types/ViewModeTypes.es.js +9 -0
  322. package/lib/src/types/ViewModeTypes.es.js.map +1 -0
  323. package/lib/src/utils/BrandKitAdapter.cjs.js +42 -0
  324. package/lib/src/utils/BrandKitAdapter.cjs.js.map +1 -0
  325. package/lib/src/utils/BrandKitAdapter.es.js +42 -0
  326. package/lib/src/utils/BrandKitAdapter.es.js.map +1 -0
  327. package/lib/src/utils/ConfigHelper.cjs.js +214 -0
  328. package/lib/src/utils/ConfigHelper.cjs.js.map +1 -0
  329. package/lib/src/utils/ConfigHelper.es.js +214 -0
  330. package/lib/src/utils/ConfigHelper.es.js.map +1 -0
  331. package/lib/src/utils/ConnectorCompatibilityTools.cjs.js +47 -0
  332. package/lib/src/utils/ConnectorCompatibilityTools.cjs.js.map +1 -0
  333. package/lib/src/utils/ConnectorCompatibilityTools.es.js +47 -0
  334. package/lib/src/utils/ConnectorCompatibilityTools.es.js.map +1 -0
  335. package/lib/src/utils/DataItemMappingTools.cjs.js +56 -0
  336. package/lib/src/utils/DataItemMappingTools.cjs.js.map +1 -0
  337. package/lib/src/utils/DataItemMappingTools.d.ts +3 -2
  338. package/lib/src/utils/DataItemMappingTools.es.js +56 -0
  339. package/lib/src/utils/DataItemMappingTools.es.js.map +1 -0
  340. package/lib/src/utils/EditorResponseData.cjs.js +35 -0
  341. package/lib/src/utils/EditorResponseData.cjs.js.map +1 -0
  342. package/lib/src/utils/EditorResponseData.es.js +35 -0
  343. package/lib/src/utils/EditorResponseData.es.js.map +1 -0
  344. package/lib/src/utils/EngineCallbackHandler.cjs.js +25 -0
  345. package/lib/src/utils/EngineCallbackHandler.cjs.js.map +1 -0
  346. package/lib/src/utils/EngineCallbackHandler.es.js +25 -0
  347. package/lib/src/utils/EngineCallbackHandler.es.js.map +1 -0
  348. package/lib/src/utils/EngineEvent.cjs.js +46 -0
  349. package/lib/src/utils/EngineEvent.cjs.js.map +1 -0
  350. package/lib/src/utils/EngineEvent.es.js +46 -0
  351. package/lib/src/utils/EngineEvent.es.js.map +1 -0
  352. package/lib/src/utils/EngineEventTrigger.cjs.js +32 -0
  353. package/lib/src/utils/EngineEventTrigger.cjs.js.map +1 -0
  354. package/lib/src/utils/EngineEventTrigger.es.js +32 -0
  355. package/lib/src/utils/EngineEventTrigger.es.js.map +1 -0
  356. package/lib/src/utils/Enums.cjs.js +52 -0
  357. package/lib/src/utils/Enums.cjs.js.map +1 -0
  358. package/lib/src/utils/Enums.d.ts +2 -1
  359. package/lib/src/utils/Enums.es.js +52 -0
  360. package/lib/src/utils/Enums.es.js.map +1 -0
  361. package/lib/src/utils/LocalConfigurationDecorator.cjs.js +59 -0
  362. package/lib/src/utils/LocalConfigurationDecorator.cjs.js.map +1 -0
  363. package/lib/src/utils/LocalConfigurationDecorator.es.js +59 -0
  364. package/lib/src/utils/LocalConfigurationDecorator.es.js.map +1 -0
  365. package/lib/src/utils/MathUtils.cjs.js +8 -0
  366. package/lib/src/utils/MathUtils.cjs.js.map +1 -0
  367. package/lib/src/utils/MathUtils.es.js +8 -0
  368. package/lib/src/utils/MathUtils.es.js.map +1 -0
  369. package/lib/src/utils/VariableHelper.cjs.js +15 -0
  370. package/lib/src/utils/VariableHelper.cjs.js.map +1 -0
  371. package/lib/src/utils/VariableHelper.es.js +15 -0
  372. package/lib/src/utils/VariableHelper.es.js.map +1 -0
  373. package/package.json +19 -6
  374. package/_bundles/main.es.js +0 -2688
  375. package/_bundles/main.es.js.map +0 -1
  376. package/connector-types/src/Common.js +0 -9
  377. package/connector-types/src/Common.js.map +0 -1
  378. package/connector-types/src/ComponentConnector.js +0 -3
  379. package/connector-types/src/ComponentConnector.js.map +0 -1
  380. package/connector-types/src/Connector.Shared.js +0 -2
  381. package/connector-types/src/Connector.Shared.js.map +0 -1
  382. package/connector-types/src/DataConnector.js +0 -2
  383. package/connector-types/src/DataConnector.js.map +0 -1
  384. package/connector-types/src/FontConnector.js +0 -2
  385. package/connector-types/src/FontConnector.js.map +0 -1
  386. package/connector-types/src/MediaConnector.js +0 -2
  387. package/connector-types/src/MediaConnector.js.map +0 -1
  388. package/connector-types/src/index.js +0 -7
  389. package/connector-types/src/index.js.map +0 -1
  390. package/lib/editor-engine.json +0 -3
  391. package/lib/package.json +0 -87
  392. package/lib/src/controllers/ActionController.js +0 -178
  393. package/lib/src/controllers/ActionController.js.map +0 -1
  394. package/lib/src/controllers/AnimationController.js +0 -135
  395. package/lib/src/controllers/AnimationController.js.map +0 -1
  396. package/lib/src/controllers/BarcodeController.js +0 -288
  397. package/lib/src/controllers/BarcodeController.js.map +0 -1
  398. package/lib/src/controllers/BrandKitController.js +0 -230
  399. package/lib/src/controllers/BrandKitController.js.map +0 -1
  400. package/lib/src/controllers/CanvasController.js +0 -84
  401. package/lib/src/controllers/CanvasController.js.map +0 -1
  402. package/lib/src/controllers/CharacterStyleController.js +0 -119
  403. package/lib/src/controllers/CharacterStyleController.js.map +0 -1
  404. package/lib/src/controllers/ClipboardController.js +0 -87
  405. package/lib/src/controllers/ClipboardController.js.map +0 -1
  406. package/lib/src/controllers/ColorConversionController.js +0 -49
  407. package/lib/src/controllers/ColorConversionController.js.map +0 -1
  408. package/lib/src/controllers/ColorStyleController.js +0 -118
  409. package/lib/src/controllers/ColorStyleController.js.map +0 -1
  410. package/lib/src/controllers/ComponentConnectorController.js +0 -124
  411. package/lib/src/controllers/ComponentConnectorController.js.map +0 -1
  412. package/lib/src/controllers/ComponentController.js +0 -74
  413. package/lib/src/controllers/ComponentController.js.map +0 -1
  414. package/lib/src/controllers/ConfigurationController.js +0 -84
  415. package/lib/src/controllers/ConfigurationController.js.map +0 -1
  416. package/lib/src/controllers/ConnectorController.js +0 -320
  417. package/lib/src/controllers/ConnectorController.js.map +0 -1
  418. package/lib/src/controllers/DataConnectorController.js +0 -129
  419. package/lib/src/controllers/DataConnectorController.js.map +0 -1
  420. package/lib/src/controllers/DataSourceController.js +0 -83
  421. package/lib/src/controllers/DataSourceController.js.map +0 -1
  422. package/lib/src/controllers/DebugController.js +0 -72
  423. package/lib/src/controllers/DebugController.js.map +0 -1
  424. package/lib/src/controllers/DocumentController.js +0 -77
  425. package/lib/src/controllers/DocumentController.js.map +0 -1
  426. package/lib/src/controllers/ExperimentController.js +0 -131
  427. package/lib/src/controllers/ExperimentController.js.map +0 -1
  428. package/lib/src/controllers/FontConnectorController.js +0 -146
  429. package/lib/src/controllers/FontConnectorController.js.map +0 -1
  430. package/lib/src/controllers/FontController.js +0 -178
  431. package/lib/src/controllers/FontController.js.map +0 -1
  432. package/lib/src/controllers/FrameController.js +0 -1308
  433. package/lib/src/controllers/FrameController.js.map +0 -1
  434. package/lib/src/controllers/GradientStyleController.js +0 -114
  435. package/lib/src/controllers/GradientStyleController.js.map +0 -1
  436. package/lib/src/controllers/InfoController.js +0 -20
  437. package/lib/src/controllers/InfoController.js.map +0 -1
  438. package/lib/src/controllers/LayoutController.js +0 -401
  439. package/lib/src/controllers/LayoutController.js.map +0 -1
  440. package/lib/src/controllers/MediaConnectorController.js +0 -177
  441. package/lib/src/controllers/MediaConnectorController.js.map +0 -1
  442. package/lib/src/controllers/PageController.js +0 -186
  443. package/lib/src/controllers/PageController.js.map +0 -1
  444. package/lib/src/controllers/ParagraphStyleController.js +0 -115
  445. package/lib/src/controllers/ParagraphStyleController.js.map +0 -1
  446. package/lib/src/controllers/ShapeController.js +0 -172
  447. package/lib/src/controllers/ShapeController.js.map +0 -1
  448. package/lib/src/controllers/SubscriberController.js +0 -379
  449. package/lib/src/controllers/SubscriberController.js.map +0 -1
  450. package/lib/src/controllers/TextStyleController.js +0 -69
  451. package/lib/src/controllers/TextStyleController.js.map +0 -1
  452. package/lib/src/controllers/ToolController.js +0 -112
  453. package/lib/src/controllers/ToolController.js.map +0 -1
  454. package/lib/src/controllers/UndoManagerController.js +0 -207
  455. package/lib/src/controllers/UndoManagerController.js.map +0 -1
  456. package/lib/src/controllers/UtilsController.js +0 -135
  457. package/lib/src/controllers/UtilsController.js.map +0 -1
  458. package/lib/src/controllers/VariableController.js +0 -891
  459. package/lib/src/controllers/VariableController.js.map +0 -1
  460. package/lib/src/exceptions/AsyncExceptions.js +0 -23
  461. package/lib/src/exceptions/AsyncExceptions.js.map +0 -1
  462. package/lib/src/exceptions/Codes.js +0 -4
  463. package/lib/src/exceptions/Codes.js.map +0 -1
  464. package/lib/src/exceptions/Exceptions.js +0 -13
  465. package/lib/src/exceptions/Exceptions.js.map +0 -1
  466. package/lib/src/exceptions/Helpers.js +0 -55
  467. package/lib/src/exceptions/Helpers.js.map +0 -1
  468. package/lib/src/exceptions/index.js +0 -4
  469. package/lib/src/exceptions/index.js.map +0 -1
  470. package/lib/src/index.js +0 -31
  471. package/lib/src/index.js.map +0 -1
  472. package/lib/src/interactions/Connector.js +0 -195
  473. package/lib/src/interactions/Connector.js.map +0 -1
  474. package/lib/src/next/NextInitiator.js +0 -34
  475. package/lib/src/next/NextInitiator.js.map +0 -1
  476. package/lib/src/next/controllers/BrandKitController.js +0 -57
  477. package/lib/src/next/controllers/BrandKitController.js.map +0 -1
  478. package/lib/src/next/controllers/CanvasController.js +0 -54
  479. package/lib/src/next/controllers/CanvasController.js.map +0 -1
  480. package/lib/src/next/controllers/ConnectorController.js +0 -79
  481. package/lib/src/next/controllers/ConnectorController.js.map +0 -1
  482. package/lib/src/next/controllers/PageController.js +0 -65
  483. package/lib/src/next/controllers/PageController.js.map +0 -1
  484. package/lib/src/next/controllers/SubscriberController.js +0 -42
  485. package/lib/src/next/controllers/SubscriberController.js.map +0 -1
  486. package/lib/src/next/controllers/VariableController.js +0 -158
  487. package/lib/src/next/controllers/VariableController.js.map +0 -1
  488. package/lib/src/next/index.js +0 -2
  489. package/lib/src/next/index.js.map +0 -1
  490. package/lib/src/next/tests/controllers/BrandKitController.test.js +0 -104
  491. package/lib/src/next/tests/controllers/BrandKitController.test.js.map +0 -1
  492. package/lib/src/next/tests/controllers/CanvasController.test.js +0 -37
  493. package/lib/src/next/tests/controllers/CanvasController.test.js.map +0 -1
  494. package/lib/src/next/tests/controllers/ConnectorController.test.js +0 -71
  495. package/lib/src/next/tests/controllers/ConnectorController.test.js.map +0 -1
  496. package/lib/src/next/tests/controllers/PageController.test.js +0 -37
  497. package/lib/src/next/tests/controllers/PageController.test.js.map +0 -1
  498. package/lib/src/next/tests/controllers/SubscriberContoller.test.js +0 -54
  499. package/lib/src/next/tests/controllers/SubscriberContoller.test.js.map +0 -1
  500. package/lib/src/next/tests/controllers/VariableController.test.js +0 -186
  501. package/lib/src/next/tests/controllers/VariableController.test.js.map +0 -1
  502. package/lib/src/next/types/BrandKitTypes.js +0 -2
  503. package/lib/src/next/types/BrandKitTypes.js.map +0 -1
  504. package/lib/src/next/types/ConnectorTypes.js +0 -27
  505. package/lib/src/next/types/ConnectorTypes.js.map +0 -1
  506. package/lib/src/next/types/NextSubscribers.js +0 -2
  507. package/lib/src/next/types/NextSubscribers.js.map +0 -1
  508. package/lib/src/next/types/PageTypes.js +0 -2
  509. package/lib/src/next/types/PageTypes.js.map +0 -1
  510. package/lib/src/next/types/VariableTypes.js +0 -12
  511. package/lib/src/next/types/VariableTypes.js.map +0 -1
  512. package/lib/src/sdk.js +0 -231
  513. package/lib/src/sdk.js.map +0 -1
  514. package/lib/src/setupTests.js +0 -2
  515. package/lib/src/setupTests.js.map +0 -1
  516. package/lib/src/tests/__mocks__/Animations.js +0 -10
  517. package/lib/src/tests/__mocks__/Animations.js.map +0 -1
  518. package/lib/src/tests/__mocks__/Brandkit.js +0 -532
  519. package/lib/src/tests/__mocks__/Brandkit.js.map +0 -1
  520. package/lib/src/tests/__mocks__/Config.js +0 -41
  521. package/lib/src/tests/__mocks__/Config.js.map +0 -1
  522. package/lib/src/tests/__mocks__/FrameProperties.js +0 -20
  523. package/lib/src/tests/__mocks__/FrameProperties.js.map +0 -1
  524. package/lib/src/tests/__mocks__/MockImageFrameSource.js +0 -15
  525. package/lib/src/tests/__mocks__/MockImageFrameSource.js.map +0 -1
  526. package/lib/src/tests/__mocks__/localConfig.js +0 -4
  527. package/lib/src/tests/__mocks__/localConfig.js.map +0 -1
  528. package/lib/src/tests/__mocks__/mockDocument.js +0 -2
  529. package/lib/src/tests/__mocks__/mockDocument.js.map +0 -1
  530. package/lib/src/tests/controllers/ActionController.test.js +0 -156
  531. package/lib/src/tests/controllers/ActionController.test.js.map +0 -1
  532. package/lib/src/tests/controllers/AnimationController.test.js +0 -91
  533. package/lib/src/tests/controllers/AnimationController.test.js.map +0 -1
  534. package/lib/src/tests/controllers/BarcodeController.test.js +0 -292
  535. package/lib/src/tests/controllers/BarcodeController.test.js.map +0 -1
  536. package/lib/src/tests/controllers/BrandKitController.test.js +0 -318
  537. package/lib/src/tests/controllers/BrandKitController.test.js.map +0 -1
  538. package/lib/src/tests/controllers/CanvasController.test.js +0 -58
  539. package/lib/src/tests/controllers/CanvasController.test.js.map +0 -1
  540. package/lib/src/tests/controllers/CharacterStyleController.test.js +0 -155
  541. package/lib/src/tests/controllers/CharacterStyleController.test.js.map +0 -1
  542. package/lib/src/tests/controllers/ClipboardController.test.js +0 -64
  543. package/lib/src/tests/controllers/ClipboardController.test.js.map +0 -1
  544. package/lib/src/tests/controllers/ColorConversionController.test.js +0 -32
  545. package/lib/src/tests/controllers/ColorConversionController.test.js.map +0 -1
  546. package/lib/src/tests/controllers/ColorStyleController.test.js +0 -94
  547. package/lib/src/tests/controllers/ColorStyleController.test.js.map +0 -1
  548. package/lib/src/tests/controllers/ComponentConnectorController.test.js +0 -73
  549. package/lib/src/tests/controllers/ComponentConnectorController.test.js.map +0 -1
  550. package/lib/src/tests/controllers/ComponentController.test.js +0 -52
  551. package/lib/src/tests/controllers/ComponentController.test.js.map +0 -1
  552. package/lib/src/tests/controllers/ConnectorController.test.js +0 -271
  553. package/lib/src/tests/controllers/ConnectorController.test.js.map +0 -1
  554. package/lib/src/tests/controllers/DataConnectorController.test.js +0 -145
  555. package/lib/src/tests/controllers/DataConnectorController.test.js.map +0 -1
  556. package/lib/src/tests/controllers/DataSourceController.test.js +0 -67
  557. package/lib/src/tests/controllers/DataSourceController.test.js.map +0 -1
  558. package/lib/src/tests/controllers/DebugController.test.js +0 -47
  559. package/lib/src/tests/controllers/DebugController.test.js.map +0 -1
  560. package/lib/src/tests/controllers/DocumentController.test.js +0 -63
  561. package/lib/src/tests/controllers/DocumentController.test.js.map +0 -1
  562. package/lib/src/tests/controllers/ExperimentController.test.js +0 -98
  563. package/lib/src/tests/controllers/ExperimentController.test.js.map +0 -1
  564. package/lib/src/tests/controllers/FontConnectorController.test.js +0 -87
  565. package/lib/src/tests/controllers/FontConnectorController.test.js.map +0 -1
  566. package/lib/src/tests/controllers/FontController.test.js +0 -142
  567. package/lib/src/tests/controllers/FontController.test.js.map +0 -1
  568. package/lib/src/tests/controllers/FrameConstraintController.test.js +0 -335
  569. package/lib/src/tests/controllers/FrameConstraintController.test.js.map +0 -1
  570. package/lib/src/tests/controllers/FrameController.test.js +0 -669
  571. package/lib/src/tests/controllers/FrameController.test.js.map +0 -1
  572. package/lib/src/tests/controllers/GradientStyleController.test.js +0 -82
  573. package/lib/src/tests/controllers/GradientStyleController.test.js.map +0 -1
  574. package/lib/src/tests/controllers/InfoController.test.js +0 -26
  575. package/lib/src/tests/controllers/InfoController.test.js.map +0 -1
  576. package/lib/src/tests/controllers/LayoutController.test.js +0 -345
  577. package/lib/src/tests/controllers/LayoutController.test.js.map +0 -1
  578. package/lib/src/tests/controllers/MediaConnectorController.test.js +0 -116
  579. package/lib/src/tests/controllers/MediaConnectorController.test.js.map +0 -1
  580. package/lib/src/tests/controllers/PageController.test.js +0 -141
  581. package/lib/src/tests/controllers/PageController.test.js.map +0 -1
  582. package/lib/src/tests/controllers/ParagraphStyleController.test.js +0 -164
  583. package/lib/src/tests/controllers/ParagraphStyleController.test.js.map +0 -1
  584. package/lib/src/tests/controllers/ShapeController.test.js +0 -102
  585. package/lib/src/tests/controllers/ShapeController.test.js.map +0 -1
  586. package/lib/src/tests/controllers/SubscriberContoller.test.js +0 -467
  587. package/lib/src/tests/controllers/SubscriberContoller.test.js.map +0 -1
  588. package/lib/src/tests/controllers/TextStyleController.test.js +0 -43
  589. package/lib/src/tests/controllers/TextStyleController.test.js.map +0 -1
  590. package/lib/src/tests/controllers/ToolController.test.js +0 -80
  591. package/lib/src/tests/controllers/ToolController.test.js.map +0 -1
  592. package/lib/src/tests/controllers/UndoManagerController.test.js +0 -120
  593. package/lib/src/tests/controllers/UndoManagerController.test.js.map +0 -1
  594. package/lib/src/tests/controllers/UtilsController.test.js +0 -127
  595. package/lib/src/tests/controllers/UtilsController.test.js.map +0 -1
  596. package/lib/src/tests/controllers/VariableController.test.js +0 -579
  597. package/lib/src/tests/controllers/VariableController.test.js.map +0 -1
  598. package/lib/src/tests/index.test.js +0 -26
  599. package/lib/src/tests/index.test.js.map +0 -1
  600. package/lib/src/tests/interactions/Connector.test.js +0 -44
  601. package/lib/src/tests/interactions/Connector.test.js.map +0 -1
  602. package/lib/src/tests/utils/ConnectorCompatibilityTools.test.js +0 -74
  603. package/lib/src/tests/utils/ConnectorCompatibilityTools.test.js.map +0 -1
  604. package/lib/src/tests/utils/EditorResponseData.test.js +0 -125
  605. package/lib/src/tests/utils/EditorResponseData.test.js.map +0 -1
  606. package/lib/src/tests/utils/EventSubscription.test.js +0 -238
  607. package/lib/src/tests/utils/EventSubscription.test.js.map +0 -1
  608. package/lib/src/tests/utils/LocalConfigurationDecorator.test.js +0 -61
  609. package/lib/src/tests/utils/LocalConfigurationDecorator.test.js.map +0 -1
  610. package/lib/src/tests/utils/Logging.test.js +0 -99
  611. package/lib/src/tests/utils/Logging.test.js.map +0 -1
  612. package/lib/src/tests/utils/Round.test.js +0 -16
  613. package/lib/src/tests/utils/Round.test.js.map +0 -1
  614. package/lib/src/types/ActionTypes.js +0 -29
  615. package/lib/src/types/ActionTypes.js.map +0 -1
  616. package/lib/src/types/AnimationTypes.js +0 -49
  617. package/lib/src/types/AnimationTypes.js.map +0 -1
  618. package/lib/src/types/BarcodeTypes.js +0 -39
  619. package/lib/src/types/BarcodeTypes.js.map +0 -1
  620. package/lib/src/types/BrandKitTypes.js +0 -2
  621. package/lib/src/types/BrandKitTypes.js.map +0 -1
  622. package/lib/src/types/CharacterStyleTypes.js +0 -2
  623. package/lib/src/types/CharacterStyleTypes.js.map +0 -1
  624. package/lib/src/types/ClipboardTypes.js +0 -6
  625. package/lib/src/types/ClipboardTypes.js.map +0 -1
  626. package/lib/src/types/ColorStyleTypes.js +0 -42
  627. package/lib/src/types/ColorStyleTypes.js.map +0 -1
  628. package/lib/src/types/CommonTypes.js +0 -28
  629. package/lib/src/types/CommonTypes.js.map +0 -1
  630. package/lib/src/types/ComponentConnectorTypes.js +0 -10
  631. package/lib/src/types/ComponentConnectorTypes.js.map +0 -1
  632. package/lib/src/types/ConfigurationTypes.js +0 -43
  633. package/lib/src/types/ConfigurationTypes.js.map +0 -1
  634. package/lib/src/types/ConnectorTypes.js +0 -207
  635. package/lib/src/types/ConnectorTypes.js.map +0 -1
  636. package/lib/src/types/DataConnectorTypes.js +0 -2
  637. package/lib/src/types/DataConnectorTypes.js.map +0 -1
  638. package/lib/src/types/DebugTypes.js +0 -8
  639. package/lib/src/types/DebugTypes.js.map +0 -1
  640. package/lib/src/types/DocumentTypes.js +0 -35
  641. package/lib/src/types/DocumentTypes.js.map +0 -1
  642. package/lib/src/types/EngineEditModeTypes.js +0 -10
  643. package/lib/src/types/EngineEditModeTypes.js.map +0 -1
  644. package/lib/src/types/FontConnectorTypes.js +0 -6
  645. package/lib/src/types/FontConnectorTypes.js.map +0 -1
  646. package/lib/src/types/FontTypes.js +0 -2
  647. package/lib/src/types/FontTypes.js.map +0 -1
  648. package/lib/src/types/FrameTypes.js +0 -147
  649. package/lib/src/types/FrameTypes.js.map +0 -1
  650. package/lib/src/types/GradientStyleTypes.js +0 -16
  651. package/lib/src/types/GradientStyleTypes.js.map +0 -1
  652. package/lib/src/types/LayoutTypes.js +0 -26
  653. package/lib/src/types/LayoutTypes.js.map +0 -1
  654. package/lib/src/types/MediaConnectorTypes.js +0 -14
  655. package/lib/src/types/MediaConnectorTypes.js.map +0 -1
  656. package/lib/src/types/PageTypes.js +0 -2
  657. package/lib/src/types/PageTypes.js.map +0 -1
  658. package/lib/src/types/ParagraphStyleTypes.js +0 -17
  659. package/lib/src/types/ParagraphStyleTypes.js.map +0 -1
  660. package/lib/src/types/ShapeTypes.js +0 -13
  661. package/lib/src/types/ShapeTypes.js.map +0 -1
  662. package/lib/src/types/TextStyleTypes.js +0 -83
  663. package/lib/src/types/TextStyleTypes.js.map +0 -1
  664. package/lib/src/types/TextTypes.js +0 -6
  665. package/lib/src/types/TextTypes.js.map +0 -1
  666. package/lib/src/types/VariableTypes.js +0 -70
  667. package/lib/src/types/VariableTypes.js.map +0 -1
  668. package/lib/src/types/ViewModeTypes.js +0 -6
  669. package/lib/src/types/ViewModeTypes.js.map +0 -1
  670. package/lib/src/types/ViewportTypes.js +0 -2
  671. package/lib/src/types/ViewportTypes.js.map +0 -1
  672. package/lib/src/utils/BrandKitAdapter.js +0 -45
  673. package/lib/src/utils/BrandKitAdapter.js.map +0 -1
  674. package/lib/src/utils/ConfigHelper.js +0 -92
  675. package/lib/src/utils/ConfigHelper.js.map +0 -1
  676. package/lib/src/utils/ConnectorCompatibilityTools.js +0 -54
  677. package/lib/src/utils/ConnectorCompatibilityTools.js.map +0 -1
  678. package/lib/src/utils/DataItemMappingTools.js +0 -58
  679. package/lib/src/utils/DataItemMappingTools.js.map +0 -1
  680. package/lib/src/utils/EditorResponseData.js +0 -44
  681. package/lib/src/utils/EditorResponseData.js.map +0 -1
  682. package/lib/src/utils/EngineCallbackHandler.js +0 -23
  683. package/lib/src/utils/EngineCallbackHandler.js.map +0 -1
  684. package/lib/src/utils/EngineEvent.js +0 -44
  685. package/lib/src/utils/EngineEvent.js.map +0 -1
  686. package/lib/src/utils/EngineEventTrigger.js +0 -33
  687. package/lib/src/utils/EngineEventTrigger.js.map +0 -1
  688. package/lib/src/utils/Enums.js +0 -47
  689. package/lib/src/utils/Enums.js.map +0 -1
  690. package/lib/src/utils/LocalConfigurationDecorator.js +0 -76
  691. package/lib/src/utils/LocalConfigurationDecorator.js.map +0 -1
  692. package/lib/src/utils/MathUtils.js +0 -5
  693. package/lib/src/utils/MathUtils.js.map +0 -1
  694. package/lib/src/utils/VariableHelper.js +0 -12
  695. package/lib/src/utils/VariableHelper.js.map +0 -1
@@ -1,1308 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11
- if (kind === "m") throw new TypeError("Private method is not writable");
12
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
13
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
14
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
15
- };
16
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
17
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
18
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
19
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
20
- };
21
- var _FrameController_editorAPI, _FrameConstraintController_editorAPI;
22
- import { CropType, ImageSourceTypeEnum, } from '../types/FrameTypes';
23
- import { getEditorResponseData } from '../utils/EditorResponseData';
24
- import { ShapeController } from './ShapeController';
25
- /**
26
- * The FrameController is responsible for all communication regarding Frames.
27
- * Methods inside this controller can be called by `window.SDK.frame.{method-name}`
28
- */
29
- export class FrameController {
30
- /**
31
- * @ignore
32
- */
33
- constructor(editorAPI) {
34
- /**
35
- * @ignore
36
- */
37
- _FrameController_editorAPI.set(this, void 0);
38
- /**
39
- * This method returns the list of frames
40
- * @returns list of all frames
41
- */
42
- this.getAll = () => __awaiter(this, void 0, void 0, function* () {
43
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
44
- return res.getFrames().then((result) => getEditorResponseData(result));
45
- });
46
- /**
47
- * This method returns the list of selected frames
48
- * @returns list of all selected frames
49
- */
50
- this.getSelected = () => __awaiter(this, void 0, void 0, function* () {
51
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
52
- return res.getSelectedFrames().then((result) => getEditorResponseData(result));
53
- });
54
- /**
55
- * This method returns the list of frames by id
56
- * @param id the id of a specific page
57
- * @returns list of all frames by id
58
- */
59
- this.getAllByPageId = (id) => __awaiter(this, void 0, void 0, function* () {
60
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
61
- return res.getFramesByPageId(id).then((result) => getEditorResponseData(result));
62
- });
63
- /**
64
- * This method returns a frame by its name
65
- * @param name the name of a specific frame
66
- * @returns frame properties
67
- */
68
- this.getByName = (name) => __awaiter(this, void 0, void 0, function* () {
69
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
70
- return res.getFrameByName(name).then((result) => getEditorResponseData(result));
71
- });
72
- /**
73
- * This method returns a frame by its id
74
- * @param id the id of a specific frame
75
- * @returns frame properties
76
- */
77
- this.getById = (id) => __awaiter(this, void 0, void 0, function* () {
78
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
79
- return res.getFrameById(id).then((result) => getEditorResponseData(result));
80
- });
81
- /**
82
- * This method returns all frame properties on current layout
83
- * @returns all frame properties on current layout
84
- */
85
- this.getPropertiesOnSelectedLayout = () => __awaiter(this, void 0, void 0, function* () {
86
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
87
- return res
88
- .getFramePropertiesOnSelectedLayout()
89
- .then((result) => getEditorResponseData(result));
90
- });
91
- /**
92
- * This method returns frame layout properties for a given frame and layout
93
- * @param id the id of a specific frame
94
- * @param layoutId the id of a specific layout
95
- * @returns frame layout properties
96
- */
97
- this.getLayoutProperties = (id, layoutId) => __awaiter(this, void 0, void 0, function* () {
98
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
99
- return res
100
- .getFramePropertiesByFrameId(id, layoutId)
101
- .then((result) => getEditorResponseData(result));
102
- });
103
- /**
104
- * This method returns a list of frame properties for a given layout
105
- * @param id the id of a specific layout
106
- * @returns list of frame layout properties
107
- */
108
- this.getAllLayoutProperties = (id) => __awaiter(this, void 0, void 0, function* () {
109
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
110
- return res.getFramesProperties(id).then((result) => getEditorResponseData(result));
111
- });
112
- /**
113
- * This method will reset the frame's transformation properties (x, y, width, height, rotation, anchors)
114
- * to the frame's to be inherited from the parent layout
115
- * @param id the id of a specific frame
116
- * @returns
117
- */
118
- this.resetTransformation = (id) => __awaiter(this, void 0, void 0, function* () {
119
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
120
- return res.resetFrameTransformation(id).then((result) => getEditorResponseData(result));
121
- });
122
- /**
123
- * This method will reset the frame's transformation properties (x, y, width, height, rotation, anchors)
124
- * to the frame's to be inherited from the parent layout
125
- * @param id the id of a specific frame
126
- * @returns
127
- * @deprecated Use 'resetTransformation' instead
128
- */
129
- this.resetSize = (id) => __awaiter(this, void 0, void 0, function* () {
130
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
131
- return res.resetFrameTransformation(id).then((result) => getEditorResponseData(result));
132
- });
133
- /**
134
- * This method will select a specific frame
135
- * @param id the id of a specific frame
136
- * @returns
137
- */
138
- this.select = (id) => __awaiter(this, void 0, void 0, function* () {
139
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
140
- return res.selectFrames([id]).then((result) => getEditorResponseData(result));
141
- });
142
- /**
143
- * This method will select multipleFrames
144
- * @param ids An array of all ids you want to select
145
- * @returns
146
- */
147
- this.selectMultiple = (ids) => __awaiter(this, void 0, void 0, function* () {
148
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
149
- return res.selectFrames(ids).then((result) => getEditorResponseData(result));
150
- });
151
- /**
152
- * This method will deselect all frames
153
- * @returns
154
- */
155
- this.deselectAll = () => __awaiter(this, void 0, void 0, function* () {
156
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
157
- return res.deselectFrames().then((result) => getEditorResponseData(result));
158
- });
159
- /**
160
- * This method changes the order of frames in the z-index list.
161
- * @param order the index in the list to move to
162
- * @param ids An array of all IDs you want to move to the given index
163
- * @returns
164
- */
165
- this.reorderFrames = (order, ids) => __awaiter(this, void 0, void 0, function* () {
166
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
167
- return res.reorderFrames(order, ids).then((result) => getEditorResponseData(result));
168
- });
169
- /**
170
- * This method will update the z-index of a frame.
171
- * @param id the id of the frame you want to change the z-index of
172
- * @param method the z-index update method to perform
173
- * @returns
174
- */
175
- this.setZIndex = (id, method) => __awaiter(this, void 0, void 0, function* () {
176
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
177
- return res.setFrameZIndex(id, method).then((result) => getEditorResponseData(result));
178
- });
179
- /**
180
- * This method will set the height of a specific frame
181
- * @param id the id of a specific frame
182
- * @param height the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
183
- * @returns
184
- */
185
- this.setHeight = (id, height) => __awaiter(this, void 0, void 0, function* () {
186
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
187
- return res.setFrameHeight(id, height).then((result) => getEditorResponseData(result));
188
- });
189
- /**
190
- * This method will set the rotation angle of a specific frame
191
- * @param id the id of a specific frame
192
- * @param rotation the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
193
- * @returns
194
- */
195
- this.setRotation = (id, rotation) => __awaiter(this, void 0, void 0, function* () {
196
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
197
- return res.setFrameRotation(id, rotation).then((result) => getEditorResponseData(result));
198
- });
199
- /**
200
- * This method will set the width of a specific frame
201
- * @param id the id of a specific frame
202
- * @param width the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
203
- * @returns
204
- */
205
- this.setWidth = (id, width) => __awaiter(this, void 0, void 0, function* () {
206
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
207
- return res.setFrameWidth(id, width).then((result) => getEditorResponseData(result));
208
- });
209
- /**
210
- * This method will set the x value of a specific frame
211
- * @param id the id of a specific frame
212
- * @param XValue the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
213
- * @returns
214
- */
215
- this.setX = (id, XValue) => __awaiter(this, void 0, void 0, function* () {
216
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
217
- return res.setFrameX(id, XValue).then((result) => getEditorResponseData(result));
218
- });
219
- /**
220
- * This method will set the y value of a specific frame
221
- * @param id the id of a specific frame
222
- * @param YValue the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
223
- * @returns
224
- */
225
- this.setY = (id, YValue) => __awaiter(this, void 0, void 0, function* () {
226
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
227
- return res.setFrameY(id, YValue).then((result) => getEditorResponseData(result));
228
- });
229
- /**
230
- * This method will set the frame opacity
231
- * @param id the id of a specific frame
232
- * @param opacity the opacity of the frame in range [0.0 - 1.0]
233
- * @returns
234
- */
235
- this.setOpacity = (id, opacity) => __awaiter(this, void 0, void 0, function* () {
236
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
237
- return res.setFrameOpacity(id, opacity).then((result) => getEditorResponseData(result));
238
- });
239
- /**
240
- * This method will update the name of a specific frame
241
- * @param id the id of a specific frame
242
- * @param name the new name that the frame should receive
243
- * @returns
244
- */
245
- this.rename = (id, name) => __awaiter(this, void 0, void 0, function* () {
246
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
247
- return res.renameFrame(id, name).then((result) => getEditorResponseData(result));
248
- });
249
- /**
250
- * This method will reset properties of a specific frame to their original values
251
- * @param id the id of the frame that needs to get reset
252
- * @returns
253
- */
254
- this.reset = (id) => __awaiter(this, void 0, void 0, function* () {
255
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
256
- return res.resetFrame(id).then((result) => getEditorResponseData(result));
257
- });
258
- /**
259
- * This method will reset the frame's transformation properties (x, y, width, height, rotation, anchors)
260
- * to the frame's to be inherited from the parent layout
261
- * @param id the id of a specific frame
262
- * @returns
263
- * @deprecated Use 'resetTransformation' instead
264
- */
265
- this.resetX = (id) => __awaiter(this, void 0, void 0, function* () {
266
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
267
- return res.resetFrameTransformation(id).then((result) => getEditorResponseData(result));
268
- });
269
- /**
270
- * This method will reset the frame's transformation properties (x, y, width, height, rotation, anchors)
271
- * to the frame's to be inherited from the parent layout
272
- * @param id the id of a specific frame
273
- * @returns
274
- * @deprecated Use 'resetTransformation' instead
275
- */
276
- this.resetY = (id) => __awaiter(this, void 0, void 0, function* () {
277
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
278
- return res.resetFrameTransformation(id).then((result) => getEditorResponseData(result));
279
- });
280
- /**
281
- * This method will reset the frame's transformation properties (x, y, width, height, rotation, anchors)
282
- * to the frame's to be inherited from the parent layout
283
- * @param id the id of a specific frame
284
- * @returns
285
- * @deprecated Use 'resetTransformation' instead
286
- */
287
- this.resetRotation = (id) => __awaiter(this, void 0, void 0, function* () {
288
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
289
- return res.resetFrameTransformation(id).then((result) => getEditorResponseData(result));
290
- });
291
- /**
292
- * This method will reset the frame's transformation properties (x, y, width, height, rotation, anchors)
293
- * to the frame's to be inherited from the parent layout
294
- * @param id the id of a specific frame
295
- * @returns
296
- * @deprecated Use 'resetTransformation' instead
297
- */
298
- this.resetWidth = (id) => __awaiter(this, void 0, void 0, function* () {
299
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
300
- return res.resetFrameTransformation(id).then((result) => getEditorResponseData(result));
301
- });
302
- /**
303
- * This method will reset the frame's transformation properties (x, y, width, height, rotation, anchors)
304
- * to the frame's to be inherited from the parent layout
305
- * @param id the id of a specific frame
306
- * @returns
307
- * @deprecated Use 'resetTransformation' instead
308
- */
309
- this.resetHeight = (id) => __awaiter(this, void 0, void 0, function* () {
310
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
311
- return res.resetFrameTransformation(id).then((result) => getEditorResponseData(result));
312
- });
313
- /**
314
- * This method will reset the fitMode, position and crop properties of a specific frame to its original value
315
- * @param id the id of the frame that needs to get reset
316
- * @returns
317
- */
318
- this.resetImageFrameFitMode = (id) => __awaiter(this, void 0, void 0, function* () {
319
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
320
- return res.resetImageFrameFitMode(id).then((result) => getEditorResponseData(result));
321
- });
322
- /**
323
- * @deprecated Use `setIsVisible` instead.
324
- *
325
- * This method will set the visibility property of a specified frame. If set to false the frame will be invisible and vice versa.
326
- * @param id the id of the frame that needs to get updated
327
- * @param value True means the frame gets visible, false means the frame gets invisible
328
- * @returns
329
- */
330
- this.setVisibility = (id, value) => __awaiter(this, void 0, void 0, function* () {
331
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
332
- return res.setFrameIsVisible(id, value).then((result) => getEditorResponseData(result));
333
- });
334
- /**
335
- * This method will set the isVisible property of a specified frame. If set to false the frame will be invisible and vice versa.
336
- * @param id the id of the frame that needs to get updated
337
- * @param value True means the frame gets visible, false means the frame gets invisible
338
- * @returns
339
- */
340
- this.setIsVisible = (id, value) => __awaiter(this, void 0, void 0, function* () {
341
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
342
- return res.setFrameIsVisible(id, value).then((result) => getEditorResponseData(result));
343
- });
344
- /**
345
- * This method will remove a specific frame using the Id.
346
- * @param id the id of the frame that needs to be deleted
347
- * @returns
348
- */
349
- this.remove = (id) => __awaiter(this, void 0, void 0, function* () {
350
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
351
- return res.removeFrames([id]).then((result) => getEditorResponseData(result));
352
- });
353
- /**
354
- * This method will remove frames with the given ids.
355
- * @param ids an array of ids of the frames to be removed.
356
- * @returns
357
- */
358
- this.removeFrames = (ids) => __awaiter(this, void 0, void 0, function* () {
359
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
360
- return res.removeFrames(ids).then((result) => getEditorResponseData(result));
361
- });
362
- /**
363
- * This method will create a new frame of 'type' to the template positioned on the requested
364
- * coordinates.
365
- * @param type the type of frame to create
366
- * @param x X coordinate of the new frame within the template
367
- * @param y Y coordinate of the new frame within the template
368
- * @param width Width of the new frame within the template
369
- * @param height Height of the new frame within the template
370
- * @returns the newly created frame's id
371
- */
372
- this.create = (type, x, y, width, height) => __awaiter(this, void 0, void 0, function* () {
373
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
374
- return res.addFrame(type, x, y, width, height).then((result) => getEditorResponseData(result));
375
- });
376
- /**
377
- * This method will create a new frame of 'type' type to the template positioned on the requested
378
- * coordinates.
379
- * @param type the type of frame to create
380
- * @param x X coordinate of the new frame within the template
381
- * @param y Y coordinate of the new frame within the template
382
- * @param width Width of the new frame within the template
383
- * @param height Height of the new frame within the template
384
- * @returns the newly created shape frame's id
385
- */
386
- this.createShapeFrame = (type, x, y, width, height) => __awaiter(this, void 0, void 0, function* () {
387
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
388
- return res.addFrame(type, x, y, width, height).then((result) => getEditorResponseData(result));
389
- });
390
- /**
391
- * This method will create a new barcode frame of 'type' type to the layout positioned on the requested
392
- * coordinates. Any coordinate that is not specified will default to 'center'.
393
- * @param type the type of barcode to create
394
- * @param position optional position object where you can specify the x, y of the barcode frame
395
- * @returns the newly created barcode frame's id
396
- */
397
- this.createBarcodeFrame = (type, position) => __awaiter(this, void 0, void 0, function* () {
398
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
399
- return res.addBarcodeFrame(type, position === null || position === void 0 ? void 0 : position.x, position === null || position === void 0 ? void 0 : position.y).then((result) => getEditorResponseData(result));
400
- });
401
- /**
402
- * @experimental This method will add a new component frame to the current layout positioned on the requested
403
- * coordinates with the given dimensions. The component is initialized with the provided source.
404
- * @param source The source of the component frame
405
- * @param x The X coordinate of the new component frame within the layout
406
- * @param y The Y coordinate of the new component frame within the layout
407
- * @param width The width of the new component frame within the layout
408
- * @param height The height of the new component frame within the layout
409
- * @returns the newly created component frame's id
410
- */
411
- this.createComponentFrame = (source, x, y, width, height) => __awaiter(this, void 0, void 0, function* () {
412
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
413
- return res
414
- .addComponentFrame(x, y, width, height, JSON.stringify(source))
415
- .then((result) => getEditorResponseData(result));
416
- });
417
- /**
418
- * This method will duplicate a list of frames
419
- * @param ids An array of all ids you want to duplicate
420
- * @returns
421
- */
422
- this.duplicateFrames = (ids) => __awaiter(this, void 0, void 0, function* () {
423
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
424
- return res.duplicateFrames(ids).then((result) => getEditorResponseData(result));
425
- });
426
- /**
427
- * This method sets or removes the image source to the ImageFrame
428
- * @param imageFrameId the id of the imageFrame where an image needs to be assigned to
429
- * @param newImageSource A new image source
430
- * @returns
431
- */
432
- this.updateImageSource = (imageFrameId, src) => __awaiter(this, void 0, void 0, function* () {
433
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
434
- const srcJson = src !== null ? JSON.stringify(src) : null;
435
- return res.setImageSource(imageFrameId, srcJson).then((result) => getEditorResponseData(result));
436
- });
437
- /**
438
- * This method removes the image source from the ImageFrame
439
- * @param imageFrameId the id of the imageFrame where an image needs to be removed from
440
- */
441
- this.removeImageSource = (imageFrameId) => __awaiter(this, void 0, void 0, function* () {
442
- return this.updateImageSource(imageFrameId, null);
443
- });
444
- /**
445
- * This method will assign an image from a mediaConnector to the correct ImageFrame
446
- * @param id Unique Id of the media connector
447
- * @param imageFrameId the id of the imageFrame where an image needs to be assigned to
448
- * @param assetId Unique id of the asset that you want to assign to the imageFrame
449
- * @returns
450
- */
451
- this.setImageFromConnector = (imageFrameId, connectorId, assetId) => __awaiter(this, void 0, void 0, function* () {
452
- const src = {
453
- id: connectorId,
454
- assetId,
455
- type: ImageSourceTypeEnum.connector,
456
- };
457
- return this.updateImageSource(imageFrameId, src);
458
- });
459
- /**
460
- * This method will assign an image from url to the correct ImageFrame
461
- * Make sure the url can be accessed by the editor.
462
- * @param imageFrameId the id of the imageFrame where an image needs to be assigned to
463
- * @param url A valid image uri
464
- * @returns
465
- */
466
- this.setImageFromUrl = (imageFrameId, url) => __awaiter(this, void 0, void 0, function* () {
467
- const source = { url: url, type: ImageSourceTypeEnum.url };
468
- return this.updateImageSource(imageFrameId, source);
469
- });
470
- /**
471
- * This method will set the fitMode property of a specified image frame.
472
- * @param imageFrameId the id of the imageFrame that needs to get updated.
473
- * @param fitMode the new fitMode that you want to set to the imageFrame.
474
- * @returns
475
- */
476
- this.setImageFrameFitMode = (imageFrameId, fitMode) => __awaiter(this, void 0, void 0, function* () {
477
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
478
- return res.setImageFrameFitMode(imageFrameId, fitMode).then((result) => getEditorResponseData(result));
479
- });
480
- /**
481
- * This method will set the fit mode position property of a specified image frame.
482
- * @param imageFrameId the id of the imageFrame that needs to get updated.
483
- * @param position the new position that you want to set to the imageFrame.
484
- * @returns
485
- */
486
- this.setImageFrameFitModePosition = (imageFrameId, position) => __awaiter(this, void 0, void 0, function* () {
487
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
488
- return res
489
- .setImageFrameFitModePosition(imageFrameId, position)
490
- .then((result) => getEditorResponseData(result));
491
- });
492
- /**
493
- * @deprecated the constrain proportions setter is not supported anymore.
494
- *
495
- * This method will set the constrainProportions property of a specified frame. If constrainProportionsReadOnly is
496
- * true, the frame's constrainProportions property cannot be changed and this method will return an error.
497
- *
498
- * @param _id the id of the frame that needs to get updated.
499
- * @param _constrainProportions The new constraint that you want to set to the frame.
500
- * @returns
501
- */
502
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
503
- this.setFrameConstrainProportions = (_id, _constrainProportions) => __awaiter(this, void 0, void 0, function* () {
504
- console.error('setFrameConstrainProportions is not supported anymore');
505
- const res = {
506
- success: false,
507
- status: 0,
508
- error: 'setFrameConstrainProportions is not supported anymore',
509
- parsedData: null,
510
- };
511
- return getEditorResponseData(res);
512
- });
513
- /**
514
- * This method will set the vertical alignment property of a specified frame.
515
- * @param id the id of the frame that needs to get updated
516
- * @param verticalAlign the new vertical alignment to be set to the frame.
517
- * @returns
518
- */
519
- this.setVerticalAlign = (id, verticalAlign) => __awaiter(this, void 0, void 0, function* () {
520
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
521
- return res.setVerticalAlignment(id, verticalAlign).then((result) => getEditorResponseData(result));
522
- });
523
- /**
524
- * This method will set the number of columns property of a specified frame.
525
- * @param id the id of the frame that needs to get updated
526
- * @param numberOfColumns the number of columns to be set to the frame.
527
- * @returns
528
- */
529
- this.setNumberOfColumns = (id, numberOfColumns) => __awaiter(this, void 0, void 0, function* () {
530
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
531
- return res.setNumberOfColumns(id, numberOfColumns).then((result) => getEditorResponseData(result));
532
- });
533
- /**
534
- * This method will set the column gap property of a specified frame.
535
- * @param id the id of the frame that needs to get updated
536
- * @param columnGap the column gap value to be set to the frame.
537
- * @returns
538
- */
539
- this.setColumnGap = (id, columnGap) => __awaiter(this, void 0, void 0, function* () {
540
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
541
- return res.setColumnGap(id, columnGap).then((result) => getEditorResponseData(result));
542
- });
543
- /**
544
- * This method will set the min copyFitting property of a specified frame.
545
- * @param id the id of the frame that needs to get updated
546
- * @param value the new min copyFitting value to be set to the frame.
547
- * @returns
548
- */
549
- this.setMinCopyfitting = (id, value) => __awaiter(this, void 0, void 0, function* () {
550
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
551
- return res.setMinCopyfitting(id, value).then((result) => getEditorResponseData(result));
552
- });
553
- /**
554
- * This method will set the max copyFitting property of a specified frame.
555
- * @param id the id of the frame that needs to get updated
556
- * @param value the new max copyFitting value to be set to the frame.
557
- * @returns
558
- */
559
- this.setMaxCopyfitting = (id, value) => __awaiter(this, void 0, void 0, function* () {
560
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
561
- return res.setMaxCopyfitting(id, value).then((result) => getEditorResponseData(result));
562
- });
563
- /**
564
- * This method will enable copyFitting on a specified frame.
565
- * @param id the id of the frame that needs to get updated
566
- * @param value the new value to be set to the frame.
567
- * @returns
568
- */
569
- this.setEnableCopyfitting = (id, value) => __awaiter(this, void 0, void 0, function* () {
570
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
571
- return res.setEnableCopyfitting(id, value).then((result) => getEditorResponseData(result));
572
- });
573
- /**
574
- * This method will reset the frame minCopyfitting to the frame's original value
575
- * @param id the id of a specific frame
576
- * @returns
577
- */
578
- this.resetMinCopyfitting = (id) => __awaiter(this, void 0, void 0, function* () {
579
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
580
- return res.resetMinCopyfitting(id).then((result) => getEditorResponseData(result));
581
- });
582
- /**
583
- * This method will reset the frame maxCopyfitting to the frame's original value
584
- * @param id the id of a specific frame
585
- * @returns
586
- */
587
- this.resetMaxCopyfitting = (id) => __awaiter(this, void 0, void 0, function* () {
588
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
589
- return res.resetMaxCopyfitting(id).then((result) => getEditorResponseData(result));
590
- });
591
- /**
592
- * This method will reset the frame enableCopyfitting to the frame's original value
593
- * @param id the id of a specific frame
594
- * @returns
595
- */
596
- this.resetEnableCopyfitting = (id) => __awaiter(this, void 0, void 0, function* () {
597
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
598
- return res.resetEnableCopyfitting(id).then((result) => getEditorResponseData(result));
599
- });
600
- /**
601
- * This method will set the visibility of the shape fill.
602
- * @param shapeFrameId the id of the shapeFrame that needs to get updated.
603
- * @param enableFill Whether the shape fill is visible.
604
- * @returns
605
- */
606
- this.setShapeFrameEnableFill = (shapeFrameId, enableFill) => __awaiter(this, void 0, void 0, function* () {
607
- return this.shapeController.setEnableFill(shapeFrameId, enableFill);
608
- });
609
- /**
610
- * This method will set the shape fill color of a specified shape frame.
611
- * @param shapeFrameId the id of the shapeFrame that needs to get updated.
612
- * @param fillColor the new shape fill color that you want to set to the shapeFrame.
613
- * @returns
614
- */
615
- this.setShapeFrameFillColor = (shapeFrameId, fillColor) => __awaiter(this, void 0, void 0, function* () {
616
- return this.shapeController.setFillColor(shapeFrameId, fillColor);
617
- });
618
- /**
619
- * This method will set the visibility of the shape stroke.
620
- * @param shapeFrameId the id of the shapeFrame that needs to get updated.
621
- * @param enableStroke Whether the shape stroke is visible.
622
- * @returns
623
- */
624
- this.setShapeFrameEnableStroke = (shapeFrameId, enableStroke) => __awaiter(this, void 0, void 0, function* () {
625
- return this.shapeController.setEnableStroke(shapeFrameId, enableStroke);
626
- });
627
- /**
628
- * This method will set the shape stroke color of a specified shape frame.
629
- * @param shapeFrameId the id of the shapeFrame that needs to get updated.
630
- * @param strokeColor the new shape stroke color that you want to set to the shapeFrame.
631
- * @returns
632
- */
633
- this.setShapeFrameStrokeColor = (shapeFrameId, strokeColor) => __awaiter(this, void 0, void 0, function* () {
634
- return this.shapeController.setStrokeColor(shapeFrameId, strokeColor);
635
- });
636
- /**
637
- * This method will set the shape stroke weight of a specified shape frame.
638
- * @param shapeFrameId the id of the shapeFrame that needs to get updated.
639
- * @param strokeWeight the new shape stroke weight that you want to set to the shapeFrame.
640
- * @returns
641
- */
642
- this.setShapeFrameStrokeWeight = (shapeFrameId, strokeWeight) => __awaiter(this, void 0, void 0, function* () {
643
- return this.shapeController.setStrokeWeight(shapeFrameId, strokeWeight);
644
- });
645
- /**
646
- * This method will set the blend mode of a specified frame
647
- * @param id the id of a specific frame
648
- * @param blendMode the blend mode
649
- * @returns
650
- */
651
- this.setBlendMode = (id, blendMode) => __awaiter(this, void 0, void 0, function* () {
652
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
653
- return res.setFrameBlendMode(id, blendMode).then((result) => getEditorResponseData(result));
654
- });
655
- /**
656
- * This method will set the container shape of a specified frame
657
- * @param frameId the id of the frame that needs to get updated
658
- * @param value the shape frame source object
659
- * @returns
660
- */
661
- this.setFrameContainerShape = (frameId, value) => __awaiter(this, void 0, void 0, function* () {
662
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
663
- return res.setFrameContainerShape(frameId, JSON.stringify(value)).then((result) => getEditorResponseData(result));
664
- });
665
- /**
666
- * This method will make the specified image frame go into cropping mode.
667
- * @param id the id of a specific image frame
668
- * @param type the type of cropping mode to enter. Defaults to frameCrop.
669
- * @returns
670
- */
671
- this.enterCropMode = (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, type = CropType.frameCrop) {
672
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
673
- return res.enterCropMode(id, type).then((result) => getEditorResponseData(result));
674
- });
675
- /**
676
- * This method will exit cropping mode while saving the applied crop.
677
- * @returns
678
- */
679
- this.applyCropMode = () => __awaiter(this, void 0, void 0, function* () {
680
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
681
- return res.applyCropMode().then((result) => getEditorResponseData(result));
682
- });
683
- /**
684
- * This method will exit cropping mode without saving the applied crop.
685
- * @returns
686
- */
687
- this.exitCropMode = () => __awaiter(this, void 0, void 0, function* () {
688
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
689
- return res.cancelCropMode().then((result) => getEditorResponseData(result));
690
- });
691
- /**
692
- * This method will make the specified image frame go into subject mode.
693
- * @param id the id of a specific image frame
694
- * @returns
695
- */
696
- this.enterSubjectMode = (id) => __awaiter(this, void 0, void 0, function* () {
697
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
698
- return res.enterSubjectMode(id).then((result) => getEditorResponseData(result));
699
- });
700
- /**
701
- * This method will exit subject mode while saving the applied subject area.
702
- * @returns
703
- */
704
- this.applySubjectMode = () => __awaiter(this, void 0, void 0, function* () {
705
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
706
- return res.applySubjectMode().then((result) => getEditorResponseData(result));
707
- });
708
- /**
709
- * This method will exit subject mode without saving the applied subject area.
710
- * @returns
711
- */
712
- this.exitSubjectMode = () => __awaiter(this, void 0, void 0, function* () {
713
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
714
- return res.cancelSubjectMode().then((result) => getEditorResponseData(result));
715
- });
716
- /**
717
- * This method will make the specified shape frame go into gradient mode.
718
- * @param id the id of a specific shape frame
719
- * @returns
720
- */
721
- this.enterGradientMode = (id) => __awaiter(this, void 0, void 0, function* () {
722
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
723
- return res.enterGradientMode(id).then((result) => getEditorResponseData(result));
724
- });
725
- /**
726
- * This method will exit gradient mode while saving the applied gradient.
727
- * @returns
728
- */
729
- this.applyGradientMode = () => __awaiter(this, void 0, void 0, function* () {
730
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
731
- return res.applyGradientMode().then((result) => getEditorResponseData(result));
732
- });
733
- /**
734
- * This method will exit gradient mode without saving the applied gradient.
735
- * @returns
736
- */
737
- this.cancelGradientMode = () => __awaiter(this, void 0, void 0, function* () {
738
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
739
- return res.cancelGradientMode().then((result) => getEditorResponseData(result));
740
- });
741
- /**
742
- * @deprecated This method no longer has any effect. Use 'setImageFrameFitMode' or 'resetImageFrameFitMode' instead
743
- */
744
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
745
- this.resetCropMode = (_id) => __awaiter(this, void 0, void 0, function* () {
746
- console.error('resetCropMode is not supported anymore');
747
- const res = {
748
- success: false,
749
- status: 0,
750
- error: 'resetCropMode is not supported anymore',
751
- parsedData: null,
752
- };
753
- return getEditorResponseData(res);
754
- });
755
- /**
756
- * This method will enable auto grow on a specified frame.
757
- * @param id the id of the frame that needs to get updated
758
- * @param value the new value to be set to the frame.
759
- * @returns
760
- */
761
- this.setEnableAutoGrow = (id, value) => __awaiter(this, void 0, void 0, function* () {
762
- const update = { enabled: { value: value } };
763
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
764
- return res
765
- .updateAutoGrowSettings(id, JSON.stringify(update))
766
- .then((result) => getEditorResponseData(result));
767
- });
768
- /**
769
- * This method will set the minWidth for auto-grow of a specified frame. Set to null to remove the value.
770
- * @param id the id of the frame that needs to get updated
771
- * @param value the new minWidth value to be set
772
- * @returns
773
- */
774
- this.setAutoGrowMinWidth = (id, value) => __awaiter(this, void 0, void 0, function* () {
775
- const update = { minWidth: { value } };
776
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
777
- return res
778
- .updateAutoGrowSettings(id, JSON.stringify(update))
779
- .then((result) => getEditorResponseData(result));
780
- });
781
- /**
782
- * This method will set the maxWidth for auto-grow of a specified frame. Set to null to remove the value.
783
- * @param id the id of the frame that needs to get updated
784
- * @param value the new maxWidth value to be set
785
- * @returns
786
- */
787
- this.setAutoGrowMaxWidth = (id, value) => __awaiter(this, void 0, void 0, function* () {
788
- const update = { maxWidth: { value } };
789
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
790
- return res
791
- .updateAutoGrowSettings(id, JSON.stringify(update))
792
- .then((result) => getEditorResponseData(result));
793
- });
794
- /**
795
- * This method will set the minHeight for auto-grow of a specified frame. Set to null to remove the value.
796
- * @param id the id of the frame that needs to get updated
797
- * @param value the new minHeight value to be set
798
- * @returns
799
- */
800
- this.setAutoGrowMinHeight = (id, value) => __awaiter(this, void 0, void 0, function* () {
801
- const update = { minHeight: { value } };
802
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
803
- return res
804
- .updateAutoGrowSettings(id, JSON.stringify(update))
805
- .then((result) => getEditorResponseData(result));
806
- });
807
- /**
808
- * This method will set the maxHeight for auto-grow of a specified frame. Set to null to remove the value.
809
- * @param id the id of the frame that needs to get updated
810
- * @param value the new maxHeight value to be set
811
- * @returns
812
- */
813
- this.setAutoGrowMaxHeight = (id, value) => __awaiter(this, void 0, void 0, function* () {
814
- const update = { maxHeight: { value } };
815
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
816
- return res
817
- .updateAutoGrowSettings(id, JSON.stringify(update))
818
- .then((result) => getEditorResponseData(result));
819
- });
820
- /**
821
- * This method will set the auto grow directions for auto-grow of a specified frame.
822
- * @param id the id of the frame that needs to get updated
823
- * @param value the new directions value to be set
824
- * @returns
825
- */
826
- this.setAutoGrowDirections = (id, value) => __awaiter(this, void 0, void 0, function* () {
827
- const update = { directions: { value } };
828
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
829
- return res
830
- .updateAutoGrowSettings(id, JSON.stringify(update))
831
- .then((result) => getEditorResponseData(result));
832
- });
833
- /**
834
- * @deprecated This method no longer has any effect. Use `resetTransformation` instead
835
- */
836
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
837
- this.resetAutoGrowSettingsEnabled = (_id) => __awaiter(this, void 0, void 0, function* () {
838
- console.error('resetAutoGrowSettingsEnabled is not supported anymore');
839
- const res = {
840
- success: false,
841
- status: 0,
842
- error: 'resetAutoGrowSettingsEnabled is not supported anymore',
843
- parsedData: null,
844
- };
845
- return getEditorResponseData(res);
846
- });
847
- /**
848
- * @deprecated This method no longer has any effect. Use `resetTransformation` instead
849
- */
850
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
851
- this.resetAutoGrowMinWidth = (_id) => __awaiter(this, void 0, void 0, function* () {
852
- console.error('resetAutoGrowMinWidth is not supported anymore');
853
- const res = {
854
- success: false,
855
- status: 0,
856
- error: 'resetAutoGrowMinWidth is not supported anymore',
857
- parsedData: null,
858
- };
859
- return getEditorResponseData(res);
860
- });
861
- /**
862
- * @deprecated This method no longer has any effect. Use `resetTransformation` instead
863
- */
864
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
865
- this.resetAutoGrowMaxWidth = (_id) => __awaiter(this, void 0, void 0, function* () {
866
- console.error('resetAutoGrowMaxWidth is not supported anymore');
867
- const res = {
868
- success: false,
869
- status: 0,
870
- error: 'resetAutoGrowMaxWidth is not supported anymore',
871
- parsedData: null,
872
- };
873
- return getEditorResponseData(res);
874
- });
875
- /**
876
- * @deprecated This method no longer has any effect. Use `resetTransformation` instead
877
- */
878
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
879
- this.resetAutoGrowMinHeight = (_id) => __awaiter(this, void 0, void 0, function* () {
880
- console.error('resetAutoGrowMinHeight is not supported anymore');
881
- const res = {
882
- success: false,
883
- status: 0,
884
- error: 'resetAutoGrowMinHeight is not supported anymore',
885
- parsedData: null,
886
- };
887
- return getEditorResponseData(res);
888
- });
889
- /**
890
- * @deprecated This method no longer has any effect. Use `resetTransformation` instead
891
- */
892
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
893
- this.resetAutoGrowMaxHeight = (_id) => __awaiter(this, void 0, void 0, function* () {
894
- console.error('resetAutoGrowMaxHeight is not supported anymore');
895
- const res = {
896
- success: false,
897
- status: 0,
898
- error: 'resetAutoGrowMaxHeight is not supported anymore',
899
- parsedData: null,
900
- };
901
- return getEditorResponseData(res);
902
- });
903
- /**
904
- * @deprecated This method no longer has any effect. Use `resetTransformation` instead
905
- */
906
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
907
- this.resetAutoGrowDirections = (_id) => __awaiter(this, void 0, void 0, function* () {
908
- console.error('resetAutoGrowDirections is not supported anymore');
909
- const res = {
910
- success: false,
911
- status: 0,
912
- error: 'resetAutoGrowDirections is not supported anymore',
913
- parsedData: null,
914
- };
915
- return getEditorResponseData(res);
916
- });
917
- /**
918
- * @deprecated This method no longer has any effect. Use `resetTransformation` instead
919
- */
920
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
921
- this.resetAutoGrow = (_id) => __awaiter(this, void 0, void 0, function* () {
922
- console.error('resetAutoGrow is not supported anymore');
923
- const res = {
924
- success: false,
925
- status: 0,
926
- error: 'resetAutoGrow is not supported anymore',
927
- parsedData: null,
928
- };
929
- return getEditorResponseData(res);
930
- });
931
- /**
932
- * This method will enable shadow on a specified frame.
933
- * @param id the id of the frame that needs to get updated
934
- * @param value the new value to be set to the frame.
935
- * @returns
936
- */
937
- this.setShadowEnabled = (id, value) => __awaiter(this, void 0, void 0, function* () {
938
- const update = { enabled: { value: value } };
939
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
940
- return res
941
- .updateFrameShadowSettings(id, JSON.stringify(update))
942
- .then((result) => getEditorResponseData(result));
943
- });
944
- /**
945
- * This method will set the distance for shadow of a specified frame.
946
- * @param id the id of the frame that needs to get updated
947
- * @param value the new distance value to be set
948
- * @returns
949
- */
950
- this.setShadowDistance = (id, value) => __awaiter(this, void 0, void 0, function* () {
951
- const update = { distance: { value } };
952
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
953
- return res
954
- .updateFrameShadowSettings(id, JSON.stringify(update))
955
- .then((result) => getEditorResponseData(result));
956
- });
957
- /**
958
- * This method will set the angle in degrees for shadow of a specified frame.
959
- * @param id the id of the frame that needs to get updated
960
- * @param value the new angle value to be set
961
- * @returns
962
- */
963
- this.setShadowAngleDegrees = (id, value) => __awaiter(this, void 0, void 0, function* () {
964
- const update = { angleDegrees: { value } };
965
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
966
- return res
967
- .updateFrameShadowSettings(id, JSON.stringify(update))
968
- .then((result) => getEditorResponseData(result));
969
- });
970
- /**
971
- * This method will set the blur radius for shadow of a specified frame.
972
- * @param id the id of the frame that needs to get updated
973
- * @param value the new blur radius value to be set
974
- * @returns
975
- */
976
- this.setShadowBlurRadius = (id, value) => __awaiter(this, void 0, void 0, function* () {
977
- const update = { blurRadius: { value } };
978
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
979
- return res
980
- .updateFrameShadowSettings(id, JSON.stringify(update))
981
- .then((result) => getEditorResponseData(result));
982
- });
983
- /**
984
- * This method will set the color for shadow of a specified frame.
985
- * @param id the id of the frame that needs to get updated
986
- * @param value the new color value to be set
987
- * @returns
988
- */
989
- this.setShadowColor = (id, value) => __awaiter(this, void 0, void 0, function* () {
990
- const update = { color: { value } };
991
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
992
- return res
993
- .updateFrameShadowSettings(id, JSON.stringify(update))
994
- .then((result) => getEditorResponseData(result));
995
- });
996
- this.setAnchor = (id, horizontal, anchorType, anchorTarget, endAnchorTarget) => __awaiter(this, void 0, void 0, function* () {
997
- const properties = {
998
- horizontal: horizontal,
999
- type: anchorType,
1000
- target: anchorTarget,
1001
- endTarget: endAnchorTarget,
1002
- };
1003
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
1004
- return res
1005
- .setAnchorProperties(id, JSON.stringify(properties))
1006
- .then((result) => getEditorResponseData(result));
1007
- });
1008
- /**
1009
- * @experimental
1010
- * This method will set the vertical anchor to target frame on a specified frame.
1011
- * @param id the id of the frame that needs to get a frame anchor set
1012
- * @param anchorType the type of positioning to be set to the frame
1013
- * @param anchorTarget the target frame to which it is anchored
1014
- * @param endAnchorTarget the target (end) frame to which it can be anchored
1015
- * @returns
1016
- */
1017
- this.setVerticalAnchor = (id, anchorType, anchorTarget, endAnchorTarget) => __awaiter(this, void 0, void 0, function* () {
1018
- return this.setAnchor(id, false, anchorType, anchorTarget, endAnchorTarget);
1019
- });
1020
- /**
1021
- * @experimental
1022
- * This method will set the horizontal anchor to target frame on a specified frame.
1023
- * @param id the id of the frame that needs to get a frame anchor set
1024
- * @param anchorType the type of positioning to be set to the frame
1025
- * @param anchorTarget the target frame to which it is anchored
1026
- * @param endAnchorTarget the target (end) frame to which it can be anchored
1027
- * @returns
1028
- */
1029
- this.setHorizontalAnchor = (id, anchorType, anchorTarget, endAnchorTarget) => __awaiter(this, void 0, void 0, function* () {
1030
- return this.setAnchor(id, true, anchorType, anchorTarget, endAnchorTarget);
1031
- });
1032
- /**
1033
- * This method will reset the frame's transformation properties (x, y, width, height, rotation, anchors)
1034
- * to the frame's to be inherited from the parent layout
1035
- * @param id the id of a specific frame
1036
- * @returns
1037
- * @deprecated Use 'resetTransformation' instead
1038
- */
1039
- this.resetAnchoring = (id) => __awaiter(this, void 0, void 0, function* () {
1040
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
1041
- return res.resetFrameTransformation(id).then((result) => getEditorResponseData(result));
1042
- });
1043
- /**
1044
- * This method will reset the isVisible property of a specified frame.
1045
- * @param id the id of the frame that needs to get updated
1046
- * @returns
1047
- */
1048
- this.resetVisibility = (id) => __awaiter(this, void 0, void 0, function* () {
1049
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
1050
- return res.setFrameIsVisible(id, null).then((result) => getEditorResponseData(result));
1051
- });
1052
- /**
1053
- * This method will get the frame configuration for a specified frame.
1054
- *
1055
- * A frame configuration is a set of rules that define what is allowed to
1056
- * do with a given behavior of a frame.
1057
- *
1058
- * e.g. list of allowed frame targets for a specific anchor
1059
- *
1060
- * @param id the id of the frame to get the frame configuration for
1061
- * @returns the frame's configuration
1062
- */
1063
- this.getConfiguration = (id) => __awaiter(this, void 0, void 0, function* () {
1064
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
1065
- return res.getFrameConfiguration(id).then((result) => getEditorResponseData(result));
1066
- });
1067
- /**
1068
- * This method will set the crop override for the current asset for the specified frame
1069
- * @param id the id of the frame that holds the override to reset
1070
- * @returns
1071
- */
1072
- this.resetAssetCropOverride = (id) => __awaiter(this, void 0, void 0, function* () {
1073
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
1074
- return res.resetAssetCropOverride(id).then((result) => getEditorResponseData(result));
1075
- });
1076
- /**
1077
- * This method will reset all crop overrides for the specified frame
1078
- * @param id the id of the frame
1079
- * @returns
1080
- */
1081
- this.resetAllAssetCropOverrides = (id) => __awaiter(this, void 0, void 0, function* () {
1082
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
1083
- return res.resetAllAssetCropOverrides(id).then((result) => getEditorResponseData(result));
1084
- });
1085
- /**
1086
- * This method will enable/disable gradient on a specified frame.
1087
- * @param id the id of the frame that needs to get updated
1088
- * @param value the new value to be set to the frame.
1089
- * @returns
1090
- */
1091
- this.setGradientApplied = (id, value) => __awaiter(this, void 0, void 0, function* () {
1092
- const update = { isApplied: value };
1093
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
1094
- return res
1095
- .updateFrameGradientSettings(id, JSON.stringify(update))
1096
- .then((result) => getEditorResponseData(result));
1097
- });
1098
- /**
1099
- * This method will update (or set) the local gradient on a specified frame.
1100
- * @param id the id of the frame that needs to get updated
1101
- * @param value the new value to be set to the frame.
1102
- * @returns
1103
- */
1104
- this.setLocalGradient = (id, value) => __awaiter(this, void 0, void 0, function* () {
1105
- const update = { gradient: value };
1106
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
1107
- return res
1108
- .updateFrameGradientSettings(id, JSON.stringify(update))
1109
- .then((result) => getEditorResponseData(result));
1110
- });
1111
- /**
1112
- * This method will update (or set) the frame to use the provided brand kit gradient
1113
- * @param id the id of the frame that needs to get updated
1114
- * @param value the id of an existing brandkit gradient
1115
- * @returns
1116
- */
1117
- this.setBrandKitGradient = (id, value) => __awaiter(this, void 0, void 0, function* () {
1118
- const update = { id: value };
1119
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
1120
- return res
1121
- .updateFrameGradientSettings(id, JSON.stringify(update))
1122
- .then((result) => getEditorResponseData(result));
1123
- });
1124
- /**
1125
- * This method will set the smart crop subject id for a specified frame
1126
- * @param id the id of the frame that needs to get updated
1127
- * @param subjectId the subject id to set for smart crop
1128
- * @returns
1129
- */
1130
- this.setSmartCropSubjectId = (id, subjectId) => __awaiter(this, void 0, void 0, function* () {
1131
- const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
1132
- return res
1133
- .setSmartCropSubjectId(id, subjectId)
1134
- .then((result) => getEditorResponseData(result));
1135
- });
1136
- __classPrivateFieldSet(this, _FrameController_editorAPI, editorAPI, "f");
1137
- this.shapeController = new ShapeController(__classPrivateFieldGet(this, _FrameController_editorAPI, "f"));
1138
- this.constraints = new FrameConstraintController(__classPrivateFieldGet(this, _FrameController_editorAPI, "f"));
1139
- }
1140
- }
1141
- _FrameController_editorAPI = new WeakMap();
1142
- export class FrameConstraintController {
1143
- /**
1144
- * @ignore
1145
- */
1146
- constructor(editorAPI) {
1147
- /**
1148
- * @ignore
1149
- */
1150
- _FrameConstraintController_editorAPI.set(this, void 0);
1151
- /**
1152
- * This method will retrieve all constraints for a specified frame
1153
- * @param id the id of the frame that we want to know the constraints from
1154
- * @returns the constraints configuration for the frame
1155
- */
1156
- this.get = (id) => __awaiter(this, void 0, void 0, function* () {
1157
- const res = yield __classPrivateFieldGet(this, _FrameConstraintController_editorAPI, "f");
1158
- return res.getFrameConstraints(id).then((result) => getEditorResponseData(result));
1159
- });
1160
- /**
1161
- * This method will set the selectable constraint for a specified frame
1162
- * @param id the id of the frame that needs to get updated
1163
- * @param allowed whether the frame is selectable or not
1164
- * @returns
1165
- */
1166
- this.setSelectable = (id, allowed) => __awaiter(this, void 0, void 0, function* () {
1167
- const deltaUpdate = { selectionAllowed: { value: allowed } };
1168
- const res = yield __classPrivateFieldGet(this, _FrameConstraintController_editorAPI, "f");
1169
- return res
1170
- .updateFrameConstraints(id, JSON.stringify(deltaUpdate))
1171
- .then((result) => getEditorResponseData(result));
1172
- });
1173
- /**
1174
- * This method will set the horizontal movement constraint for a specified frame
1175
- * @param id the id of the frame that needs to get updated
1176
- * @param allowed whether horizontal movement is allowed or not
1177
- * @returns
1178
- */
1179
- this.setHorizontalMovement = (id, allowed) => __awaiter(this, void 0, void 0, function* () {
1180
- const deltaUpdate = { horizontalMovementAllowed: { value: allowed } };
1181
- const res = yield __classPrivateFieldGet(this, _FrameConstraintController_editorAPI, "f");
1182
- return res
1183
- .updateFrameConstraints(id, JSON.stringify(deltaUpdate))
1184
- .then((result) => getEditorResponseData(result));
1185
- });
1186
- /**
1187
- * This method will set the vertical movement constraint for a specified frame
1188
- * @param id the id of the frame that needs to get updated
1189
- * @param allowed whether vertical movement is allowed or not
1190
- * @returns
1191
- */
1192
- this.setVerticalMovement = (id, allowed) => __awaiter(this, void 0, void 0, function* () {
1193
- const deltaUpdate = { verticalMovementAllowed: { value: allowed } };
1194
- const res = yield __classPrivateFieldGet(this, _FrameConstraintController_editorAPI, "f");
1195
- return res
1196
- .updateFrameConstraints(id, JSON.stringify(deltaUpdate))
1197
- .then((result) => getEditorResponseData(result));
1198
- });
1199
- /**
1200
- * This method will set the rotation constraint for a specified frame
1201
- * @param id the id of the frame that needs to get updated
1202
- * @param allowed whether rotation is allowed or not
1203
- * @returns
1204
- */
1205
- this.setRotation = (id, allowed) => __awaiter(this, void 0, void 0, function* () {
1206
- const deltaUpdate = { rotationAllowed: { value: allowed } };
1207
- const res = yield __classPrivateFieldGet(this, _FrameConstraintController_editorAPI, "f");
1208
- return res
1209
- .updateFrameConstraints(id, JSON.stringify(deltaUpdate))
1210
- .then((result) => getEditorResponseData(result));
1211
- });
1212
- /**
1213
- * This method will set the resize constraint for a specified frame
1214
- * @param id the id of the frame that needs to get updated
1215
- * @param allowed whether resize is allowed or not
1216
- * @param proportionLocked whether the frame's proportions are locked or not
1217
- * @returns
1218
- */
1219
- this.setResize = (id, allowed, proportionLocked) => __awaiter(this, void 0, void 0, function* () {
1220
- const deltaUpdate = Object.assign({ resizeAllowed: { value: allowed } }, (proportionLocked !== undefined && { proportionLocked: { value: proportionLocked } }));
1221
- const res = yield __classPrivateFieldGet(this, _FrameConstraintController_editorAPI, "f");
1222
- return res
1223
- .updateFrameConstraints(id, JSON.stringify(deltaUpdate))
1224
- .then((result) => getEditorResponseData(result));
1225
- });
1226
- /**
1227
- * This method will set the crop constraint for a specified image frame
1228
- * @param id the id of the frame that needs to get updated
1229
- * @param allowed whether crop is allowed or not
1230
- * @returns
1231
- */
1232
- this.setCrop = (id, allowed) => __awaiter(this, void 0, void 0, function* () {
1233
- const deltaUpdate = { image: { cropAllowed: { value: allowed } } };
1234
- const res = yield __classPrivateFieldGet(this, _FrameConstraintController_editorAPI, "f");
1235
- return res
1236
- .updateFrameConstraints(id, JSON.stringify(deltaUpdate))
1237
- .then((result) => getEditorResponseData(result));
1238
- });
1239
- /**
1240
- * This method will set the text editing constraint for a specified text frame
1241
- * @param id the id of the frame that needs to get updated
1242
- * @param allowed whether text editing is allowed or not
1243
- * @returns
1244
- */
1245
- this.setTextEditingAllowed = (id, allowed) => __awaiter(this, void 0, void 0, function* () {
1246
- const deltaUpdate = { text: { editingAllowed: { value: allowed } } };
1247
- const res = yield __classPrivateFieldGet(this, _FrameConstraintController_editorAPI, "f");
1248
- return res
1249
- .updateFrameConstraints(id, JSON.stringify(deltaUpdate))
1250
- .then((result) => getEditorResponseData(result));
1251
- });
1252
- /**
1253
- * This method will set the allowed paragraph styles constraint for a specified text frame
1254
- * @param id the id of the frame that needs to get updated
1255
- * @param constraint the managed constraint: when allowed is true, only the provided ids may be used; when false, the constraint is turned off (stored value is kept for reactivation)
1256
- * @returns
1257
- */
1258
- this.setAllowedParagraphStyles = (id, constraint) => __awaiter(this, void 0, void 0, function* () {
1259
- const deltaUpdate = { text: { paragraphStyles: { value: constraint } } };
1260
- const res = yield __classPrivateFieldGet(this, _FrameConstraintController_editorAPI, "f");
1261
- return res
1262
- .updateFrameConstraints(id, JSON.stringify(deltaUpdate))
1263
- .then((result) => getEditorResponseData(result));
1264
- });
1265
- /**
1266
- * This method will set the allowed character styles constraint for a specified text frame
1267
- * @param id the id of the frame that needs to get updated
1268
- * @param constraint the managed constraint: when allowed is true, only the provided ids may be used; when false, the constraint is turned off (stored value is kept for reactivation)
1269
- * @returns
1270
- */
1271
- this.setAllowedCharacterStyles = (id, constraint) => __awaiter(this, void 0, void 0, function* () {
1272
- const deltaUpdate = { text: { characterStyles: { value: constraint } } };
1273
- const res = yield __classPrivateFieldGet(this, _FrameConstraintController_editorAPI, "f");
1274
- return res
1275
- .updateFrameConstraints(id, JSON.stringify(deltaUpdate))
1276
- .then((result) => getEditorResponseData(result));
1277
- });
1278
- /**
1279
- * This method will set the allowed colors constraint for a specified text frame
1280
- * @param id the id of the frame that needs to get updated
1281
- * @param constraint the managed constraint: when allowed is true, only the provided ids may be used; when false, the constraint is turned off (stored value is kept for reactivation)
1282
- * @returns
1283
- */
1284
- this.setAllowedColors = (id, constraint) => __awaiter(this, void 0, void 0, function* () {
1285
- const deltaUpdate = { text: { colors: { value: constraint } } };
1286
- const res = yield __classPrivateFieldGet(this, _FrameConstraintController_editorAPI, "f");
1287
- return res
1288
- .updateFrameConstraints(id, JSON.stringify(deltaUpdate))
1289
- .then((result) => getEditorResponseData(result));
1290
- });
1291
- /**
1292
- * This method will set the allowed font sizes constraint for a specified text frame
1293
- * @param id the id of the frame that needs to get updated
1294
- * @param constraint the managed constraint: when allowed is true, restricts font sizes to min and max (inclusive); when false, the constraint is turned off (stored value is kept for reactivation)
1295
- * @returns
1296
- */
1297
- this.setAllowedFontSizes = (id, constraint) => __awaiter(this, void 0, void 0, function* () {
1298
- const deltaUpdate = { text: { fontSizes: { value: constraint } } };
1299
- const res = yield __classPrivateFieldGet(this, _FrameConstraintController_editorAPI, "f");
1300
- return res
1301
- .updateFrameConstraints(id, JSON.stringify(deltaUpdate))
1302
- .then((result) => getEditorResponseData(result));
1303
- });
1304
- __classPrivateFieldSet(this, _FrameConstraintController_editorAPI, editorAPI, "f");
1305
- }
1306
- }
1307
- _FrameConstraintController_editorAPI = new WeakMap();
1308
- //# sourceMappingURL=FrameController.js.map