@builder.io/sdk-solid 0.0.10 → 0.0.13

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 (56) hide show
  1. package/package.json +1 -58
  2. package/src/blocks/button/index.js +2 -2
  3. package/src/blocks/columns/index.js +2 -2
  4. package/src/blocks/custom-code/index.js +2 -2
  5. package/src/blocks/embed/index.js +2 -2
  6. package/src/blocks/form/form.jsx +1 -1
  7. package/src/blocks/form/form.lite.tsx +1 -1
  8. package/src/blocks/form/index.js +2 -2
  9. package/src/blocks/fragment/index.js +2 -2
  10. package/src/blocks/image/index.js +2 -2
  11. package/src/blocks/img/img.jsx +1 -1
  12. package/src/blocks/img/img.lite.tsx +1 -1
  13. package/src/blocks/img/index.js +2 -2
  14. package/src/blocks/input/index.js +2 -2
  15. package/src/blocks/input/input.jsx +1 -1
  16. package/src/blocks/input/input.lite.tsx +1 -1
  17. package/src/blocks/raw-text/index.js +2 -2
  18. package/src/blocks/section/index.js +2 -2
  19. package/src/blocks/select/index.js +2 -2
  20. package/src/blocks/select/select.jsx +1 -1
  21. package/src/blocks/select/select.lite.tsx +1 -1
  22. package/src/blocks/submit-button/index.js +2 -2
  23. package/src/blocks/symbol/index.js +2 -2
  24. package/src/blocks/symbol/symbol.lite.tsx +1 -1
  25. package/src/blocks/text/index.js +2 -2
  26. package/src/blocks/textarea/index.js +2 -2
  27. package/src/blocks/video/index.js +2 -2
  28. package/src/components/render-block/render-block.jsx +8 -8
  29. package/src/components/render-block/render-block.lite.tsx +8 -8
  30. package/src/components/render-blocks.jsx +1 -1
  31. package/src/components/render-blocks.lite.tsx +1 -1
  32. package/src/components/render-content/render-content.jsx +10 -10
  33. package/src/components/render-content/render-content.lite.tsx +10 -10
  34. package/src/components/render-inlined-styles.jsx +5 -0
  35. package/src/components/render-inlined-styles.lite.tsx +5 -0
  36. package/src/functions/evaluate.js +2 -2
  37. package/src/functions/get-block-actions.js +2 -2
  38. package/src/functions/get-content/fn.test.js +1 -1
  39. package/src/functions/get-content/index.js +1 -1
  40. package/src/functions/get-fetch.js +1 -1
  41. package/src/functions/get-processed-block.js +3 -3
  42. package/src/functions/get-processed-block.test.js +1 -1
  43. package/src/functions/if-target.js +1 -1
  44. package/src/functions/is-editing.js +1 -1
  45. package/src/functions/is-iframe.js +1 -1
  46. package/src/functions/is-previewing.js +2 -2
  47. package/src/functions/on-change.test.js +1 -1
  48. package/src/functions/previewing-model-name.js +1 -1
  49. package/src/functions/register-component.js +1 -1
  50. package/src/functions/register.js +1 -1
  51. package/src/functions/set-editor-settings.js +1 -1
  52. package/src/functions/set.test.js +1 -1
  53. package/src/functions/track.js +3 -3
  54. package/src/index-helpers/blocks-exports.js +8 -8
  55. package/src/index.js +10 -10
  56. 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.10",
3
+ "version": "0.0.13",
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
- "./functions/event-handler": "./functions/event-handler.js",
19
- "./functions/get-block-actions": "./functions/get-block-actions.js",
20
- "./functions/get-block-component": "./functions/get-block-component.js",
21
- "./functions/get-block-properties": "./functions/get-block-properties.js",
22
- "./functions/get-block-styles": "./functions/get-block-styles.js",
23
- "./functions/get-block-tag": "./functions/get-block-tag.js",
24
- "./functions/get-fetch": "./functions/get-fetch.js",
25
- "./functions/get-global-this": "./functions/get-global-this.js",
26
- "./functions/get-processed-block": "./functions/get-processed-block.js",
27
- "./functions/if-target": "./functions/if-target.js",
28
- "./functions/is-browser": "./functions/is-browser.js",
29
- "./functions/is-editing": "./functions/is-editing.js",
30
- "./functions/is-iframe": "./functions/is-iframe.js",
31
- "./functions/is-previewing": "./functions/is-previewing.js",
32
- "./functions/macro-eval": "./functions/macro-eval.js",
33
- "./functions/on-change": "./functions/on-change.js",
34
- "./functions/previewing-model-name": "./functions/previewing-model-name.js",
35
- "./functions/register-component": "./functions/register-component.js",
36
- "./functions/register": "./functions/register.js",
37
- "./functions/set-editor-settings": "./functions/set-editor-settings.js",
38
- "./functions/set": "./functions/set.js",
39
- "./functions/track": "./functions/track.js",
40
- "./functions/transform-block": "./functions/transform-block.js",
41
- "./functions/get-content": "./functions/get-content/index.js",
42
- "./functions/get-builder-search-params": "./functions/get-builder-search-params/index.js",
43
- "./functions/index-helpers/block-exports": "./functions/index-helpers/block-exports.js",
44
- "./functions/index-helpers/top-of-file": "./functions/index-helpers/top-of-file.js",
45
- "./functions/scripts/init-editing": "./functions/scripts/init-editing.js",
46
- "./constants/device-sizes": "./constants/device-sizes.js",
47
- "./constants/target": "./constants/target.js",
48
- "./context/builder.context": "./context/builder.context.js",
49
- "./components/block-styles": "./components/block-styles.js",
50
- "./components/error-boundary": "./components/error-boundary.js",
51
- "./components/render-block": "./components/render-block.js",
52
- "./components/render-blocks": "./components/render-blocks.js",
53
- "./components/render-content/render-content": "./components/render-content/render-content.js",
54
- "./components/render-content/components/render-styles": "./components/components/render-styles/render-content.js",
55
- "./blocks/button": "./blocks/button.jsx",
56
- "./blocks/columns": "./blocks/columns.jsx",
57
- "./blocks/custom-code": "./blocks/custom-code.jsx",
58
- "./blocks/embed": "./blocks/embed.jsx",
59
- "./blocks/form": "./blocks/form.jsx",
60
- "./blocks/fragment": "./blocks/fragment.jsx",
61
- "./blocks/image": "./blocks/image.jsx",
62
- "./blocks/img": "./blocks/img.jsx",
63
- "./blocks/input": "./blocks/input.jsx",
64
- "./blocks/raw-text": "./blocks/raw-text.jsx",
65
- "./blocks/section": "./blocks/section.jsx",
66
- "./blocks/select": "./blocks/select.jsx",
67
- "./blocks/submit-button": "./blocks/submit-button.jsx",
68
- "./blocks/symbol": "./blocks/symbol.jsx",
69
- "./blocks/text": "./blocks/text.jsx",
70
- "./blocks/textarea": "./blocks/textarea.jsx",
71
- "./blocks/video": "./blocks/video.jsx"
72
15
  }
73
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 {
@@ -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({
@@ -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 {
@@ -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,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,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,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,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,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 });
@@ -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
 
@@ -0,0 +1,5 @@
1
+ // HACK: this file isn't being generated, it may be an error being eated.
2
+ // This is just a short term workaround
3
+ export default function RenderInlinedStyles() {
4
+ return null;
5
+ }
@@ -0,0 +1,5 @@
1
+ // HACK: this file isn't being generated, it may be an error being eated.
2
+ // This is just a short term workaround
3
+ export default function RenderInlinedStyles() {
4
+ return null;
5
+ }
@@ -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,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",