@chili-publish/studio-sdk 1.14.0 → 1.17.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 (95) 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 +1 -1
  6. package/lib/src/controllers/ActionController.d.ts +12 -0
  7. package/lib/src/controllers/ActionController.js +18 -0
  8. package/lib/src/controllers/ActionController.js.map +1 -1
  9. package/lib/src/controllers/ColorStyleController.js +6 -3
  10. package/lib/src/controllers/ColorStyleController.js.map +1 -1
  11. package/lib/src/controllers/DataConnectorController.d.ts +69 -0
  12. package/lib/src/controllers/DataConnectorController.js +134 -0
  13. package/lib/src/controllers/DataConnectorController.js.map +1 -0
  14. package/lib/src/controllers/DocumentController.d.ts +7 -0
  15. package/lib/src/controllers/DocumentController.js +12 -0
  16. package/lib/src/controllers/DocumentController.js.map +1 -1
  17. package/lib/src/controllers/FontConnectorController.d.ts +9 -8
  18. package/lib/src/controllers/FontConnectorController.js +8 -7
  19. package/lib/src/controllers/FontConnectorController.js.map +1 -1
  20. package/lib/src/controllers/FrameController.d.ts +132 -82
  21. package/lib/src/controllers/FrameController.js +97 -21
  22. package/lib/src/controllers/FrameController.js.map +1 -1
  23. package/lib/src/controllers/LayoutController.d.ts +2 -2
  24. package/lib/src/controllers/LayoutController.js +7 -2
  25. package/lib/src/controllers/LayoutController.js.map +1 -1
  26. package/lib/src/controllers/MediaConnectorController.d.ts +9 -8
  27. package/lib/src/controllers/MediaConnectorController.js +8 -7
  28. package/lib/src/controllers/MediaConnectorController.js.map +1 -1
  29. package/lib/src/controllers/PageController.d.ts +7 -0
  30. package/lib/src/controllers/PageController.js +10 -0
  31. package/lib/src/controllers/PageController.js.map +1 -1
  32. package/lib/src/controllers/VariableController.d.ts +17 -1
  33. package/lib/src/controllers/VariableController.js +24 -0
  34. package/lib/src/controllers/VariableController.js.map +1 -1
  35. package/lib/src/index.d.ts +10 -6
  36. package/lib/src/index.js +5 -1
  37. package/lib/src/index.js.map +1 -1
  38. package/lib/src/next/index.d.ts +2 -1
  39. package/lib/src/next/index.js +1 -1
  40. package/lib/src/next/index.js.map +1 -1
  41. package/lib/src/next/tests/controllers/ConnectorController.test.js +1 -2
  42. package/lib/src/next/tests/controllers/ConnectorController.test.js.map +1 -1
  43. package/lib/src/next/tests/controllers/VariableController.test.js +1 -0
  44. package/lib/src/next/tests/controllers/VariableController.test.js.map +1 -1
  45. package/lib/src/next/types/ConnectorTypes.d.ts +2 -1
  46. package/lib/src/next/types/ConnectorTypes.js +1 -0
  47. package/lib/src/next/types/ConnectorTypes.js.map +1 -1
  48. package/lib/src/sdk.d.ts +2 -0
  49. package/lib/src/sdk.js +3 -0
  50. package/lib/src/sdk.js.map +1 -1
  51. package/lib/src/tests/controllers/ActionController.test.js +12 -0
  52. package/lib/src/tests/controllers/ActionController.test.js.map +1 -1
  53. package/lib/src/tests/controllers/ColorStyleController.test.js +11 -0
  54. package/lib/src/tests/controllers/ColorStyleController.test.js.map +1 -1
  55. package/lib/src/tests/controllers/DataConnectorController.test.d.ts +1 -0
  56. package/lib/src/tests/controllers/DataConnectorController.test.js +102 -0
  57. package/lib/src/tests/controllers/DataConnectorController.test.js.map +1 -0
  58. package/lib/src/tests/controllers/DocumentController.test.js +15 -0
  59. package/lib/src/tests/controllers/DocumentController.test.js.map +1 -1
  60. package/lib/src/tests/controllers/FrameController.test.js +57 -31
  61. package/lib/src/tests/controllers/FrameController.test.js.map +1 -1
  62. package/lib/src/tests/controllers/LayoutController.test.js +23 -1
  63. package/lib/src/tests/controllers/LayoutController.test.js.map +1 -1
  64. package/lib/src/tests/controllers/PageController.test.js +7 -0
  65. package/lib/src/tests/controllers/PageController.test.js.map +1 -1
  66. package/lib/src/tests/controllers/VariableController.test.js +18 -0
  67. package/lib/src/tests/controllers/VariableController.test.js.map +1 -1
  68. package/lib/src/tests/utils/editorResponseData.test.js +45 -1
  69. package/lib/src/tests/utils/editorResponseData.test.js.map +1 -1
  70. package/lib/src/types/ColorStyleTypes.d.ts +30 -2
  71. package/lib/src/types/ColorStyleTypes.js +5 -0
  72. package/lib/src/types/ColorStyleTypes.js.map +1 -1
  73. package/lib/src/types/ConnectorTypes.d.ts +2 -13
  74. package/lib/src/types/ConnectorTypes.js +1 -0
  75. package/lib/src/types/ConnectorTypes.js.map +1 -1
  76. package/lib/src/types/DataConnectorTypes.d.ts +35 -0
  77. package/lib/src/types/DataConnectorTypes.js +2 -0
  78. package/lib/src/types/DataConnectorTypes.js.map +1 -0
  79. package/lib/src/types/DocumentTypes.d.ts +0 -1
  80. package/lib/src/types/DocumentTypes.js.map +1 -1
  81. package/lib/src/types/FontConnectorTypes.d.ts +6 -0
  82. package/lib/src/types/FontConnectorTypes.js.map +1 -1
  83. package/lib/src/types/FrameTypes.d.ts +63 -10
  84. package/lib/src/types/FrameTypes.js +30 -0
  85. package/lib/src/types/FrameTypes.js.map +1 -1
  86. package/lib/src/types/LayoutTypes.d.ts +9 -0
  87. package/lib/src/types/LayoutTypes.js.map +1 -1
  88. package/lib/src/types/MediaConnectorTypes.d.ts +6 -0
  89. package/lib/src/types/MediaConnectorTypes.js.map +1 -1
  90. package/lib/src/types/VariableTypes.d.ts +2 -0
  91. package/lib/src/types/VariableTypes.js.map +1 -1
  92. package/lib/src/utils/EditorResponseData.d.ts +4 -0
  93. package/lib/src/utils/EditorResponseData.js +19 -2
  94. package/lib/src/utils/EditorResponseData.js.map +1 -1
  95. package/package.json +1 -1
@@ -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 [19 Aug 2024 at 14:12]</title>
6
+ <title>@chili-publish/studio-sdk [22 Nov 2024 at 09:47]</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/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlS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d22dhXYP0/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":349219,"parsedSize":182507,"gzipSize":22471,"groups":[{"label":"src","path":"./src","statSize":349219,"groups":[{"id":122,"label":"index.ts + 74 modules (concatenated)","path":"./src/index.ts + 74 modules (concatenated)","statSize":349219,"parsedSize":182507,"gzipSize":22471,"concatenated":true,"groups":[{"label":"src","path":"./src/index.ts + 74 modules (concatenated)/src","statSize":319640,"groups":[{"id":null,"label":"index.ts","path":"./src/index.ts + 74 modules (concatenated)/src/index.ts","statSize":1273,"parsedSize":665,"gzipSize":81,"inaccurateSizes":true},{"id":null,"label":"sdk.ts","path":"./src/index.ts + 74 modules (concatenated)/src/sdk.ts","statSize":11605,"parsedSize":6064,"gzipSize":746,"inaccurateSizes":true},{"label":"types","path":"./src/index.ts + 74 modules (concatenated)/src/types","statSize":22552,"groups":[{"id":null,"label":"ConfigurationTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/ConfigurationTypes.ts","statSize":1070,"parsedSize":559,"gzipSize":68,"inaccurateSizes":true},{"id":null,"label":"DocumentTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/DocumentTypes.ts","statSize":660,"parsedSize":344,"gzipSize":42,"inaccurateSizes":true},{"id":null,"label":"ConnectorTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/ConnectorTypes.ts","statSize":6308,"parsedSize":3296,"gzipSize":405,"inaccurateSizes":true},{"id":null,"label":"FrameTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/FrameTypes.ts","statSize":2916,"parsedSize":1523,"gzipSize":187,"inaccurateSizes":true},{"id":null,"label":"LayoutTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/LayoutTypes.ts","statSize":907,"parsedSize":474,"gzipSize":58,"inaccurateSizes":true},{"id":null,"label":"MediaConnectorTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/MediaConnectorTypes.ts","statSize":468,"parsedSize":244,"gzipSize":30,"inaccurateSizes":true},{"id":null,"label":"VariableTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/VariableTypes.ts","statSize":1100,"parsedSize":574,"gzipSize":70,"inaccurateSizes":true},{"id":null,"label":"BarcodeTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/BarcodeTypes.ts","statSize":1744,"parsedSize":911,"gzipSize":112,"inaccurateSizes":true},{"id":null,"label":"AnimationTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/AnimationTypes.ts","statSize":2065,"parsedSize":1079,"gzipSize":132,"inaccurateSizes":true},{"id":null,"label":"ViewModeTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/ViewModeTypes.ts","statSize":149,"parsedSize":77,"gzipSize":9,"inaccurateSizes":true},{"id":null,"label":"TextStyleTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/TextStyleTypes.ts","statSize":2950,"parsedSize":1541,"gzipSize":189,"inaccurateSizes":true},{"id":null,"label":"ColorStyleTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/ColorStyleTypes.ts","statSize":583,"parsedSize":304,"gzipSize":37,"inaccurateSizes":true},{"id":null,"label":"FontConnectorTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/FontConnectorTypes.ts","statSize":197,"parsedSize":102,"gzipSize":12,"inaccurateSizes":true},{"id":null,"label":"ActionTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/ActionTypes.ts","statSize":1012,"parsedSize":528,"gzipSize":65,"inaccurateSizes":true},{"id":null,"label":"ShapeTypes.ts","path":"./src/index.ts + 74 modules (concatenated)/src/types/ShapeTypes.ts","statSize":423,"parsedSize":221,"gzipSize":27,"inaccurateSizes":true}],"parsedSize":11786,"gzipSize":1451,"inaccurateSizes":true},{"label":"utils","path":"./src/index.ts + 74 modules (concatenated)/src/utils","statSize":9245,"groups":[{"id":null,"label":"enums.ts","path":"./src/index.ts + 74 modules (concatenated)/src/utils/enums.ts","statSize":1750,"parsedSize":914,"gzipSize":112,"inaccurateSizes":true},{"id":null,"label":"LocalConfigurationDecorator.ts","path":"./src/index.ts + 74 modules (concatenated)/src/utils/LocalConfigurationDecorator.ts","statSize":3890,"parsedSize":2032,"gzipSize":250,"inaccurateSizes":true},{"id":null,"label":"EditorResponseData.ts","path":"./src/index.ts + 74 modules (concatenated)/src/utils/EditorResponseData.ts","statSize":996,"parsedSize":520,"gzipSize":64,"inaccurateSizes":true},{"id":null,"label":"ConnectorCompatibilityTools.ts","path":"./src/index.ts + 74 modules (concatenated)/src/utils/ConnectorCompatibilityTools.ts","statSize":2466,"parsedSize":1288,"gzipSize":158,"inaccurateSizes":true},{"id":null,"label":"MathUtils.ts","path":"./src/index.ts + 74 modules (concatenated)/src/utils/MathUtils.ts","statSize":143,"parsedSize":74,"gzipSize":9,"inaccurateSizes":true}],"parsedSize":4831,"gzipSize":594,"inaccurateSizes":true},{"label":"interactions","path":"./src/index.ts + 74 modules (concatenated)/src/interactions","statSize":4829,"groups":[{"id":null,"label":"connector.ts","path":"./src/index.ts + 74 modules (concatenated)/src/interactions/connector.ts","statSize":4829,"parsedSize":2523,"gzipSize":310,"inaccurateSizes":true}],"parsedSize":2523,"gzipSize":310,"inaccurateSizes":true},{"label":"controllers","path":"./src/index.ts + 74 modules (concatenated)/src/controllers","statSize":257570,"groups":[{"id":null,"label":"ActionController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/ActionController.ts","statSize":7433,"parsedSize":3884,"gzipSize":478,"inaccurateSizes":true},{"id":null,"label":"AnimationController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/AnimationController.ts","statSize":7249,"parsedSize":3788,"gzipSize":466,"inaccurateSizes":true},{"id":null,"label":"CanvasController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/CanvasController.ts","statSize":4499,"parsedSize":2351,"gzipSize":289,"inaccurateSizes":true},{"id":null,"label":"CharacterStyleController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/CharacterStyleController.ts","statSize":6660,"parsedSize":3480,"gzipSize":428,"inaccurateSizes":true},{"id":null,"label":"ColorStyleController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/ColorStyleController.ts","statSize":5988,"parsedSize":3129,"gzipSize":385,"inaccurateSizes":true},{"id":null,"label":"ColorConversionController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/ColorConversionController.ts","statSize":2928,"parsedSize":1530,"gzipSize":188,"inaccurateSizes":true},{"id":null,"label":"ConnectorController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/ConnectorController.ts","statSize":15865,"parsedSize":8291,"gzipSize":1020,"inaccurateSizes":true},{"id":null,"label":"DebugController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/DebugController.ts","statSize":3842,"parsedSize":2007,"gzipSize":247,"inaccurateSizes":true},{"id":null,"label":"DocumentController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/DocumentController.ts","statSize":3969,"parsedSize":2074,"gzipSize":255,"inaccurateSizes":true},{"id":null,"label":"ExperimentController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/ExperimentController.ts","statSize":6512,"parsedSize":3403,"gzipSize":419,"inaccurateSizes":true},{"id":null,"label":"FontConnectorController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/FontConnectorController.ts","statSize":9200,"parsedSize":4808,"gzipSize":591,"inaccurateSizes":true},{"id":null,"label":"FontController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/FontController.ts","statSize":9036,"parsedSize":4722,"gzipSize":581,"inaccurateSizes":true},{"id":null,"label":"FrameController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/FrameController.ts","statSize":41536,"parsedSize":21707,"gzipSize":2672,"inaccurateSizes":true},{"id":null,"label":"ShapeController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/ShapeController.ts","statSize":9127,"parsedSize":4769,"gzipSize":587,"inaccurateSizes":true},{"id":null,"label":"LayoutController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/LayoutController.ts","statSize":16300,"parsedSize":8518,"gzipSize":1048,"inaccurateSizes":true},{"id":null,"label":"MediaConnectorController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/MediaConnectorController.ts","statSize":9130,"parsedSize":4771,"gzipSize":587,"inaccurateSizes":true},{"id":null,"label":"PageController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/PageController.ts","statSize":4406,"parsedSize":2302,"gzipSize":283,"inaccurateSizes":true},{"id":null,"label":"ParagraphStyleController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/ParagraphStyleController.ts","statSize":6192,"parsedSize":3236,"gzipSize":398,"inaccurateSizes":true},{"id":null,"label":"SubscriberController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/SubscriberController.ts","statSize":16236,"parsedSize":8485,"gzipSize":1044,"inaccurateSizes":true},{"id":null,"label":"TextStyleController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/TextStyleController.ts","statSize":3957,"parsedSize":2067,"gzipSize":254,"inaccurateSizes":true},{"id":null,"label":"ToolController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/ToolController.ts","statSize":5296,"parsedSize":2767,"gzipSize":340,"inaccurateSizes":true},{"id":null,"label":"UndoManagerController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/UndoManagerController.ts","statSize":6355,"parsedSize":3321,"gzipSize":408,"inaccurateSizes":true},{"id":null,"label":"UtilsController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/UtilsController.ts","statSize":1305,"parsedSize":682,"gzipSize":83,"inaccurateSizes":true},{"id":null,"label":"VariableController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/VariableController.ts","statSize":28933,"parsedSize":15120,"gzipSize":1861,"inaccurateSizes":true},{"id":null,"label":"InfoController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/InfoController.ts","statSize":658,"parsedSize":343,"gzipSize":42,"inaccurateSizes":true},{"id":null,"label":"ClipboardController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/ClipboardController.ts","statSize":4643,"parsedSize":2426,"gzipSize":298,"inaccurateSizes":true},{"id":null,"label":"BarcodeController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/BarcodeController.ts","statSize":15763,"parsedSize":8237,"gzipSize":1014,"inaccurateSizes":true},{"id":null,"label":"ConfigurationController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/controllers/ConfigurationController.ts","statSize":4552,"parsedSize":2378,"gzipSize":292,"inaccurateSizes":true}],"parsedSize":134609,"gzipSize":16573,"inaccurateSizes":true},{"label":"next","path":"./src/index.ts + 74 modules (concatenated)/src/next","statSize":12566,"groups":[{"id":null,"label":"NextInitiator.ts","path":"./src/index.ts + 74 modules (concatenated)/src/next/NextInitiator.ts","statSize":1627,"parsedSize":850,"gzipSize":104,"inaccurateSizes":true},{"label":"controllers","path":"./src/index.ts + 74 modules (concatenated)/src/next/controllers","statSize":10939,"groups":[{"id":null,"label":"VariableController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/next/controllers/VariableController.ts","statSize":4942,"parsedSize":2582,"gzipSize":318,"inaccurateSizes":true},{"id":null,"label":"ConnectorController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/next/controllers/ConnectorController.ts","statSize":4945,"parsedSize":2584,"gzipSize":318,"inaccurateSizes":true},{"id":null,"label":"SubscriberController.ts","path":"./src/index.ts + 74 modules (concatenated)/src/next/controllers/SubscriberController.ts","statSize":1052,"parsedSize":549,"gzipSize":67,"inaccurateSizes":true}],"parsedSize":5716,"gzipSize":703,"inaccurateSizes":true}],"parsedSize":6567,"gzipSize":808,"inaccurateSizes":true}],"parsedSize":167048,"gzipSize":20567,"inaccurateSizes":true},{"id":null,"label":"package.json","path":"./src/index.ts + 74 modules (concatenated)/package.json","statSize":2533,"parsedSize":1323,"gzipSize":162,"inaccurateSizes":true},{"id":null,"label":"editor-engine.json","path":"./src/index.ts + 74 modules (concatenated)/editor-engine.json","statSize":35,"parsedSize":18,"gzipSize":2,"inaccurateSizes":true},{"label":"node_modules/penpal/lib","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib","statSize":27011,"groups":[{"id":null,"label":"index.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/index.js","statSize":176,"parsedSize":91,"gzipSize":11,"inaccurateSizes":true},{"label":"parent","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/parent","statSize":8421,"groups":[{"id":null,"label":"connectToChild.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/parent/connectToChild.js","statSize":2916,"parsedSize":1523,"gzipSize":187,"inaccurateSizes":true},{"id":null,"label":"getOriginFromSrc.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/parent/getOriginFromSrc.js","statSize":1665,"parsedSize":870,"gzipSize":107,"inaccurateSizes":true},{"id":null,"label":"handleAckMessageFactory.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/parent/handleAckMessageFactory.js","statSize":2012,"parsedSize":1051,"gzipSize":129,"inaccurateSizes":true},{"id":null,"label":"handleSynMessageFactory.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/parent/handleSynMessageFactory.js","statSize":689,"parsedSize":360,"gzipSize":44,"inaccurateSizes":true},{"id":null,"label":"validateIframeHasSrcOrSrcDoc.js","path":"./src/index.ts + 74 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 + 74 modules (concatenated)/node_modules/penpal/lib/parent/monitorIframeRemoval.js","statSize":872,"parsedSize":455,"gzipSize":56,"inaccurateSizes":true}],"parsedSize":4400,"gzipSize":541,"inaccurateSizes":true},{"id":null,"label":"enums.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/enums.js","statSize":989,"parsedSize":516,"gzipSize":63,"inaccurateSizes":true},{"label":"child","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/child","statSize":4851,"groups":[{"id":null,"label":"connectToParent.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/child/connectToParent.js","statSize":2959,"parsedSize":1546,"gzipSize":190,"inaccurateSizes":true},{"id":null,"label":"handleSynAckMessageFactory.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/child/handleSynAckMessageFactory.js","statSize":1892,"parsedSize":988,"gzipSize":121,"inaccurateSizes":true}],"parsedSize":2535,"gzipSize":312,"inaccurateSizes":true},{"id":null,"label":"methodSerialization.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/methodSerialization.js","statSize":2541,"parsedSize":1327,"gzipSize":163,"inaccurateSizes":true},{"id":null,"label":"startConnectionTimeout.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/startConnectionTimeout.js","statSize":556,"parsedSize":290,"gzipSize":35,"inaccurateSizes":true},{"id":null,"label":"createLogger.js","path":"./src/index.ts + 74 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 + 74 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 + 74 modules (concatenated)/node_modules/penpal/lib/connectCallReceiver.js","statSize":3589,"parsedSize":1875,"gzipSize":230,"inaccurateSizes":true},{"id":null,"label":"connectCallSender.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/connectCallSender.js","statSize":4623,"parsedSize":2416,"gzipSize":297,"inaccurateSizes":true},{"id":null,"label":"errorSerialization.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/errorSerialization.js","statSize":429,"parsedSize":224,"gzipSize":27,"inaccurateSizes":true},{"id":null,"label":"generateId.js","path":"./src/index.ts + 74 modules (concatenated)/node_modules/penpal/lib/generateId.js","statSize":104,"parsedSize":54,"gzipSize":6,"inaccurateSizes":true}],"parsedSize":14116,"gzipSize":1738,"inaccurateSizes":true}]}],"parsedSize":182507,"gzipSize":22471}]}];
34
+ window.chartData = [{"label":"main.js","isAsset":true,"statSize":367304,"parsedSize":191025,"gzipSize":23604,"groups":[{"label":"src","path":"./src","statSize":367304,"groups":[{"id":321,"label":"index.ts + 76 modules (concatenated)","path":"./src/index.ts + 76 modules (concatenated)","statSize":367304,"parsedSize":191025,"gzipSize":23604,"concatenated":true,"groups":[{"label":"src","path":"./src/index.ts + 76 modules (concatenated)/src","statSize":337726,"groups":[{"id":null,"label":"index.ts","path":"./src/index.ts + 76 modules (concatenated)/src/index.ts","statSize":1591,"parsedSize":827,"gzipSize":102,"inaccurateSizes":true},{"id":null,"label":"sdk.ts","path":"./src/index.ts + 76 modules (concatenated)/src/sdk.ts","statSize":11838,"parsedSize":6156,"gzipSize":760,"inaccurateSizes":true},{"label":"types","path":"./src/index.ts + 76 modules (concatenated)/src/types","statSize":24007,"groups":[{"id":null,"label":"ConfigurationTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/ConfigurationTypes.ts","statSize":1070,"parsedSize":556,"gzipSize":68,"inaccurateSizes":true},{"id":null,"label":"DocumentTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/DocumentTypes.ts","statSize":660,"parsedSize":343,"gzipSize":42,"inaccurateSizes":true},{"id":null,"label":"ColorStyleTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/ColorStyleTypes.ts","statSize":728,"parsedSize":378,"gzipSize":46,"inaccurateSizes":true},{"id":null,"label":"ConnectorTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/ConnectorTypes.ts","statSize":6344,"parsedSize":3299,"gzipSize":407,"inaccurateSizes":true},{"id":null,"label":"FrameTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/FrameTypes.ts","statSize":3949,"parsedSize":2053,"gzipSize":253,"inaccurateSizes":true},{"id":null,"label":"LayoutTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/LayoutTypes.ts","statSize":907,"parsedSize":471,"gzipSize":58,"inaccurateSizes":true},{"id":null,"label":"MediaConnectorTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/MediaConnectorTypes.ts","statSize":468,"parsedSize":243,"gzipSize":30,"inaccurateSizes":true},{"id":null,"label":"VariableTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/VariableTypes.ts","statSize":1100,"parsedSize":572,"gzipSize":70,"inaccurateSizes":true},{"id":null,"label":"BarcodeTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/BarcodeTypes.ts","statSize":1744,"parsedSize":907,"gzipSize":112,"inaccurateSizes":true},{"id":null,"label":"AnimationTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/AnimationTypes.ts","statSize":2065,"parsedSize":1073,"gzipSize":132,"inaccurateSizes":true},{"id":null,"label":"ViewModeTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/ViewModeTypes.ts","statSize":149,"parsedSize":77,"gzipSize":9,"inaccurateSizes":true},{"id":null,"label":"CommonTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/CommonTypes.ts","statSize":241,"parsedSize":125,"gzipSize":15,"inaccurateSizes":true},{"id":null,"label":"TextStyleTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/TextStyleTypes.ts","statSize":2950,"parsedSize":1534,"gzipSize":189,"inaccurateSizes":true},{"id":null,"label":"FontConnectorTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/FontConnectorTypes.ts","statSize":197,"parsedSize":102,"gzipSize":12,"inaccurateSizes":true},{"id":null,"label":"ActionTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/ActionTypes.ts","statSize":1012,"parsedSize":526,"gzipSize":65,"inaccurateSizes":true},{"id":null,"label":"ShapeTypes.ts","path":"./src/index.ts + 76 modules (concatenated)/src/types/ShapeTypes.ts","statSize":423,"parsedSize":219,"gzipSize":27,"inaccurateSizes":true}],"parsedSize":12485,"gzipSize":1542,"inaccurateSizes":true},{"label":"utils","path":"./src/index.ts + 76 modules (concatenated)/src/utils","statSize":9969,"groups":[{"id":null,"label":"EditorResponseData.ts","path":"./src/index.ts + 76 modules (concatenated)/src/utils/EditorResponseData.ts","statSize":1720,"parsedSize":894,"gzipSize":110,"inaccurateSizes":true},{"id":null,"label":"enums.ts","path":"./src/index.ts + 76 modules (concatenated)/src/utils/enums.ts","statSize":1750,"parsedSize":910,"gzipSize":112,"inaccurateSizes":true},{"id":null,"label":"LocalConfigurationDecorator.ts","path":"./src/index.ts + 76 modules (concatenated)/src/utils/LocalConfigurationDecorator.ts","statSize":3890,"parsedSize":2023,"gzipSize":249,"inaccurateSizes":true},{"id":null,"label":"ConnectorCompatibilityTools.ts","path":"./src/index.ts + 76 modules (concatenated)/src/utils/ConnectorCompatibilityTools.ts","statSize":2466,"parsedSize":1282,"gzipSize":158,"inaccurateSizes":true},{"id":null,"label":"MathUtils.ts","path":"./src/index.ts + 76 modules (concatenated)/src/utils/MathUtils.ts","statSize":143,"parsedSize":74,"gzipSize":9,"inaccurateSizes":true}],"parsedSize":5184,"gzipSize":640,"inaccurateSizes":true},{"label":"interactions","path":"./src/index.ts + 76 modules (concatenated)/src/interactions","statSize":4829,"groups":[{"id":null,"label":"connector.ts","path":"./src/index.ts + 76 modules (concatenated)/src/interactions/connector.ts","statSize":4829,"parsedSize":2511,"gzipSize":310,"inaccurateSizes":true}],"parsedSize":2511,"gzipSize":310,"inaccurateSizes":true},{"label":"controllers","path":"./src/index.ts + 76 modules (concatenated)/src/controllers","statSize":272926,"groups":[{"id":null,"label":"ActionController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/ActionController.ts","statSize":8283,"parsedSize":4307,"gzipSize":532,"inaccurateSizes":true},{"id":null,"label":"AnimationController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/AnimationController.ts","statSize":7249,"parsedSize":3770,"gzipSize":465,"inaccurateSizes":true},{"id":null,"label":"CanvasController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/CanvasController.ts","statSize":4499,"parsedSize":2339,"gzipSize":289,"inaccurateSizes":true},{"id":null,"label":"CharacterStyleController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/CharacterStyleController.ts","statSize":6660,"parsedSize":3463,"gzipSize":427,"inaccurateSizes":true},{"id":null,"label":"ColorStyleController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/ColorStyleController.ts","statSize":6173,"parsedSize":3210,"gzipSize":396,"inaccurateSizes":true},{"id":null,"label":"ColorConversionController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/ColorConversionController.ts","statSize":2928,"parsedSize":1522,"gzipSize":188,"inaccurateSizes":true},{"id":null,"label":"ConnectorController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/ConnectorController.ts","statSize":15865,"parsedSize":8250,"gzipSize":1019,"inaccurateSizes":true},{"id":null,"label":"DebugController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/DebugController.ts","statSize":3842,"parsedSize":1998,"gzipSize":246,"inaccurateSizes":true},{"id":null,"label":"DocumentController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/DocumentController.ts","statSize":4609,"parsedSize":2397,"gzipSize":296,"inaccurateSizes":true},{"id":null,"label":"ExperimentController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/ExperimentController.ts","statSize":6512,"parsedSize":3386,"gzipSize":418,"inaccurateSizes":true},{"id":null,"label":"FontConnectorController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/FontConnectorController.ts","statSize":9201,"parsedSize":4785,"gzipSize":591,"inaccurateSizes":true},{"id":null,"label":"FontController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/FontController.ts","statSize":9036,"parsedSize":4699,"gzipSize":580,"inaccurateSizes":true},{"id":null,"label":"FrameController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/FrameController.ts","statSize":45825,"parsedSize":23832,"gzipSize":2944,"inaccurateSizes":true},{"id":null,"label":"ShapeController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/ShapeController.ts","statSize":9127,"parsedSize":4746,"gzipSize":586,"inaccurateSizes":true},{"id":null,"label":"LayoutController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/LayoutController.ts","statSize":16572,"parsedSize":8618,"gzipSize":1064,"inaccurateSizes":true},{"id":null,"label":"MediaConnectorController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/MediaConnectorController.ts","statSize":9133,"parsedSize":4749,"gzipSize":586,"inaccurateSizes":true},{"id":null,"label":"PageController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/PageController.ts","statSize":4920,"parsedSize":2558,"gzipSize":316,"inaccurateSizes":true},{"id":null,"label":"ParagraphStyleController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/ParagraphStyleController.ts","statSize":6192,"parsedSize":3220,"gzipSize":397,"inaccurateSizes":true},{"id":null,"label":"SubscriberController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/SubscriberController.ts","statSize":16236,"parsedSize":8443,"gzipSize":1043,"inaccurateSizes":true},{"id":null,"label":"TextStyleController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/TextStyleController.ts","statSize":3957,"parsedSize":2057,"gzipSize":254,"inaccurateSizes":true},{"id":null,"label":"ToolController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/ToolController.ts","statSize":5296,"parsedSize":2754,"gzipSize":340,"inaccurateSizes":true},{"id":null,"label":"UndoManagerController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/UndoManagerController.ts","statSize":6355,"parsedSize":3305,"gzipSize":408,"inaccurateSizes":true},{"id":null,"label":"UtilsController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/UtilsController.ts","statSize":1305,"parsedSize":678,"gzipSize":83,"inaccurateSizes":true},{"id":null,"label":"VariableController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/VariableController.ts","statSize":30081,"parsedSize":15644,"gzipSize":1933,"inaccurateSizes":true},{"id":null,"label":"InfoController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/InfoController.ts","statSize":658,"parsedSize":342,"gzipSize":42,"inaccurateSizes":true},{"id":null,"label":"ClipboardController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/ClipboardController.ts","statSize":4643,"parsedSize":2414,"gzipSize":298,"inaccurateSizes":true},{"id":null,"label":"BarcodeController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/BarcodeController.ts","statSize":15763,"parsedSize":8197,"gzipSize":1012,"inaccurateSizes":true},{"id":null,"label":"DataConnectorController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/DataConnectorController.ts","statSize":7454,"parsedSize":3876,"gzipSize":479,"inaccurateSizes":true},{"id":null,"label":"ConfigurationController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/controllers/ConfigurationController.ts","statSize":4552,"parsedSize":2367,"gzipSize":292,"inaccurateSizes":true}],"parsedSize":141941,"gzipSize":17539,"inaccurateSizes":true},{"label":"next","path":"./src/index.ts + 76 modules (concatenated)/src/next","statSize":12566,"groups":[{"id":null,"label":"NextInitiator.ts","path":"./src/index.ts + 76 modules (concatenated)/src/next/NextInitiator.ts","statSize":1627,"parsedSize":846,"gzipSize":104,"inaccurateSizes":true},{"label":"controllers","path":"./src/index.ts + 76 modules (concatenated)/src/next/controllers","statSize":10939,"groups":[{"id":null,"label":"VariableController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/next/controllers/VariableController.ts","statSize":4942,"parsedSize":2570,"gzipSize":317,"inaccurateSizes":true},{"id":null,"label":"ConnectorController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/next/controllers/ConnectorController.ts","statSize":4945,"parsedSize":2571,"gzipSize":317,"inaccurateSizes":true},{"id":null,"label":"SubscriberController.ts","path":"./src/index.ts + 76 modules (concatenated)/src/next/controllers/SubscriberController.ts","statSize":1052,"parsedSize":547,"gzipSize":67,"inaccurateSizes":true}],"parsedSize":5689,"gzipSize":702,"inaccurateSizes":true}],"parsedSize":6535,"gzipSize":807,"inaccurateSizes":true}],"parsedSize":175642,"gzipSize":21703,"inaccurateSizes":true},{"id":null,"label":"package.json","path":"./src/index.ts + 76 modules (concatenated)/package.json","statSize":2533,"parsedSize":1317,"gzipSize":162,"inaccurateSizes":true},{"id":null,"label":"editor-engine.json","path":"./src/index.ts + 76 modules (concatenated)/editor-engine.json","statSize":34,"parsedSize":17,"gzipSize":2,"inaccurateSizes":true},{"label":"node_modules/penpal/lib","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib","statSize":27011,"groups":[{"id":null,"label":"index.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/index.js","statSize":176,"parsedSize":91,"gzipSize":11,"inaccurateSizes":true},{"label":"parent","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/parent","statSize":8421,"groups":[{"id":null,"label":"connectToChild.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/parent/connectToChild.js","statSize":2916,"parsedSize":1516,"gzipSize":187,"inaccurateSizes":true},{"id":null,"label":"getOriginFromSrc.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/parent/getOriginFromSrc.js","statSize":1665,"parsedSize":865,"gzipSize":106,"inaccurateSizes":true},{"id":null,"label":"handleAckMessageFactory.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/parent/handleAckMessageFactory.js","statSize":2012,"parsedSize":1046,"gzipSize":129,"inaccurateSizes":true},{"id":null,"label":"handleSynMessageFactory.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/parent/handleSynMessageFactory.js","statSize":689,"parsedSize":358,"gzipSize":44,"inaccurateSizes":true},{"id":null,"label":"validateIframeHasSrcOrSrcDoc.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/parent/validateIframeHasSrcOrSrcDoc.js","statSize":267,"parsedSize":138,"gzipSize":17,"inaccurateSizes":true},{"id":null,"label":"monitorIframeRemoval.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/parent/monitorIframeRemoval.js","statSize":872,"parsedSize":453,"gzipSize":56,"inaccurateSizes":true}],"parsedSize":4379,"gzipSize":541,"inaccurateSizes":true},{"id":null,"label":"enums.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/enums.js","statSize":989,"parsedSize":514,"gzipSize":63,"inaccurateSizes":true},{"label":"child","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/child","statSize":4851,"groups":[{"id":null,"label":"connectToParent.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/child/connectToParent.js","statSize":2959,"parsedSize":1538,"gzipSize":190,"inaccurateSizes":true},{"id":null,"label":"handleSynAckMessageFactory.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/child/handleSynAckMessageFactory.js","statSize":1892,"parsedSize":983,"gzipSize":121,"inaccurateSizes":true}],"parsedSize":2522,"gzipSize":311,"inaccurateSizes":true},{"id":null,"label":"methodSerialization.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/methodSerialization.js","statSize":2541,"parsedSize":1321,"gzipSize":163,"inaccurateSizes":true},{"id":null,"label":"startConnectionTimeout.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/startConnectionTimeout.js","statSize":556,"parsedSize":289,"gzipSize":35,"inaccurateSizes":true},{"id":null,"label":"createLogger.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/createLogger.js","statSize":234,"parsedSize":121,"gzipSize":15,"inaccurateSizes":true},{"id":null,"label":"createDestructor.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/createDestructor.js","statSize":498,"parsedSize":258,"gzipSize":32,"inaccurateSizes":true},{"id":null,"label":"connectCallReceiver.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/connectCallReceiver.js","statSize":3589,"parsedSize":1866,"gzipSize":230,"inaccurateSizes":true},{"id":null,"label":"connectCallSender.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/connectCallSender.js","statSize":4623,"parsedSize":2404,"gzipSize":297,"inaccurateSizes":true},{"id":null,"label":"errorSerialization.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/errorSerialization.js","statSize":429,"parsedSize":223,"gzipSize":27,"inaccurateSizes":true},{"id":null,"label":"generateId.js","path":"./src/index.ts + 76 modules (concatenated)/node_modules/penpal/lib/generateId.js","statSize":104,"parsedSize":54,"gzipSize":6,"inaccurateSizes":true}],"parsedSize":14047,"gzipSize":1735,"inaccurateSizes":true}]}],"parsedSize":191025,"gzipSize":23604}]}];
35
35
  window.defaultSizes = "parsed";
36
36
  </script>
37
37
  </body>
@@ -1,3 +1,3 @@
1
1
  {
2
- "current": "1.11.latest"
2
+ "current": "2.0.latest"
3
3
  }
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chili-publish/studio-sdk",
3
- "version": "1.14.0",
3
+ "version": "1.17.0",
4
4
  "description": "The sdk for the chili editor",
5
5
  "repository": {
6
6
  "type": "git",
@@ -91,4 +91,16 @@ export declare class ActionController {
91
91
  * @returns
92
92
  */
93
93
  setTypeError: (id: string, hasTypeErrors: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
94
+ /**
95
+ * This method disables the execution of Actions.
96
+ * Note that any Action will be ignored and forgotten.
97
+ * @returns
98
+ */
99
+ disable: () => Promise<import("../types/CommonTypes").EditorResponse<null>>;
100
+ /**
101
+ * This method enables the execution of Actions.
102
+ * Note this is enabled by default.
103
+ * @returns
104
+ */
105
+ enable: () => Promise<import("../types/CommonTypes").EditorResponse<null>>;
94
106
  }
@@ -143,6 +143,24 @@ export class ActionController {
143
143
  this.setTypeError = (id, hasTypeErrors) => __awaiter(this, void 0, void 0, function* () {
144
144
  return this.update(id, { hasTypeError: hasTypeErrors });
145
145
  });
146
+ /**
147
+ * This method disables the execution of Actions.
148
+ * Note that any Action will be ignored and forgotten.
149
+ * @returns
150
+ */
151
+ this.disable = () => __awaiter(this, void 0, void 0, function* () {
152
+ const res = yield __classPrivateFieldGet(this, _ActionController_editorAPI, "f");
153
+ return res.disableActions().then((result) => getEditorResponseData(result));
154
+ });
155
+ /**
156
+ * This method enables the execution of Actions.
157
+ * Note this is enabled by default.
158
+ * @returns
159
+ */
160
+ this.enable = () => __awaiter(this, void 0, void 0, function* () {
161
+ const res = yield __classPrivateFieldGet(this, _ActionController_editorAPI, "f");
162
+ return res.enableActions().then((result) => getEditorResponseData(result));
163
+ });
146
164
  __classPrivateFieldSet(this, _ActionController_editorAPI, editorAPI, "f");
147
165
  }
148
166
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ActionController.js","sourceRoot":"","sources":["../../../src/controllers/ActionController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;;;GAGG;AACH,MAAM,OAAO,gBAAgB;IAMzB;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,8CAA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AAC,qBAAqB,CAAO,MAAM,CAAC,CAAC,CAAC;QACrF,CAAC,CAAA,CAAC;QA9IE,uBAAA,IAAI,+BAAc,SAAS,MAAA,CAAC;IAChC,CAAC;CA8IJ"}
@@ -19,6 +19,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
19
19
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
20
20
  };
21
21
  var _ColorStyleController_editorAPI;
22
+ import { ColorType } from '../types/ColorStyleTypes';
22
23
  import { getEditorResponseData } from '../utils/EditorResponseData';
23
24
  /**
24
25
  * The ColorStyleController is responsible for all communication regarding color styles.
@@ -95,9 +96,11 @@ export class ColorStyleController {
95
96
  */
96
97
  this.update = (id, newColorProperties) => __awaiter(this, void 0, void 0, function* () {
97
98
  const res = yield __classPrivateFieldGet(this, _ColorStyleController_editorAPI, "f");
98
- return res
99
- .updateColor(id, JSON.stringify(newColorProperties))
100
- .then((result) => getEditorResponseData(result));
99
+ const properties = newColorProperties;
100
+ if (properties.type === ColorType.spot) {
101
+ properties.type = ColorType.spotCMYK;
102
+ }
103
+ return res.updateColor(id, JSON.stringify(properties)).then((result) => getEditorResponseData(result));
101
104
  });
102
105
  /**
103
106
  * This method removes a color
@@ -1 +1 @@
1
- {"version":3,"file":"ColorStyleController.js","sourceRoot":"","sources":["../../../src/controllers/ColorStyleController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAM7B;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,kDAAsB;QAStB;;;WAGG;QACH,WAAM,GAAG,GAAS,EAAE;YAChB,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,uCAAW,CAAC;YAClC,OAAO,GAAG,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC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YAChD,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,uCAAW,CAAC;YAClC,OAAO,GAAG,CAAC,WAAW,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAO,MAAM,CAAC,CAAC,CAAC;QACnG,CAAC,CAAA,CAAC;QAEF;;;;;WAKG;QACH,WAAM,GAAG,CAAO,EAAU,EAAE,kBAA+B,EAAE,EAAE;YAC3D,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,uCAAW,CAAC;YAClC,OAAO,GAAG;iBACL,WAAW,CAAC,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;iBACnD,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAO,MAAM,CAAC,CAAC,CAAC;QAC/D,CAAC,CAAA,CAAC;QAEF;;;;WAIG;QACH,WAAM,GAAG,CAAO,EAAU,EAAE,EAAE;YAC1B,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,uCAAW,CAAC;YAClC,OAAO,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAO,MAAM,CAAC,CAAC,CAAC;QACrF,CAAC,CAAA,CAAC;QApFE,uBAAA,IAAI,mCAAc,SAAS,MAAA,CAAC;IAChC,CAAC;CAoFJ"}
1
+ {"version":3,"file":"ColorStyleController.js","sourceRoot":"","sources":["../../../src/controllers/ColorStyleController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,SAAS,EAA8B,MAAM,0BAA0B,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAM7B;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,kDAAsB;QAStB;;;WAGG;QACH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0 +1,69 @@
1
+ import { ConnectorConfigOptions, EditorAPI, EditorResponse, MetaData } from '../types/CommonTypes';
2
+ import { DataConnectorCapabilities, DataItem, DataModel, DataPage, PageConfig } from '../types/DataConnectorTypes';
3
+ /**
4
+ * The DataConnectorController is responsible for all communication regarding Data connectors.
5
+ * Methods inside this controller can be called by `window.SDK.DataConnector.{method-name}`
6
+ *
7
+ * The way GraFx Studio handles different sources of Data is called 'DataConnector'.
8
+ * A DataConnector is an implementation of a set of capabilities we need
9
+ * to interact with a certain Data Management system.
10
+ * In essence, a connector is the combination of a JavaScript snippet and some metadata.
11
+ * The JavaScript snippet is loaded in the studio engine using a sandboxed JavaScript execution engine (QuickJs).
12
+ * This allows us to execute the Data connector
13
+ * both on web using webassembly and on the server side during e.g., animation output generation.
14
+ * This controller is an interface to the running connector instance inside the studio engine.
15
+ */
16
+ export declare class DataConnectorController {
17
+ #private;
18
+ /**
19
+ * @ignore
20
+ */
21
+ constructor(editorAPI: EditorAPI);
22
+ /**
23
+ * Query a specific DataConnector for data using both specific PageConfig and the dynamic
24
+ * context as parameters.
25
+ * @param connectorId unique id of the Data connector
26
+ * @param config page configuration
27
+ * @param context context that will be available in the connector script.
28
+ * @returns a DataPage with an array of data objects
29
+ */
30
+ getPage: (connectorId: string, config: PageConfig, context?: MetaData) => Promise<EditorResponse<DataPage<DataItem>>>;
31
+ /**
32
+ * Query a specific DataConnector for a data model using the dynamic context as parameter.
33
+ * @param connectorId unique id of the data connector
34
+ * @param context context that will be available in the connector script.
35
+ * @returns DataModel
36
+ */
37
+ getModel: (connectorId: string, context?: MetaData) => Promise<EditorResponse<DataModel>>;
38
+ /**
39
+ * All connectors have a certain set of mappings they allow to be passed into the connector methods their context. This
40
+ * method allows you to discover which mappings are available for a given connector. If you want to use any of these
41
+ * mappings, they will be available in the `context` parameter of any connector method.
42
+ * @param connectorId unique id of the data connector
43
+ * @returns connector mappings
44
+ */
45
+ getConfigurationOptions: (connectorId: string) => Promise<EditorResponse<ConnectorConfigOptions>>;
46
+ /**
47
+ * This method returns what capabilities the selected connector has. It gives an indication what methods can
48
+ * be used successfully for a certain connector.
49
+ * @param connectorId unique id of the Data connector
50
+ * @returns DataConnectorCapabilities
51
+ */
52
+ getCapabilities: (connectorId: string) => Promise<EditorResponse<DataConnectorCapabilities>>;
53
+ /**
54
+ * Check if the value is a DatePropertyWrapper with the type guard
55
+ * @param value a dynamic value which
56
+ * @returns boolean value.
57
+ */
58
+ private isDatePropertyWrapper;
59
+ /**
60
+ * Transforms an InternalDataItem into a DataItem.
61
+ *
62
+ * Converts DatePropertyWrapper values to JavaScript Date objects
63
+ * while keeping other values unchanged.
64
+ *
65
+ * @param dataItem the EngineDataItem to transform.
66
+ * @returns the resulting DataItem with parsed date properties.
67
+ */
68
+ private mapEngineToDataItem;
69
+ }
@@ -0,0 +1,134 @@
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 _DataConnectorController_editorAPI;
22
+ import { getEditorResponseData } from '../utils/EditorResponseData';
23
+ /**
24
+ * The DataConnectorController is responsible for all communication regarding Data connectors.
25
+ * Methods inside this controller can be called by `window.SDK.DataConnector.{method-name}`
26
+ *
27
+ * The way GraFx Studio handles different sources of Data is called 'DataConnector'.
28
+ * A DataConnector is an implementation of a set of capabilities we need
29
+ * to interact with a certain Data Management system.
30
+ * In essence, a connector is the combination of a JavaScript snippet and some metadata.
31
+ * The JavaScript snippet is loaded in the studio engine using a sandboxed JavaScript execution engine (QuickJs).
32
+ * This allows us to execute the Data connector
33
+ * both on web using webassembly and on the server side during e.g., animation output generation.
34
+ * This controller is an interface to the running connector instance inside the studio engine.
35
+ */
36
+ export class DataConnectorController {
37
+ /**
38
+ * @ignore
39
+ */
40
+ constructor(editorAPI) {
41
+ /**
42
+ * @ignore
43
+ */
44
+ _DataConnectorController_editorAPI.set(this, void 0);
45
+ /**
46
+ * Query a specific DataConnector for data using both specific PageConfig and the dynamic
47
+ * context as parameters.
48
+ * @param connectorId unique id of the Data connector
49
+ * @param config page configuration
50
+ * @param context context that will be available in the connector script.
51
+ * @returns a DataPage with an array of data objects
52
+ */
53
+ this.getPage = (connectorId, config, context = {}) => __awaiter(this, void 0, void 0, function* () {
54
+ const res = yield __classPrivateFieldGet(this, _DataConnectorController_editorAPI, "f");
55
+ return res
56
+ .dataConnectorGetPage(connectorId, JSON.stringify(config), JSON.stringify(context))
57
+ .then((result) => getEditorResponseData(result))
58
+ .then((resp) => {
59
+ const update = Object.assign(Object.assign({}, resp), { parsedData: null });
60
+ if (resp.parsedData) {
61
+ update.parsedData = {
62
+ data: resp.parsedData.data.map((e) => this.mapEngineToDataItem(e)),
63
+ continuationToken: resp.parsedData.continuationToken,
64
+ };
65
+ }
66
+ return update;
67
+ });
68
+ });
69
+ /**
70
+ * Query a specific DataConnector for a data model using the dynamic context as parameter.
71
+ * @param connectorId unique id of the data connector
72
+ * @param context context that will be available in the connector script.
73
+ * @returns DataModel
74
+ */
75
+ this.getModel = (connectorId, context = {}) => __awaiter(this, void 0, void 0, function* () {
76
+ const res = yield __classPrivateFieldGet(this, _DataConnectorController_editorAPI, "f");
77
+ return res
78
+ .dataConnectorGetModel(connectorId, JSON.stringify(context))
79
+ .then((result) => getEditorResponseData(result));
80
+ });
81
+ /**
82
+ * All connectors have a certain set of mappings they allow to be passed into the connector methods their context. This
83
+ * method allows you to discover which mappings are available for a given connector. If you want to use any of these
84
+ * mappings, they will be available in the `context` parameter of any connector method.
85
+ * @param connectorId unique id of the data connector
86
+ * @returns connector mappings
87
+ */
88
+ this.getConfigurationOptions = (connectorId) => __awaiter(this, void 0, void 0, function* () {
89
+ const res = yield __classPrivateFieldGet(this, _DataConnectorController_editorAPI, "f");
90
+ return res
91
+ .dataConnectorGetConfigurationOptions(connectorId)
92
+ .then((result) => getEditorResponseData(result));
93
+ });
94
+ /**
95
+ * This method returns what capabilities the selected connector has. It gives an indication what methods can
96
+ * be used successfully for a certain connector.
97
+ * @param connectorId unique id of the Data connector
98
+ * @returns DataConnectorCapabilities
99
+ */
100
+ this.getCapabilities = (connectorId) => __awaiter(this, void 0, void 0, function* () {
101
+ const res = yield __classPrivateFieldGet(this, _DataConnectorController_editorAPI, "f");
102
+ return res
103
+ .dataConnectorGetCapabilities(connectorId)
104
+ .then((result) => getEditorResponseData(result));
105
+ });
106
+ __classPrivateFieldSet(this, _DataConnectorController_editorAPI, editorAPI, "f");
107
+ }
108
+ /**
109
+ * Check if the value is a DatePropertyWrapper with the type guard
110
+ * @param value a dynamic value which
111
+ * @returns boolean value.
112
+ */
113
+ isDatePropertyWrapper(value) {
114
+ return typeof value === 'object' && (value === null || value === void 0 ? void 0 : value.type) === 'date';
115
+ }
116
+ /**
117
+ * Transforms an InternalDataItem into a DataItem.
118
+ *
119
+ * Converts DatePropertyWrapper values to JavaScript Date objects
120
+ * while keeping other values unchanged.
121
+ *
122
+ * @param dataItem the EngineDataItem to transform.
123
+ * @returns the resulting DataItem with parsed date properties.
124
+ */
125
+ mapEngineToDataItem(dataItem) {
126
+ const parsedItem = {};
127
+ Object.entries(dataItem).forEach(([key, value]) => {
128
+ parsedItem[key] = this.isDatePropertyWrapper(value) ? new Date(value.value) : value;
129
+ });
130
+ return parsedItem;
131
+ }
132
+ }
133
+ _DataConnectorController_editorAPI = new WeakMap();
134
+ //# sourceMappingURL=DataConnectorController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataConnectorController.js","sourceRoot":"","sources":["../../../src/controllers/DataConnectorController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAGpE;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,uBAAuB;IAMhC;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,qDAAsB;QAStB;;;;;;;WAOG;QACH,YAAO,GAAG,CACN,WAAmB,EACnB,MAAkB,EAClB,UAAoB,EAAE,EACqB,EAAE;YAC7C,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,0CAAW,CAAC;YAClC,OAAO,GAAG;iBACL,oBAAoB,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;iBAClF,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAA2B,MAAM,CAAC,CAAC;iBACzE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;gBACX,MAAM,MAAM,mCAA4C,IAAI,KAAE,UAAU,EAAE,IAAI,GAAE,CAAC;gBACjF,IAAI,IAAI,CAAC,UAAU,EAAE;oBACjB,MAA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AI,sCAAc,SAAS,MAAA,CAAC;IAChC,CAAC;IAuED;;;;OAIG;IACK,qBAAqB,CACzB,KAA6D;QAE7D,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAK,MAAM,CAAC;IAC/D,CAAC;IAED;;;;;;;;OAQG;IACK,mBAAmB,CAAC,QAAwB;QAChD,MAAM,UAAU,GAAa,EAAE,CAAC;QAEhC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC9C,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QACxF,CAAC,CAAC,CAAC;QAEH,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ"}
@@ -1,5 +1,6 @@
1
1
  import { EditorAPI } from '../types/CommonTypes';
2
2
  import type { ChiliDocument, DocumentLoadOptions } from '../types/DocumentTypes';
3
+ import { LayoutPreset } from '../types/LayoutTypes';
3
4
  /**
4
5
  * The DocumentController is responsible for all communication regarding the Document.
5
6
  * Methods inside this controller can be called by `window.SDK.document.{method-name}`
@@ -28,4 +29,10 @@ export declare class DocumentController {
28
29
  * @returns the document loaded inside of the canvas
29
30
  */
30
31
  load: (doc: ChiliDocument | string, options?: DocumentLoadOptions) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
32
+ /**
33
+ * This method will create a new document, based on a document preset
34
+ * @param preset the preset where we will create a document of.
35
+ * @returns the new document created and loaded inside of the canvas
36
+ */
37
+ createAndLoad: (preset: LayoutPreset) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
31
38
  }
@@ -60,6 +60,18 @@ export class DocumentController {
60
60
  .loadDocument(parsedDoc, JSON.stringify(options))
61
61
  .then((result) => getEditorResponseData(result));
62
62
  });
63
+ /**
64
+ * This method will create a new document, based on a document preset
65
+ * @param preset the preset where we will create a document of.
66
+ * @returns the new document created and loaded inside of the canvas
67
+ */
68
+ this.createAndLoad = (preset) => __awaiter(this, void 0, void 0, function* () {
69
+ const res = yield __classPrivateFieldGet(this, _DocumentController_editorAPI, "f");
70
+ const parsedDoc = JSON.stringify(preset);
71
+ return res
72
+ .createAndLoadDocument(parsedDoc)
73
+ .then((result) => getEditorResponseData(result));
74
+ });
63
75
  __classPrivateFieldSet(this, _DocumentController_editorAPI, editorAPI, "f");
64
76
  }
65
77
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentController.js","sourceRoot":"","sources":["../../../src/controllers/DocumentController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE;;;GAGG;AAEH,MAAM,OAAO,kBAAkB;IAM3B;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,gDAAsB;QAStB;;;WAGG;QACH,oBAAe,GAAG,GAAS,EAAE;YACzB,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,qCAAW,CAAC;YAClC,OAAO,GAAG,CAAC,uBAAuB,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAgB,MAAM,CAAC,CAAC,CAAC;QACxG,CAAC,CAAA,CAAC;QAEF;;;;;;;;;;;WAWG;QACH,SAAI,GAAG,CAAO,GAA2B,EAAE,UAA+B,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE;YACnG,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,qCAAW,CAAC;YAElC,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;YAEtE,OAAO,GAAG;iBACL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C;QAC/D,CAAC,CAAA,CAAC;QAEF;;;;WAIG;QACH,kBAAa,GAAG,CAAO,MAAoB,EAAE,EAAE;YAC3C,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,qCAAW,CAAC;YAElC,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAEzC,OAAO,GAAG;iBACL,qBAAqB,CAAC,SAAS,CAAC;iBAChC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAO,MAAM,CAAC,CAAC,CAAC;QAC/D,CAAC,CAAA,CAAC;QA/CE,uBAAA,IAAI,iCAAc,SAAS,MAAA,CAAC;IAChC,CAAC;CA+CJ"}
@@ -1,16 +1,17 @@
1
1
  import { ConnectorConfigOptions, EditorAPI, EditorResponse, MetaData } from '../types/CommonTypes';
2
- import { DeprecatedMediaType, FontConnectorCapabilities, MediaType, QueryOptions, QueryPage } from '../types/ConnectorTypes';
3
- import { FontFamily, FontPreviewFormat, FontStyle } from '../types/FontConnectorTypes';
2
+ import { DeprecatedMediaType, MediaType, QueryOptions, QueryPage } from '../types/ConnectorTypes';
3
+ import { FontConnectorCapabilities, FontFamily, FontPreviewFormat, FontStyle } from '../types/FontConnectorTypes';
4
4
  /**
5
5
  * The FontConnectorController is responsible for all communication regarding Font connectors.
6
6
  * Methods inside this controller can be called by `window.SDK.FontConnector.{method-name}`
7
7
  *
8
- * The way CHILI Studio handles different sources of Font is called 'FontConnectors'. A FontConnectors is an
9
- * implementation of a set of capabilities we need to interact with a certain Digital Asset Management system.
10
- * In essence a connector is the combination of a Javascript snippet and some metadata. The Javascript snippet
11
- * is loaded in the studio engine using a sandboxed Javascript execution engine (QuickJs). This allows us to
12
- * execute the Font connector both on web using webassembly and on the server side during e.g. animation output
13
- * generation.
8
+ * The way GraFx Studio handles different sources of Font is called 'FontConnector'.
9
+ * A FontConnector is an implementation of a set of capabilities we need
10
+ * to interact with a certain Digital Asset Management system.
11
+ * In essence, a connector is the combination of a JavaScript snippet and some metadata.
12
+ * The JavaScript snippet is loaded in the studio engine using a sandboxed JavaScript execution engine (QuickJs).
13
+ * This allows us to execute the Font connector
14
+ * both on web using webassembly and on the server side during e.g. animation output generation.
14
15
  * This controller is an interface to the running connector instance inside the studio engine.
15
16
  */
16
17
  export declare class FontConnectorController {
@@ -20,17 +20,18 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
20
20
  };
21
21
  var _FontConnectorController_editorAPI, _FontConnectorController_blobAPI;
22
22
  import { getEditorResponseData } from '../utils/EditorResponseData';
23
- import { DeprecatedMediaType, MediaType, } from '../types/ConnectorTypes';
23
+ import { DeprecatedMediaType, MediaType } from '../types/ConnectorTypes';
24
24
  /**
25
25
  * The FontConnectorController is responsible for all communication regarding Font connectors.
26
26
  * Methods inside this controller can be called by `window.SDK.FontConnector.{method-name}`
27
27
  *
28
- * The way CHILI Studio handles different sources of Font is called 'FontConnectors'. A FontConnectors is an
29
- * implementation of a set of capabilities we need to interact with a certain Digital Asset Management system.
30
- * In essence a connector is the combination of a Javascript snippet and some metadata. The Javascript snippet
31
- * is loaded in the studio engine using a sandboxed Javascript execution engine (QuickJs). This allows us to
32
- * execute the Font connector both on web using webassembly and on the server side during e.g. animation output
33
- * generation.
28
+ * The way GraFx Studio handles different sources of Font is called 'FontConnector'.
29
+ * A FontConnector is an implementation of a set of capabilities we need
30
+ * to interact with a certain Digital Asset Management system.
31
+ * In essence, a connector is the combination of a JavaScript snippet and some metadata.
32
+ * The JavaScript snippet is loaded in the studio engine using a sandboxed JavaScript execution engine (QuickJs).
33
+ * This allows us to execute the Font connector
34
+ * both on web using webassembly and on the server side during e.g. animation output generation.
34
35
  * This controller is an interface to the running connector instance inside the studio engine.
35
36
  */
36
37
  export class FontConnectorController {
@@ -1 +1 @@
1
- {"version":3,"file":"FontConnectorController.js","sourceRoot":"","sources":["../../../src/controllers/FontConnectorController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA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AC,IAAI;gBAAE,OAAO,SAAS,CAAC,IAAI,CAAC;YACvE,IAAI,cAAc,KAAK,mBAAmB,CAAC,UAAU;gBAAE,OAAO,SAAS,CAAC,UAAU,CAAC;QACvF,CAAC,CAAC;QA1GE,uBAAA,IAAI,sCAAc,SAAS,MAAA,CAAC;QAC5B,uBAAA,IAAI,oCAAY,SAAuC,MAAA,CAAC;IAC5D,CAAC;CAyGJ"}
1
+ {"version":3,"file":"FontConnectorController.js","sourceRoot":"","sources":["../../../src/controllers/FontConnectorController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAA2B,MAAM,yBAAyB,CAAC;AAIlG;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,uBAAuB;IAOhC;;OAEG;IACH,YAAY,SAAoB;QAThC;;WAEG;QACH,qDAAsB;QACtB,mDAAuB;QAUvB;;;;;;;WAOG;QACH,UAAK,GAAG,CAAO,WAAmB,EAAE,YAA0B,EAAE,UAAoB,EAAE,EAAE,EAAE;YACtF,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,0CAAW,CAAC;YAClC,OAAO,GAAG;iBACL,kBAAkB,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;iBACtF,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAwB,MAAM,CAAC,CAAC,CAAC;QAChF,CAAC,CAAA,CAAC;QAEF;;;;;;WAMG;QACH,WAAM,GAAG,CAAO,WAAmB,EAAE,YAAoB,EAAE,UAAoB,EAAE,EAAE,EAAE;YACjF,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,0CAAW,CAAC;YAClC,OAAO,GAAG;iBACL,mBAAmB,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,C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