@builder.io/sdk-qwik 0.0.9 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -14
- package/lib/index.qwik.cjs +212 -229
- package/lib/index.qwik.mjs +213 -230
- package/package.json +4 -4
- package/src/blocks/button/button.jsx +0 -175
- package/src/blocks/columns/columns.jsx +27 -197
- package/src/blocks/custom-code/custom-code.jsx +16 -75
- package/src/blocks/embed/embed.jsx +20 -87
- package/src/blocks/form/builder-blocks.jsx +0 -75
- package/src/blocks/form/form.jsx +57 -536
- package/src/blocks/fragment/fragment.jsx +8 -56
- package/src/blocks/image/image.jsx +49 -493
- package/src/blocks/img/img.jsx +15 -72
- package/src/blocks/input/input.jsx +17 -83
- package/src/blocks/raw-text/raw-text.jsx +9 -50
- package/src/blocks/section/section.jsx +17 -94
- package/src/blocks/select/select.jsx +20 -145
- package/src/blocks/submit-button/submit-button.jsx +8 -84
- package/src/blocks/symbol/symbol.jsx +60 -194
- package/src/blocks/text/text.jsx +4 -43
- package/src/blocks/textarea/textarea.jsx +12 -62
- package/src/blocks/video/video.jsx +21 -71
- package/src/components/render-block/block-styles.jsx +0 -114
- package/src/components/render-block/render-block.jsx +2 -514
- package/src/components/render-block/render-component.jsx +0 -211
- package/src/components/render-block/render-repeated-block.jsx +0 -67
- package/src/components/render-blocks.jsx +40 -334
- package/src/components/render-content/components/render-styles.jsx +0 -50
- package/src/components/render-content/render-content.jsx +86 -385
- package/src/components/render-inlined-styles.jsx +0 -116
- package/src/constants/builder-registered-components.js +3 -0
|
@@ -23,119 +23,3 @@ export const RenderInlinedStyles = component$((props) => {
|
|
|
23
23
|
);
|
|
24
24
|
});
|
|
25
25
|
export default RenderInlinedStyles;
|
|
26
|
-
export const COMPONENT = {
|
|
27
|
-
"@type": "@builder.io/mitosis/component",
|
|
28
|
-
imports: [
|
|
29
|
-
{
|
|
30
|
-
imports: {
|
|
31
|
-
TARGET: "TARGET",
|
|
32
|
-
},
|
|
33
|
-
path: "../constants/target.js",
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
exports: {},
|
|
37
|
-
inputs: [],
|
|
38
|
-
meta: {},
|
|
39
|
-
refs: {},
|
|
40
|
-
state: {
|
|
41
|
-
injectedStyleScript:
|
|
42
|
-
"@builder.io/mitosis/method:get injectedStyleScript() {\n return `<${tagName(props,state)}>${props.styles}</${tagName(props,state)}>`;\n}",
|
|
43
|
-
tagName:
|
|
44
|
-
"@builder.io/mitosis/method:get tagName() {\n // NOTE: we have to obfusctate the name of the tag due to a limitation in the svelte-preprocessor plugin.\n // https://github.com/sveltejs/vite-plugin-svelte/issues/315#issuecomment-1109000027\n return 'sty' + 'le';\n}",
|
|
45
|
-
},
|
|
46
|
-
children: [
|
|
47
|
-
{
|
|
48
|
-
"@type": "@builder.io/mitosis/node",
|
|
49
|
-
name: "Show",
|
|
50
|
-
meta: {
|
|
51
|
-
else: {
|
|
52
|
-
"@type": "@builder.io/mitosis/node",
|
|
53
|
-
name: "state.tagName",
|
|
54
|
-
meta: {},
|
|
55
|
-
scope: {},
|
|
56
|
-
properties: {},
|
|
57
|
-
bindings: {},
|
|
58
|
-
children: [
|
|
59
|
-
{
|
|
60
|
-
"@type": "@builder.io/mitosis/node",
|
|
61
|
-
name: "div",
|
|
62
|
-
meta: {},
|
|
63
|
-
scope: {},
|
|
64
|
-
properties: {},
|
|
65
|
-
bindings: {
|
|
66
|
-
_text: {
|
|
67
|
-
code: "props.styles",
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
children: [],
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
scope: {},
|
|
76
|
-
properties: {},
|
|
77
|
-
bindings: {
|
|
78
|
-
when: {
|
|
79
|
-
code: "TARGET === 'svelte'",
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
children: [
|
|
83
|
-
{
|
|
84
|
-
"@type": "@builder.io/mitosis/node",
|
|
85
|
-
name: "div",
|
|
86
|
-
meta: {},
|
|
87
|
-
scope: {},
|
|
88
|
-
properties: {
|
|
89
|
-
_text: "\n ",
|
|
90
|
-
},
|
|
91
|
-
bindings: {},
|
|
92
|
-
children: [],
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"@type": "@builder.io/mitosis/node",
|
|
96
|
-
name: "div",
|
|
97
|
-
meta: {},
|
|
98
|
-
scope: {},
|
|
99
|
-
properties: {
|
|
100
|
-
_text: "\n ",
|
|
101
|
-
},
|
|
102
|
-
bindings: {},
|
|
103
|
-
children: [],
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"@type": "@builder.io/mitosis/node",
|
|
107
|
-
name: "div",
|
|
108
|
-
meta: {},
|
|
109
|
-
scope: {},
|
|
110
|
-
properties: {},
|
|
111
|
-
bindings: {
|
|
112
|
-
innerHTML: {
|
|
113
|
-
code: "injectedStyleScript(props,state)",
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
children: [],
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"@type": "@builder.io/mitosis/node",
|
|
120
|
-
name: "div",
|
|
121
|
-
meta: {},
|
|
122
|
-
scope: {},
|
|
123
|
-
properties: {
|
|
124
|
-
_text: "\n ",
|
|
125
|
-
},
|
|
126
|
-
bindings: {},
|
|
127
|
-
children: [],
|
|
128
|
-
},
|
|
129
|
-
],
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
hooks: {},
|
|
133
|
-
context: {
|
|
134
|
-
get: {},
|
|
135
|
-
set: {},
|
|
136
|
-
},
|
|
137
|
-
name: "RenderInlinedStyles",
|
|
138
|
-
subComponents: [],
|
|
139
|
-
interfaces: ["interface Props {\n styles: string;\n}"],
|
|
140
|
-
propsTypeRef: "Props",
|
|
141
|
-
};
|
|
@@ -32,9 +32,12 @@ import { componentInfo as videoComponentInfo } from "../blocks/video/component-i
|
|
|
32
32
|
import { default as Video } from "../blocks/video/video.jsx";
|
|
33
33
|
import { componentInfo as embedComponentInfo } from "../blocks/embed/component-info";
|
|
34
34
|
import { default as embed } from "../blocks/embed/embed.jsx";
|
|
35
|
+
import { default as Img } from "../blocks/img/img.jsx";
|
|
36
|
+
import { componentInfo as imgComponentInfo } from "../blocks/img/component-info";
|
|
35
37
|
const getDefaultRegisteredComponents = () => [
|
|
36
38
|
__spreadValues({ component: Columns }, columnsComponentInfo),
|
|
37
39
|
__spreadValues({ component: Image }, imageComponentInfo),
|
|
40
|
+
__spreadValues({ component: Img }, imgComponentInfo),
|
|
38
41
|
__spreadValues({ component: Text }, textComponentInfo),
|
|
39
42
|
__spreadValues({ component: Video }, videoComponentInfo),
|
|
40
43
|
__spreadValues({ component: Symbol }, symbolComponentInfo),
|