@chili-publish/studio-sdk 1.9.1 → 1.11.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 (62) hide show
  1. package/_bundles/main.js +1 -1
  2. package/_bundles/main.js.map +1 -1
  3. package/_bundles/report.html +2 -2
  4. package/lib/editor-engine.json +1 -1
  5. package/lib/package.json +5 -4
  6. package/lib/src/controllers/BarcodeController.d.ts +16 -0
  7. package/lib/src/controllers/BarcodeController.js +34 -0
  8. package/lib/src/controllers/BarcodeController.js.map +1 -1
  9. package/lib/src/controllers/CharacterStyleController.d.ts +7 -0
  10. package/lib/src/controllers/CharacterStyleController.js +10 -0
  11. package/lib/src/controllers/CharacterStyleController.js.map +1 -1
  12. package/lib/src/controllers/ParagraphStyleController.d.ts +2 -2
  13. package/lib/src/controllers/ParagraphStyleController.js +1 -1
  14. package/lib/src/controllers/ParagraphStyleController.js.map +1 -1
  15. package/lib/src/controllers/VariableController.d.ts +101 -2
  16. package/lib/src/controllers/VariableController.js +157 -2
  17. package/lib/src/controllers/VariableController.js.map +1 -1
  18. package/lib/src/index.d.ts +2 -2
  19. package/lib/src/index.js +1 -1
  20. package/lib/src/index.js.map +1 -1
  21. package/lib/src/next/NextInitiator.d.ts +29 -0
  22. package/lib/src/next/NextInitiator.js +26 -0
  23. package/lib/src/next/NextInitiator.js.map +1 -0
  24. package/lib/src/next/controllers/SubscriberController.d.ts +20 -0
  25. package/lib/src/next/controllers/SubscriberController.js +21 -0
  26. package/lib/src/next/controllers/SubscriberController.js.map +1 -0
  27. package/lib/src/next/controllers/VariableController.d.ts +36 -0
  28. package/lib/src/next/controllers/VariableController.js +77 -0
  29. package/lib/src/next/controllers/VariableController.js.map +1 -0
  30. package/lib/src/next/index.d.ts +2 -0
  31. package/lib/src/next/index.js +2 -0
  32. package/lib/src/next/index.js.map +1 -0
  33. package/lib/src/next/tests/controllers/VariableController.test.d.ts +1 -0
  34. package/lib/src/next/tests/controllers/VariableController.test.js +86 -0
  35. package/lib/src/next/tests/controllers/VariableController.test.js.map +1 -0
  36. package/lib/src/next/types/NextSubscribers.d.ts +3 -0
  37. package/lib/src/next/types/NextSubscribers.js +2 -0
  38. package/lib/src/next/types/NextSubscribers.js.map +1 -0
  39. package/lib/src/next/types/VariableTypes.d.ts +5 -0
  40. package/lib/src/next/types/VariableTypes.js +2 -0
  41. package/lib/src/next/types/VariableTypes.js.map +1 -0
  42. package/lib/src/sdk.d.ts +3 -0
  43. package/lib/src/sdk.js +13 -1
  44. package/lib/src/sdk.js.map +1 -1
  45. package/lib/src/tests/controllers/BarcodeController.test.js +30 -0
  46. package/lib/src/tests/controllers/BarcodeController.test.js.map +1 -1
  47. package/lib/src/tests/controllers/CharacterStyleController.test.js +7 -0
  48. package/lib/src/tests/controllers/CharacterStyleController.test.js.map +1 -1
  49. package/lib/src/tests/controllers/VariableController.test.js +70 -1
  50. package/lib/src/tests/controllers/VariableController.test.js.map +1 -1
  51. package/lib/src/types/BarcodeTypes.d.ts +3 -0
  52. package/lib/src/types/BarcodeTypes.js.map +1 -1
  53. package/lib/src/types/CommonTypes.d.ts +5 -2
  54. package/lib/src/types/CommonTypes.js.map +1 -1
  55. package/lib/src/types/ConnectorTypes.d.ts +3 -2
  56. package/lib/src/types/ConnectorTypes.js.map +1 -1
  57. package/lib/src/types/FrameTypes.d.ts +1 -0
  58. package/lib/src/types/FrameTypes.js.map +1 -1
  59. package/lib/src/types/VariableTypes.d.ts +98 -1
  60. package/lib/src/types/VariableTypes.js +28 -0
  61. package/lib/src/types/VariableTypes.js.map +1 -1
  62. package/package.json +5 -4
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8"/>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
6
- <title>@chili-publish/studio-sdk [30 Apr 2024 at 08:09]</title>
6
+ <title>@chili-publish/studio-sdk [21 Jun 2024 at 09:52]</title>
7
7
  <link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbU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JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
8
8
 
9
9
  <script>
@@ -31,7 +31,7 @@
31
31
  <body>
32
32
  <div id="app"></div>
33
33
  <script>
34
- window.chartData = [{"label":"main.js","isAsset":true,"statSize":300244,"parsedSize":157083,"gzipSize":19822,"groups":[{"label":"src","path":"./src","statSize":300244,"groups":[{"id":920,"label":"index.ts + 68 modules (concatenated)","path":"./src/index.ts + 68 modules (concatenated)","statSize":300244,"parsedSize":157083,"gzipSize":19822,"concatenated":true,"groups":[{"label":"src","path":"./src/index.ts + 68 modules (concatenated)/src","statSize":270694,"groups":[{"id":null,"label":"index.ts","path":"./src/index.ts + 68 modules (concatenated)/src/index.ts","statSize":1241,"parsedSize":649,"gzipSize":81,"inaccurateSizes":true},{"id":null,"label":"sdk.ts","path":"./src/index.ts + 68 modules (concatenated)/src/sdk.ts","statSize":10805,"parsedSize":5653,"gzipSize":713,"inaccurateSizes":true},{"label":"types","path":"./src/index.ts + 68 modules (concatenated)/src/types","statSize":21434,"groups":[{"id":null,"label":"ConfigurationTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/ConfigurationTypes.ts","statSize":1070,"parsedSize":559,"gzipSize":70,"inaccurateSizes":true},{"id":null,"label":"DocumentTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/DocumentTypes.ts","statSize":660,"parsedSize":345,"gzipSize":43,"inaccurateSizes":true},{"id":null,"label":"ConnectorTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/ConnectorTypes.ts","statSize":6236,"parsedSize":3262,"gzipSize":411,"inaccurateSizes":true},{"id":null,"label":"FrameTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/FrameTypes.ts","statSize":2639,"parsedSize":1380,"gzipSize":174,"inaccurateSizes":true},{"id":null,"label":"LayoutTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/LayoutTypes.ts","statSize":907,"parsedSize":474,"gzipSize":59,"inaccurateSizes":true},{"id":null,"label":"MediaConnectorTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/MediaConnectorTypes.ts","statSize":468,"parsedSize":244,"gzipSize":30,"inaccurateSizes":true},{"id":null,"label":"VariableTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/VariableTypes.ts","statSize":331,"parsedSize":173,"gzipSize":21,"inaccurateSizes":true},{"id":null,"label":"BarcodeTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/BarcodeTypes.ts","statSize":1744,"parsedSize":912,"gzipSize":115,"inaccurateSizes":true},{"id":null,"label":"AnimationTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/AnimationTypes.ts","statSize":2065,"parsedSize":1080,"gzipSize":136,"inaccurateSizes":true},{"id":null,"label":"ViewModeTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/ViewModeTypes.ts","statSize":149,"parsedSize":77,"gzipSize":9,"inaccurateSizes":true},{"id":null,"label":"TextStyleTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/TextStyleTypes.ts","statSize":2950,"parsedSize":1543,"gzipSize":194,"inaccurateSizes":true},{"id":null,"label":"ColorStyleTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/ColorStyleTypes.ts","statSize":583,"parsedSize":305,"gzipSize":38,"inaccurateSizes":true},{"id":null,"label":"FontConnectorTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/FontConnectorTypes.ts","statSize":197,"parsedSize":103,"gzipSize":13,"inaccurateSizes":true},{"id":null,"label":"ActionTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/ActionTypes.ts","statSize":1012,"parsedSize":529,"gzipSize":66,"inaccurateSizes":true},{"id":null,"label":"ShapeTypes.ts","path":"./src/index.ts + 68 modules (concatenated)/src/types/ShapeTypes.ts","statSize":423,"parsedSize":221,"gzipSize":27,"inaccurateSizes":true}],"parsedSize":11213,"gzipSize":1415,"inaccurateSizes":true},{"label":"utils","path":"./src/index.ts + 68 modules (concatenated)/src/utils","statSize":2889,"groups":[{"id":null,"label":"enums.ts","path":"./src/index.ts + 68 modules (concatenated)/src/utils/enums.ts","statSize":1750,"parsedSize":915,"gzipSize":115,"inaccurateSizes":true},{"id":null,"label":"EditorResponseData.ts","path":"./src/index.ts + 68 modules (concatenated)/src/utils/EditorResponseData.ts","statSize":996,"parsedSize":521,"gzipSize":65,"inaccurateSizes":true},{"id":null,"label":"MathUtils.ts","path":"./src/index.ts + 68 modules (concatenated)/src/utils/MathUtils.ts","statSize":143,"parsedSize":74,"gzipSize":9,"inaccurateSizes":true}],"parsedSize":1511,"gzipSize":190,"inaccurateSizes":true},{"label":"interactions","path":"./src/index.ts + 68 modules (concatenated)/src/interactions","statSize":4817,"groups":[{"id":null,"label":"connector.ts","path":"./src/index.ts + 68 modules (concatenated)/src/interactions/connector.ts","statSize":4817,"parsedSize":2520,"gzipSize":318,"inaccurateSizes":true}],"parsedSize":2520,"gzipSize":318,"inaccurateSizes":true},{"label":"controllers","path":"./src/index.ts + 68 modules (concatenated)/src/controllers","statSize":229508,"groups":[{"id":null,"label":"ActionController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/ActionController.ts","statSize":7433,"parsedSize":3888,"gzipSize":490,"inaccurateSizes":true},{"id":null,"label":"AnimationController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/AnimationController.ts","statSize":7249,"parsedSize":3792,"gzipSize":478,"inaccurateSizes":true},{"id":null,"label":"CanvasController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/CanvasController.ts","statSize":4499,"parsedSize":2353,"gzipSize":297,"inaccurateSizes":true},{"id":null,"label":"CharacterStyleController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/CharacterStyleController.ts","statSize":6139,"parsedSize":3211,"gzipSize":405,"inaccurateSizes":true},{"id":null,"label":"ColorStyleController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/ColorStyleController.ts","statSize":5988,"parsedSize":3132,"gzipSize":395,"inaccurateSizes":true},{"id":null,"label":"ColorConversionController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/ColorConversionController.ts","statSize":2928,"parsedSize":1531,"gzipSize":193,"inaccurateSizes":true},{"id":null,"label":"ConfigurationController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/ConfigurationController.ts","statSize":4592,"parsedSize":2402,"gzipSize":303,"inaccurateSizes":true},{"id":null,"label":"ConnectorController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/ConnectorController.ts","statSize":13447,"parsedSize":7035,"gzipSize":887,"inaccurateSizes":true},{"id":null,"label":"DebugController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/DebugController.ts","statSize":3842,"parsedSize":2010,"gzipSize":253,"inaccurateSizes":true},{"id":null,"label":"DocumentController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/DocumentController.ts","statSize":3969,"parsedSize":2076,"gzipSize":262,"inaccurateSizes":true},{"id":null,"label":"ExperimentController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/ExperimentController.ts","statSize":6512,"parsedSize":3406,"gzipSize":429,"inaccurateSizes":true},{"id":null,"label":"FontConnectorController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/FontConnectorController.ts","statSize":9200,"parsedSize":4813,"gzipSize":607,"inaccurateSizes":true},{"id":null,"label":"FontController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/FontController.ts","statSize":9036,"parsedSize":4727,"gzipSize":596,"inaccurateSizes":true},{"id":null,"label":"FrameController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/FrameController.ts","statSize":32840,"parsedSize":17181,"gzipSize":2168,"inaccurateSizes":true},{"id":null,"label":"ShapeController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/ShapeController.ts","statSize":9127,"parsedSize":4775,"gzipSize":602,"inaccurateSizes":true},{"id":null,"label":"LayoutController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/LayoutController.ts","statSize":16300,"parsedSize":8527,"gzipSize":1076,"inaccurateSizes":true},{"id":null,"label":"MediaConnectorController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/MediaConnectorController.ts","statSize":9130,"parsedSize":4776,"gzipSize":602,"inaccurateSizes":true},{"id":null,"label":"PageController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/PageController.ts","statSize":4406,"parsedSize":2305,"gzipSize":290,"inaccurateSizes":true},{"id":null,"label":"ParagraphStyleController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/ParagraphStyleController.ts","statSize":6193,"parsedSize":3240,"gzipSize":408,"inaccurateSizes":true},{"id":null,"label":"SubscriberController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/SubscriberController.ts","statSize":15729,"parsedSize":8229,"gzipSize":1038,"inaccurateSizes":true},{"id":null,"label":"TextStyleController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/TextStyleController.ts","statSize":3957,"parsedSize":2070,"gzipSize":261,"inaccurateSizes":true},{"id":null,"label":"ToolController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/ToolController.ts","statSize":5296,"parsedSize":2770,"gzipSize":349,"inaccurateSizes":true},{"id":null,"label":"UndoManagerController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/UndoManagerController.ts","statSize":6355,"parsedSize":3324,"gzipSize":419,"inaccurateSizes":true},{"id":null,"label":"UtilsController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/UtilsController.ts","statSize":1305,"parsedSize":682,"gzipSize":86,"inaccurateSizes":true},{"id":null,"label":"VariableController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/VariableController.ts","statSize":14891,"parsedSize":7790,"gzipSize":983,"inaccurateSizes":true},{"id":null,"label":"InfoController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/InfoController.ts","statSize":658,"parsedSize":344,"gzipSize":43,"inaccurateSizes":true},{"id":null,"label":"ClipboardController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/ClipboardController.ts","statSize":4643,"parsedSize":2429,"gzipSize":306,"inaccurateSizes":true},{"id":null,"label":"BarcodeController.ts","path":"./src/index.ts + 68 modules (concatenated)/src/controllers/BarcodeController.ts","statSize":13844,"parsedSize":7242,"gzipSize":913,"inaccurateSizes":true}],"parsedSize":120075,"gzipSize":15152,"inaccurateSizes":true}],"parsedSize":141622,"gzipSize":17871,"inaccurateSizes":true},{"id":null,"label":"package.json","path":"./src/index.ts + 68 modules (concatenated)/package.json","statSize":2505,"parsedSize":1310,"gzipSize":165,"inaccurateSizes":true},{"id":null,"label":"editor-engine.json","path":"./src/index.ts + 68 modules (concatenated)/editor-engine.json","statSize":34,"parsedSize":17,"gzipSize":2,"inaccurateSizes":true},{"label":"node_modules/penpal/lib","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib","statSize":27011,"groups":[{"id":null,"label":"index.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/index.js","statSize":176,"parsedSize":92,"gzipSize":11,"inaccurateSizes":true},{"label":"parent","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/parent","statSize":8421,"groups":[{"id":null,"label":"connectToChild.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/parent/connectToChild.js","statSize":2916,"parsedSize":1525,"gzipSize":192,"inaccurateSizes":true},{"id":null,"label":"getOriginFromSrc.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/parent/getOriginFromSrc.js","statSize":1665,"parsedSize":871,"gzipSize":109,"inaccurateSizes":true},{"id":null,"label":"handleAckMessageFactory.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/parent/handleAckMessageFactory.js","statSize":2012,"parsedSize":1052,"gzipSize":132,"inaccurateSizes":true},{"id":null,"label":"handleSynMessageFactory.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/parent/handleSynMessageFactory.js","statSize":689,"parsedSize":360,"gzipSize":45,"inaccurateSizes":true},{"id":null,"label":"validateIframeHasSrcOrSrcDoc.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/parent/validateIframeHasSrcOrSrcDoc.js","statSize":267,"parsedSize":139,"gzipSize":17,"inaccurateSizes":true},{"id":null,"label":"monitorIframeRemoval.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/parent/monitorIframeRemoval.js","statSize":872,"parsedSize":456,"gzipSize":57,"inaccurateSizes":true}],"parsedSize":4405,"gzipSize":555,"inaccurateSizes":true},{"id":null,"label":"enums.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/enums.js","statSize":989,"parsedSize":517,"gzipSize":65,"inaccurateSizes":true},{"label":"child","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/child","statSize":4851,"groups":[{"id":null,"label":"connectToParent.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/child/connectToParent.js","statSize":2959,"parsedSize":1548,"gzipSize":195,"inaccurateSizes":true},{"id":null,"label":"handleSynAckMessageFactory.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/child/handleSynAckMessageFactory.js","statSize":1892,"parsedSize":989,"gzipSize":124,"inaccurateSizes":true}],"parsedSize":2537,"gzipSize":320,"inaccurateSizes":true},{"id":null,"label":"methodSerialization.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/methodSerialization.js","statSize":2541,"parsedSize":1329,"gzipSize":167,"inaccurateSizes":true},{"id":null,"label":"startConnectionTimeout.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/startConnectionTimeout.js","statSize":556,"parsedSize":290,"gzipSize":36,"inaccurateSizes":true},{"id":null,"label":"createLogger.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/createLogger.js","statSize":234,"parsedSize":122,"gzipSize":15,"inaccurateSizes":true},{"id":null,"label":"createDestructor.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/createDestructor.js","statSize":498,"parsedSize":260,"gzipSize":32,"inaccurateSizes":true},{"id":null,"label":"connectCallReceiver.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/connectCallReceiver.js","statSize":3589,"parsedSize":1877,"gzipSize":236,"inaccurateSizes":true},{"id":null,"label":"connectCallSender.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/connectCallSender.js","statSize":4623,"parsedSize":2418,"gzipSize":305,"inaccurateSizes":true},{"id":null,"label":"errorSerialization.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/errorSerialization.js","statSize":429,"parsedSize":224,"gzipSize":28,"inaccurateSizes":true},{"id":null,"label":"generateId.js","path":"./src/index.ts + 68 modules (concatenated)/node_modules/penpal/lib/generateId.js","statSize":104,"parsedSize":54,"gzipSize":6,"inaccurateSizes":true}],"parsedSize":14131,"gzipSize":1783,"inaccurateSizes":true}]}],"parsedSize":157083,"gzipSize":19822}]}];
34
+ window.chartData = [{"label":"main.js","isAsset":true,"statSize":318053,"parsedSize":166261,"gzipSize":20904,"groups":[{"label":"src","path":"./src","statSize":318053,"groups":[{"id":732,"label":"index.ts + 71 modules (concatenated)","path":"./src/index.ts + 71 modules (concatenated)","statSize":318053,"parsedSize":166261,"gzipSize":20904,"concatenated":true,"groups":[{"label":"src","path":"./src/index.ts + 71 modules (concatenated)/src","statSize":288475,"groups":[{"id":null,"label":"index.ts","path":"./src/index.ts + 71 modules (concatenated)/src/index.ts","statSize":1254,"parsedSize":655,"gzipSize":82,"inaccurateSizes":true},{"id":null,"label":"sdk.ts","path":"./src/index.ts + 71 modules (concatenated)/src/sdk.ts","statSize":11467,"parsedSize":5994,"gzipSize":753,"inaccurateSizes":true},{"label":"types","path":"./src/index.ts + 71 modules (concatenated)/src/types","statSize":22203,"groups":[{"id":null,"label":"ConfigurationTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/ConfigurationTypes.ts","statSize":1070,"parsedSize":559,"gzipSize":70,"inaccurateSizes":true},{"id":null,"label":"DocumentTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/DocumentTypes.ts","statSize":660,"parsedSize":345,"gzipSize":43,"inaccurateSizes":true},{"id":null,"label":"ConnectorTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/ConnectorTypes.ts","statSize":6236,"parsedSize":3259,"gzipSize":409,"inaccurateSizes":true},{"id":null,"label":"FrameTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/FrameTypes.ts","statSize":2639,"parsedSize":1379,"gzipSize":173,"inaccurateSizes":true},{"id":null,"label":"LayoutTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/LayoutTypes.ts","statSize":907,"parsedSize":474,"gzipSize":59,"inaccurateSizes":true},{"id":null,"label":"MediaConnectorTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/MediaConnectorTypes.ts","statSize":468,"parsedSize":244,"gzipSize":30,"inaccurateSizes":true},{"id":null,"label":"VariableTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/VariableTypes.ts","statSize":1100,"parsedSize":575,"gzipSize":72,"inaccurateSizes":true},{"id":null,"label":"BarcodeTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/BarcodeTypes.ts","statSize":1744,"parsedSize":911,"gzipSize":114,"inaccurateSizes":true},{"id":null,"label":"AnimationTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/AnimationTypes.ts","statSize":2065,"parsedSize":1079,"gzipSize":135,"inaccurateSizes":true},{"id":null,"label":"ViewModeTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/ViewModeTypes.ts","statSize":149,"parsedSize":77,"gzipSize":9,"inaccurateSizes":true},{"id":null,"label":"TextStyleTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/TextStyleTypes.ts","statSize":2950,"parsedSize":1542,"gzipSize":193,"inaccurateSizes":true},{"id":null,"label":"ColorStyleTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/ColorStyleTypes.ts","statSize":583,"parsedSize":304,"gzipSize":38,"inaccurateSizes":true},{"id":null,"label":"FontConnectorTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/FontConnectorTypes.ts","statSize":197,"parsedSize":102,"gzipSize":12,"inaccurateSizes":true},{"id":null,"label":"ActionTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/ActionTypes.ts","statSize":1012,"parsedSize":529,"gzipSize":66,"inaccurateSizes":true},{"id":null,"label":"ShapeTypes.ts","path":"./src/index.ts + 71 modules (concatenated)/src/types/ShapeTypes.ts","statSize":423,"parsedSize":221,"gzipSize":27,"inaccurateSizes":true}],"parsedSize":11606,"gzipSize":1459,"inaccurateSizes":true},{"label":"utils","path":"./src/index.ts + 71 modules (concatenated)/src/utils","statSize":2889,"groups":[{"id":null,"label":"enums.ts","path":"./src/index.ts + 71 modules (concatenated)/src/utils/enums.ts","statSize":1750,"parsedSize":914,"gzipSize":115,"inaccurateSizes":true},{"id":null,"label":"EditorResponseData.ts","path":"./src/index.ts + 71 modules (concatenated)/src/utils/EditorResponseData.ts","statSize":996,"parsedSize":520,"gzipSize":65,"inaccurateSizes":true},{"id":null,"label":"MathUtils.ts","path":"./src/index.ts + 71 modules (concatenated)/src/utils/MathUtils.ts","statSize":143,"parsedSize":74,"gzipSize":9,"inaccurateSizes":true}],"parsedSize":1510,"gzipSize":189,"inaccurateSizes":true},{"label":"interactions","path":"./src/index.ts + 71 modules (concatenated)/src/interactions","statSize":4817,"groups":[{"id":null,"label":"connector.ts","path":"./src/index.ts + 71 modules (concatenated)/src/interactions/connector.ts","statSize":4817,"parsedSize":2518,"gzipSize":316,"inaccurateSizes":true}],"parsedSize":2518,"gzipSize":316,"inaccurateSizes":true},{"label":"controllers","path":"./src/index.ts + 71 modules (concatenated)/src/controllers","statSize":239602,"groups":[{"id":null,"label":"ActionController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/ActionController.ts","statSize":7433,"parsedSize":3885,"gzipSize":488,"inaccurateSizes":true},{"id":null,"label":"AnimationController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/AnimationController.ts","statSize":7249,"parsedSize":3789,"gzipSize":476,"inaccurateSizes":true},{"id":null,"label":"CanvasController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/CanvasController.ts","statSize":4499,"parsedSize":2351,"gzipSize":295,"inaccurateSizes":true},{"id":null,"label":"CharacterStyleController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/CharacterStyleController.ts","statSize":6660,"parsedSize":3481,"gzipSize":437,"inaccurateSizes":true},{"id":null,"label":"ColorStyleController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/ColorStyleController.ts","statSize":5988,"parsedSize":3130,"gzipSize":393,"inaccurateSizes":true},{"id":null,"label":"ColorConversionController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/ColorConversionController.ts","statSize":2928,"parsedSize":1530,"gzipSize":192,"inaccurateSizes":true},{"id":null,"label":"ConfigurationController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/ConfigurationController.ts","statSize":4592,"parsedSize":2400,"gzipSize":301,"inaccurateSizes":true},{"id":null,"label":"ConnectorController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/ConnectorController.ts","statSize":13447,"parsedSize":7029,"gzipSize":883,"inaccurateSizes":true},{"id":null,"label":"DebugController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/DebugController.ts","statSize":3842,"parsedSize":2008,"gzipSize":252,"inaccurateSizes":true},{"id":null,"label":"DocumentController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/DocumentController.ts","statSize":3969,"parsedSize":2074,"gzipSize":260,"inaccurateSizes":true},{"id":null,"label":"ExperimentController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/ExperimentController.ts","statSize":6512,"parsedSize":3404,"gzipSize":428,"inaccurateSizes":true},{"id":null,"label":"FontConnectorController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/FontConnectorController.ts","statSize":9200,"parsedSize":4809,"gzipSize":604,"inaccurateSizes":true},{"id":null,"label":"FontController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/FontController.ts","statSize":9036,"parsedSize":4723,"gzipSize":593,"inaccurateSizes":true},{"id":null,"label":"FrameController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/FrameController.ts","statSize":32840,"parsedSize":17166,"gzipSize":2158,"inaccurateSizes":true},{"id":null,"label":"ShapeController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/ShapeController.ts","statSize":9127,"parsedSize":4771,"gzipSize":599,"inaccurateSizes":true},{"id":null,"label":"LayoutController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/LayoutController.ts","statSize":16300,"parsedSize":8520,"gzipSize":1071,"inaccurateSizes":true},{"id":null,"label":"MediaConnectorController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/MediaConnectorController.ts","statSize":9130,"parsedSize":4772,"gzipSize":600,"inaccurateSizes":true},{"id":null,"label":"PageController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/PageController.ts","statSize":4406,"parsedSize":2303,"gzipSize":289,"inaccurateSizes":true},{"id":null,"label":"ParagraphStyleController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/ParagraphStyleController.ts","statSize":6192,"parsedSize":3236,"gzipSize":406,"inaccurateSizes":true},{"id":null,"label":"SubscriberController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/SubscriberController.ts","statSize":15729,"parsedSize":8222,"gzipSize":1033,"inaccurateSizes":true},{"id":null,"label":"TextStyleController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/TextStyleController.ts","statSize":3957,"parsedSize":2068,"gzipSize":260,"inaccurateSizes":true},{"id":null,"label":"ToolController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/ToolController.ts","statSize":5296,"parsedSize":2768,"gzipSize":348,"inaccurateSizes":true},{"id":null,"label":"UndoManagerController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/UndoManagerController.ts","statSize":6355,"parsedSize":3322,"gzipSize":417,"inaccurateSizes":true},{"id":null,"label":"UtilsController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/UtilsController.ts","statSize":1305,"parsedSize":682,"gzipSize":85,"inaccurateSizes":true},{"id":null,"label":"VariableController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/VariableController.ts","statSize":22546,"parsedSize":11785,"gzipSize":1481,"inaccurateSizes":true},{"id":null,"label":"InfoController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/InfoController.ts","statSize":658,"parsedSize":343,"gzipSize":43,"inaccurateSizes":true},{"id":null,"label":"ClipboardController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/ClipboardController.ts","statSize":4643,"parsedSize":2427,"gzipSize":305,"inaccurateSizes":true},{"id":null,"label":"BarcodeController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/controllers/BarcodeController.ts","statSize":15763,"parsedSize":8240,"gzipSize":1036,"inaccurateSizes":true}],"parsedSize":125251,"gzipSize":15747,"inaccurateSizes":true},{"label":"next","path":"./src/index.ts + 71 modules (concatenated)/src/next","statSize":6243,"groups":[{"id":null,"label":"NextInitiator.ts","path":"./src/index.ts + 71 modules (concatenated)/src/next/NextInitiator.ts","statSize":1488,"parsedSize":777,"gzipSize":97,"inaccurateSizes":true},{"label":"controllers","path":"./src/index.ts + 71 modules (concatenated)/src/next/controllers","statSize":4755,"groups":[{"id":null,"label":"VariableController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/next/controllers/VariableController.ts","statSize":4086,"parsedSize":2135,"gzipSize":268,"inaccurateSizes":true},{"id":null,"label":"SubscriberController.ts","path":"./src/index.ts + 71 modules (concatenated)/src/next/controllers/SubscriberController.ts","statSize":669,"parsedSize":349,"gzipSize":43,"inaccurateSizes":true}],"parsedSize":2485,"gzipSize":312,"inaccurateSizes":true}],"parsedSize":3263,"gzipSize":410,"inaccurateSizes":true}],"parsedSize":150799,"gzipSize":18959,"inaccurateSizes":true},{"id":null,"label":"package.json","path":"./src/index.ts + 71 modules (concatenated)/package.json","statSize":2533,"parsedSize":1324,"gzipSize":166,"inaccurateSizes":true},{"id":null,"label":"editor-engine.json","path":"./src/index.ts + 71 modules (concatenated)/editor-engine.json","statSize":34,"parsedSize":17,"gzipSize":2,"inaccurateSizes":true},{"label":"node_modules/penpal/lib","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib","statSize":27011,"groups":[{"id":null,"label":"index.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/index.js","statSize":176,"parsedSize":92,"gzipSize":11,"inaccurateSizes":true},{"label":"parent","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/parent","statSize":8421,"groups":[{"id":null,"label":"connectToChild.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/parent/connectToChild.js","statSize":2916,"parsedSize":1524,"gzipSize":191,"inaccurateSizes":true},{"id":null,"label":"getOriginFromSrc.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/parent/getOriginFromSrc.js","statSize":1665,"parsedSize":870,"gzipSize":109,"inaccurateSizes":true},{"id":null,"label":"handleAckMessageFactory.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/parent/handleAckMessageFactory.js","statSize":2012,"parsedSize":1051,"gzipSize":132,"inaccurateSizes":true},{"id":null,"label":"handleSynMessageFactory.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/parent/handleSynMessageFactory.js","statSize":689,"parsedSize":360,"gzipSize":45,"inaccurateSizes":true},{"id":null,"label":"validateIframeHasSrcOrSrcDoc.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/parent/validateIframeHasSrcOrSrcDoc.js","statSize":267,"parsedSize":139,"gzipSize":17,"inaccurateSizes":true},{"id":null,"label":"monitorIframeRemoval.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/parent/monitorIframeRemoval.js","statSize":872,"parsedSize":455,"gzipSize":57,"inaccurateSizes":true}],"parsedSize":4402,"gzipSize":553,"inaccurateSizes":true},{"id":null,"label":"enums.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/enums.js","statSize":989,"parsedSize":516,"gzipSize":65,"inaccurateSizes":true},{"label":"child","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/child","statSize":4851,"groups":[{"id":null,"label":"connectToParent.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/child/connectToParent.js","statSize":2959,"parsedSize":1546,"gzipSize":194,"inaccurateSizes":true},{"id":null,"label":"handleSynAckMessageFactory.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/child/handleSynAckMessageFactory.js","statSize":1892,"parsedSize":989,"gzipSize":124,"inaccurateSizes":true}],"parsedSize":2535,"gzipSize":318,"inaccurateSizes":true},{"id":null,"label":"methodSerialization.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/methodSerialization.js","statSize":2541,"parsedSize":1328,"gzipSize":167,"inaccurateSizes":true},{"id":null,"label":"startConnectionTimeout.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/startConnectionTimeout.js","statSize":556,"parsedSize":290,"gzipSize":36,"inaccurateSizes":true},{"id":null,"label":"createLogger.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/createLogger.js","statSize":234,"parsedSize":122,"gzipSize":15,"inaccurateSizes":true},{"id":null,"label":"createDestructor.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/createDestructor.js","statSize":498,"parsedSize":260,"gzipSize":32,"inaccurateSizes":true},{"id":null,"label":"connectCallReceiver.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/connectCallReceiver.js","statSize":3589,"parsedSize":1876,"gzipSize":235,"inaccurateSizes":true},{"id":null,"label":"connectCallSender.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/connectCallSender.js","statSize":4623,"parsedSize":2416,"gzipSize":303,"inaccurateSizes":true},{"id":null,"label":"errorSerialization.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/errorSerialization.js","statSize":429,"parsedSize":224,"gzipSize":28,"inaccurateSizes":true},{"id":null,"label":"generateId.js","path":"./src/index.ts + 71 modules (concatenated)/node_modules/penpal/lib/generateId.js","statSize":104,"parsedSize":54,"gzipSize":6,"inaccurateSizes":true}],"parsedSize":14119,"gzipSize":1775,"inaccurateSizes":true}]}],"parsedSize":166261,"gzipSize":20904}]}];
35
35
  window.defaultSizes = "parsed";
36
36
  </script>
37
37
  </body>
@@ -1,3 +1,3 @@
1
1
  {
2
- "current": "1.6.latest"
2
+ "current": "1.8.latest"
3
3
  }
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chili-publish/studio-sdk",
3
- "version": "1.9.1",
3
+ "version": "1.11.0",
4
4
  "description": "The sdk for the chili editor",
5
5
  "repository": {
6
6
  "type": "git",
@@ -50,9 +50,10 @@
50
50
  "node": ">=18.0.0"
51
51
  },
52
52
  "scripts": {
53
- "clean": "shx rm -rf _bundles lib lib-esm",
54
- "build": "yarn clean && tsc && tsc -m es6 --outDir lib-esm && webpack --config webpack.config.js --env env=production",
55
- "build:dev": "yarn clean && tsc && tsc -m es6 --outDir lib-esm && webpack --config webpack.config.js --env env=development",
53
+ "clean": "shx rm -rf _bundles lib lib-esm next",
54
+ "build": "yarn clean && yarn build:modules && webpack --config webpack.config.js --env env=production",
55
+ "build:modules": "tsc && tsc -m es6 --outDir lib-esm ",
56
+ "build:dev": "yarn clean && yarn build:modules && webpack --config webpack.config.js --env env=development",
56
57
  "lint": "eslint --fix \"./src/**/*.{js,jsx,ts,tsx,json}\"",
57
58
  "testw": "jest --watch",
58
59
  "test": "jest",
@@ -111,6 +111,22 @@ export declare class BarcodeController {
111
111
  * @returns
112
112
  */
113
113
  setCharacterSet: (id: Id, characterSet: BarcodeCharacterSet) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
114
+ /**
115
+ * @experimental This method sets the flag to render the end characters of the barcode. This is not
116
+ * supported for all barcode types.
117
+ * @param id The id of the specific barcode frame.
118
+ * @param drawLightMarginIndicator The flag indicating if the end characters should be drawn or not
119
+ * @returns
120
+ */
121
+ setDrawLightMarginIndicator: (id: Id, drawLightMarginIndicator: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
122
+ /**
123
+ * @experimental This method sets the flag to render the start and end characters of the barcode. This is not
124
+ * supported for all barcode types.
125
+ * @param id The id of the specific barcode frame.
126
+ * @param drawStartStopChars The flag indicating if the start and stop characters should be drawn or not
127
+ * @returns
128
+ */
129
+ setDrawStartStopChars: (id: Id, drawStartStopChars: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
114
130
  /**
115
131
  * @experimental This method returns the possible configuration options which are valid for the given barcode type.
116
132
  * @param type the barcode type for which the configuration options are requested.
@@ -194,6 +194,28 @@ export class BarcodeController {
194
194
  .setBarcodeProperties(id, JSON.stringify({ characterSet: characterSet }))
195
195
  .then((result) => getEditorResponseData(result));
196
196
  });
197
+ /**
198
+ * @experimental This method sets the flag to render the end characters of the barcode. This is not
199
+ * supported for all barcode types.
200
+ * @param id The id of the specific barcode frame.
201
+ * @param drawLightMarginIndicator The flag indicating if the end characters should be drawn or not
202
+ * @returns
203
+ */
204
+ this.setDrawLightMarginIndicator = (id, drawLightMarginIndicator) => __awaiter(this, void 0, void 0, function* () {
205
+ const properties = { drawStartStopChars: drawLightMarginIndicator };
206
+ return this.setBarcodeProperties(id, properties);
207
+ });
208
+ /**
209
+ * @experimental This method sets the flag to render the start and end characters of the barcode. This is not
210
+ * supported for all barcode types.
211
+ * @param id The id of the specific barcode frame.
212
+ * @param drawStartStopChars The flag indicating if the start and stop characters should be drawn or not
213
+ * @returns
214
+ */
215
+ this.setDrawStartStopChars = (id, drawStartStopChars) => __awaiter(this, void 0, void 0, function* () {
216
+ const properties = { drawStartStopChars: drawStartStopChars };
217
+ return this.setBarcodeProperties(id, properties);
218
+ });
197
219
  /**
198
220
  * @experimental This method returns the possible configuration options which are valid for the given barcode type.
199
221
  * @param type the barcode type for which the configuration options are requested.
@@ -206,6 +228,8 @@ export class BarcodeController {
206
228
  let allowedCharacterSets = undefined;
207
229
  let allowedErrorCorrectionLevels = undefined;
208
230
  let quietZoneAlwaysCombined = false;
231
+ let allowToggleLightMarginIndicator = false;
232
+ let allowToggleDrawStartAndEndChar = false;
209
233
  switch (type) {
210
234
  case BarcodeType.qr:
211
235
  allowedCharacterSets = [BarcodeCharacterSet.iso8859_1, BarcodeCharacterSet.utf8];
@@ -223,7 +247,12 @@ export class BarcodeController {
223
247
  quietZoneAlwaysCombined = true;
224
248
  break;
225
249
  case BarcodeType.ean13:
250
+ allowToggleText = false;
251
+ allowToggleLightMarginIndicator = true;
252
+ break;
226
253
  case BarcodeType.ean8:
254
+ allowToggleLightMarginIndicator = true;
255
+ // Intentional fall-through
227
256
  case BarcodeType.upca:
228
257
  case BarcodeType.upce:
229
258
  allowToggleText = false;
@@ -236,6 +265,9 @@ export class BarcodeController {
236
265
  BarcodeCharacterSet.code128c,
237
266
  ];
238
267
  break;
268
+ case BarcodeType.code39:
269
+ allowToggleDrawStartAndEndChar = true;
270
+ break;
239
271
  }
240
272
  return {
241
273
  allowEnableMagnification: allowEnableMagnification,
@@ -245,6 +277,8 @@ export class BarcodeController {
245
277
  allowedErrorCorrectionLevels: allowedErrorCorrectionLevels,
246
278
  allowToggleText: allowToggleText,
247
279
  quietZoneAlwaysCombined: quietZoneAlwaysCombined,
280
+ allowToggleLightMarginIndicator: allowToggleLightMarginIndicator,
281
+ allowToggleDrawStartAndEndChar: allowToggleDrawStartAndEndChar,
248
282
  };
249
283
  };
250
284
  __classPrivateFieldSet(this, _BarcodeController_editorAPI, editorAPI, "f");
@@ -1 +1 @@
1
- {"version":3,"file":"BarcodeController.js","sourceRoot":"","sources":["../../../src/controllers/BarcodeController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAGH,WAAW,EAEX,mBAAmB,EACnB,2BAA2B,GAC9B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IAM1B;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,+CAAsB;QAStB;;;;;WAKG;QACK,yBAAoB,GAAG,CAAO,EAAM,EAAE,UAA6B,EAAE,EAAE;YAC3E,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,oCAAW,CAAC;YAClC,OAAO,GAAG;iBACL,oBAAoB,CAAC,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;iBACpD,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAO,MAAM,CAAC,CAAC,CAAC;QAC/D,CAAC,CAAA,CAAC;QAEF;;;;;WAKG;QACH,wBAAmB,GAAG,CAAO,EAAM,EAAE,gBAAyB,EAAE,EAAE;YAC9D,MAAM,UAAU,GAAsB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;YAC7E,OAAO,IAAI,CAAC,oBAAoB,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QACrD,CAAC,CAAA,CAAC;QAEF;;;;;WAKG;QACH,uBAAkB,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WAAW,CAAC,IAAI,CAAC;gBACtB,KAAK,WAAW,CAAC,IAAI;oBACjB,eAAe,GAAG,KAAK,CAAC;oBACxB,MAAM;gBACV,KAAK,WAAW,CAAC,OAAO,CAAC;gBACzB,KAAK,WAAW,CAAC,MAAM;oBACnB,oBAAoB,GAAG;wBACnB,mBAAmB,CAAC,QAAQ;wBAC5B,mBAAmB,CAAC,QAAQ;wBAC5B,mBAAmB,CAAC,QAAQ;qBAC/B,CAAC;oBACF,MAAM;aACb;YACD,OAAO;gBACH,wBAAwB,EAAE,wBAAwB;gBAClD,cAAc,EAAE,cAAc;gBAC9B,cAAc,EAAE,IAAI;gBACpB,oBAAoB,EAAE,oBAAoB;gBAC1C,4BAA4B,EAAE,4BAA4B;gBAC1D,eAAe,EAAE,eAAe;gBAChC,uBAAuB,EAAE,uBAAuB;aACnD,CAAC;QACN,CAAC,CAAC;QAtOE,uBAAA,IAAI,gCAAc,SAAS,MAAA,CAAC;IAChC,CAAC;CAsOJ"}
1
+ {"version":3,"file":"BarcodeController.js","sourceRoot":"","sources":["../../../src/controllers/BarcodeController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAGH,WAAW,EAEX,mBAAmB,EACnB,2BAA2B,GAC9B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IAM1B;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,+CAAsB;QAStB;;;;;WAKG;QACK,yBAAoB,GAAG,CAAO,EAAM,EAAE,UAA6B,EAAE,EAAE;YAC3E,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,oCAAW,CAAC;YAClC,OAAO,GAAG;iBACL,oBAAoB,CAAC,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;iB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wBACnB,mBAAmB,CAAC,QAAQ;wBAC5B,mBAAmB,CAAC,QAAQ;wBAC5B,mBAAmB,CAAC,QAAQ;qBAC/B,CAAC;oBACF,MAAM;gBACV,KAAK,WAAW,CAAC,MAAM;oBACnB,8BAA8B,GAAG,IAAI,CAAC;oBACtC,MAAM;aACb;YACD,OAAO;gBACH,wBAAwB,EAAE,wBAAwB;gBAClD,cAAc,EAAE,cAAc;gBAC9B,cAAc,EAAE,IAAI;gBACpB,oBAAoB,EAAE,oBAAoB;gBAC1C,4BAA4B,EAAE,4BAA4B;gBAC1D,eAAe,EAAE,eAAe;gBAChC,uBAAuB,EAAE,uBAAuB;gBAChD,+BAA+B,EAAE,+BAA+B;gBAChE,8BAA8B,EAAE,8BAA8B;aACjE,CAAC;QACN,CAAC,CAAC;QA1QE,uBAAA,IAAI,gCAAc,SAAS,MAAA,CAAC;IAChC,CAAC;CA0QJ"}
@@ -52,4 +52,11 @@ export declare class CharacterStyleController {
52
52
  * @returns
53
53
  */
54
54
  rename: (characterStyleId: Id, characterStyleName: string) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
55
+ /**
56
+ * This method changes positions of character styles
57
+ * @param order the position of the character styles
58
+ * @param ids the list of character style ids
59
+ * @returns
60
+ */
61
+ move: (order: number, ids: Id[]) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
55
62
  }
@@ -102,6 +102,16 @@ export class CharacterStyleController {
102
102
  .renameCharacterStyle(characterStyleId, characterStyleName)
103
103
  .then((result) => getEditorResponseData(result));
104
104
  });
105
+ /**
106
+ * This method changes positions of character styles
107
+ * @param order the position of the character styles
108
+ * @param ids the list of character style ids
109
+ * @returns
110
+ */
111
+ this.move = (order, ids) => __awaiter(this, void 0, void 0, function* () {
112
+ const res = yield __classPrivateFieldGet(this, _CharacterStyleController_editorAPI, "f");
113
+ return res.moveCharacterStyles(order, ids).then((result) => getEditorResponseData(result));
114
+ });
105
115
  __classPrivateFieldSet(this, _CharacterStyleController_editorAPI, editorAPI, "f");
106
116
  }
107
117
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CharacterStyleController.js","sourceRoot":"","sources":["../../../src/controllers/CharacterStyleController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAGpE;;;GAGG;AACH,MAAM,OAAO,wBAAwB;IAMjC;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,sDAAsB;QAStB;;;WAGG;QACH,WAAM,GAAG,GAAS,EAAE;YAChB,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,2CAAW,CAAC;YAClC,OAAO,GAAG,CAAC,kBAAkB,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAmB,MAAM,CAAC,CAAC,CAAC;QACtG,CAAC,CAAA,CAAC;QAEF;;;;WAIG;QACH,YAAO,GAAG,CAAO,gBAAoB,EAAE,EAAE;YACrC,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,2CAAW,CAAC;YAClC,OAAO,GAAG;iBACL,qBAAqB,CAAC,gBAAgB,CAAC;iBACvC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAiB,MAAM,CAAC,CAAC,CAAC;QACzE,CAAC,CAAA,CAAC;QAEF;;;WAGG;QACH,WAAM,GAAG,GAAS,EAAE;YAChB,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,2CAAW,CAAC;YAClC,OAAO,GAAG,CAAC,oBAAoB,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAK,MAAM,CAAC,CAAC,CAAC;QAC1F,CAAC,CAAA,CAAC;QAEF;;;;;WAKG;QACH,WAAM,GAAG,CAAO,gBAAoB,EAAE,cAAoC,EAAE,EAAE;YAC1E,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,2CAAW,CAAC;YAClC,OAAO,GAAG;iBACL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,IAAI,uCAAc,SAAS,MAAA,CAAC;IAChC,CAAC;CAwFJ"}
@@ -55,8 +55,8 @@ export declare class ParagraphStyleController {
55
55
  /**
56
56
  * This method changes positions of paragraph styles
57
57
  * @param order the position of the paragraph styles
58
- * @param ids the list of paragraph styles ids
58
+ * @param ids the list of paragraph style ids
59
59
  * @returns
60
60
  */
61
- move: (order: number, ids: string[]) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
61
+ move: (order: number, ids: Id[]) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
62
62
  }
@@ -101,7 +101,7 @@ export class ParagraphStyleController {
101
101
  /**
102
102
  * This method changes positions of paragraph styles
103
103
  * @param order the position of the paragraph styles
104
- * @param ids the list of paragraph styles ids
104
+ * @param ids the list of paragraph style ids
105
105
  * @returns
106
106
  */
107
107
  this.move = (order, ids) => __awaiter(this, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"ParagraphStyleController.js","sourceRoot":"","sources":["../../../src/controllers/ParagraphStyleController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;;;GAGG;AACH,MAAM,OAAO,wBAAwB;IAMjC;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,sDAAsB;QAStB;;;WAGG;QACH,WAAM,GAAG,GAAS,EAAE;YAChB,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,2CAAW,CAAC;YAClC,OAAO,GAAG,CAAC,kBAAkB,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAmB,MAAM,CAAC,CAAC,CAAC;QACtG,CAAC,CAAA,CAAC;QAEF;;;;WAIG;QACH,YAAO,GAAG,CAAO,EAAM,EAAE,EAAE;YACvB,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,2CAAW,CAAC;YAClC,OAAO,GAAG,CAAC,qBAAqB,CAAC,EAAE,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M,CAAC,CAAC,CAAC;QACpG,CAAC,CAAA,CAAC;QAEF;;;;WAIG;QACH,WAAM,GAAG,CAAO,EAAM,EAAE,EAAE;YACtB,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,2CAAW,CAAC;YAClC,OAAO,GAAG,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAO,MAAM,CAAC,CAAC,CAAC;QAC9F,CAAC,CAAA,CAAC;QAEF;;;;;WAKG;QACH,SAAI,GAAG,CAAO,KAAa,EAAE,GAAa,EAAE,EAAE;YAC1C,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,2CAAW,CAAC;YAClC,OAAO,GAAG,CAAC,mBAAmB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAO,MAAM,CAAC,CAAC,CAAC;QACrG,CAAC,CAAA,CAAC;QApFE,uBAAA,IAAI,uCAAc,SAAS,MAAA,CAAC;IAChC,CAAC;CAoFJ"}
1
+ {"version":3,"file":"ParagraphStyleController.js","sourceRoot":"","sources":["../../../src/controllers/ParagraphStyleController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;;;GAGG;AACH,MAAM,OAAO,wBAAwB;IAMjC;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,sDAAsB;QAStB;;;WAGG;QACH,WAAM,GAAG,GAAS,EAAE;YAChB,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,2CAAW,CAAC;YAClC,OAAO,GAAG,CAAC,kBAAkB,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAmB,MAAM,CAAC,CAAC,CAAC;QACtG,CAAC,CAAA,CAAC;QAEF;;;;WAIG;QACH,YAAO,GA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YAClC,OAAO,GAAG,CAAC,oBAAoB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAO,MAAM,CAAC,CAAC,CAAC;QACpG,CAAC,CAAA,CAAC;QAEF;;;;WAIG;QACH,WAAM,GAAG,CAAO,EAAM,EAAE,EAAE;YACtB,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,2CAAW,CAAC;YAClC,OAAO,GAAG,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAO,MAAM,CAAC,CAAC,CAAC;QAC9F,CAAC,CAAA,CAAC;QAEF;;;;;WAKG;QACH,SAAI,GAAG,CAAO,KAAa,EAAE,GAAS,EAAE,EAAE;YACtC,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,2CAAW,CAAC;YAClC,OAAO,GAAG,CAAC,mBAAmB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAO,MAAM,CAAC,CAAC,CAAC;QACrG,CAAC,CAAA,CAAC;QApFE,uBAAA,IAAI,uCAAc,SAAS,MAAA,CAAC;IAChC,CAAC;CAoFJ"}
@@ -1,12 +1,110 @@
1
1
  import { EditorAPI, Id } from '../types/CommonTypes';
2
2
  import { ConnectorRegistration } from '../types/ConnectorTypes';
3
- import { Variable, VariableType } from '../types/VariableTypes';
3
+ import { DateRestriction, Day, Locale, Variable, VariableType } from '../types/VariableTypes';
4
+ declare class NumberVariable {
5
+ #private;
6
+ constructor(editorAPI: EditorAPI);
7
+ /**
8
+ * @experimental Sets the minimum value for a number variable
9
+ * @param id the id of the variable to update
10
+ * @param minimum the minimum value or null to remove the minimum value
11
+ * @returns
12
+ */
13
+ setMinimum: (id: string, minimum: number | null) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
14
+ /**
15
+ * @experimental Sets the maximum value for a number variable
16
+ * @param id the id of the variable to update
17
+ * @param maximum the maximum value or null to remove the maximum value
18
+ * @returns
19
+ */
20
+ setMaximum: (id: string, maximum: number | null) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
21
+ /**
22
+ * @experimental Sets the visibility of the stepper for a number variable
23
+ * @param id the id of the variable to update
24
+ * @param showStep true to show the stepper, false to hide it
25
+ * @returns
26
+ */
27
+ setShowStepper: (id: string, showStepper: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
28
+ /**
29
+ * @experimental Sets the step size for a number variable
30
+ * @param id the id of the variable to update
31
+ * @param stepSize the step size. Must be > 0
32
+ * @returns
33
+ */
34
+ setStepSize: (id: string, stepSize: number) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
35
+ /**
36
+ * @experimental Sets the thousands separator for a number variable
37
+ * @param id the id of the variable to update
38
+ * @param thousandsSeparator the thousands separator to use
39
+ * @returns
40
+ */
41
+ setThousandsSeparator: (id: string, thousandsSeparator: '' | '.' | ',' | ' ') => Promise<import("../types/CommonTypes").EditorResponse<null>>;
42
+ /**
43
+ * @experimental Sets the decimal separator for a number variable
44
+ * @param id the id of the variable to update
45
+ * @param decimalSeparator the decimal separator to use
46
+ * @returns
47
+ */
48
+ setDecimalSeparator: (id: string, decimalSeparator: '' | '.' | ',' | ' ') => Promise<import("../types/CommonTypes").EditorResponse<null>>;
49
+ /**
50
+ * @experimental Sets or clears the decimal character style for a number variable
51
+ * @param id the id of the variable to update
52
+ * @param characterStyleId the id of the character style to use/clear for the decimals
53
+ * @returns
54
+ */
55
+ setDecimalCharacterStyle: (id: string, characterStyleId: string | null) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
56
+ /**
57
+ * @experimental Sets the number of decimals for a number variable
58
+ * @param id the id of the variable to update
59
+ * @param numberOfDecimals the number of decimals to use
60
+ * @returns
61
+ */
62
+ setNumberOfDecimals: (id: string, numberOfDecimals: 0 | 1 | 2 | 3 | 4) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
63
+ private applyPropertiesUpdate;
64
+ }
65
+ declare class DateVariable {
66
+ #private;
67
+ constructor(editorAPI: EditorAPI);
68
+ /**
69
+ * @experimental This method sets the display format for a date variable.
70
+ * @param id The id of the date variable to update
71
+ * @param displayFormat The display format for the date variable
72
+ */
73
+ setDisplayFormat: (id: string, displayFormat: string) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
74
+ /**
75
+ * @experimental This method sets the locale for a date variable.
76
+ * @param id The id of the date variable to update
77
+ * @param locale The locale for the date variable
78
+ */
79
+ setLocale: (id: string, locale: Locale) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
80
+ /**
81
+ * @experimental This method sets or clears the start date for a date variable.
82
+ * @param id The id of the date variable to update
83
+ * @param date The start date for the date variable
84
+ */
85
+ setStartDate: (id: string, date: DateRestriction | null) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
86
+ /**
87
+ * @experimental This method sets or clears the end date for a date variable.
88
+ * @param id The id of the date variable to update
89
+ * @param date The end date for the date variable
90
+ */
91
+ setEndDate: (id: string, date: DateRestriction | null) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
92
+ /**
93
+ * @experimental This method sets or clears the excluded days for a date variable.
94
+ * @param id The id of the date variable to update
95
+ * @param excludedDays The excluded days for the date variable
96
+ */
97
+ setExcludedDays: (id: string, excludedDays: Day[] | null) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
98
+ private applyPropertiesUpdate;
99
+ }
4
100
  /**
5
101
  * The VariableController is responsible for all communication regarding the variables.
6
102
  * Methods inside this controller can be called by `window.SDK.variable.{method-name}`
7
103
  */
8
104
  export declare class VariableController {
9
105
  #private;
106
+ number: NumberVariable;
107
+ date: DateVariable;
10
108
  /**
11
109
  * @ignore
12
110
  */
@@ -81,7 +179,7 @@ export declare class VariableController {
81
179
  * @param value the new value of the variable
82
180
  * @returns
83
181
  */
84
- setValue: (id: Id, value: string | boolean | null) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
182
+ setValue: (id: Id, value: string | boolean | number | null) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
85
183
  /**
86
184
  * This method creates a copy of a variable
87
185
  * @returns
@@ -164,3 +262,4 @@ export declare class VariableController {
164
262
  private makeVariableBackwardsCompatible;
165
263
  private makeListVariableBackwardsCompatible;
166
264
  }
265
+ export {};