@builder.io/sdk-qwik 0.19.0 → 0.19.2
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/lib/browser/blocks/img/img.qwik.cjs +1 -0
- package/lib/browser/blocks/img/img.qwik.mjs +1 -0
- package/lib/browser/components/content/components/enable-editor.qwik.cjs +0 -1
- package/lib/browser/components/content/components/enable-editor.qwik.mjs +1 -2
- package/lib/browser/constants/sdk-version.qwik.cjs +1 -1
- package/lib/browser/constants/sdk-version.qwik.mjs +1 -1
- package/lib/browser/scripts/init-editing.qwik.cjs +0 -36
- package/lib/browser/scripts/init-editing.qwik.mjs +0 -36
- package/lib/edge/blocks/img/img.qwik.cjs +1 -0
- package/lib/edge/blocks/img/img.qwik.mjs +1 -0
- package/lib/edge/components/content/components/enable-editor.qwik.cjs +0 -1
- package/lib/edge/components/content/components/enable-editor.qwik.mjs +1 -2
- package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
- package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
- package/lib/edge/scripts/init-editing.qwik.cjs +0 -36
- package/lib/edge/scripts/init-editing.qwik.mjs +0 -36
- package/lib/node/blocks/img/img.qwik.cjs +1 -0
- package/lib/node/blocks/img/img.qwik.mjs +1 -0
- package/lib/node/components/content/components/enable-editor.qwik.cjs +0 -1
- package/lib/node/components/content/components/enable-editor.qwik.mjs +1 -2
- package/lib/node/constants/sdk-version.qwik.cjs +1 -1
- package/lib/node/constants/sdk-version.qwik.mjs +1 -1
- package/lib/node/scripts/init-editing.qwik.cjs +0 -36
- package/lib/node/scripts/init-editing.qwik.mjs +0 -36
- package/package.json +1 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/scripts/init-editing.d.ts +0 -1
|
@@ -21,6 +21,7 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
21
21
|
alt: qwik._fnSignal((p0) => p0.altText, [
|
|
22
22
|
props
|
|
23
23
|
], "p0.altText"),
|
|
24
|
+
loading: "lazy",
|
|
24
25
|
src: qwik._fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
25
26
|
props
|
|
26
27
|
], "p0.imgSrc||p0.image"),
|
|
@@ -163,7 +163,6 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
163
163
|
qwik.useOn("initeditingbldr", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
164
164
|
const [elementRef2, props2, showContentProps2, state2] = qwik.useLexicalScope();
|
|
165
165
|
window.addEventListener("message", processMessage.bind(null, props2, state2, showContentProps2, elementRef2));
|
|
166
|
-
initEditing.registerInsertMenu();
|
|
167
166
|
initEditing.setupBrowserForEditing({
|
|
168
167
|
...props2.locale ? {
|
|
169
168
|
locale: props2.locale
|
|
@@ -14,7 +14,7 @@ import { getInteractionPropertiesForEvent } from "../../../functions/track/inter
|
|
|
14
14
|
import { getDefaultCanTrack } from "../../../helpers/canTrack.qwik.mjs";
|
|
15
15
|
import { getCookieSync } from "../../../helpers/cookie.qwik.mjs";
|
|
16
16
|
import { createEditorListener } from "../../../helpers/subscribe-to-editor.qwik.mjs";
|
|
17
|
-
import {
|
|
17
|
+
import { setupBrowserForEditing } from "../../../scripts/init-editing.qwik.mjs";
|
|
18
18
|
import { triggerAnimation } from "../../block/animator.qwik.mjs";
|
|
19
19
|
import { needsElementRefDivForEditing } from "./enable-editor.helpers.qwik.mjs";
|
|
20
20
|
import { getWrapperClassName } from "./styles.helpers.qwik.mjs";
|
|
@@ -161,7 +161,6 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
161
161
|
useOn("initeditingbldr", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
162
162
|
const [elementRef2, props2, showContentProps2, state2] = useLexicalScope();
|
|
163
163
|
window.addEventListener("message", processMessage.bind(null, props2, state2, showContentProps2, elementRef2));
|
|
164
|
-
registerInsertMenu();
|
|
165
164
|
setupBrowserForEditing({
|
|
166
165
|
...props2.locale ? {
|
|
167
166
|
locale: props2.locale
|
|
@@ -4,41 +4,6 @@ const sdkVersion = require("../constants/sdk-version.qwik.cjs");
|
|
|
4
4
|
const target = require("../constants/target.qwik.cjs");
|
|
5
5
|
const isBrowser = require("../functions/is-browser.qwik.cjs");
|
|
6
6
|
const isFromTrustedHost = require("../functions/is-from-trusted-host.qwik.cjs");
|
|
7
|
-
const register = require("../functions/register.qwik.cjs");
|
|
8
|
-
const registerInsertMenu = () => {
|
|
9
|
-
register.register("insertMenu", {
|
|
10
|
-
name: "_default",
|
|
11
|
-
default: true,
|
|
12
|
-
items: [
|
|
13
|
-
{
|
|
14
|
-
name: "Box"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
name: "Text"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: "Image"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: "Columns"
|
|
24
|
-
},
|
|
25
|
-
...[
|
|
26
|
-
{
|
|
27
|
-
name: "Core:Section"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: "Core:Button"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: "Embed"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: "Custom Code"
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
]
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
7
|
let isSetupForEditing = false;
|
|
43
8
|
const setupBrowserForEditing = (options) => {
|
|
44
9
|
var _a, _b;
|
|
@@ -121,5 +86,4 @@ const setupBrowserForEditing = (options) => {
|
|
|
121
86
|
});
|
|
122
87
|
}
|
|
123
88
|
};
|
|
124
|
-
exports.registerInsertMenu = registerInsertMenu;
|
|
125
89
|
exports.setupBrowserForEditing = setupBrowserForEditing;
|
|
@@ -2,41 +2,6 @@ import { SDK_VERSION } from "../constants/sdk-version.qwik.mjs";
|
|
|
2
2
|
import { TARGET } from "../constants/target.qwik.mjs";
|
|
3
3
|
import { isBrowser } from "../functions/is-browser.qwik.mjs";
|
|
4
4
|
import { isFromTrustedHost } from "../functions/is-from-trusted-host.qwik.mjs";
|
|
5
|
-
import { register } from "../functions/register.qwik.mjs";
|
|
6
|
-
const registerInsertMenu = () => {
|
|
7
|
-
register("insertMenu", {
|
|
8
|
-
name: "_default",
|
|
9
|
-
default: true,
|
|
10
|
-
items: [
|
|
11
|
-
{
|
|
12
|
-
name: "Box"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: "Text"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
name: "Image"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: "Columns"
|
|
22
|
-
},
|
|
23
|
-
...[
|
|
24
|
-
{
|
|
25
|
-
name: "Core:Section"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: "Core:Button"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: "Embed"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "Custom Code"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
]
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
5
|
let isSetupForEditing = false;
|
|
41
6
|
const setupBrowserForEditing = (options) => {
|
|
42
7
|
var _a, _b;
|
|
@@ -120,6 +85,5 @@ const setupBrowserForEditing = (options) => {
|
|
|
120
85
|
}
|
|
121
86
|
};
|
|
122
87
|
export {
|
|
123
|
-
registerInsertMenu,
|
|
124
88
|
setupBrowserForEditing
|
|
125
89
|
};
|
|
@@ -21,6 +21,7 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
21
21
|
alt: qwik._fnSignal((p0) => p0.altText, [
|
|
22
22
|
props
|
|
23
23
|
], "p0.altText"),
|
|
24
|
+
loading: "lazy",
|
|
24
25
|
src: qwik._fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
25
26
|
props
|
|
26
27
|
], "p0.imgSrc||p0.image"),
|
|
@@ -163,7 +163,6 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
163
163
|
qwik.useOn("initeditingbldr", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
164
164
|
const [elementRef2, props2, showContentProps2, state2] = qwik.useLexicalScope();
|
|
165
165
|
window.addEventListener("message", processMessage.bind(null, props2, state2, showContentProps2, elementRef2));
|
|
166
|
-
initEditing.registerInsertMenu();
|
|
167
166
|
initEditing.setupBrowserForEditing({
|
|
168
167
|
...props2.locale ? {
|
|
169
168
|
locale: props2.locale
|
|
@@ -14,7 +14,7 @@ import { getInteractionPropertiesForEvent } from "../../../functions/track/inter
|
|
|
14
14
|
import { getDefaultCanTrack } from "../../../helpers/canTrack.qwik.mjs";
|
|
15
15
|
import { getCookieSync } from "../../../helpers/cookie.qwik.mjs";
|
|
16
16
|
import { createEditorListener } from "../../../helpers/subscribe-to-editor.qwik.mjs";
|
|
17
|
-
import {
|
|
17
|
+
import { setupBrowserForEditing } from "../../../scripts/init-editing.qwik.mjs";
|
|
18
18
|
import { triggerAnimation } from "../../block/animator.qwik.mjs";
|
|
19
19
|
import { needsElementRefDivForEditing } from "./enable-editor.helpers.qwik.mjs";
|
|
20
20
|
import { getWrapperClassName } from "./styles.helpers.qwik.mjs";
|
|
@@ -161,7 +161,6 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
161
161
|
useOn("initeditingbldr", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
162
162
|
const [elementRef2, props2, showContentProps2, state2] = useLexicalScope();
|
|
163
163
|
window.addEventListener("message", processMessage.bind(null, props2, state2, showContentProps2, elementRef2));
|
|
164
|
-
registerInsertMenu();
|
|
165
164
|
setupBrowserForEditing({
|
|
166
165
|
...props2.locale ? {
|
|
167
166
|
locale: props2.locale
|
|
@@ -4,41 +4,6 @@ const sdkVersion = require("../constants/sdk-version.qwik.cjs");
|
|
|
4
4
|
const target = require("../constants/target.qwik.cjs");
|
|
5
5
|
const isBrowser = require("../functions/is-browser.qwik.cjs");
|
|
6
6
|
const isFromTrustedHost = require("../functions/is-from-trusted-host.qwik.cjs");
|
|
7
|
-
const register = require("../functions/register.qwik.cjs");
|
|
8
|
-
const registerInsertMenu = () => {
|
|
9
|
-
register.register("insertMenu", {
|
|
10
|
-
name: "_default",
|
|
11
|
-
default: true,
|
|
12
|
-
items: [
|
|
13
|
-
{
|
|
14
|
-
name: "Box"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
name: "Text"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: "Image"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: "Columns"
|
|
24
|
-
},
|
|
25
|
-
...[
|
|
26
|
-
{
|
|
27
|
-
name: "Core:Section"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: "Core:Button"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: "Embed"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: "Custom Code"
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
]
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
7
|
let isSetupForEditing = false;
|
|
43
8
|
const setupBrowserForEditing = (options) => {
|
|
44
9
|
var _a, _b;
|
|
@@ -121,5 +86,4 @@ const setupBrowserForEditing = (options) => {
|
|
|
121
86
|
});
|
|
122
87
|
}
|
|
123
88
|
};
|
|
124
|
-
exports.registerInsertMenu = registerInsertMenu;
|
|
125
89
|
exports.setupBrowserForEditing = setupBrowserForEditing;
|
|
@@ -2,41 +2,6 @@ import { SDK_VERSION } from "../constants/sdk-version.qwik.mjs";
|
|
|
2
2
|
import { TARGET } from "../constants/target.qwik.mjs";
|
|
3
3
|
import { isBrowser } from "../functions/is-browser.qwik.mjs";
|
|
4
4
|
import { isFromTrustedHost } from "../functions/is-from-trusted-host.qwik.mjs";
|
|
5
|
-
import { register } from "../functions/register.qwik.mjs";
|
|
6
|
-
const registerInsertMenu = () => {
|
|
7
|
-
register("insertMenu", {
|
|
8
|
-
name: "_default",
|
|
9
|
-
default: true,
|
|
10
|
-
items: [
|
|
11
|
-
{
|
|
12
|
-
name: "Box"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: "Text"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
name: "Image"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: "Columns"
|
|
22
|
-
},
|
|
23
|
-
...[
|
|
24
|
-
{
|
|
25
|
-
name: "Core:Section"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: "Core:Button"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: "Embed"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "Custom Code"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
]
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
5
|
let isSetupForEditing = false;
|
|
41
6
|
const setupBrowserForEditing = (options) => {
|
|
42
7
|
var _a, _b;
|
|
@@ -120,6 +85,5 @@ const setupBrowserForEditing = (options) => {
|
|
|
120
85
|
}
|
|
121
86
|
};
|
|
122
87
|
export {
|
|
123
|
-
registerInsertMenu,
|
|
124
88
|
setupBrowserForEditing
|
|
125
89
|
};
|
|
@@ -21,6 +21,7 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
21
21
|
alt: qwik._fnSignal((p0) => p0.altText, [
|
|
22
22
|
props
|
|
23
23
|
], "p0.altText"),
|
|
24
|
+
loading: "lazy",
|
|
24
25
|
src: qwik._fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
25
26
|
props
|
|
26
27
|
], "p0.imgSrc||p0.image"),
|
|
@@ -163,7 +163,6 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
163
163
|
qwik.useOn("initeditingbldr", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
|
|
164
164
|
const [elementRef2, props2, showContentProps2, state2] = qwik.useLexicalScope();
|
|
165
165
|
window.addEventListener("message", processMessage.bind(null, props2, state2, showContentProps2, elementRef2));
|
|
166
|
-
initEditing.registerInsertMenu();
|
|
167
166
|
initEditing.setupBrowserForEditing({
|
|
168
167
|
...props2.locale ? {
|
|
169
168
|
locale: props2.locale
|
|
@@ -14,7 +14,7 @@ import { getInteractionPropertiesForEvent } from "../../../functions/track/inter
|
|
|
14
14
|
import { getDefaultCanTrack } from "../../../helpers/canTrack.qwik.mjs";
|
|
15
15
|
import { getCookieSync } from "../../../helpers/cookie.qwik.mjs";
|
|
16
16
|
import { createEditorListener } from "../../../helpers/subscribe-to-editor.qwik.mjs";
|
|
17
|
-
import {
|
|
17
|
+
import { setupBrowserForEditing } from "../../../scripts/init-editing.qwik.mjs";
|
|
18
18
|
import { triggerAnimation } from "../../block/animator.qwik.mjs";
|
|
19
19
|
import { needsElementRefDivForEditing } from "./enable-editor.helpers.qwik.mjs";
|
|
20
20
|
import { getWrapperClassName } from "./styles.helpers.qwik.mjs";
|
|
@@ -161,7 +161,6 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
161
161
|
useOn("initeditingbldr", /* @__PURE__ */ inlinedQrl((event, element) => {
|
|
162
162
|
const [elementRef2, props2, showContentProps2, state2] = useLexicalScope();
|
|
163
163
|
window.addEventListener("message", processMessage.bind(null, props2, state2, showContentProps2, elementRef2));
|
|
164
|
-
registerInsertMenu();
|
|
165
164
|
setupBrowserForEditing({
|
|
166
165
|
...props2.locale ? {
|
|
167
166
|
locale: props2.locale
|
|
@@ -4,41 +4,6 @@ const sdkVersion = require("../constants/sdk-version.qwik.cjs");
|
|
|
4
4
|
const target = require("../constants/target.qwik.cjs");
|
|
5
5
|
const isBrowser = require("../functions/is-browser.qwik.cjs");
|
|
6
6
|
const isFromTrustedHost = require("../functions/is-from-trusted-host.qwik.cjs");
|
|
7
|
-
const register = require("../functions/register.qwik.cjs");
|
|
8
|
-
const registerInsertMenu = () => {
|
|
9
|
-
register.register("insertMenu", {
|
|
10
|
-
name: "_default",
|
|
11
|
-
default: true,
|
|
12
|
-
items: [
|
|
13
|
-
{
|
|
14
|
-
name: "Box"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
name: "Text"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: "Image"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: "Columns"
|
|
24
|
-
},
|
|
25
|
-
...[
|
|
26
|
-
{
|
|
27
|
-
name: "Core:Section"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: "Core:Button"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: "Embed"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: "Custom Code"
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
]
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
7
|
let isSetupForEditing = false;
|
|
43
8
|
const setupBrowserForEditing = (options) => {
|
|
44
9
|
var _a, _b;
|
|
@@ -121,5 +86,4 @@ const setupBrowserForEditing = (options) => {
|
|
|
121
86
|
});
|
|
122
87
|
}
|
|
123
88
|
};
|
|
124
|
-
exports.registerInsertMenu = registerInsertMenu;
|
|
125
89
|
exports.setupBrowserForEditing = setupBrowserForEditing;
|
|
@@ -2,41 +2,6 @@ import { SDK_VERSION } from "../constants/sdk-version.qwik.mjs";
|
|
|
2
2
|
import { TARGET } from "../constants/target.qwik.mjs";
|
|
3
3
|
import { isBrowser } from "../functions/is-browser.qwik.mjs";
|
|
4
4
|
import { isFromTrustedHost } from "../functions/is-from-trusted-host.qwik.mjs";
|
|
5
|
-
import { register } from "../functions/register.qwik.mjs";
|
|
6
|
-
const registerInsertMenu = () => {
|
|
7
|
-
register("insertMenu", {
|
|
8
|
-
name: "_default",
|
|
9
|
-
default: true,
|
|
10
|
-
items: [
|
|
11
|
-
{
|
|
12
|
-
name: "Box"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: "Text"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
name: "Image"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: "Columns"
|
|
22
|
-
},
|
|
23
|
-
...[
|
|
24
|
-
{
|
|
25
|
-
name: "Core:Section"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: "Core:Button"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: "Embed"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "Custom Code"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
]
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
5
|
let isSetupForEditing = false;
|
|
41
6
|
const setupBrowserForEditing = (options) => {
|
|
42
7
|
var _a, _b;
|
|
@@ -120,6 +85,5 @@ const setupBrowserForEditing = (options) => {
|
|
|
120
85
|
}
|
|
121
86
|
};
|
|
122
87
|
export {
|
|
123
|
-
registerInsertMenu,
|
|
124
88
|
setupBrowserForEditing
|
|
125
89
|
};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.19.
|
|
1
|
+
export declare const SDK_VERSION = "0.19.2";
|