@grapesjs/studio-sdk-plugins 1.0.38 → 1.0.39-rc.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 (158) hide show
  1. package/dist/accordionComponent/index.cjs.js +5 -5
  2. package/dist/accordionComponent/index.es.js +70 -67
  3. package/dist/accordionComponent/index.js +39 -0
  4. package/dist/accordionComponent/index.umd.js +4 -4
  5. package/dist/aiChat/components/AiChatHeader.d.ts +4 -5
  6. package/dist/aiChat/components/AiChatInput/index.d.ts +4 -5
  7. package/dist/aiChat/components/AiChatMessage.d.ts +7 -8
  8. package/dist/aiChat/components/index.d.ts +1 -1
  9. package/dist/aiChat/components/utils.d.ts +1 -1
  10. package/dist/aiChat/index.cjs.js +10 -376
  11. package/dist/aiChat/index.es.js +4569 -28851
  12. package/dist/aiChat/index.js +10 -376
  13. package/dist/aiChat/index.umd.js +11 -377
  14. package/dist/aiChat/server/index.cjs.d.ts +0 -1
  15. package/dist/aiChat/server/index.cjs.js +45 -45
  16. package/dist/aiChat/server/index.d.ts +0 -1
  17. package/dist/aiChat/server/index.es.d.ts +0 -1
  18. package/dist/aiChat/server/index.es.js +371 -427
  19. package/dist/aiChat/server/index.js +45 -45
  20. package/dist/aiChat/server/index.umd.js +41 -41
  21. package/dist/aiChat/server/stream.test.d.ts +1 -0
  22. package/dist/aiChat/types.d.ts +18 -4
  23. package/dist/aiChat/typesSchema.d.ts +13 -0
  24. package/dist/animationComponent/index.cjs.js +3 -3
  25. package/dist/animationComponent/index.es.js +49 -46
  26. package/dist/animationComponent/index.js +519 -0
  27. package/dist/animationComponent/index.umd.js +3 -3
  28. package/dist/canvasAbsoluteMode/index.cjs.js +1 -1
  29. package/dist/canvasAbsoluteMode/index.es.js +115 -112
  30. package/dist/canvasAbsoluteMode/index.js +1 -0
  31. package/dist/canvasAbsoluteMode/index.umd.js +1 -1
  32. package/dist/canvasEmptyState/index.cjs.js +1 -1
  33. package/dist/canvasEmptyState/index.es.js +71 -68
  34. package/dist/canvasEmptyState/index.js +1 -0
  35. package/dist/canvasEmptyState/index.umd.js +1 -1
  36. package/dist/canvasFullSize/index.cjs.js +3 -3
  37. package/dist/canvasFullSize/index.es.js +69 -66
  38. package/dist/canvasFullSize/index.js +10 -0
  39. package/dist/canvasFullSize/index.umd.js +4 -4
  40. package/dist/canvasGridMode/index.cjs.js +7 -7
  41. package/dist/canvasGridMode/index.es.js +142 -139
  42. package/dist/canvasGridMode/index.js +26 -0
  43. package/dist/canvasGridMode/index.umd.js +7 -7
  44. package/dist/canvasScreenshot/index.cjs.js +1 -1
  45. package/dist/canvasScreenshot/index.es.js +78 -75
  46. package/dist/canvasScreenshot/index.js +1 -0
  47. package/dist/canvasScreenshot/index.umd.js +1 -1
  48. package/dist/dataSourceEjs/EjsExporter.d.ts +1 -1
  49. package/dist/dataSourceEjs/index.cjs.js +3 -3
  50. package/dist/dataSourceEjs/index.es.js +40 -37
  51. package/dist/dataSourceEjs/index.js +21 -0
  52. package/dist/dataSourceEjs/index.umd.js +3 -3
  53. package/dist/dataSourceHandlebars/HandlebarsExporter.d.ts +2 -2
  54. package/dist/dataSourceHandlebars/constants.d.ts +1 -1
  55. package/dist/dataSourceHandlebars/index.cjs.js +4 -4
  56. package/dist/dataSourceHandlebars/index.es.js +58 -55
  57. package/dist/dataSourceHandlebars/index.js +10 -0
  58. package/dist/dataSourceHandlebars/index.umd.js +2 -2
  59. package/dist/dialogComponent/index.cjs.js +11 -11
  60. package/dist/dialogComponent/index.es.js +72 -69
  61. package/dist/dialogComponent/index.js +59 -0
  62. package/dist/dialogComponent/index.umd.js +11 -11
  63. package/dist/flexComponent/index.cjs.js +6 -6
  64. package/dist/flexComponent/index.es.js +151 -142
  65. package/dist/flexComponent/index.js +33 -0
  66. package/dist/flexComponent/index.umd.js +8 -8
  67. package/dist/flexComponent/typesSchema.d.ts +1 -1
  68. package/dist/fsLightboxComponent/index.cjs.js +3 -3
  69. package/dist/fsLightboxComponent/index.es.js +93 -90
  70. package/dist/fsLightboxComponent/index.js +6 -0
  71. package/dist/fsLightboxComponent/index.umd.js +3 -3
  72. package/dist/googleFontsAssetProvider/index.cjs.js +1 -1
  73. package/dist/googleFontsAssetProvider/index.es.js +112 -109
  74. package/dist/googleFontsAssetProvider/index.js +1 -0
  75. package/dist/googleFontsAssetProvider/index.umd.js +1 -1
  76. package/dist/googleFontsAssetProvider/utils.d.ts +1 -1
  77. package/dist/iconifyComponent/index.cjs.js +2 -2
  78. package/dist/iconifyComponent/index.es.js +80 -77
  79. package/dist/iconifyComponent/index.js +3 -0
  80. package/dist/iconifyComponent/index.umd.js +2 -2
  81. package/dist/index.cjs.d.ts +1 -0
  82. package/dist/index.cjs.js +970 -82
  83. package/dist/index.d.ts +1 -0
  84. package/dist/index.es.d.ts +1 -0
  85. package/dist/index.es.js +7422 -6145
  86. package/dist/index.umd.js +975 -87
  87. package/dist/layoutSidebarButtons/index.cjs.js +1 -1
  88. package/dist/layoutSidebarButtons/index.es.js +95 -92
  89. package/dist/layoutSidebarButtons/index.js +1 -0
  90. package/dist/layoutSidebarButtons/index.umd.js +1 -1
  91. package/dist/lightGalleryComponent/index.cjs.js +1 -1
  92. package/dist/lightGalleryComponent/index.es.js +164 -161
  93. package/dist/lightGalleryComponent/index.js +1 -0
  94. package/dist/lightGalleryComponent/index.umd.js +1 -1
  95. package/dist/lightGalleryComponent/utils.d.ts +1 -1
  96. package/dist/linkImageComponent/index.cjs.js +2 -2
  97. package/dist/linkImageComponent/index.es.js +60 -57
  98. package/dist/linkImageComponent/index.js +12 -0
  99. package/dist/linkImageComponent/index.umd.js +2 -2
  100. package/dist/listPagesComponent/index.cjs.js +4 -4
  101. package/dist/listPagesComponent/index.es.js +57 -54
  102. package/dist/listPagesComponent/index.js +11 -0
  103. package/dist/listPagesComponent/index.umd.js +4 -4
  104. package/dist/listPagesComponent/utils.d.ts +1 -1
  105. package/dist/presetBlockLibrary/blocks.d.ts +6 -0
  106. package/dist/presetBlockLibrary/blocks.test.d.ts +2 -0
  107. package/dist/presetBlockLibrary/emailBlocks.d.ts +53 -0
  108. package/dist/presetBlockLibrary/index.cjs.d.ts +3 -0
  109. package/dist/presetBlockLibrary/index.cjs.js +889 -0
  110. package/dist/presetBlockLibrary/index.d.ts +3 -0
  111. package/dist/presetBlockLibrary/index.es.d.ts +3 -0
  112. package/dist/presetBlockLibrary/index.es.js +1408 -0
  113. package/dist/presetBlockLibrary/index.js +889 -0
  114. package/dist/presetBlockLibrary/index.test.d.ts +1 -0
  115. package/dist/presetBlockLibrary/index.umd.js +889 -0
  116. package/dist/presetBlockLibrary/shared.d.ts +3 -0
  117. package/dist/presetBlockLibrary/types.d.ts +24 -0
  118. package/dist/presetBlockLibrary/typesSchema.d.ts +47 -0
  119. package/dist/presetPrintable/index.cjs.js +3 -3
  120. package/dist/presetPrintable/index.es.js +133 -130
  121. package/dist/presetPrintable/index.js +32 -0
  122. package/dist/presetPrintable/index.umd.js +4 -4
  123. package/dist/prosemirror/index.cjs.js +8 -8
  124. package/dist/prosemirror/index.es.js +552 -549
  125. package/dist/prosemirror/index.js +10 -0
  126. package/dist/prosemirror/index.umd.js +9 -9
  127. package/dist/prosemirror/toolbar.d.ts +2 -2
  128. package/dist/prosemirror/types.d.ts +5 -5
  129. package/dist/rendererReact/index.cjs.js +1 -1
  130. package/dist/rendererReact/index.es.js +137 -134
  131. package/dist/rendererReact/index.js +1 -1
  132. package/dist/rendererReact/index.umd.js +1 -1
  133. package/dist/rteTinyMce/index.cjs.js +2 -2
  134. package/dist/rteTinyMce/index.es.js +74 -71
  135. package/dist/rteTinyMce/index.js +104 -0
  136. package/dist/rteTinyMce/index.umd.js +2 -2
  137. package/dist/shapeDividerComponent/index.cjs.js +4 -4
  138. package/dist/shapeDividerComponent/index.es.js +91 -88
  139. package/dist/shapeDividerComponent/index.js +97 -0
  140. package/dist/shapeDividerComponent/index.umd.js +4 -4
  141. package/dist/swiperComponent/index.cjs.js +7 -7
  142. package/dist/swiperComponent/index.es.js +95 -92
  143. package/dist/swiperComponent/index.js +45 -0
  144. package/dist/swiperComponent/index.umd.js +5 -5
  145. package/dist/tableComponent/index.cjs.js +1 -1
  146. package/dist/tableComponent/index.es.js +181 -178
  147. package/dist/tableComponent/index.js +1 -0
  148. package/dist/tableComponent/index.umd.js +1 -1
  149. package/dist/tableComponent/types.d.ts +3 -3
  150. package/dist/types.d.ts +14 -14
  151. package/dist/utils.d.ts +3 -2
  152. package/dist/utilsDataSources.d.ts +1 -1
  153. package/dist/youtubeAssetProvider/index.cjs.js +1 -1
  154. package/dist/youtubeAssetProvider/index.es.js +90 -87
  155. package/dist/youtubeAssetProvider/index.js +1 -0
  156. package/dist/youtubeAssetProvider/index.umd.js +1 -1
  157. package/package.json +182 -34
  158. package/dist/aiChat/server/models.d.ts +0 -15
@@ -18,8 +18,8 @@ const H = "app.grapesjs.com", Y = "app-stage.grapesjs.com", st = "app2.grapesjs.
18
18
  ], it = "license:check:end", lt = () => typeof window < "u", ct = ({
19
19
  isDev: t,
20
20
  isStage: e,
21
- isPlatform: r
22
- }) => `${t ? "" : `https://${e ? Y : H}`}/${r ? "platform-api" : "api"}`, pt = () => {
21
+ isPlatform: n
22
+ }) => `${t ? "" : `https://${e ? Y : H}`}/${n ? "platform-api" : "api"}`, pt = () => {
23
23
  if (!lt()) return "";
24
24
  const { hostname: t } = window.location;
25
25
  if (t) return t;
@@ -38,16 +38,16 @@ function X(t) {
38
38
  async function gt({
39
39
  path: t,
40
40
  baseApiUrl: e,
41
- method: r = "GET",
42
- headers: n = {},
41
+ method: n = "GET",
42
+ headers: r = {},
43
43
  params: o,
44
44
  body: a
45
45
  }) {
46
46
  const l = `${e || ct({ isDev: !1, isStage: !1 })}${t}`, c = {
47
- method: r,
47
+ method: n,
48
48
  headers: {
49
49
  "Content-Type": "application/json",
50
- ...n
50
+ ...r
51
51
  }
52
52
  };
53
53
  a && (c.body = JSON.stringify(a));
@@ -56,29 +56,32 @@ async function gt({
56
56
  throw new Error(`HTTP error! status: ${i.status}`);
57
57
  return i.json();
58
58
  }
59
- var P = /* @__PURE__ */ ((t) => (t.free = "free", t.startup = "startup", t.business = "business", t.enterprise = "enterprise", t))(P || {}), _ = /* @__PURE__ */ ((t) => (t.toastAdd = "studio:toastAdd", t.toastRemove = "studio:toastRemove", t.dialogOpen = "studio:dialogOpen", t.dialogClose = "studio:dialogClose", t.dialogExportCode = "studio:dialogExportCode", t.dialogImportCode = "studio:dialogImportCode", t.openEditCode = "studio:openEditCode", t.sidebarLeftSet = "studio:sidebarLeft:set", t.sidebarLeftGet = "studio:sidebarLeft:get", t.sidebarLeftToggle = "studio:sidebarLeft:toggle", t.sidebarRightSet = "studio:sidebarRight:set", t.sidebarRightGet = "studio:sidebarRight:get", t.sidebarRightToggle = "studio:sidebarRight:toggle", t.sidebarTopSet = "studio:sidebarTop:set", t.sidebarTopGet = "studio:sidebarTop:get", t.sidebarTopToggle = "studio:sidebarTop:toggle", t.sidebarBottomSet = "studio:sidebarBottom:set", t.sidebarBottomGet = "studio:sidebarBottom:get", t.sidebarBottomToggle = "studio:sidebarBottom:toggle", t.symbolAdd = "studio:symbolAdd", t.symbolDetach = "studio:symbolDetach", t.symbolOverride = "studio:symbolOverride", t.symbolPropagateStyles = "studio:propagateStyles", t.getPagesConfig = "studio:getPagesConfig", t.setPagesConfig = "studio:setPagesConfig", t.getPageSettings = "studio:getPageSettings", t.setPageSettings = "studio:setPageSettings", t.clearPage = "studio:clearPage", t.projectFiles = "studio:projectFiles", t.validateCode = "studio:validateCode", t.canvasReload = "studio:canvasReload", t.getBlocksPanel = "studio:getBlocksPanel", t.setBlocksPanel = "studio:setBlocksPanel", t.getStateContextMenu = "studio:getStateContextMenu", t.setStateContextMenu = "studio:setStateContextMenu", t.contextMenuComponent = "studio:contextMenuComponent", t.layoutAdd = "studio:layoutAdd", t.layoutRemove = "studio:layoutRemove", t.layoutToggle = "studio:layoutToggle", t.layoutUpdate = "studio:layoutUpdate", t.layoutGet = "studio:layoutGet", t.layoutConfigGet = "studio:layoutConfigGet", t.layoutConfigSet = "studio:layoutConfigSet", t.layoutComponentAdd = "studio:layoutComponentAdd", t.layoutComponentGet = "studio:layoutComponentGet", t.layoutComponentRemove = "studio:layoutComponentRemove", t.layoutComponentRender = "studio:layoutComponentRender", t.getStateTheme = "studio:getStateTheme", t.setStateTheme = "studio:setStateTheme", t.settings = "studio:settings", t.assetProviderGet = "studio:assetProviderGet", t.assetProviderAdd = "studio:assetProviderAdd", t.assetProviderRemove = "studio:assetProviderRemove", t.fontGet = "studio:fontGet", t.fontAdd = "studio:fontAdd", t.fontRemove = "studio:fontRemove", t.fontManagerOpen = "studio:fontManagerOpen", t.menuFontLoad = "studio:menuFontLoad", t.toggleStateDataSource = "studio:toggleStateDataSource", t.getStateDataSource = "studio:getStateDataSource", t.dataSourceSetGlobalData = "studio:dataSourceSetGlobalData", t.dataSourceSetImporter = "studio:dataSourceSetImporter", t.dataSourceSetExporter = "studio:dataSourceSetExporter", t.setDragAbsolute = "studio:setDragAbsolute", t))(_ || {});
59
+ var E = /* @__PURE__ */ ((t) => (t.free = "free", t.startup = "startup", t.business = "business", t.enterprise = "enterprise", t))(E || {}), B = /* @__PURE__ */ ((t) => (t.toastAdd = "studio:toastAdd", t.toastRemove = "studio:toastRemove", t.dialogOpen = "studio:dialogOpen", t.dialogClose = "studio:dialogClose", t.dialogExportCode = "studio:dialogExportCode", t.dialogImportCode = "studio:dialogImportCode", t.openEditCode = "studio:openEditCode", t.openBlocks = "studio:openBlocks", t.appendComponent = "studio:appendComponent", t.sidebarLeftSet = "studio:sidebarLeft:set", t.sidebarLeftGet = "studio:sidebarLeft:get", t.sidebarLeftToggle = "studio:sidebarLeft:toggle", t.sidebarRightSet = "studio:sidebarRight:set", t.sidebarRightGet = "studio:sidebarRight:get", t.sidebarRightToggle = "studio:sidebarRight:toggle", t.sidebarTopSet = "studio:sidebarTop:set", t.sidebarTopGet = "studio:sidebarTop:get", t.sidebarTopToggle = "studio:sidebarTop:toggle", t.sidebarBottomSet = "studio:sidebarBottom:set", t.sidebarBottomGet = "studio:sidebarBottom:get", t.sidebarBottomToggle = "studio:sidebarBottom:toggle", t.symbolAdd = "studio:symbolAdd", t.symbolDetach = "studio:symbolDetach", t.symbolOverride = "studio:symbolOverride", t.symbolPropagateStyles = "studio:propagateStyles", t.getPagesConfig = "studio:getPagesConfig", t.setPagesConfig = "studio:setPagesConfig", t.getPageSettings = "studio:getPageSettings", t.setPageSettings = "studio:setPageSettings", t.clearPage = "studio:clearPage", t.projectFiles = "studio:projectFiles", t.validateCode = "studio:validateCode", t.canvasReload = "studio:canvasReload", t.getBlocksPanel = "studio:getBlocksPanel", t.setBlocksPanel = "studio:setBlocksPanel", t.getStateContextMenu = "studio:getStateContextMenu", t.setStateContextMenu = "studio:setStateContextMenu", t.contextMenuComponent = "studio:contextMenuComponent", t.layoutAdd = "studio:layoutAdd", t.layoutRemove = "studio:layoutRemove", t.layoutToggle = "studio:layoutToggle", t.layoutUpdate = "studio:layoutUpdate", t.layoutGet = "studio:layoutGet", t.layoutConfigGet = "studio:layoutConfigGet", t.layoutConfigSet = "studio:layoutConfigSet", t.layoutComponentAdd = "studio:layoutComponentAdd", t.layoutComponentGet = "studio:layoutComponentGet", t.layoutComponentRemove = "studio:layoutComponentRemove", t.layoutComponentRender = "studio:layoutComponentRender", t.getStateTheme = "studio:getStateTheme", t.setStateTheme = "studio:setStateTheme", t.settings = "studio:settings", t.assetProviderGet = "studio:assetProviderGet", t.assetProviderAdd = "studio:assetProviderAdd", t.assetProviderRemove = "studio:assetProviderRemove", t.fontGet = "studio:fontGet", t.fontAdd = "studio:fontAdd", t.fontRemove = "studio:fontRemove", t.fontManagerOpen = "studio:fontManagerOpen", t.menuFontLoad = "studio:menuFontLoad", t.toggleStateDataSource = "studio:toggleStateDataSource", t.getStateDataSource = "studio:getStateDataSource", t.dataSourceSetGlobalData = "studio:dataSourceSetGlobalData", t.dataSourceSetImporter = "studio:dataSourceSetImporter", t.dataSourceSetExporter = "studio:dataSourceSetExporter", t.setDragAbsolute = "studio:setDragAbsolute", t))(B || {});
60
60
  const W = {
61
- [P.free]: 0,
62
- [P.startup]: 10,
63
- [P.business]: 20,
64
- [P.enterprise]: 30
61
+ [E.free]: 0,
62
+ [E.startup]: 10,
63
+ [E.business]: 20,
64
+ [E.enterprise]: 30
65
65
  };
66
- function ut(t) {
67
- const e = t;
68
- return e.init = (r) => (n) => t(n, r), e;
66
+ function ut(t, e) {
67
+ const n = t;
68
+ return n.init = (r) => {
69
+ const o = (a) => t(a, r);
70
+ return o.__gjsPluginId = e, o;
71
+ }, n;
69
72
  }
70
- const ft = (t) => /* @__PURE__ */ ut(t);
73
+ const ft = (t, e) => /* @__PURE__ */ ut(t, e);
71
74
  async function mt({
72
75
  editor: t,
73
76
  plan: e,
74
- pluginName: r,
75
- licenseKey: n,
77
+ pluginName: n,
78
+ licenseKey: r,
76
79
  onLicenseCheckResponse: o,
77
80
  cleanup: a
78
81
  }) {
79
82
  let s = "", l;
80
83
  const c = (i) => {
81
- console.warn("Cleanup plugin:", r, "Reason:", i), a();
84
+ console.warn("Cleanup plugin:", n, "Reason:", i), a(t, n);
82
85
  }, d = (i = {}) => {
83
86
  var u;
84
87
  const { error: g, sdkLicense: m } = i, h = (u = i.plan) == null ? void 0 : u.category;
@@ -89,15 +92,15 @@ async function mt({
89
92
  b > $ && c({ pluginRequiredPlan: e, licensePlan: h });
90
93
  }
91
94
  };
92
- t.Commands.has(_.settings) && (l = t.runCommand(_.settings), s = (l == null ? void 0 : l.baseUrl) || "");
95
+ t.Commands.has(B.settings) && (l = t.runCommand(B.settings), s = (l == null ? void 0 : l.baseUrl) || "");
93
96
  const p = (i) => {
94
97
  o == null || o(i), i && d(i);
95
98
  };
96
99
  if (!l) {
97
100
  t.onReady(async () => {
98
101
  if (!dt())
99
- if (n) {
100
- const i = await ht({ licenseKey: n, pluginName: r, baseApiUrl: s });
102
+ if (r) {
103
+ const i = await ht({ licenseKey: r, pluginName: n, baseApiUrl: s });
101
104
  p(i);
102
105
  } else
103
106
  c("The `licenseKey` option not provided");
@@ -118,27 +121,27 @@ const yt = (t) => ({
118
121
  plan: t.licensePlan
119
122
  });
120
123
  async function ht(t) {
121
- const { licenseKey: e, pluginName: r, baseApiUrl: n } = t;
124
+ const { licenseKey: e, pluginName: n, baseApiUrl: r } = t;
122
125
  try {
123
126
  return (await gt({
124
- baseApiUrl: n,
127
+ baseApiUrl: r,
125
128
  path: `/sdk/${e || "na"}`,
126
129
  method: "POST",
127
130
  params: {
128
131
  d: window.location.hostname,
129
- pn: r
132
+ pn: n
130
133
  }
131
134
  })).result || {};
132
135
  } catch (o) {
133
136
  return console.error("Error during SDK license check:", o), !1;
134
137
  }
135
138
  }
136
- const N = "canvasGridMode", wt = P.startup, F = "component-grid-mode", M = "grid-mode", C = "gjs-drag-grid-spot", K = `${C}__grid-item`, J = `${C}__grid-target`, Q = `${C}__snapped`, bt = `${C}__container`, vt = () => {
137
- const t = "data-gjs-drag-grid-style", e = document, r = "var(--gs-theme-cl-cmp-bg1, var(--gjs-color-highlight))", n = "var(--gs-theme-cl-cmp-bg2, var(--gjs-color-blue))", o = e.querySelector(`style[${t}]`) || e.createElement("style");
139
+ const _ = "canvasGridMode", wt = E.startup, F = "component-grid-mode", M = "grid-mode", C = "gjs-drag-grid-spot", K = `${C}__grid-item`, J = `${C}__grid-target`, Q = `${C}__snapped`, bt = `${C}__container`, vt = () => {
140
+ const t = "data-gjs-drag-grid-style", e = document, n = "var(--gs-theme-cl-cmp-bg1, var(--gjs-color-highlight))", r = "var(--gs-theme-cl-cmp-bg2, var(--gjs-color-blue))", o = e.querySelector(`style[${t}]`) || e.createElement("style");
138
141
  o.setAttribute(t, "true"), o.innerHTML = `
139
142
  .${K} {
140
- outline: 2px solid ${n};
141
- background: ${r};
143
+ outline: 2px solid ${r};
144
+ background: ${n};
142
145
  outline-offset: -2px;
143
146
  border-radius: 3px;
144
147
  width: 100%;
@@ -148,25 +151,25 @@ const N = "canvasGridMode", wt = P.startup, F = "component-grid-mode", M = "grid
148
151
  .${Q} {
149
152
  width: 100%;
150
153
  height: 100%;
151
- outline: 2px solid ${n};
154
+ outline: 2px solid ${r};
152
155
  outline-offset: -2px;
153
156
  position: absolute;
154
157
  }
155
158
  .${J} {
156
159
  position: absolute;
157
160
  z-index: -1;
158
- background: ${r};
159
- outline: 1px solid ${n};
161
+ background: ${n};
162
+ outline: 1px solid ${r};
160
163
  outline-offset: -1px;
161
164
  opacity: 0.35;
162
165
  }
163
166
  `, e.head.appendChild(o);
164
167
  };
165
168
  function Z(t) {
166
- const { editor: e, type: r } = t, n = Tt(e, t.component), o = O(e, n.component);
167
- if (!Et(e, n, o, r))
169
+ const { editor: e, type: n } = t, r = Pt(e, t.component), o = O(e, r.component);
170
+ if (!Tt(e, r, o, n))
168
171
  return {
169
- target: n,
172
+ target: r,
170
173
  container: o,
171
174
  startScroll: ot(e).scroll,
172
175
  shadowContainerEl: document.createElement("div"),
@@ -179,47 +182,47 @@ function Z(t) {
179
182
  };
180
183
  }
181
184
  function V(t) {
182
- const { editor: e, shadowTargetEl: r, shadowSnappedEl: n, shadowContainerEl: o, spotEl: a, target: s, container: l } = t, { Canvas: c } = e, d = e.config.stylePrefix;
183
- a == null || a.appendChild(o), o == null || o.appendChild(r), o == null || o.appendChild(n), $t(o, l), St(r, s, l), Rt(n, s), xt(o, l.el), s.el.style.opacity = "0";
185
+ const { editor: e, shadowTargetEl: n, shadowSnappedEl: r, shadowContainerEl: o, spotEl: a, target: s, container: l } = t, { Canvas: c } = e, d = e.config.stylePrefix;
186
+ a == null || a.appendChild(o), o == null || o.appendChild(n), o == null || o.appendChild(r), $t(o, l), St(n, s, l), Rt(r, s), xt(o, l.el), s.el.style.opacity = "0";
184
187
  const p = c.getSpots().filter((i) => i.type !== M);
185
188
  e.em.stopDefault({ preserveSelected: !0 }), c.removeSpots(p), c.startAutoscroll(), c.getBody().classList.add(`${d}is__grabbing`);
186
189
  }
187
190
  function tt(t) {
188
- const { editor: e, shadowSnappedEl: r, shadowContainerEl: n, target: o, cancelled: a } = t, { Canvas: s } = e, l = e.config.stylePrefix, { component: c } = o;
191
+ const { editor: e, shadowSnappedEl: n, shadowContainerEl: r, target: o, cancelled: a } = t, { Canvas: s } = e, l = e.config.stylePrefix, { component: c } = o;
189
192
  if (!a) {
190
- const d = window.getComputedStyle(r);
193
+ const d = window.getComputedStyle(n);
191
194
  c.addStyle({
192
195
  "grid-area": d.gridArea,
193
196
  width: "",
194
197
  height: ""
195
198
  });
196
199
  }
197
- o.el.style.opacity = "", n.contains(r) && (n == null || n.removeChild(r)), e.getModel().runDefault({ preserveSelected: 1 }), s.stopAutoscroll(), s.getBody().classList.remove(`${l}is__grabbing`), s.removeSpots({ type: M }), e.select(c);
200
+ o.el.style.opacity = "", r.contains(n) && (r == null || r.removeChild(n)), e.getModel().runDefault({ preserveSelected: 1 }), s.stopAutoscroll(), s.getBody().classList.remove(`${l}is__grabbing`), s.removeSpots({ type: M }), e.select(c);
198
201
  }
199
202
  function $t(t, {
200
203
  rows: e,
201
- columns: r
204
+ columns: n
202
205
  }) {
203
- const n = [];
204
- for (let o = 0; o < r.length; o++) {
205
- n[o] = [];
206
+ const r = [];
207
+ for (let o = 0; o < n.length; o++) {
208
+ r[o] = [];
206
209
  for (let a = 0; a < e.length; a++) {
207
210
  const s = document.createElement("div");
208
- s.className = K, s.style.gridArea = `${a + 1} / ${o + 1}`, n[o][a] = s, t.appendChild(s);
211
+ s.className = K, s.style.gridArea = `${a + 1} / ${o + 1}`, r[o][a] = s, t.appendChild(s);
209
212
  }
210
213
  }
211
- return n;
214
+ return r;
212
215
  }
213
- function St(t, e, r) {
214
- return t.className = J, t.style.top = `${e.offset.top - r.offset.top}px`, t.style.left = `${e.offset.left - r.offset.left}px`, t.style.width = `${e.offset.width + e.margin.left + e.margin.right}px`, t.style.height = `${e.offset.height + e.margin.top + e.margin.bottom}px`, t;
216
+ function St(t, e, n) {
217
+ return t.className = J, t.style.top = `${e.offset.top - n.offset.top}px`, t.style.left = `${e.offset.left - n.offset.left}px`, t.style.width = `${e.offset.width + e.margin.left + e.margin.right}px`, t.style.height = `${e.offset.height + e.margin.top + e.margin.bottom}px`, t;
215
218
  }
216
219
  function Rt(t, e) {
217
- const r = nt(e.el, e.computedStyles);
218
- return t.className = Q, t.style.gridArea = `${r.row.start} / ${r.column.start} / ${r.row.end} / ${r.column.end}`, t;
220
+ const n = nt(e.el, e.computedStyles);
221
+ return t.className = Q, t.style.gridArea = `${n.row.start} / ${n.column.start} / ${n.row.end} / ${n.column.end}`, t;
219
222
  }
220
223
  function xt(t, e) {
221
- const r = window.getComputedStyle(e);
222
- t.className = bt, t.style.position = "relative", t.style.display = r.display, t.style.gap = r.gap, t.style.padding = r.padding, t.style.border = r.border, t.style.gridTemplateColumns = r.gridTemplateColumns, t.style.gridTemplateRows = r.gridTemplateRows;
224
+ const n = window.getComputedStyle(e);
225
+ t.className = bt, t.style.position = "relative", t.style.display = n.display, t.style.gap = n.gap, t.style.padding = n.padding, t.style.border = n.border, t.style.gridTemplateColumns = n.gridTemplateColumns, t.style.gridTemplateRows = n.gridTemplateRows;
223
226
  }
224
227
  function et(t, e) {
225
228
  if (e) {
@@ -228,12 +231,12 @@ function et(t, e) {
228
231
  } else return [...t.getSelectedAll()].pop();
229
232
  return e;
230
233
  }
231
- function Tt(t, e) {
232
- const r = et(t, e), n = r.getEl(), o = window.getComputedStyle(n);
234
+ function Pt(t, e) {
235
+ const n = et(t, e), r = n.getEl(), o = window.getComputedStyle(r);
233
236
  return {
234
- component: r,
235
- el: n,
236
- offset: t.Canvas.offset(n),
237
+ component: n,
238
+ el: r,
239
+ offset: t.Canvas.offset(r),
237
240
  margin: {
238
241
  top: parseFloat(o.marginTop),
239
242
  right: parseFloat(o.marginRight),
@@ -244,11 +247,11 @@ function Tt(t, e) {
244
247
  };
245
248
  }
246
249
  function O(t, e) {
247
- const r = e.parent(), n = r.getEl(), o = window.getComputedStyle(n);
250
+ const n = e.parent(), r = n.getEl(), o = window.getComputedStyle(r);
248
251
  return {
249
- component: r,
250
- el: n,
251
- offset: t.Canvas.offset(n),
252
+ component: n,
253
+ el: r,
254
+ offset: t.Canvas.offset(r),
252
255
  computedStyles: o,
253
256
  padding: {
254
257
  top: parseFloat(o.paddingTop),
@@ -264,49 +267,49 @@ function O(t, e) {
264
267
  }
265
268
  };
266
269
  }
267
- function x(t, e, r, n, o = 1) {
270
+ function x(t, e, n, r, o = 1) {
268
271
  let a = 0;
269
272
  for (let s = e; s <= t.length; s++) {
270
- if (a + (t[s - 1] + n) * o > r)
273
+ if (a + (t[s - 1] + r) * o > n)
271
274
  return s;
272
- a += n + t[s - 1];
275
+ a += r + t[s - 1];
273
276
  }
274
277
  return t.length + 1;
275
278
  }
276
279
  function ot(t) {
277
- const { scrollY: e, scrollX: r } = t.Canvas.getWindow();
280
+ const { scrollY: e, scrollX: n } = t.Canvas.getWindow();
278
281
  return {
279
282
  scroll: {
280
283
  top: e,
281
- left: r
284
+ left: n
282
285
  }
283
286
  };
284
287
  }
285
- function Et(t, e, r, n) {
288
+ function Tt(t, e, n, r) {
286
289
  const o = (a) => t.em.logWarning(a);
287
- return n === "draggable" && e.component.get(n) === !1 ? (o(`[${N}] The element is not ${n}`), !0) : r.computedStyles.display !== "grid" ? (o(`[${N}] The container does not have style display:grid`), !0) : !1;
290
+ return r === "draggable" && e.component.get(r) === !1 ? (o(`[${_}] The element is not ${r}`), !0) : n.computedStyles.display !== "grid" ? (o(`[${_}] The container does not have style display:grid`), !0) : !1;
288
291
  }
289
- function L(t, e, r = {}) {
290
- const n = et(t, e), o = n == null ? void 0 : n.parent(), a = o == null ? void 0 : o.getEl();
292
+ function L(t, e, n = {}) {
293
+ const r = et(t, e), o = r == null ? void 0 : r.parent(), a = o == null ? void 0 : o.getEl();
291
294
  if (!o || !a)
292
295
  return !1;
293
- const { enableGrid: s } = r, l = window.getComputedStyle(a).display === "grid";
294
- return X(s) ? s({ component: n, parent: o, isParentGrid: l }) : l;
296
+ const { enableGrid: s } = n, l = window.getComputedStyle(a).display === "grid";
297
+ return X(s) ? s({ component: r, parent: o, isParentGrid: l }) : l;
295
298
  }
296
- const U = (t) => t.split(" ").map((e) => parseFloat(e));
299
+ const k = (t) => t.split(" ").map((e) => parseFloat(e));
297
300
  function nt(t, e) {
298
- const r = t.ownerDocument.defaultView, n = e || r.getComputedStyle(t), o = n.gridArea.split("/").some((S) => isNaN(parseInt(S.trim()))), a = {
301
+ const n = t.ownerDocument.defaultView, r = e || n.getComputedStyle(t), o = r.gridArea.split("/").some((S) => isNaN(parseInt(S.trim()))), a = {
299
302
  isComputed: o,
300
- raw: n.gridArea
303
+ raw: r.gridArea
301
304
  }, s = {
302
305
  ...a,
303
306
  row: {
304
- start: parseInt(n.gridRowStart) || 1,
305
- end: parseInt(n.gridRowEnd) || 2
307
+ start: parseInt(r.gridRowStart) || 1,
308
+ end: parseInt(r.gridRowEnd) || 2
306
309
  },
307
310
  column: {
308
- start: parseInt(n.gridColumnStart) || 1,
309
- end: parseInt(n.gridColumnEnd) || 2
311
+ start: parseInt(r.gridColumnStart) || 1,
312
+ end: parseInt(r.gridColumnEnd) || 2
310
313
  }
311
314
  };
312
315
  if (!o)
@@ -314,13 +317,13 @@ function nt(t, e) {
314
317
  const l = t.parentElement;
315
318
  if (!l)
316
319
  return s;
317
- const c = r.getComputedStyle(l), d = parseFloat(c.columnGap) || 0, p = parseFloat(c.rowGap) || 0, i = U(c.gridTemplateColumns), g = U(c.gridTemplateRows), m = parseFloat(c.paddingLeft) || 0, h = parseFloat(c.paddingTop) || 0, w = l.getBoundingClientRect(), u = t.getBoundingClientRect(), b = (S, T, E, R, I) => {
320
+ const c = n.getComputedStyle(l), d = parseFloat(c.columnGap) || 0, p = parseFloat(c.rowGap) || 0, i = k(c.gridTemplateColumns), g = k(c.gridTemplateRows), m = parseFloat(c.paddingLeft) || 0, h = parseFloat(c.paddingTop) || 0, w = l.getBoundingClientRect(), u = t.getBoundingClientRect(), b = (S, P, T, R, I) => {
318
321
  let G = 1, A = R + I;
319
- for (let D = 0; D < T.length; D++) {
320
- const rt = T[D], z = A + rt;
322
+ for (let D = 0; D < P.length; D++) {
323
+ const rt = P[D], z = A + rt;
321
324
  if (S >= A && S < z)
322
325
  return G;
323
- A = z + E, G++;
326
+ A = z + T, G++;
324
327
  }
325
328
  return -1;
326
329
  }, $ = b(u.left, i, d, w.left, m), y = b(u.right - 1, i, d, w.left, m) + 1, f = b(u.top, g, p, w.top, h), v = b(u.bottom - 1, g, p, w.top, h) + 1;
@@ -336,12 +339,12 @@ function nt(t, e) {
336
339
  }
337
340
  };
338
341
  }
339
- function Pt(t) {
342
+ function Et(t) {
340
343
  t.Commands.add(F, {
341
344
  stop() {
342
345
  },
343
- run(e, r, n = {}) {
344
- const o = Z({ editor: e, component: n.target, type: "draggable" });
346
+ run(e, n, r = {}) {
347
+ const o = Z({ editor: e, component: r.target, type: "draggable" });
345
348
  if (!o) {
346
349
  this.stopCommand();
347
350
  return;
@@ -373,22 +376,22 @@ function Pt(t) {
373
376
  }), this.stopCommand(), e.em.set("_cmpDrag", 1);
374
377
  },
375
378
  setPosition: ({ x: h, y: w }) => {
376
- const { scroll: u } = ot(e), { columns: b, rows: $, gap: y, offset: f, padding: v } = i, { offset: S, margin: T } = s, E = S.top - f.top - v.top - T.top + w - p.top + u.top, R = S.left - f.left - v.left - T.left + h - p.left + u.left, I = Math.min(x(b, 1, R, y.column, 0.5), b.length), G = Math.min(x($, 1, E, y.row, 0.5), $.length), A = Math.min(
379
+ const { scroll: u } = ot(e), { columns: b, rows: $, gap: y, offset: f, padding: v } = i, { offset: S, margin: P } = s, T = S.top - f.top - v.top - P.top + w - p.top + u.top, R = S.left - f.left - v.left - P.left + h - p.left + u.left, I = Math.min(x(b, 1, R, y.column, 0.5), b.length), G = Math.min(x($, 1, T, y.row, 0.5), $.length), A = Math.min(
377
380
  x(b, I, S.width, y.column) + 1,
378
381
  b.length + 1
379
382
  ), D = Math.min(x($, G, S.height, y.row) + 1, $.length + 1);
380
- c.style.gridArea = `${G} / ${I} / ${D} / ${A}`, d.style.top = `${E + v.top}px`, d.style.left = `${R + v.left}px`;
383
+ c.style.gridArea = `${G} / ${I} / ${D} / ${A}`, d.style.top = `${T + v.top}px`, d.style.left = `${R + v.left}px`;
381
384
  }
382
- }).start(n.event);
385
+ }).start(r.event);
383
386
  }
384
387
  });
385
388
  }
386
389
  function Gt(t, e) {
387
- const r = Z({ editor: t, component: e.component, type: "resizable" });
388
- if (!r)
390
+ const n = Z({ editor: t, component: e.component, type: "resizable" });
391
+ if (!n)
389
392
  return;
390
- const { onMove: n, onEnd: o } = e.options || {}, { spot: a, target: s, shadowContainerEl: l, shadowSnappedEl: c, shadowTargetEl: d } = r;
391
- let { container: p } = r, i = "", g = !1, m;
393
+ const { onMove: r, onEnd: o } = e.options || {}, { spot: a, target: s, shadowContainerEl: l, shadowSnappedEl: c, shadowTargetEl: d } = n;
394
+ let { container: p } = n, i = "", g = !1, m;
392
395
  return {
393
396
  onStart: (h) => {
394
397
  i = h.target.dataset.gjsHandler || "", g = !1, m = setTimeout(() => {
@@ -410,10 +413,10 @@ function Gt(t, e) {
410
413
  onMove: (h, w) => {
411
414
  if (!g || !c.parentElement)
412
415
  return;
413
- const u = nt(c), b = s.margin.left, $ = s.margin.top, y = s.margin.bottom, f = s.margin.right, { w: v, t: S, l: T, h: E } = w.resizer.rectDim, R = {
416
+ const u = nt(c), b = s.margin.left, $ = s.margin.top, y = s.margin.bottom, f = s.margin.right, { w: v, t: S, l: P, h: T } = w.resizer.rectDim, R = {
414
417
  t: S - $,
415
- l: T - b,
416
- h: E + $ + y,
418
+ l: P - b,
419
+ h: T + $ + y,
417
420
  w: v + b + f
418
421
  };
419
422
  i.endsWith("l") && (u.column.start = x(
@@ -434,33 +437,33 @@ function Gt(t, e) {
434
437
  )), i.startsWith("b") && (u.row.end = Math.max(
435
438
  x(p.rows, u.row.start, R.h, p.gap.row, 0.5),
436
439
  u.row.start + 1
437
- )), c.style.gridArea = `${u.row.start} / ${u.column.start} / ${u.row.end} / ${u.column.end}`, d.style.width = `${R.w}px`, d.style.height = `${R.h}px`, d.style.left = `${R.l - p.offset.left}px`, d.style.top = `${R.t - p.offset.top}px`, n == null || n(h, w);
440
+ )), c.style.gridArea = `${u.row.start} / ${u.column.start} / ${u.row.end} / ${u.column.end}`, d.style.width = `${R.w}px`, d.style.height = `${R.h}px`, d.style.left = `${R.l - p.offset.left}px`, d.style.top = `${R.t - p.offset.top}px`, r == null || r(h, w);
438
441
  }
439
442
  };
440
443
  }
441
- const k = ["px", "%", "em", "rem", "vw", "vh"], At = (t, e) => {
442
- const r = t.Styles.getSectors().find((n) => !!n.getProperty(e));
444
+ const U = ["px", "%", "em", "rem", "vw", "vh"], At = (t, e) => {
445
+ const n = t.Styles.getSectors().find((r) => !!r.getProperty(e));
443
446
  return {
444
- sector: r,
445
- property: r ? r.getProperty(e) : void 0
447
+ sector: n,
448
+ property: n ? n.getProperty(e) : void 0
446
449
  };
447
- }, Dt = (t, e) => At(t, e), Mt = (t, { x: e, y: r, mergable: n } = {}) => {
450
+ }, Dt = (t, e) => At(t, e), Mt = (t, { x: e, y: n, mergable: r } = {}) => {
448
451
  const o = {
449
452
  property: `${t}-x`,
450
453
  type: "integer",
451
- units: k,
454
+ units: U,
452
455
  ...e
453
456
  }, a = {
454
457
  property: `${t}-y`,
455
458
  type: "integer",
456
- units: k,
457
- ...r
459
+ units: U,
460
+ ...n
458
461
  };
459
462
  return {
460
463
  property: t,
461
464
  type: "composite",
462
465
  properties: [o, a],
463
- ...n && {
466
+ ...r && {
464
467
  fromStyle(s, { name: l, separator: c, property: d }) {
465
468
  const [p, i] = d.getProperties(), [g, m] = (s[l] || "").split(c);
466
469
  return {
@@ -476,14 +479,14 @@ const k = ["px", "%", "em", "rem", "vw", "vh"], At = (t, e) => {
476
479
  }
477
480
  }
478
481
  };
479
- }, B = { display: ["grid"] };
482
+ }, N = { display: ["grid"] };
480
483
  function Ct(t = "") {
481
- const e = /^repeat\(\s*(\d+)\s*,\s*(.+)\s*\)$/i, r = /^minmax\(\s*(.+?)\s*,\s*(.+?)\s*\)$/i, n = t.match(e);
482
- if (!n)
484
+ const e = /^repeat\(\s*(\d+)\s*,\s*(.+)\s*\)$/i, n = /^minmax\(\s*(.+?)\s*,\s*(.+?)\s*\)$/i, r = t.match(e);
485
+ if (!r)
483
486
  return null;
484
- const o = parseInt(n[1], 10), a = n[2];
487
+ const o = parseInt(r[1], 10), a = r[2];
485
488
  let s = a, l = a;
486
- const c = a.match(r);
489
+ const c = a.match(n);
487
490
  return c && (s = c[1], l = c[2]), {
488
491
  total: o,
489
492
  min: s === l ? "" : s,
@@ -491,22 +494,22 @@ function Ct(t = "") {
491
494
  };
492
495
  }
493
496
  function It(t = {}) {
494
- let e = "", r = "", n = "", o = "";
497
+ let e = "", n = "", r = "", o = "";
495
498
  const a = (w) => w.split("/").map((u) => u.trim()).filter(Boolean), s = t["grid-area"] || "", l = t["grid-column"] || "", c = t["grid-row"] || "", d = a(s), p = a(l), i = a(c), g = d.length, m = p.length, h = i.length;
496
- return g === 4 ? (n = d[0], e = d[1], o = d[2], r = d[3]) : g === 3 ? (n = d[0], e = d[1], o = d[2]) : g === 2 ? (n = d[0], e = d[1]) : g === 1 && (n = d[0]), m === 2 ? (e = p[0], r = p[1]) : m === 1 && (e = p[0]), h === 2 ? (n = i[0], o = i[1]) : h === 1 && (n = i[0]), {
499
+ return g === 4 ? (r = d[0], e = d[1], o = d[2], n = d[3]) : g === 3 ? (r = d[0], e = d[1], o = d[2]) : g === 2 ? (r = d[0], e = d[1]) : g === 1 && (r = d[0]), m === 2 ? (e = p[0], n = p[1]) : m === 1 && (e = p[0]), h === 2 ? (r = i[0], o = i[1]) : h === 1 && (r = i[0]), {
497
500
  columnStart: e,
498
- columnEnd: r,
499
- rowStart: n,
501
+ columnEnd: n,
502
+ rowStart: r,
500
503
  rowEnd: o
501
504
  };
502
505
  }
503
506
  function q(t) {
504
- const { property: e, label: r } = t, n = "1", o = "1fr";
507
+ const { property: e, label: n } = t, r = "1", o = "1fr";
505
508
  return {
506
509
  property: e,
507
- label: r,
510
+ label: n,
508
511
  type: "composite",
509
- requires: B,
512
+ requires: N,
510
513
  generic: !0,
511
514
  properties: [
512
515
  {
@@ -537,7 +540,7 @@ function q(t) {
537
540
  fromStyle(a, s) {
538
541
  const { name: l, property: c } = s, [d, p, i] = c.getProperties(), g = a[l], m = Ct(g), h = (m == null ? void 0 : m.max) ?? o;
539
542
  return {
540
- [d.id]: (m == null ? void 0 : m.total) ?? n,
543
+ [d.id]: (m == null ? void 0 : m.total) ?? r,
541
544
  [p.id]: (m == null ? void 0 : m.min) ?? "",
542
545
  [i.id]: h === o ? "" : h
543
546
  };
@@ -545,17 +548,17 @@ function q(t) {
545
548
  toStyle(a, { name: s, property: l }) {
546
549
  const [c, d, p] = l.getProperties(), i = a[c.id], g = a[d.id], m = a[p.id] || o, h = g && m ? `minmax(${g}, ${m})` : m;
547
550
  return {
548
- [s]: `repeat(${i || n}, ${h})`
551
+ [s]: `repeat(${i || r}, ${h})`
549
552
  };
550
553
  }
551
554
  };
552
555
  }
553
- function Lt(t, e) {
556
+ function _t(t, e) {
554
557
  if (!e.styleableGrid) return;
555
- const { property: r, ...n } = Dt(t, "display");
556
- if (!r) return;
557
- const o = r.getOption("grid"), a = n.sector;
558
- o || r.addOption({ id: "grid", label: "Grid" }), a.addProperty(
558
+ const { property: n, ...r } = Dt(t, "display");
559
+ if (!n) return;
560
+ const o = n.getOption("grid"), a = r.sector;
561
+ o || n.addOption({ id: "grid", label: "Grid" }), a.addProperty(
559
562
  q({
560
563
  label: "Columns",
561
564
  property: "grid-template-columns"
@@ -570,7 +573,7 @@ function Lt(t, e) {
570
573
  ), a.addProperty(
571
574
  {
572
575
  id: "grid-gap",
573
- requires: B,
576
+ requires: N,
574
577
  ...Mt("gap", {
575
578
  x: { id: "grid-row-gap", label: "Row", property: "row-gap", min: 0, default: "0" },
576
579
  y: { id: "grid-column-gap", label: "Column", property: "column-gap", min: 0, default: "0" },
@@ -583,7 +586,7 @@ function Lt(t, e) {
583
586
  type: "composite",
584
587
  property: "grid-area",
585
588
  label: "Grid area",
586
- requiresParent: B,
589
+ requiresParent: N,
587
590
  // detached: true,
588
591
  generic: !0,
589
592
  properties: [
@@ -631,20 +634,20 @@ function Lt(t, e) {
631
634
  {}
632
635
  );
633
636
  }
634
- const _t = function(t, e = {}) {
635
- const r = {
637
+ const Lt = function(t, e = {}) {
638
+ const n = {
636
639
  itemResizable: !0,
637
640
  ...e
638
- }, { Canvas: n, Commands: o, Components: a } = t, { itemResizable: s } = r, l = n.events, c = o.events, d = a.events, p = `${c.runBeforeCommand}tlb-move`, i = `${c.runBeforeCommand}resize`;
641
+ }, { Canvas: r, Commands: o, Components: a } = t, { itemResizable: s } = n, l = r.events, c = o.events, d = a.events, p = `${c.runBeforeCommand}tlb-move`, i = `${c.runBeforeCommand}resize`;
639
642
  let g;
640
- Pt(t);
643
+ Et(t);
641
644
  const m = ({ options: y }) => {
642
- L(t, y.target, r) && (t.runCommand(F, { ...y }), y.abort = !0);
645
+ L(t, y.target, n) && (t.runCommand(F, { ...y }), y.abort = !0);
643
646
  }, h = (y) => {
644
647
  const { options: f } = y;
645
- L(t, f.component, r) && (f.options = Object.assign(f.options || {}, Gt(t, f)));
648
+ L(t, f.component, n) && (f.options = Object.assign(f.options || {}, Gt(t, f)));
646
649
  }, w = () => {
647
- const y = n.getSpots({
650
+ const y = r.getSpots({
648
651
  type: M
649
652
  }).pop();
650
653
  if (!y) return;
@@ -671,7 +674,7 @@ const _t = function(t, e = {}) {
671
674
  };
672
675
  t.on(d.resizeInit, (f) => {
673
676
  const { component: v } = f;
674
- if (L(t, v, r)) {
677
+ if (L(t, v, n)) {
675
678
  const S = y(v);
676
679
  f.resizable = S;
677
680
  }
@@ -686,7 +689,7 @@ const _t = function(t, e = {}) {
686
689
  b.forEach(([y, f]) => {
687
690
  t.on(y, f);
688
691
  }), t.onReady(() => {
689
- g = n.getSpotsEl(), vt(), Lt(t, r);
692
+ g = r.getSpotsEl(), vt(), _t(t, n);
690
693
  });
691
694
  const $ = () => {
692
695
  delete t.Commands.commands[F], b.forEach(([y, f]) => {
@@ -695,12 +698,12 @@ const _t = function(t, e = {}) {
695
698
  };
696
699
  mt({
697
700
  editor: t,
698
- licenseKey: r.licenseKey,
701
+ licenseKey: n.licenseKey,
699
702
  plan: wt,
700
- pluginName: N,
703
+ pluginName: _,
701
704
  cleanup: $
702
705
  });
703
- }, Nt = ft(_t);
706
+ }, Bt = ft(Lt, _);
704
707
  export {
705
- Nt as default
708
+ Bt as default
706
709
  };