@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.
Files changed (61) hide show
  1. package/package.json +1 -58
  2. package/src/blocks/button/index.js +3 -3
  3. package/src/blocks/columns/columns.jsx +1 -1
  4. package/src/blocks/columns/columns.lite.tsx +1 -1
  5. package/src/blocks/columns/index.js +3 -3
  6. package/src/blocks/custom-code/index.js +3 -3
  7. package/src/blocks/embed/index.js +3 -3
  8. package/src/blocks/form/form.jsx +2 -2
  9. package/src/blocks/form/form.lite.tsx +2 -2
  10. package/src/blocks/form/index.js +3 -3
  11. package/src/blocks/fragment/index.js +3 -3
  12. package/src/blocks/image/index.js +3 -3
  13. package/src/blocks/img/img.jsx +1 -1
  14. package/src/blocks/img/img.lite.tsx +1 -1
  15. package/src/blocks/img/index.js +3 -3
  16. package/src/blocks/input/index.js +3 -3
  17. package/src/blocks/input/input.jsx +1 -1
  18. package/src/blocks/input/input.lite.tsx +1 -1
  19. package/src/blocks/raw-text/index.js +3 -3
  20. package/src/blocks/section/index.js +3 -3
  21. package/src/blocks/select/index.js +3 -3
  22. package/src/blocks/select/select.jsx +1 -1
  23. package/src/blocks/select/select.lite.tsx +1 -1
  24. package/src/blocks/submit-button/index.js +3 -3
  25. package/src/blocks/symbol/index.js +3 -3
  26. package/src/blocks/symbol/symbol.jsx +2 -2
  27. package/src/blocks/symbol/symbol.lite.tsx +3 -3
  28. package/src/blocks/text/index.js +3 -3
  29. package/src/blocks/textarea/index.js +3 -3
  30. package/src/blocks/video/index.js +3 -3
  31. package/src/components/render-block/block-styles.jsx +1 -1
  32. package/src/components/render-block/block-styles.lite.tsx +1 -1
  33. package/src/components/render-block/render-block.jsx +10 -10
  34. package/src/components/render-block/render-block.lite.tsx +10 -10
  35. package/src/components/render-blocks.jsx +2 -2
  36. package/src/components/render-blocks.lite.tsx +2 -2
  37. package/src/components/render-content/components/render-styles.jsx +1 -1
  38. package/src/components/render-content/components/render-styles.lite.tsx +1 -1
  39. package/src/components/render-content/render-content.jsx +13 -13
  40. package/src/components/render-content/render-content.lite.tsx +13 -13
  41. package/src/functions/evaluate.js +2 -2
  42. package/src/functions/get-block-actions.js +2 -2
  43. package/src/functions/get-content/fn.test.js +1 -1
  44. package/src/functions/get-content/index.js +1 -1
  45. package/src/functions/get-fetch.js +1 -1
  46. package/src/functions/get-processed-block.js +3 -3
  47. package/src/functions/get-processed-block.test.js +1 -1
  48. package/src/functions/if-target.js +1 -1
  49. package/src/functions/is-editing.js +1 -1
  50. package/src/functions/is-iframe.js +1 -1
  51. package/src/functions/is-previewing.js +2 -2
  52. package/src/functions/on-change.test.js +1 -1
  53. package/src/functions/previewing-model-name.js +1 -1
  54. package/src/functions/register-component.js +1 -1
  55. package/src/functions/register.js +1 -1
  56. package/src/functions/set-editor-settings.js +1 -1
  57. package/src/functions/set.test.js +1 -1
  58. package/src/functions/track.js +3 -3
  59. package/src/index-helpers/blocks-exports.js +9 -9
  60. package/src/index.js +10 -10
  61. 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.11",
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
@@ -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({
@@ -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
@@ -1,4 +1,4 @@
1
- import { isEditing } from "../../functions/is-editing";
1
+ import { isEditing } from "../../functions/is-editing.js";
2
2
 
3
3
  function ImgComponent(props) {
4
4
  return <img {...props.attributes} style={{
@@ -1,4 +1,4 @@
1
- import { isEditing } from "../../functions/is-editing";
1
+ import { isEditing } from "../../functions/is-editing.js";
2
2
 
3
3
  function ImgComponent(props) {
4
4
  return (
@@ -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,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 (
@@ -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
1
  import { For } from "solid-js";
2
2
 
3
- import { isEditing } from "../../functions/is-editing";
3
+ import { isEditing } from "../../functions/is-editing.js";
4
4
 
5
5
  function SelectComponent(props) {
6
6
  return (
@@ -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 });
@@ -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,5 +1,5 @@
1
1
  import { createMutable } from "solid-js/store";
2
- import RenderInlinedStyles from "../render-inlined-styles";
2
+ import RenderInlinedStyles from "../render-inlined-styles.lite.js";
3
3
 
4
4
  function BlockStyles(props) {
5
5
  const state = createMutable({
@@ -1,6 +1,6 @@
1
1
  import { createMutable } from "solid-js/store";
2
2
 
3
- import RenderInlinedStyles from "../render-inlined-styles.lite";
3
+ import RenderInlinedStyles from "../render-inlined-styles.lite.js";
4
4
 
5
5
  function BlockStyles(props) {
6
6
  const state = createMutable({
@@ -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,5 +1,5 @@
1
1
  import { createMutable } from "solid-js/store";
2
- import RenderInlinedStyles from "../../render-inlined-styles";
2
+ import RenderInlinedStyles from "../../render-inlined-styles.lite.js";
3
3
 
4
4
  function RenderContentStyles(props) {
5
5
  const state = createMutable({
@@ -1,6 +1,6 @@
1
1
  import { createMutable } from "solid-js/store";
2
2
 
3
- import RenderInlinedStyles from "../../render-inlined-styles.lite";
3
+ import RenderInlinedStyles from "../../render-inlined-styles.lite.js";
4
4
 
5
5
  function RenderContentStyles(props) {
6
6
  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 { isBrowser } from "./is-browser";
2
- import { isEditing } from "./is-editing";
1
+ import { isBrowser } from "./is-browser.js";
2
+ import { isEditing } from "./is-editing.js";
3
3
  function evaluate({
4
4
  code,
5
5
  context,
@@ -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 = {};
@@ -1,4 +1,4 @@
1
- import { generateContentUrl } from ".";
1
+ import { generateContentUrl } from "..js";
2
2
  const testKey = "YJIGb4i01jvw0SRdL5Bt";
3
3
  const testModel = "page";
4
4
  const testId = "c1b81bab59704599b997574eb0736def";
@@ -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);
@@ -1,4 +1,4 @@
1
- import { getProcessedBlock } from "./get-processed-block";
1
+ import { getProcessedBlock } from "./get-processed-block.js";
2
2
  test("Can process bindings", () => {
3
3
  var _a, _b, _c, _d, _e, _f;
4
4
  const block = {
@@ -1,4 +1,4 @@
1
- import { TARGET } from "../constants/target";
1
+ import { TARGET } from "../constants/target.js";
2
2
  function ifTarget({
3
3
  targets,
4
4
  doThing,
@@ -1,4 +1,4 @@
1
- import { isIframe } from "./is-iframe";
1
+ import { isIframe } from "./is-iframe.js";
2
2
  function isEditing() {
3
3
  return isIframe() && window.location.search.indexOf("builder.frameEditing=") !== -1;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { isBrowser } from "./is-browser";
1
+ import { isBrowser } from "./is-browser.js";
2
2
  function isIframe() {
3
3
  return isBrowser() && window.self !== window.top;
4
4
  }
@@ -1,5 +1,5 @@
1
- import { isBrowser } from "./is-browser";
2
- import { isEditing } from "./is-editing";
1
+ import { isBrowser } from "./is-browser.js";
2
+ import { isEditing } from "./is-editing.js";
3
3
  function isPreviewing() {
4
4
  if (!isBrowser()) {
5
5
  return false;
@@ -1,4 +1,4 @@
1
- import { onChange } from "./on-change";
1
+ import { onChange } from "./on-change.js";
2
2
  test("onChange can observe a shallow change", () => {
3
3
  let changeHappend = false;
4
4
  const obj = onChange({ foo: "hi" }, () => changeHappend = true);
@@ -1,4 +1,4 @@
1
- import { isPreviewing } from "./is-previewing";
1
+ import { isPreviewing } from "./is-previewing.js";
2
2
  function previewingModelName() {
3
3
  if (!isPreviewing()) {
4
4
  return null;
@@ -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;
@@ -1,4 +1,4 @@
1
- import { isBrowser } from "./is-browser";
1
+ import { isBrowser } from "./is-browser.js";
2
2
  const registry = {};
3
3
  function register(type, info) {
4
4
  let typeList = registry[type];
@@ -1,4 +1,4 @@
1
- import { isBrowser } from "./is-browser";
1
+ import { isBrowser } from "./is-browser.js";
2
2
  const settings = {};
3
3
  function setEditorSettings(newSettings) {
4
4
  if (isBrowser()) {
@@ -1,4 +1,4 @@
1
- import { set } from "./set";
1
+ import { set } from "./set.js";
2
2
  test("can shallow set a property", () => {
3
3
  const obj = { foo: "bar" };
4
4
  set(obj, "foo", "baz");
@@ -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",