@builder.io/sdk-solid 0.0.9 → 0.0.12
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/package.json +1 -57
- package/src/blocks/button/index.js +2 -2
- package/src/blocks/columns/index.js +2 -2
- package/src/blocks/custom-code/index.js +2 -2
- package/src/blocks/embed/index.js +2 -2
- package/src/blocks/form/form.jsx +1 -1
- package/src/blocks/form/form.lite.tsx +1 -1
- package/src/blocks/form/index.js +2 -2
- package/src/blocks/fragment/index.js +2 -2
- package/src/blocks/image/index.js +2 -2
- package/src/blocks/img/img.jsx +1 -1
- package/src/blocks/img/img.lite.tsx +1 -1
- package/src/blocks/img/index.js +2 -2
- package/src/blocks/input/index.js +2 -2
- package/src/blocks/input/input.jsx +1 -1
- package/src/blocks/input/input.lite.tsx +1 -1
- package/src/blocks/raw-text/index.js +2 -2
- package/src/blocks/section/index.js +2 -2
- package/src/blocks/select/index.js +2 -2
- package/src/blocks/select/select.jsx +1 -1
- package/src/blocks/select/select.lite.tsx +1 -1
- package/src/blocks/submit-button/index.js +2 -2
- package/src/blocks/symbol/index.js +2 -2
- package/src/blocks/symbol/symbol.lite.tsx +1 -1
- package/src/blocks/text/index.js +2 -2
- package/src/blocks/textarea/index.js +2 -2
- package/src/blocks/video/index.js +2 -2
- package/src/components/render-block/render-block.jsx +8 -8
- package/src/components/render-block/render-block.lite.tsx +8 -8
- package/src/components/render-blocks.jsx +1 -1
- package/src/components/render-blocks.lite.tsx +1 -1
- package/src/components/render-content/render-content.jsx +10 -10
- package/src/components/render-content/render-content.lite.tsx +10 -10
- package/src/components/~render-inlined-styles.jsx +5 -0
- package/src/functions/evaluate.js +2 -2
- package/src/functions/get-block-actions.js +2 -2
- package/src/functions/get-content/fn.test.js +1 -1
- package/src/functions/get-content/index.js +1 -1
- package/src/functions/get-fetch.js +1 -1
- package/src/functions/get-processed-block.js +3 -3
- package/src/functions/get-processed-block.test.js +1 -1
- package/src/functions/if-target.js +1 -1
- package/src/functions/is-editing.js +1 -1
- package/src/functions/is-iframe.js +1 -1
- package/src/functions/is-previewing.js +2 -2
- package/src/functions/on-change.test.js +1 -1
- package/src/functions/previewing-model-name.js +1 -1
- package/src/functions/register-component.js +1 -1
- package/src/functions/register.js +1 -1
- package/src/functions/set-editor-settings.js +1 -1
- package/src/functions/set.test.js +1 -1
- package/src/functions/track.js +3 -3
- package/src/index-helpers/blocks-exports.js +8 -8
- package/src/index.js +10 -10
- package/src/scripts/init-editing.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder.io/sdk-solid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -12,61 +12,5 @@
|
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"solid-js": "^1.3.15"
|
|
15
|
-
},
|
|
16
|
-
"exports": {
|
|
17
|
-
"./functions/event-handler": "./functions/event-handler.js",
|
|
18
|
-
"./functions/get-block-actions": "./functions/get-block-actions.js",
|
|
19
|
-
"./functions/get-block-component": "./functions/get-block-component.js",
|
|
20
|
-
"./functions/get-block-properties": "./functions/get-block-properties.js",
|
|
21
|
-
"./functions/get-block-styles": "./functions/get-block-styles.js",
|
|
22
|
-
"./functions/get-block-tag": "./functions/get-block-tag.js",
|
|
23
|
-
"./functions/get-fetch": "./functions/get-fetch.js",
|
|
24
|
-
"./functions/get-global-this": "./functions/get-global-this.js",
|
|
25
|
-
"./functions/get-processed-block": "./functions/get-processed-block.js",
|
|
26
|
-
"./functions/if-target": "./functions/if-target.js",
|
|
27
|
-
"./functions/is-browser": "./functions/is-browser.js",
|
|
28
|
-
"./functions/is-editing": "./functions/is-editing.js",
|
|
29
|
-
"./functions/is-iframe": "./functions/is-iframe.js",
|
|
30
|
-
"./functions/is-previewing": "./functions/is-previewing.js",
|
|
31
|
-
"./functions/macro-eval": "./functions/macro-eval.js",
|
|
32
|
-
"./functions/on-change": "./functions/on-change.js",
|
|
33
|
-
"./functions/previewing-model-name": "./functions/previewing-model-name.js",
|
|
34
|
-
"./functions/register-component": "./functions/register-component.js",
|
|
35
|
-
"./functions/register": "./functions/register.js",
|
|
36
|
-
"./functions/set-editor-settings": "./functions/set-editor-settings.js",
|
|
37
|
-
"./functions/set": "./functions/set.js",
|
|
38
|
-
"./functions/track": "./functions/track.js",
|
|
39
|
-
"./functions/transform-block": "./functions/transform-block.js",
|
|
40
|
-
"./functions/get-content": "./functions/get-content/index.js",
|
|
41
|
-
"./functions/get-builder-search-params": "./functions/get-builder-search-params/index.js",
|
|
42
|
-
"./functions/index-helpers/block-exports": "./functions/index-helpers/block-exports.js",
|
|
43
|
-
"./functions/index-helpers/top-of-file": "./functions/index-helpers/top-of-file.js",
|
|
44
|
-
"./functions/scripts/init-editing": "./functions/scripts/init-editing.js",
|
|
45
|
-
"./constants/device-sizes": "./constants/device-sizes.js",
|
|
46
|
-
"./constants/target": "./constants/target.js",
|
|
47
|
-
"./context/builder.context": "./context/builder.context.js",
|
|
48
|
-
"./components/block-styles": "./components/block-styles.js",
|
|
49
|
-
"./components/error-boundary": "./components/error-boundary.js",
|
|
50
|
-
"./components/render-block": "./components/render-block.js",
|
|
51
|
-
"./components/render-blocks": "./components/render-blocks.js",
|
|
52
|
-
"./components/render-content/render-content": "./components/render-content/render-content.js",
|
|
53
|
-
"./components/render-content/components/render-styles": "./components/components/render-styles/render-content.js",
|
|
54
|
-
"./blocks/button": "./blocks/button.jsx",
|
|
55
|
-
"./blocks/columns": "./blocks/columns.jsx",
|
|
56
|
-
"./blocks/custom-code": "./blocks/custom-code.jsx",
|
|
57
|
-
"./blocks/embed": "./blocks/embed.jsx",
|
|
58
|
-
"./blocks/form": "./blocks/form.jsx",
|
|
59
|
-
"./blocks/fragment": "./blocks/fragment.jsx",
|
|
60
|
-
"./blocks/image": "./blocks/image.jsx",
|
|
61
|
-
"./blocks/img": "./blocks/img.jsx",
|
|
62
|
-
"./blocks/input": "./blocks/input.jsx",
|
|
63
|
-
"./blocks/raw-text": "./blocks/raw-text.jsx",
|
|
64
|
-
"./blocks/section": "./blocks/section.jsx",
|
|
65
|
-
"./blocks/select": "./blocks/select.jsx",
|
|
66
|
-
"./blocks/submit-button": "./blocks/submit-button.jsx",
|
|
67
|
-
"./blocks/symbol": "./blocks/symbol.jsx",
|
|
68
|
-
"./blocks/text": "./blocks/text.jsx",
|
|
69
|
-
"./blocks/textarea": "./blocks/textarea.jsx",
|
|
70
|
-
"./blocks/video": "./blocks/video.jsx"
|
|
71
15
|
}
|
|
72
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
2
|
import component from "./button";
|
|
3
|
-
import { componentInfo } from "./component-info";
|
|
3
|
+
import { componentInfo } from "./component-info.js";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
6
6
|
stdin_default as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
2
|
import component from "./columns";
|
|
3
|
-
import { componentInfo } from "./component-info";
|
|
3
|
+
import { componentInfo } from "./component-info.js";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
6
6
|
stdin_default as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./custom-code";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./embed";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
package/src/blocks/form/form.jsx
CHANGED
|
@@ -2,7 +2,7 @@ import { Show, For } from "solid-js";
|
|
|
2
2
|
import { createMutable } from "solid-js/store";
|
|
3
3
|
import { css } from "solid-styled-components";
|
|
4
4
|
import RenderBlock from "../../components/render-block/render-block";
|
|
5
|
-
import { isEditing } from "../../functions/is-editing";
|
|
5
|
+
import { isEditing } from "../../functions/is-editing.js";
|
|
6
6
|
|
|
7
7
|
function FormComponent(props) {
|
|
8
8
|
const state = createMutable({
|
|
@@ -4,7 +4,7 @@ import { createMutable } from "solid-js/store";
|
|
|
4
4
|
import { css } from "solid-styled-components";
|
|
5
5
|
|
|
6
6
|
import RenderBlock from "../../components/render-block/render-block.lite";
|
|
7
|
-
import { isEditing } from "../../functions/is-editing";
|
|
7
|
+
import { isEditing } from "../../functions/is-editing.js";
|
|
8
8
|
|
|
9
9
|
function FormComponent(props) {
|
|
10
10
|
const state = createMutable({
|
package/src/blocks/form/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./form";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./fragment";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./image";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
package/src/blocks/img/img.jsx
CHANGED
package/src/blocks/img/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./img";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./input";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isEditing } from "../../functions/is-editing";
|
|
1
|
+
import { isEditing } from "../../functions/is-editing.js";
|
|
2
2
|
|
|
3
3
|
function FormInputComponent(props) {
|
|
4
4
|
return <input {...props.attributes} key={isEditing() && props.defaultValue ? props.defaultValue : "default-key"} placeholder={props.placeholder} type={props.type} name={props.name} value={props.value} defaultValue={props.defaultValue} required={props.required} />;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./raw-text";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./section";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./select";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { For } from "solid-js";
|
|
2
|
-
import { isEditing } from "../../functions/is-editing";
|
|
2
|
+
import { isEditing } from "../../functions/is-editing.js";
|
|
3
3
|
|
|
4
4
|
function SelectComponent(props) {
|
|
5
5
|
return <select {...props.attributes} value={props.value} key={isEditing() && props.defaultValue ? props.defaultValue : "default-key"} defaultValue={props.defaultValue} name={props.name}>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./submit-button";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./symbol";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -2,7 +2,7 @@ import { createMutable } from "solid-js/store";
|
|
|
2
2
|
|
|
3
3
|
import RenderContent from "../../components/render-content/render-content.lite";
|
|
4
4
|
import BuilderContext from "../../context/builder.context";
|
|
5
|
-
import { getContent } from "../../functions/get-content";
|
|
5
|
+
import { getContent } from "../../functions/get-content/index.js";
|
|
6
6
|
|
|
7
7
|
function Symbol(props) {
|
|
8
8
|
const state = createMutable({ className: "builder-symbol", content: null });
|
package/src/blocks/text/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./text";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./textarea";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
3
|
import component from "./video";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { useContext, Show, For } from "solid-js";
|
|
2
2
|
import { Dynamic } from "solid-js/web";
|
|
3
3
|
import { createMutable } from "solid-js/store";
|
|
4
|
-
import { TARGET } from "../../constants/target";
|
|
4
|
+
import { TARGET } from "../../constants/target.js";
|
|
5
5
|
import BuilderContext from "../../context/builder.context";
|
|
6
|
-
import { getBlockActions } from "../../functions/get-block-actions";
|
|
7
|
-
import { getBlockComponentOptions } from "../../functions/get-block-component-options";
|
|
8
|
-
import { getBlockProperties } from "../../functions/get-block-properties";
|
|
9
|
-
import { getBlockStyles } from "../../functions/get-block-styles";
|
|
10
|
-
import { getBlockTag } from "../../functions/get-block-tag";
|
|
11
|
-
import { getProcessedBlock } from "../../functions/get-processed-block";
|
|
12
|
-
import { components } from "../../functions/register-component";
|
|
6
|
+
import { getBlockActions } from "../../functions/get-block-actions.js";
|
|
7
|
+
import { getBlockComponentOptions } from "../../functions/get-block-component-options.js";
|
|
8
|
+
import { getBlockProperties } from "../../functions/get-block-properties.js";
|
|
9
|
+
import { getBlockStyles } from "../../functions/get-block-styles.js";
|
|
10
|
+
import { getBlockTag } from "../../functions/get-block-tag.js";
|
|
11
|
+
import { getProcessedBlock } from "../../functions/get-processed-block.js";
|
|
12
|
+
import { components } from "../../functions/register-component.js";
|
|
13
13
|
import BlockStyles from "./block-styles";
|
|
14
14
|
|
|
15
15
|
function RenderBlock(props) {
|
|
@@ -2,15 +2,15 @@ import { useContext, Show, For } from "solid-js";
|
|
|
2
2
|
import { Dynamic } from "solid-js/web";
|
|
3
3
|
import { createMutable } from "solid-js/store";
|
|
4
4
|
|
|
5
|
-
import { TARGET } from "../../constants/target";
|
|
5
|
+
import { TARGET } from "../../constants/target.js";
|
|
6
6
|
import BuilderContext from "../../context/builder.context";
|
|
7
|
-
import { getBlockActions } from "../../functions/get-block-actions";
|
|
8
|
-
import { getBlockComponentOptions } from "../../functions/get-block-component-options";
|
|
9
|
-
import { getBlockProperties } from "../../functions/get-block-properties";
|
|
10
|
-
import { getBlockStyles } from "../../functions/get-block-styles";
|
|
11
|
-
import { getBlockTag } from "../../functions/get-block-tag";
|
|
12
|
-
import { getProcessedBlock } from "../../functions/get-processed-block";
|
|
13
|
-
import { components } from "../../functions/register-component";
|
|
7
|
+
import { getBlockActions } from "../../functions/get-block-actions.js";
|
|
8
|
+
import { getBlockComponentOptions } from "../../functions/get-block-component-options.js";
|
|
9
|
+
import { getBlockProperties } from "../../functions/get-block-properties.js";
|
|
10
|
+
import { getBlockStyles } from "../../functions/get-block-styles.js";
|
|
11
|
+
import { getBlockTag } from "../../functions/get-block-tag.js";
|
|
12
|
+
import { getProcessedBlock } from "../../functions/get-processed-block.js";
|
|
13
|
+
import { components } from "../../functions/register-component.js";
|
|
14
14
|
import BlockStyles from "./block-styles.lite";
|
|
15
15
|
|
|
16
16
|
function RenderBlock(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Show, For } from "solid-js";
|
|
2
2
|
import { createMutable } from "solid-js/store";
|
|
3
3
|
import { css } from "solid-styled-components";
|
|
4
|
-
import { isEditing } from "../functions/is-editing";
|
|
4
|
+
import { isEditing } from "../functions/is-editing.js";
|
|
5
5
|
import RenderBlock from "./render-block/render-block";
|
|
6
6
|
|
|
7
7
|
function RenderBlocks(props) {
|
|
@@ -3,7 +3,7 @@ import { Show, For } from "solid-js";
|
|
|
3
3
|
import { createMutable } from "solid-js/store";
|
|
4
4
|
import { css } from "solid-styled-components";
|
|
5
5
|
|
|
6
|
-
import { isEditing } from "../functions/is-editing";
|
|
6
|
+
import { isEditing } from "../functions/is-editing.js";
|
|
7
7
|
import RenderBlock from "./render-block/render-block.lite";
|
|
8
8
|
|
|
9
9
|
function RenderBlocks(props) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Show, onMount } from "solid-js";
|
|
2
2
|
import { Dynamic } from "solid-js/web";
|
|
3
3
|
import { createMutable } from "solid-js/store";
|
|
4
|
-
import { TARGET } from "../../constants/target";
|
|
4
|
+
import { TARGET } from "../../constants/target.js";
|
|
5
5
|
import BuilderContext from "../../context/builder.context";
|
|
6
|
-
import { evaluate } from "../../functions/evaluate";
|
|
7
|
-
import { convertSearchParamsToQueryObject, getBuilderSearchParams } from "../../functions/get-builder-search-params";
|
|
8
|
-
import { getContent } from "../../functions/get-content";
|
|
9
|
-
import { getFetch } from "../../functions/get-fetch";
|
|
10
|
-
import { isBrowser } from "../../functions/is-browser";
|
|
11
|
-
import { isEditing } from "../../functions/is-editing";
|
|
12
|
-
import { isPreviewing } from "../../functions/is-previewing";
|
|
13
|
-
import { previewingModelName } from "../../functions/previewing-model-name";
|
|
14
|
-
import { track } from "../../functions/track";
|
|
6
|
+
import { evaluate } from "../../functions/evaluate.js";
|
|
7
|
+
import { convertSearchParamsToQueryObject, getBuilderSearchParams } from "../../functions/get-builder-search-params/index.js";
|
|
8
|
+
import { getContent } from "../../functions/get-content/index.js";
|
|
9
|
+
import { getFetch } from "../../functions/get-fetch.js";
|
|
10
|
+
import { isBrowser } from "../../functions/is-browser.js";
|
|
11
|
+
import { isEditing } from "../../functions/is-editing.js";
|
|
12
|
+
import { isPreviewing } from "../../functions/is-previewing.js";
|
|
13
|
+
import { previewingModelName } from "../../functions/previewing-model-name.js";
|
|
14
|
+
import { track } from "../../functions/track.js";
|
|
15
15
|
import RenderBlocks from "../render-blocks";
|
|
16
16
|
import RenderContentStyles from "./components/render-styles";
|
|
17
17
|
|
|
@@ -2,20 +2,20 @@ import { useContext, Show, onMount } from "solid-js";
|
|
|
2
2
|
import { Dynamic } from "solid-js/web";
|
|
3
3
|
import { createMutable } from "solid-js/store";
|
|
4
4
|
|
|
5
|
-
import { TARGET } from "../../constants/target";
|
|
5
|
+
import { TARGET } from "../../constants/target.js";
|
|
6
6
|
import BuilderContext from "../../context/builder.context";
|
|
7
|
-
import { evaluate } from "../../functions/evaluate";
|
|
7
|
+
import { evaluate } from "../../functions/evaluate.js";
|
|
8
8
|
import {
|
|
9
9
|
convertSearchParamsToQueryObject,
|
|
10
10
|
getBuilderSearchParams,
|
|
11
|
-
} from "../../functions/get-builder-search-params";
|
|
12
|
-
import { getContent } from "../../functions/get-content";
|
|
13
|
-
import { getFetch } from "../../functions/get-fetch";
|
|
14
|
-
import { isBrowser } from "../../functions/is-browser";
|
|
15
|
-
import { isEditing } from "../../functions/is-editing";
|
|
16
|
-
import { isPreviewing } from "../../functions/is-previewing";
|
|
17
|
-
import { previewingModelName } from "../../functions/previewing-model-name";
|
|
18
|
-
import { track } from "../../functions/track";
|
|
11
|
+
} from "../../functions/get-builder-search-params/index.js";
|
|
12
|
+
import { getContent } from "../../functions/get-content/index.js";
|
|
13
|
+
import { getFetch } from "../../functions/get-fetch.js";
|
|
14
|
+
import { isBrowser } from "../../functions/is-browser.js";
|
|
15
|
+
import { isEditing } from "../../functions/is-editing.js";
|
|
16
|
+
import { isPreviewing } from "../../functions/is-previewing.js";
|
|
17
|
+
import { previewingModelName } from "../../functions/previewing-model-name.js";
|
|
18
|
+
import { track } from "../../functions/track.js";
|
|
19
19
|
import RenderBlocks from "../render-blocks.lite";
|
|
20
20
|
import RenderContentStyles from "./components/render-styles.lite";
|
|
21
21
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { evaluate } from "./evaluate";
|
|
2
|
-
import { getEventHandlerName } from "./event-handler-name";
|
|
1
|
+
import { evaluate } from "./evaluate.js";
|
|
2
|
+
import { getEventHandlerName } from "./event-handler-name.js";
|
|
3
3
|
function getBlockActions(options) {
|
|
4
4
|
var _a;
|
|
5
5
|
const obj = {};
|
|
@@ -37,7 +37,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
37
37
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
import { getFetch } from "../get-fetch";
|
|
40
|
+
import { getFetch } from "../get-fetch.js";
|
|
41
41
|
const fetch$ = getFetch();
|
|
42
42
|
function flatten(object, path = null, separator = ".") {
|
|
43
43
|
return Object.keys(object).reduce((acc, key) => {
|
|
@@ -18,7 +18,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
import { getGlobalThis } from "./get-global-this";
|
|
21
|
+
import { getGlobalThis } from "./get-global-this.js";
|
|
22
22
|
function getFetch() {
|
|
23
23
|
return __async(this, null, function* () {
|
|
24
24
|
const globalFetch = getGlobalThis().fetch;
|
|
@@ -17,9 +17,9 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { evaluate } from "./evaluate";
|
|
21
|
-
import { set } from "./set";
|
|
22
|
-
import { transformBlock } from "./transform-block";
|
|
20
|
+
import { evaluate } from "./evaluate.js";
|
|
21
|
+
import { set } from "./set.js";
|
|
22
|
+
import { transformBlock } from "./transform-block.js";
|
|
23
23
|
function getProcessedBlock(options) {
|
|
24
24
|
const { state, context } = options;
|
|
25
25
|
const block = transformBlock(options.block);
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { isBrowser } from "./is-browser";
|
|
20
|
+
import { isBrowser } from "./is-browser.js";
|
|
21
21
|
const components = {};
|
|
22
22
|
function registerComponent(component, info) {
|
|
23
23
|
var _a;
|
package/src/functions/track.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TARGET } from "../constants/target";
|
|
2
|
-
import { isBrowser } from "./is-browser";
|
|
3
|
-
import { isEditing } from "./is-editing";
|
|
1
|
+
import { TARGET } from "../constants/target.js";
|
|
2
|
+
import { isBrowser } from "./is-browser.js";
|
|
3
|
+
import { isEditing } from "./is-editing.js";
|
|
4
4
|
function track(event, properties) {
|
|
5
5
|
if (isEditing()) {
|
|
6
6
|
return;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { default as default2 } from "../blocks/columns";
|
|
2
|
-
import { default as default3 } from "../blocks/image";
|
|
3
|
-
import { default as default4 } from "../blocks/text";
|
|
4
|
-
import { default as default5 } from "../blocks/video";
|
|
5
|
-
import { default as default6 } from "../blocks/symbol";
|
|
6
|
-
import { default as default7 } from "../blocks/button";
|
|
7
|
-
import { default as default8 } from "../blocks/section";
|
|
8
|
-
import { default as default9 } from "../blocks/fragment";
|
|
1
|
+
import { default as default2 } from "../blocks/columns/index.js";
|
|
2
|
+
import { default as default3 } from "../blocks/image/index.js";
|
|
3
|
+
import { default as default4 } from "../blocks/text/index.js";
|
|
4
|
+
import { default as default5 } from "../blocks/video/index.js";
|
|
5
|
+
import { default as default6 } from "../blocks/symbol/index.js";
|
|
6
|
+
import { default as default7 } from "../blocks/button/index.js";
|
|
7
|
+
import { default as default8 } from "../blocks/section/index.js";
|
|
8
|
+
import { default as default9 } from "../blocks/fragment/index.js";
|
|
9
9
|
import { default as default10 } from "../components/render-content/render-content";
|
|
10
10
|
export {
|
|
11
11
|
default7 as Button,
|
package/src/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./index-helpers/top-of-file";
|
|
2
|
-
import "./scripts/init-editing";
|
|
3
|
-
export * from "./index-helpers/blocks-exports";
|
|
4
|
-
export * from "./functions/is-editing";
|
|
5
|
-
export * from "./functions/is-previewing";
|
|
6
|
-
export * from "./functions/register-component";
|
|
7
|
-
export * from "./functions/register";
|
|
8
|
-
export * from "./functions/set-editor-settings";
|
|
9
|
-
export * from "./functions/get-content";
|
|
10
|
-
export * from "./functions/get-builder-search-params";
|
|
1
|
+
import "./index-helpers/top-of-file.js";
|
|
2
|
+
import "./scripts/init-editing.js";
|
|
3
|
+
export * from "./index-helpers/blocks-exports.js";
|
|
4
|
+
export * from "./functions/is-editing.js";
|
|
5
|
+
export * from "./functions/is-previewing.js";
|
|
6
|
+
export * from "./functions/register-component.js";
|
|
7
|
+
export * from "./functions/register.js";
|
|
8
|
+
export * from "./functions/set-editor-settings.js";
|
|
9
|
+
export * from "./functions/get-content/index.js";
|
|
10
|
+
export * from "./functions/get-builder-search-params/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TARGET } from "../constants/target";
|
|
2
|
-
import { isBrowser } from "../functions/is-browser";
|
|
3
|
-
import { isEditing } from "../functions/is-editing";
|
|
4
|
-
import { register } from "../functions/register";
|
|
1
|
+
import { TARGET } from "../constants/target.js";
|
|
2
|
+
import { isBrowser } from "../functions/is-browser.js";
|
|
3
|
+
import { isEditing } from "../functions/is-editing.js";
|
|
4
|
+
import { register } from "../functions/register.js";
|
|
5
5
|
const registerInsertMenu = () => {
|
|
6
6
|
register("insertMenu", {
|
|
7
7
|
name: "_default",
|