@mission-studio/puck 1.0.21 → 1.0.24
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/dist/Popup-Dg78fu78.d.mts +260 -0
- package/dist/Popup-L7kcJo05.d.ts +260 -0
- package/dist/ResponsiveToggleField-65CqZEK-.d.mts +10 -0
- package/dist/ResponsiveToggleField-QCve94L_.d.ts +10 -0
- package/dist/chunk-MYS3PLMF.mjs +463 -0
- package/dist/chunk-TRPKXVMO.mjs +695 -0
- package/dist/{chunk-MWW5LYLN.mjs → chunk-YIPEC4L4.mjs} +709 -1075
- package/dist/components/page/astro/index.d.mts +54 -0
- package/dist/components/page/astro/index.d.ts +54 -0
- package/dist/components/page/astro/index.js +2056 -0
- package/dist/components/page/astro/index.mjs +51 -0
- package/dist/config/server.js +630 -700
- package/dist/config/server.mjs +33 -83
- package/dist/config-entry.js +592 -478
- package/dist/config-entry.mjs +11 -11
- package/dist/{ResponsiveToggleField-CfBKL5oY.d.ts → defaults-j55hBQHu.d.mts} +2 -8
- package/dist/{ResponsiveToggleField-BihXsGIJ.d.mts → defaults-z8Ft2j5r.d.ts} +2 -8
- package/dist/editor.d.mts +5 -4
- package/dist/editor.d.ts +5 -4
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +388 -274
- package/dist/index.mjs +11 -11
- package/dist/renderer.d.mts +9 -250
- package/dist/renderer.d.ts +9 -250
- package/dist/renderer.js +388 -274
- package/dist/renderer.mjs +11 -11
- package/dist/resolve/index.d.mts +1 -1
- package/dist/resolve/index.d.ts +1 -1
- package/dist/{types-D-CIduaE.d.mts → types-HQ6hIbYr.d.mts} +1 -1
- package/dist/{types-D-CIduaE.d.ts → types-HQ6hIbYr.d.ts} +1 -1
- package/package.json +6 -1
- package/dist/chunk-WFLVAZV2.mjs +0 -142
package/dist/config/server.mjs
CHANGED
|
@@ -3,81 +3,31 @@ import {
|
|
|
3
3
|
Card,
|
|
4
4
|
Columns,
|
|
5
5
|
Container,
|
|
6
|
-
CustomImage,
|
|
7
6
|
Divider,
|
|
8
|
-
|
|
9
|
-
FeaturesList,
|
|
10
|
-
Footer,
|
|
7
|
+
Heading,
|
|
11
8
|
Icon,
|
|
12
9
|
Image,
|
|
13
10
|
ImageCarousel,
|
|
14
|
-
|
|
11
|
+
Paragraph,
|
|
15
12
|
Section,
|
|
16
|
-
Spacer
|
|
13
|
+
Spacer
|
|
14
|
+
} from "../chunk-MYS3PLMF.mjs";
|
|
15
|
+
import {
|
|
16
|
+
CustomImage,
|
|
17
|
+
FeatureGrid,
|
|
18
|
+
FeaturesList,
|
|
19
|
+
Footer,
|
|
20
|
+
Popup,
|
|
17
21
|
TextBlock,
|
|
18
22
|
Topbar,
|
|
19
|
-
VideoEmbed
|
|
20
|
-
|
|
21
|
-
getParagraphStyle
|
|
22
|
-
} from "../chunk-MWW5LYLN.mjs";
|
|
23
|
+
VideoEmbed
|
|
24
|
+
} from "../chunk-YIPEC4L4.mjs";
|
|
23
25
|
import "../chunk-PJXZC564.mjs";
|
|
24
26
|
import "../chunk-QSWQDR6M.mjs";
|
|
25
27
|
import "../chunk-C6V3YUPF.mjs";
|
|
26
28
|
|
|
27
|
-
// components/page/astro/Heading.tsx
|
|
28
|
-
import { jsx } from "react/jsx-runtime";
|
|
29
|
-
function Heading({
|
|
30
|
-
text,
|
|
31
|
-
level = "h2",
|
|
32
|
-
size = "2xl",
|
|
33
|
-
weight = "bold",
|
|
34
|
-
color = "rgba(0, 0, 0, 1)",
|
|
35
|
-
align = "left",
|
|
36
|
-
letterSpacing = "normal",
|
|
37
|
-
lineHeight = "tight",
|
|
38
|
-
id
|
|
39
|
-
}) {
|
|
40
|
-
const resolvedText = text || "";
|
|
41
|
-
const Tag = level;
|
|
42
|
-
const style = getHeadingStyle({
|
|
43
|
-
size,
|
|
44
|
-
weight,
|
|
45
|
-
color,
|
|
46
|
-
align,
|
|
47
|
-
letterSpacing,
|
|
48
|
-
lineHeight
|
|
49
|
-
});
|
|
50
|
-
if (!resolvedText) return null;
|
|
51
|
-
return /* @__PURE__ */ jsx(Tag, { id, style, children: resolvedText });
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// components/page/astro/Paragraph.tsx
|
|
55
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
56
|
-
function Paragraph({
|
|
57
|
-
text,
|
|
58
|
-
size = "base",
|
|
59
|
-
weight = "normal",
|
|
60
|
-
color = "rgba(0, 0, 0, 1)",
|
|
61
|
-
align = "left",
|
|
62
|
-
lineHeight = "normal",
|
|
63
|
-
maxWidth,
|
|
64
|
-
id
|
|
65
|
-
}) {
|
|
66
|
-
const resolvedText = text || "";
|
|
67
|
-
const style = getParagraphStyle({
|
|
68
|
-
size,
|
|
69
|
-
weight,
|
|
70
|
-
color,
|
|
71
|
-
align,
|
|
72
|
-
lineHeight,
|
|
73
|
-
maxWidth
|
|
74
|
-
});
|
|
75
|
-
if (!resolvedText) return null;
|
|
76
|
-
return /* @__PURE__ */ jsx2("p", { id, style, children: resolvedText });
|
|
77
|
-
}
|
|
78
|
-
|
|
79
29
|
// config/server.tsx
|
|
80
|
-
import { jsx
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
81
31
|
var config = {
|
|
82
32
|
categories: {
|
|
83
33
|
typography: {
|
|
@@ -119,64 +69,64 @@ var config = {
|
|
|
119
69
|
},
|
|
120
70
|
components: {
|
|
121
71
|
Heading: {
|
|
122
|
-
render: (props) => /* @__PURE__ */
|
|
72
|
+
render: (props) => /* @__PURE__ */ jsx(Heading, { ...props })
|
|
123
73
|
},
|
|
124
74
|
Paragraph: {
|
|
125
|
-
render: (props) => /* @__PURE__ */
|
|
75
|
+
render: (props) => /* @__PURE__ */ jsx(Paragraph, { ...props })
|
|
126
76
|
},
|
|
127
77
|
Button: {
|
|
128
|
-
render: (props) => /* @__PURE__ */
|
|
78
|
+
render: (props) => /* @__PURE__ */ jsx(Button, { ...props })
|
|
129
79
|
},
|
|
130
80
|
Image: {
|
|
131
|
-
render: (props) => /* @__PURE__ */
|
|
81
|
+
render: (props) => /* @__PURE__ */ jsx(Image, { ...props })
|
|
132
82
|
},
|
|
133
83
|
ImageCarousel: {
|
|
134
|
-
render: (props) => /* @__PURE__ */
|
|
84
|
+
render: (props) => /* @__PURE__ */ jsx(ImageCarousel, { ...props })
|
|
135
85
|
},
|
|
136
86
|
VideoEmbed: {
|
|
137
|
-
render: (props) => /* @__PURE__ */
|
|
87
|
+
render: (props) => /* @__PURE__ */ jsx(VideoEmbed, { ...props })
|
|
138
88
|
},
|
|
139
89
|
Icon: {
|
|
140
|
-
render: (props) => /* @__PURE__ */
|
|
90
|
+
render: (props) => /* @__PURE__ */ jsx(Icon, { ...props })
|
|
141
91
|
},
|
|
142
92
|
Section: {
|
|
143
|
-
render: (props) => /* @__PURE__ */
|
|
93
|
+
render: (props) => /* @__PURE__ */ jsx(Section, { ...props })
|
|
144
94
|
},
|
|
145
95
|
Container: {
|
|
146
|
-
render: (props) => /* @__PURE__ */
|
|
96
|
+
render: (props) => /* @__PURE__ */ jsx(Container, { ...props })
|
|
147
97
|
},
|
|
148
98
|
Columns: {
|
|
149
|
-
render: (props) => /* @__PURE__ */
|
|
99
|
+
render: (props) => /* @__PURE__ */ jsx(Columns, { ...props })
|
|
150
100
|
},
|
|
151
101
|
Card: {
|
|
152
|
-
render: (props) => /* @__PURE__ */
|
|
102
|
+
render: (props) => /* @__PURE__ */ jsx(Card, { ...props })
|
|
153
103
|
},
|
|
154
104
|
Divider: {
|
|
155
|
-
render: (props) => /* @__PURE__ */
|
|
105
|
+
render: (props) => /* @__PURE__ */ jsx(Divider, { ...props })
|
|
156
106
|
},
|
|
157
107
|
Spacer: {
|
|
158
|
-
render: (props) => /* @__PURE__ */
|
|
108
|
+
render: (props) => /* @__PURE__ */ jsx(Spacer, { ...props })
|
|
159
109
|
},
|
|
160
110
|
TextBlock: {
|
|
161
|
-
render: (props) => /* @__PURE__ */
|
|
111
|
+
render: (props) => /* @__PURE__ */ jsx(TextBlock, { ...props })
|
|
162
112
|
},
|
|
163
113
|
CustomImage: {
|
|
164
|
-
render: (props) => /* @__PURE__ */
|
|
114
|
+
render: (props) => /* @__PURE__ */ jsx(CustomImage, { ...props })
|
|
165
115
|
},
|
|
166
116
|
FeaturesList: {
|
|
167
|
-
render: (props) => /* @__PURE__ */
|
|
117
|
+
render: (props) => /* @__PURE__ */ jsx(FeaturesList, { ...props })
|
|
168
118
|
},
|
|
169
119
|
FeatureGrid: {
|
|
170
|
-
render: (props) => /* @__PURE__ */
|
|
120
|
+
render: (props) => /* @__PURE__ */ jsx(FeatureGrid, { ...props })
|
|
171
121
|
},
|
|
172
122
|
Footer: {
|
|
173
|
-
render: (props) => /* @__PURE__ */
|
|
123
|
+
render: (props) => /* @__PURE__ */ jsx(Footer, { ...props })
|
|
174
124
|
},
|
|
175
125
|
Topbar: {
|
|
176
|
-
render: (props) => /* @__PURE__ */
|
|
126
|
+
render: (props) => /* @__PURE__ */ jsx(Topbar, { ...props })
|
|
177
127
|
},
|
|
178
128
|
Popup: {
|
|
179
|
-
render: (props) => /* @__PURE__ */
|
|
129
|
+
render: (props) => /* @__PURE__ */ jsx(Popup, { ...props })
|
|
180
130
|
}
|
|
181
131
|
}
|
|
182
132
|
};
|