@grapesjs/studio-sdk-plugins 1.0.38-rc.0 → 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.
- package/dist/accordionComponent/index.cjs.js +5 -5
- package/dist/accordionComponent/index.es.js +70 -67
- package/dist/accordionComponent/index.js +39 -0
- package/dist/accordionComponent/index.umd.js +4 -4
- package/dist/aiChat/components/AiChatHeader.d.ts +4 -5
- package/dist/aiChat/components/AiChatInput/index.d.ts +4 -5
- package/dist/aiChat/components/AiChatMessage.d.ts +7 -8
- package/dist/aiChat/components/index.d.ts +1 -1
- package/dist/aiChat/components/utils.d.ts +1 -1
- package/dist/aiChat/index.cjs.js +10 -376
- package/dist/aiChat/index.es.js +4569 -28851
- package/dist/aiChat/index.js +10 -376
- package/dist/aiChat/index.umd.js +11 -377
- package/dist/aiChat/server/index.cjs.d.ts +0 -1
- package/dist/aiChat/server/index.cjs.js +45 -45
- package/dist/aiChat/server/index.d.ts +0 -1
- package/dist/aiChat/server/index.es.d.ts +0 -1
- package/dist/aiChat/server/index.es.js +371 -427
- package/dist/aiChat/server/index.js +45 -45
- package/dist/aiChat/server/index.umd.js +41 -41
- package/dist/aiChat/server/stream.test.d.ts +1 -0
- package/dist/aiChat/types.d.ts +18 -4
- package/dist/aiChat/typesSchema.d.ts +13 -0
- package/dist/animationComponent/index.cjs.js +3 -3
- package/dist/animationComponent/index.es.js +49 -46
- package/dist/animationComponent/index.js +519 -0
- package/dist/animationComponent/index.umd.js +3 -3
- package/dist/canvasAbsoluteMode/index.cjs.js +1 -1
- package/dist/canvasAbsoluteMode/index.es.js +115 -112
- package/dist/canvasAbsoluteMode/index.js +1 -0
- package/dist/canvasAbsoluteMode/index.umd.js +1 -1
- package/dist/canvasEmptyState/index.cjs.js +1 -1
- package/dist/canvasEmptyState/index.es.js +71 -68
- package/dist/canvasEmptyState/index.js +1 -0
- package/dist/canvasEmptyState/index.umd.js +1 -1
- package/dist/canvasFullSize/index.cjs.js +3 -3
- package/dist/canvasFullSize/index.es.js +69 -66
- package/dist/canvasFullSize/index.js +10 -0
- package/dist/canvasFullSize/index.umd.js +4 -4
- package/dist/canvasGridMode/index.cjs.js +7 -7
- package/dist/canvasGridMode/index.es.js +142 -139
- package/dist/canvasGridMode/index.js +26 -0
- package/dist/canvasGridMode/index.umd.js +7 -7
- package/dist/canvasScreenshot/index.cjs.js +1 -1
- package/dist/canvasScreenshot/index.es.js +78 -75
- package/dist/canvasScreenshot/index.js +1 -0
- package/dist/canvasScreenshot/index.umd.js +1 -1
- package/dist/dataSourceEjs/EjsExporter.d.ts +1 -1
- package/dist/dataSourceEjs/index.cjs.js +3 -3
- package/dist/dataSourceEjs/index.es.js +40 -37
- package/dist/dataSourceEjs/index.js +21 -0
- package/dist/dataSourceEjs/index.umd.js +3 -3
- package/dist/dataSourceHandlebars/HandlebarsExporter.d.ts +2 -2
- package/dist/dataSourceHandlebars/constants.d.ts +1 -1
- package/dist/dataSourceHandlebars/index.cjs.js +4 -4
- package/dist/dataSourceHandlebars/index.es.js +58 -55
- package/dist/dataSourceHandlebars/index.js +10 -0
- package/dist/dataSourceHandlebars/index.umd.js +2 -2
- package/dist/dialogComponent/index.cjs.js +11 -11
- package/dist/dialogComponent/index.es.js +72 -69
- package/dist/dialogComponent/index.js +59 -0
- package/dist/dialogComponent/index.umd.js +11 -11
- package/dist/flexComponent/index.cjs.js +6 -6
- package/dist/flexComponent/index.es.js +151 -142
- package/dist/flexComponent/index.js +33 -0
- package/dist/flexComponent/index.umd.js +8 -8
- package/dist/flexComponent/typesSchema.d.ts +1 -1
- package/dist/fsLightboxComponent/index.cjs.js +3 -3
- package/dist/fsLightboxComponent/index.es.js +93 -90
- package/dist/fsLightboxComponent/index.js +6 -0
- package/dist/fsLightboxComponent/index.umd.js +3 -3
- package/dist/googleFontsAssetProvider/index.cjs.js +1 -1
- package/dist/googleFontsAssetProvider/index.es.js +112 -109
- package/dist/googleFontsAssetProvider/index.js +1 -0
- package/dist/googleFontsAssetProvider/index.umd.js +1 -1
- package/dist/googleFontsAssetProvider/utils.d.ts +1 -1
- package/dist/iconifyComponent/index.cjs.js +2 -2
- package/dist/iconifyComponent/index.es.js +80 -77
- package/dist/iconifyComponent/index.js +3 -0
- package/dist/iconifyComponent/index.umd.js +2 -2
- package/dist/index.cjs.d.ts +1 -0
- package/dist/index.cjs.js +970 -82
- package/dist/index.d.ts +1 -0
- package/dist/index.es.d.ts +1 -0
- package/dist/index.es.js +7422 -6145
- package/dist/index.umd.js +975 -87
- package/dist/layoutSidebarButtons/index.cjs.js +1 -1
- package/dist/layoutSidebarButtons/index.es.js +95 -92
- package/dist/layoutSidebarButtons/index.js +1 -0
- package/dist/layoutSidebarButtons/index.umd.js +1 -1
- package/dist/lightGalleryComponent/index.cjs.js +1 -1
- package/dist/lightGalleryComponent/index.es.js +164 -161
- package/dist/lightGalleryComponent/index.js +1 -0
- package/dist/lightGalleryComponent/index.umd.js +1 -1
- package/dist/lightGalleryComponent/utils.d.ts +1 -1
- package/dist/linkImageComponent/index.cjs.js +2 -2
- package/dist/linkImageComponent/index.es.js +60 -57
- package/dist/linkImageComponent/index.js +12 -0
- package/dist/linkImageComponent/index.umd.js +2 -2
- package/dist/listPagesComponent/index.cjs.js +4 -4
- package/dist/listPagesComponent/index.es.js +57 -54
- package/dist/listPagesComponent/index.js +11 -0
- package/dist/listPagesComponent/index.umd.js +4 -4
- package/dist/listPagesComponent/utils.d.ts +1 -1
- package/dist/presetBlockLibrary/blocks.d.ts +6 -0
- package/dist/presetBlockLibrary/blocks.test.d.ts +2 -0
- package/dist/presetBlockLibrary/emailBlocks.d.ts +53 -0
- package/dist/presetBlockLibrary/index.cjs.d.ts +3 -0
- package/dist/presetBlockLibrary/index.cjs.js +889 -0
- package/dist/presetBlockLibrary/index.d.ts +3 -0
- package/dist/presetBlockLibrary/index.es.d.ts +3 -0
- package/dist/presetBlockLibrary/index.es.js +1408 -0
- package/dist/presetBlockLibrary/index.js +889 -0
- package/dist/presetBlockLibrary/index.test.d.ts +1 -0
- package/dist/presetBlockLibrary/index.umd.js +889 -0
- package/dist/presetBlockLibrary/shared.d.ts +3 -0
- package/dist/presetBlockLibrary/types.d.ts +24 -0
- package/dist/presetBlockLibrary/typesSchema.d.ts +47 -0
- package/dist/presetPrintable/index.cjs.js +3 -3
- package/dist/presetPrintable/index.es.js +133 -130
- package/dist/presetPrintable/index.js +32 -0
- package/dist/presetPrintable/index.umd.js +4 -4
- package/dist/prosemirror/index.cjs.js +8 -8
- package/dist/prosemirror/index.es.js +552 -549
- package/dist/prosemirror/index.js +10 -0
- package/dist/prosemirror/index.umd.js +9 -9
- package/dist/prosemirror/toolbar.d.ts +2 -2
- package/dist/prosemirror/types.d.ts +5 -5
- package/dist/rendererReact/index.cjs.js +1 -1
- package/dist/rendererReact/index.es.js +137 -134
- package/dist/rendererReact/index.js +1 -1
- package/dist/rendererReact/index.umd.js +1 -1
- package/dist/rteTinyMce/index.cjs.js +2 -2
- package/dist/rteTinyMce/index.es.js +74 -71
- package/dist/rteTinyMce/index.js +104 -0
- package/dist/rteTinyMce/index.umd.js +2 -2
- package/dist/shapeDividerComponent/index.cjs.js +4 -4
- package/dist/shapeDividerComponent/index.es.js +91 -88
- package/dist/shapeDividerComponent/index.js +97 -0
- package/dist/shapeDividerComponent/index.umd.js +4 -4
- package/dist/swiperComponent/index.cjs.js +7 -7
- package/dist/swiperComponent/index.es.js +95 -92
- package/dist/swiperComponent/index.js +45 -0
- package/dist/swiperComponent/index.umd.js +5 -5
- package/dist/tableComponent/index.cjs.js +1 -1
- package/dist/tableComponent/index.es.js +181 -178
- package/dist/tableComponent/index.js +1 -0
- package/dist/tableComponent/index.umd.js +1 -1
- package/dist/tableComponent/types.d.ts +3 -3
- package/dist/types.d.ts +14 -14
- package/dist/utils.d.ts +3 -2
- package/dist/utilsDataSources.d.ts +1 -1
- package/dist/youtubeAssetProvider/index.cjs.js +1 -1
- package/dist/youtubeAssetProvider/index.es.js +90 -87
- package/dist/youtubeAssetProvider/index.js +1 -0
- package/dist/youtubeAssetProvider/index.umd.js +1 -1
- package/package.json +182 -34
- 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:
|
|
22
|
-
}) => `${t ? "" : `https://${e ? Y : H}`}/${
|
|
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:
|
|
42
|
-
headers:
|
|
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:
|
|
47
|
+
method: n,
|
|
48
48
|
headers: {
|
|
49
49
|
"Content-Type": "application/json",
|
|
50
|
-
...
|
|
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
|
|
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
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
[
|
|
61
|
+
[E.free]: 0,
|
|
62
|
+
[E.startup]: 10,
|
|
63
|
+
[E.business]: 20,
|
|
64
|
+
[E.enterprise]: 30
|
|
65
65
|
};
|
|
66
|
-
function ut(t) {
|
|
67
|
-
const
|
|
68
|
-
return
|
|
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:
|
|
75
|
-
licenseKey:
|
|
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:",
|
|
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(
|
|
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 (
|
|
100
|
-
const i = await ht({ licenseKey:
|
|
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:
|
|
124
|
+
const { licenseKey: e, pluginName: n, baseApiUrl: r } = t;
|
|
122
125
|
try {
|
|
123
126
|
return (await gt({
|
|
124
|
-
baseApiUrl:
|
|
127
|
+
baseApiUrl: r,
|
|
125
128
|
path: `/sdk/${e || "na"}`,
|
|
126
129
|
method: "POST",
|
|
127
130
|
params: {
|
|
128
131
|
d: window.location.hostname,
|
|
129
|
-
pn:
|
|
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
|
|
137
|
-
const t = "data-gjs-drag-grid-style", e = document,
|
|
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 ${
|
|
141
|
-
background: ${
|
|
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 ${
|
|
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: ${
|
|
159
|
-
outline: 1px solid ${
|
|
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:
|
|
167
|
-
if (!
|
|
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:
|
|
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:
|
|
183
|
-
a == null || a.appendChild(o), o == null || o.appendChild(
|
|
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:
|
|
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(
|
|
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 = "",
|
|
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:
|
|
204
|
+
columns: n
|
|
202
205
|
}) {
|
|
203
|
-
const
|
|
204
|
-
for (let o = 0; o <
|
|
205
|
-
|
|
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}`,
|
|
211
|
+
s.className = K, s.style.gridArea = `${a + 1} / ${o + 1}`, r[o][a] = s, t.appendChild(s);
|
|
209
212
|
}
|
|
210
213
|
}
|
|
211
|
-
return
|
|
214
|
+
return r;
|
|
212
215
|
}
|
|
213
|
-
function St(t, e,
|
|
214
|
-
return t.className = J, t.style.top = `${e.offset.top -
|
|
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
|
|
218
|
-
return t.className = Q, t.style.gridArea = `${
|
|
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
|
|
222
|
-
t.className = bt, t.style.position = "relative", t.style.display =
|
|
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
|
|
232
|
-
const
|
|
234
|
+
function Pt(t, e) {
|
|
235
|
+
const n = et(t, e), r = n.getEl(), o = window.getComputedStyle(r);
|
|
233
236
|
return {
|
|
234
|
-
component:
|
|
235
|
-
el:
|
|
236
|
-
offset: t.Canvas.offset(
|
|
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
|
|
250
|
+
const n = e.parent(), r = n.getEl(), o = window.getComputedStyle(r);
|
|
248
251
|
return {
|
|
249
|
-
component:
|
|
250
|
-
el:
|
|
251
|
-
offset: t.Canvas.offset(
|
|
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,
|
|
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] +
|
|
273
|
+
if (a + (t[s - 1] + r) * o > n)
|
|
271
274
|
return s;
|
|
272
|
-
a +=
|
|
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:
|
|
280
|
+
const { scrollY: e, scrollX: n } = t.Canvas.getWindow();
|
|
278
281
|
return {
|
|
279
282
|
scroll: {
|
|
280
283
|
top: e,
|
|
281
|
-
left:
|
|
284
|
+
left: n
|
|
282
285
|
}
|
|
283
286
|
};
|
|
284
287
|
}
|
|
285
|
-
function
|
|
288
|
+
function Tt(t, e, n, r) {
|
|
286
289
|
const o = (a) => t.em.logWarning(a);
|
|
287
|
-
return
|
|
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,
|
|
290
|
-
const
|
|
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 } =
|
|
294
|
-
return X(s) ? s({ component:
|
|
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
|
|
299
|
+
const k = (t) => t.split(" ").map((e) => parseFloat(e));
|
|
297
300
|
function nt(t, e) {
|
|
298
|
-
const
|
|
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:
|
|
303
|
+
raw: r.gridArea
|
|
301
304
|
}, s = {
|
|
302
305
|
...a,
|
|
303
306
|
row: {
|
|
304
|
-
start: parseInt(
|
|
305
|
-
end: parseInt(
|
|
307
|
+
start: parseInt(r.gridRowStart) || 1,
|
|
308
|
+
end: parseInt(r.gridRowEnd) || 2
|
|
306
309
|
},
|
|
307
310
|
column: {
|
|
308
|
-
start: parseInt(
|
|
309
|
-
end: parseInt(
|
|
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 =
|
|
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 <
|
|
320
|
-
const 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 +
|
|
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
|
|
342
|
+
function Et(t) {
|
|
340
343
|
t.Commands.add(F, {
|
|
341
344
|
stop() {
|
|
342
345
|
},
|
|
343
|
-
run(e,
|
|
344
|
-
const o = Z({ editor: e, component:
|
|
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:
|
|
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 = `${
|
|
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(
|
|
385
|
+
}).start(r.event);
|
|
383
386
|
}
|
|
384
387
|
});
|
|
385
388
|
}
|
|
386
389
|
function Gt(t, e) {
|
|
387
|
-
const
|
|
388
|
-
if (!
|
|
390
|
+
const n = Z({ editor: t, component: e.component, type: "resizable" });
|
|
391
|
+
if (!n)
|
|
389
392
|
return;
|
|
390
|
-
const { onMove:
|
|
391
|
-
let { container: p } =
|
|
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:
|
|
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:
|
|
416
|
-
h:
|
|
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`,
|
|
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
|
|
442
|
-
const
|
|
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:
|
|
445
|
-
property:
|
|
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:
|
|
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:
|
|
454
|
+
units: U,
|
|
452
455
|
...e
|
|
453
456
|
}, a = {
|
|
454
457
|
property: `${t}-y`,
|
|
455
458
|
type: "integer",
|
|
456
|
-
units:
|
|
457
|
-
...
|
|
459
|
+
units: U,
|
|
460
|
+
...n
|
|
458
461
|
};
|
|
459
462
|
return {
|
|
460
463
|
property: t,
|
|
461
464
|
type: "composite",
|
|
462
465
|
properties: [o, a],
|
|
463
|
-
...
|
|
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
|
-
},
|
|
482
|
+
}, N = { display: ["grid"] };
|
|
480
483
|
function Ct(t = "") {
|
|
481
|
-
const e = /^repeat\(\s*(\d+)\s*,\s*(.+)\s*\)$/i,
|
|
482
|
-
if (!
|
|
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(
|
|
487
|
+
const o = parseInt(r[1], 10), a = r[2];
|
|
485
488
|
let s = a, l = a;
|
|
486
|
-
const c = a.match(
|
|
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 = "",
|
|
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 ? (
|
|
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:
|
|
499
|
-
rowStart:
|
|
501
|
+
columnEnd: n,
|
|
502
|
+
rowStart: r,
|
|
500
503
|
rowEnd: o
|
|
501
504
|
};
|
|
502
505
|
}
|
|
503
506
|
function q(t) {
|
|
504
|
-
const { property: e, label:
|
|
507
|
+
const { property: e, label: n } = t, r = "1", o = "1fr";
|
|
505
508
|
return {
|
|
506
509
|
property: e,
|
|
507
|
-
label:
|
|
510
|
+
label: n,
|
|
508
511
|
type: "composite",
|
|
509
|
-
requires:
|
|
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) ??
|
|
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 ||
|
|
551
|
+
[s]: `repeat(${i || r}, ${h})`
|
|
549
552
|
};
|
|
550
553
|
}
|
|
551
554
|
};
|
|
552
555
|
}
|
|
553
|
-
function
|
|
556
|
+
function _t(t, e) {
|
|
554
557
|
if (!e.styleableGrid) return;
|
|
555
|
-
const { property:
|
|
556
|
-
if (!
|
|
557
|
-
const o =
|
|
558
|
-
o ||
|
|
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:
|
|
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:
|
|
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
|
|
635
|
-
const
|
|
637
|
+
const Lt = function(t, e = {}) {
|
|
638
|
+
const n = {
|
|
636
639
|
itemResizable: !0,
|
|
637
640
|
...e
|
|
638
|
-
}, { Canvas:
|
|
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
|
-
|
|
643
|
+
Et(t);
|
|
641
644
|
const m = ({ options: y }) => {
|
|
642
|
-
L(t, y.target,
|
|
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,
|
|
648
|
+
L(t, f.component, n) && (f.options = Object.assign(f.options || {}, Gt(t, f)));
|
|
646
649
|
}, w = () => {
|
|
647
|
-
const y =
|
|
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,
|
|
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 =
|
|
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:
|
|
701
|
+
licenseKey: n.licenseKey,
|
|
699
702
|
plan: wt,
|
|
700
|
-
pluginName:
|
|
703
|
+
pluginName: _,
|
|
701
704
|
cleanup: $
|
|
702
705
|
});
|
|
703
|
-
},
|
|
706
|
+
}, Bt = ft(Lt, _);
|
|
704
707
|
export {
|
|
705
|
-
|
|
708
|
+
Bt as default
|
|
706
709
|
};
|