@builder.io/sdk-solid 0.0.11 → 0.0.14
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 -58
- package/src/blocks/button/index.js +3 -3
- package/src/blocks/columns/columns.jsx +1 -1
- package/src/blocks/columns/columns.lite.tsx +1 -1
- package/src/blocks/columns/index.js +3 -3
- package/src/blocks/custom-code/index.js +3 -3
- package/src/blocks/embed/index.js +3 -3
- package/src/blocks/form/form.jsx +2 -2
- package/src/blocks/form/form.lite.tsx +2 -2
- package/src/blocks/form/index.js +3 -3
- package/src/blocks/fragment/index.js +3 -3
- package/src/blocks/image/index.js +3 -3
- package/src/blocks/img/img.jsx +1 -1
- package/src/blocks/img/img.lite.tsx +1 -1
- package/src/blocks/img/index.js +3 -3
- package/src/blocks/input/index.js +3 -3
- package/src/blocks/input/input.jsx +1 -1
- package/src/blocks/input/input.lite.tsx +1 -1
- package/src/blocks/raw-text/index.js +3 -3
- package/src/blocks/section/index.js +3 -3
- package/src/blocks/select/index.js +3 -3
- package/src/blocks/select/select.jsx +1 -1
- package/src/blocks/select/select.lite.tsx +1 -1
- package/src/blocks/submit-button/index.js +3 -3
- package/src/blocks/symbol/index.js +3 -3
- package/src/blocks/symbol/symbol.jsx +2 -2
- package/src/blocks/symbol/symbol.lite.tsx +3 -3
- package/src/blocks/text/index.js +3 -3
- package/src/blocks/textarea/index.js +3 -3
- package/src/blocks/video/index.js +3 -3
- package/src/components/render-block/block-styles.jsx +1 -1
- package/src/components/render-block/block-styles.lite.tsx +1 -1
- package/src/components/render-block/render-block.jsx +10 -10
- package/src/components/render-block/render-block.lite.tsx +10 -10
- package/src/components/render-blocks.jsx +2 -2
- package/src/components/render-blocks.lite.tsx +2 -2
- package/src/components/render-content/components/render-styles.jsx +1 -1
- package/src/components/render-content/components/render-styles.lite.tsx +1 -1
- package/src/components/render-content/render-content.jsx +13 -13
- package/src/components/render-content/render-content.lite.tsx +13 -13
- 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 +9 -9
- 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.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -12,62 +12,5 @@
|
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"solid-js": "^1.3.15"
|
|
15
|
-
},
|
|
16
|
-
"exports": {
|
|
17
|
-
".": "./src/index.js",
|
|
18
|
-
"./src/functions/event-handler": "./src/functions/event-handler.js",
|
|
19
|
-
"./src/functions/get-block-actions": "./src/functions/get-block-actions.js",
|
|
20
|
-
"./src/functions/get-block-component": "./src/functions/get-block-component.js",
|
|
21
|
-
"./src/functions/get-block-properties": "./src/functions/get-block-properties.js",
|
|
22
|
-
"./src/functions/get-block-styles": "./src/functions/get-block-styles.js",
|
|
23
|
-
"./src/functions/get-block-tag": "./src/functions/get-block-tag.js",
|
|
24
|
-
"./src/functions/get-fetch": "./src/functions/get-fetch.js",
|
|
25
|
-
"./src/functions/get-global-this": "./src/functions/get-global-this.js",
|
|
26
|
-
"./src/functions/get-processed-block": "./src/functions/get-processed-block.js",
|
|
27
|
-
"./src/functions/if-target": "./src/functions/if-target.js",
|
|
28
|
-
"./src/functions/is-browser": "./src/functions/is-browser.js",
|
|
29
|
-
"./src/functions/is-editing": "./src/functions/is-editing.js",
|
|
30
|
-
"./src/functions/is-iframe": "./src/functions/is-iframe.js",
|
|
31
|
-
"./src/functions/is-previewing": "./src/functions/is-previewing.js",
|
|
32
|
-
"./src/functions/macro-eval": "./src/functions/macro-eval.js",
|
|
33
|
-
"./src/functions/on-change": "./src/functions/on-change.js",
|
|
34
|
-
"./src/functions/previewing-model-name": "./src/functions/previewing-model-name.js",
|
|
35
|
-
"./src/functions/register-component": "./src/functions/register-component.js",
|
|
36
|
-
"./src/functions/register": "./src/functions/register.js",
|
|
37
|
-
"./src/functions/set-editor-settings": "./src/functions/set-editor-settings.js",
|
|
38
|
-
"./src/functions/set": "./src/functions/set.js",
|
|
39
|
-
"./src/functions/track": "./src/functions/track.js",
|
|
40
|
-
"./src/functions/transform-block": "./src/functions/transform-block.js",
|
|
41
|
-
"./src/functions/get-content": "./src/functions/get-content/index.js",
|
|
42
|
-
"./src/functions/get-builder-search-params": "./src/functions/get-builder-search-params/index.js",
|
|
43
|
-
"./src/index-helpers/block-exports": "./src/index-helpers/block-exports.js",
|
|
44
|
-
"./src/index-helpers/top-of-file": "./src/index-helpers/top-of-file.js",
|
|
45
|
-
"./src/functions/scripts/init-editing": "./src/functions/scripts/init-editing.js",
|
|
46
|
-
"./src/constants/device-sizes": "./src/constants/device-sizes.js",
|
|
47
|
-
"./src/constants/target": "./src/constants/target.js",
|
|
48
|
-
"./src/context/builder.context": "./src/context/builder.context.js",
|
|
49
|
-
"./src/components/block-styles": "./src/components/block-styles.js",
|
|
50
|
-
"./src/components/error-boundary": "./src/components/error-boundary.js",
|
|
51
|
-
"./src/components/render-block": "./src/components/render-block.js",
|
|
52
|
-
"./src/components/render-blocks": "./src/components/render-blocks.js",
|
|
53
|
-
"./src/components/render-content/render-content": "./src/components/render-content/render-content.js",
|
|
54
|
-
"./src/components/render-content/components/render-styles": "./src/components/render-content/components/render-styles.js",
|
|
55
|
-
"./src/blocks/button": "./src/blocks/button.jsx",
|
|
56
|
-
"./src/blocks/columns": "./src/blocks/columns.jsx",
|
|
57
|
-
"./src/blocks/custom-code": "./src/blocks/custom-code.jsx",
|
|
58
|
-
"./src/blocks/embed": "./src/blocks/embed.jsx",
|
|
59
|
-
"./src/blocks/form": "./src/blocks/form.jsx",
|
|
60
|
-
"./src/blocks/fragment": "./src/blocks/fragment.jsx",
|
|
61
|
-
"./src/blocks/image": "./src/blocks/image.jsx",
|
|
62
|
-
"./src/blocks/img": "./src/blocks/img.jsx",
|
|
63
|
-
"./src/blocks/input": "./src/blocks/input.jsx",
|
|
64
|
-
"./src/blocks/raw-text": "./src/blocks/raw-text.jsx",
|
|
65
|
-
"./src/blocks/section": "./src/blocks/section.jsx",
|
|
66
|
-
"./src/blocks/select": "./src/blocks/select.jsx",
|
|
67
|
-
"./src/blocks/submit-button": "./src/blocks/submit-button.jsx",
|
|
68
|
-
"./src/blocks/symbol": "./src/blocks/symbol.jsx",
|
|
69
|
-
"./src/blocks/text": "./src/blocks/text.jsx",
|
|
70
|
-
"./src/blocks/textarea": "./src/blocks/textarea.jsx",
|
|
71
|
-
"./src/blocks/video": "./src/blocks/video.jsx"
|
|
72
15
|
}
|
|
73
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import component from "./button";
|
|
3
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import component from "./button.lite.js";
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import { For } from "solid-js";
|
|
2
2
|
import { createMutable } from "solid-js/store";
|
|
3
3
|
import { css } from "solid-styled-components";
|
|
4
|
-
import RenderBlocks from "../../components/render-blocks";
|
|
4
|
+
import RenderBlocks from "../../components/render-blocks.lite.js";
|
|
5
5
|
|
|
6
6
|
function Columns(props) {
|
|
7
7
|
const state = createMutable({
|
|
@@ -3,7 +3,7 @@ import { For } from "solid-js";
|
|
|
3
3
|
import { createMutable } from "solid-js/store";
|
|
4
4
|
import { css } from "solid-styled-components";
|
|
5
5
|
|
|
6
|
-
import RenderBlocks from "../../components/render-blocks.lite";
|
|
6
|
+
import RenderBlocks from "../../components/render-blocks.lite.js";
|
|
7
7
|
|
|
8
8
|
function Columns(props) {
|
|
9
9
|
const state = createMutable({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import component from "./columns";
|
|
3
|
-
import { componentInfo } from "./component-info";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import component from "./columns.lite.js";
|
|
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";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./custom-code";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./custom-code.lite.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";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./embed";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./embed.lite.js";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
6
6
|
stdin_default as default
|
package/src/blocks/form/form.jsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 RenderBlock from "../../components/render-block/render-block";
|
|
5
|
-
import { isEditing } from "../../functions/is-editing";
|
|
4
|
+
import RenderBlock from "../../components/render-block/render-block.lite.js";
|
|
5
|
+
import { isEditing } from "../../functions/is-editing.js";
|
|
6
6
|
|
|
7
7
|
function FormComponent(props) {
|
|
8
8
|
const state = createMutable({
|
|
@@ -3,8 +3,8 @@ 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 RenderBlock from "../../components/render-block/render-block.lite";
|
|
7
|
-
import { isEditing } from "../../functions/is-editing";
|
|
6
|
+
import RenderBlock from "../../components/render-block/render-block.lite.js";
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./form";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./form.lite.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";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./fragment";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./fragment.lite.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";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./image";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./image.lite.js";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
6
6
|
stdin_default as default
|
package/src/blocks/img/img.jsx
CHANGED
package/src/blocks/img/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./img";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./img.lite.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";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./input";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./input.lite.js";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
6
6
|
stdin_default as default
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./raw-text";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./raw-text.lite.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";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./section";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./section.lite.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";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./select";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./select.lite.js";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
6
6
|
stdin_default as default
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./submit-button";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./submit-button.lite.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";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./symbol";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./symbol.lite.js";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
6
6
|
stdin_default as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createMutable } from "solid-js/store";
|
|
2
|
-
import RenderContent from "../../components/render-content/render-content";
|
|
3
|
-
import BuilderContext from "../../context/builder.context";
|
|
2
|
+
import RenderContent from "../../components/render-content/render-content.lite.js";
|
|
3
|
+
import BuilderContext from "../../context/builder.context.lite.js";
|
|
4
4
|
|
|
5
5
|
function Symbol(props) {
|
|
6
6
|
const state = createMutable({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createMutable } from "solid-js/store";
|
|
2
2
|
|
|
3
|
-
import RenderContent from "../../components/render-content/render-content.lite";
|
|
4
|
-
import BuilderContext from "../../context/builder.context";
|
|
5
|
-
import { getContent } from "../../functions/get-content";
|
|
3
|
+
import RenderContent from "../../components/render-content/render-content.lite.js";
|
|
4
|
+
import BuilderContext from "../../context/builder.context.lite.js";
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { registerComponent } from "../../functions/register-component";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./text";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./text.lite.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";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./textarea";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./textarea.lite.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";
|
|
2
|
-
import { componentInfo } from "./component-info";
|
|
3
|
-
import component from "./video";
|
|
1
|
+
import { registerComponent } from "../../functions/register-component.js";
|
|
2
|
+
import { componentInfo } from "./component-info.js";
|
|
3
|
+
import component from "./video.lite.js";
|
|
4
4
|
var stdin_default = registerComponent(component, componentInfo);
|
|
5
5
|
export {
|
|
6
6
|
stdin_default as default
|
|
@@ -1,16 +1,16 @@
|
|
|
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";
|
|
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";
|
|
13
|
-
import BlockStyles from "./block-styles";
|
|
4
|
+
import { TARGET } from "../../constants/target.js";
|
|
5
|
+
import BuilderContext from "../../context/builder.context.lite.js";
|
|
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
|
+
import BlockStyles from "./block-styles.lite.js";
|
|
14
14
|
|
|
15
15
|
function RenderBlock(props) {
|
|
16
16
|
const state = createMutable({
|
|
@@ -2,16 +2,16 @@ 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";
|
|
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";
|
|
14
|
-
import BlockStyles from "./block-styles.lite";
|
|
5
|
+
import { TARGET } from "../../constants/target.js";
|
|
6
|
+
import BuilderContext from "../../context/builder.context.lite.js";
|
|
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
|
+
import BlockStyles from "./block-styles.lite.js";
|
|
15
15
|
|
|
16
16
|
function RenderBlock(props) {
|
|
17
17
|
const state = createMutable({
|
|
@@ -1,8 +1,8 @@
|
|
|
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";
|
|
5
|
-
import RenderBlock from "./render-block/render-block";
|
|
4
|
+
import { isEditing } from "../functions/is-editing.js";
|
|
5
|
+
import RenderBlock from "./render-block/render-block.lite.js";
|
|
6
6
|
|
|
7
7
|
function RenderBlocks(props) {
|
|
8
8
|
const state = createMutable({
|
|
@@ -3,8 +3,8 @@ 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";
|
|
7
|
-
import RenderBlock from "./render-block/render-block.lite";
|
|
6
|
+
import { isEditing } from "../functions/is-editing.js";
|
|
7
|
+
import RenderBlock from "./render-block/render-block.lite.js";
|
|
8
8
|
|
|
9
9
|
function RenderBlocks(props) {
|
|
10
10
|
const state = createMutable({
|
|
@@ -1,19 +1,19 @@
|
|
|
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";
|
|
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";
|
|
15
|
-
import RenderBlocks from "../render-blocks";
|
|
16
|
-
import RenderContentStyles from "./components/render-styles";
|
|
4
|
+
import { TARGET } from "../../constants/target.js";
|
|
5
|
+
import BuilderContext from "../../context/builder.context.lite.js";
|
|
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
|
+
import RenderBlocks from "../render-blocks.lite.js";
|
|
16
|
+
import RenderContentStyles from "./components/render-styles.lite.js";
|
|
17
17
|
|
|
18
18
|
function RenderContent(props) {
|
|
19
19
|
const state = createMutable({
|
|
@@ -2,22 +2,22 @@ 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";
|
|
6
|
-
import BuilderContext from "../../context/builder.context";
|
|
7
|
-
import { evaluate } from "../../functions/evaluate";
|
|
5
|
+
import { TARGET } from "../../constants/target.js";
|
|
6
|
+
import BuilderContext from "../../context/builder.context.lite.js";
|
|
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";
|
|
19
|
-
import RenderBlocks from "../render-blocks.lite";
|
|
20
|
-
import RenderContentStyles from "./components/render-styles.lite";
|
|
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
|
+
import RenderBlocks from "../render-blocks.lite.js";
|
|
20
|
+
import RenderContentStyles from "./components/render-styles.lite.js";
|
|
21
21
|
|
|
22
22
|
function RenderContent(props) {
|
|
23
23
|
const state = createMutable({
|
|
@@ -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,12 +1,12 @@
|
|
|
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";
|
|
9
|
-
import { default as default10 } from "../components/render-content/render-content";
|
|
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
|
+
import { default as default10 } from "../components/render-content/render-content.lite.js";
|
|
10
10
|
export {
|
|
11
11
|
default7 as Button,
|
|
12
12
|
default2 as Columns,
|
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",
|