@plitzi/sdk-shared 0.38.2 → 0.38.4
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/CHANGELOG.md +317 -0
- package/dist/authoring/declare.d.ts +6 -0
- package/dist/dataSource/getBindingsDetails.mjs +1 -1
- package/dist/devTools/chrome.d.ts +8 -0
- package/dist/devTools/chrome.mjs +4 -0
- package/dist/devTools/index.d.ts +1 -0
- package/dist/devTools/index.mjs +5 -4
- package/dist/helpers/images.d.ts +5 -0
- package/dist/helpers/images.mjs +2 -2
- package/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs +11 -1
- package/dist/index.mjs +55 -54
- package/dist/network/graphql/builder/Queries/InitQuery.d.ts +1 -1
- package/dist/network/graphql/builder/Queries/InitQuery.mjs +1 -1
- package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +1 -1
- package/dist/network/graphql/sdk/Queries/InitQuery.mjs +1 -1
- package/dist/schema/motion.d.ts +109 -0
- package/dist/schema/motion.mjs +271 -0
- package/dist/schema/motionReveal.d.ts +10 -0
- package/dist/schema/motionReveal.mjs +23 -0
- package/dist/schema/wire.mjs +25 -16
- package/dist/source/export.d.ts +5 -0
- package/dist/source/import.d.ts +55 -0
- package/dist/source/import.mjs +4 -0
- package/dist/source/index.d.ts +2 -0
- package/dist/source/index.mjs +3 -2
- package/dist/style/styleConstants.d.ts +18 -2
- package/dist/style/styleConstants.mjs +32 -0
- package/dist/types/SchemaTypes.d.ts +16 -2
- package/dist/types/ServerTypes.d.ts +15 -1
- package/package.json +17 -1
|
@@ -42,6 +42,11 @@ declare const styleConstants: {
|
|
|
42
42
|
readonly BACKGROUND_ATTACHMENT: "background-attachment";
|
|
43
43
|
readonly BACKGROUND_BLEND_MODE: "background-blend-mode";
|
|
44
44
|
readonly MASK_IMAGE: "mask-image";
|
|
45
|
+
readonly MASK_SIZE: "mask-size";
|
|
46
|
+
readonly MASK_POSITION: "mask-position";
|
|
47
|
+
readonly MASK_REPEAT: "mask-repeat";
|
|
48
|
+
readonly MASK_COMPOSITE: "mask-composite";
|
|
49
|
+
readonly WEBKIT_MASK_IMAGE: "-webkit-mask-image";
|
|
45
50
|
readonly BORDER_TOP_STYLE: "border-top-style";
|
|
46
51
|
readonly BORDER_TOP_WIDTH: "border-top-width";
|
|
47
52
|
readonly BORDER_TOP_COLOR: "border-top-color";
|
|
@@ -89,7 +94,13 @@ declare const styleConstants: {
|
|
|
89
94
|
readonly CLIP_PATH: "clip-path";
|
|
90
95
|
readonly TRANSFORM: "transform";
|
|
91
96
|
readonly TRANSFORM_ORIGIN: "transform-origin";
|
|
97
|
+
readonly TRANSLATE: "translate";
|
|
98
|
+
readonly ROTATE: "rotate";
|
|
99
|
+
readonly SCALE: "scale";
|
|
100
|
+
readonly TRANSFORM_STYLE: "transform-style";
|
|
92
101
|
readonly PERSPECTIVE: "perspective";
|
|
102
|
+
readonly PERSPECTIVE_ORIGIN: "perspective-origin";
|
|
103
|
+
readonly BACKFACE_VISIBILITY: "backface-visibility";
|
|
93
104
|
readonly WILL_CHANGE: "will-change";
|
|
94
105
|
readonly OUTLINE_WIDTH: "outline-width";
|
|
95
106
|
readonly OUTLINE_STYLE: "outline-style";
|
|
@@ -131,6 +142,8 @@ declare const styleConstants: {
|
|
|
131
142
|
readonly OVERFLOW_Y: "overflow-y";
|
|
132
143
|
readonly SCROLLBAR_WIDTH: "scrollbar-width";
|
|
133
144
|
readonly SCROLLBAR_COLOR: "scrollbar-color";
|
|
145
|
+
readonly CONTAINER_TYPE: "container-type";
|
|
146
|
+
readonly CONTAINER_NAME: "container-name";
|
|
134
147
|
readonly OBJECT_FIT: "object-fit";
|
|
135
148
|
readonly OBJECT_POSITION: "object-position";
|
|
136
149
|
readonly COLUMN_WIDTH: "column-width";
|
|
@@ -176,14 +189,17 @@ declare const styleConstants: {
|
|
|
176
189
|
readonly WEBKIT_LINE_CLAMP: "-webkit-line-clamp";
|
|
177
190
|
readonly WEBKIT_BOX_ORIENT: "-webkit-box-orient";
|
|
178
191
|
readonly WEBKIT_TEXT_FILL_COLOR: "-webkit-text-fill-color";
|
|
192
|
+
readonly WEBKIT_BACKGROUND_CLIP: "-webkit-background-clip";
|
|
193
|
+
readonly BOX_DECORATION_BREAK: "box-decoration-break";
|
|
194
|
+
readonly WEBKIT_BOX_DECORATION_BREAK: "-webkit-box-decoration-break";
|
|
179
195
|
readonly FILL: "fill";
|
|
180
196
|
readonly STROKE: "stroke";
|
|
181
197
|
readonly STROKE_WIDTH: "stroke-width";
|
|
182
198
|
};
|
|
183
199
|
export declare const inheritableAttributesBase: StyleCategory[];
|
|
184
200
|
export declare const StyleBindingsAllowed: {
|
|
185
|
-
path: "color" | "cursor" | "filter" | "fill" | "display" | "flex-wrap" | "flex-direction" | "align-items" | "justify-items" | "justify-content" | "align-content" | "row-gap" | "column-gap" | "grid-row-gap" | "grid-column-gap" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows" | "grid-auto-flow" | "grid-auto-rows" | "grid-auto-columns" | "grid-row-start" | "grid-column-start" | "grid-row-end" | "grid-column-end" | "align-self" | "justify-self" | "order" | "flex-grow" | "flex-shrink" | "flex-basis" | "list-style" | "list-style-type" | "list-style-position" | "list-style-image" | "background-color" | "background-image" | "background-position" | "background-size" | "background-repeat" | "background-origin" | "background-clip" | "background-attachment" | "background-blend-mode" | "mask-image" | "border-top-style" | "border-top-width" | "border-top-color" | "border-bottom-style" | "border-bottom-width" | "border-bottom-color" | "border-left-style" | "border-left-width" | "border-left-color" | "border-right-style" | "border-right-width" | "border-right-color" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "border-collapse" | "border-spacing" | "table-layout" | "opacity" | "visibility" | "transition" | "transition-property" | "transition-duration" | "transition-timing-function" | "transition-delay" | "transition-behavior" | "animation" | "animation-name" | "animation-duration" | "animation-timing-function" | "animation-delay" | "animation-iteration-count" | "animation-direction" | "animation-fill-mode" | "animation-play-state" | "animation-timeline" | "animation-range" | "box-shadow" | "backdrop-filter" | "mix-blend-mode" | "isolation" | "clip-path" | "transform" | "transform-origin" | "perspective" | "will-change" | "outline-width" | "outline-style" | "outline-color" | "outline-offset" | "pointer-events" | "user-select" | "touch-action" | "resize" | "appearance" | "scroll-behavior" | "overscroll-behavior" | "scroll-snap-type" | "scroll-snap-align" | "scroll-snap-stop" | "scroll-padding-top" | "scroll-margin-top" | "accent-color" | "caret-color" | "color-scheme" | "position" | "float" | "clear" | "z-index" | "top" | "bottom" | "left" | "right" | "box-sizing" | "aspect-ratio" | "width" | "height" | "min-width" | "min-height" | "max-width" | "max-height" | "overflow" | "overflow-x" | "overflow-y" | "scrollbar-width" | "scrollbar-color" | "object-fit" | "object-position" | "column-width" | "column-count" | "margin-top" | "margin-bottom" | "margin-left" | "margin-right" | "padding-top" | "padding-bottom" | "padding-left" | "padding-right" | "font-family" | "font-weight" | "font-size" | "line-height" | "text-align" | "font-style" | "font-variant" | "font-variant-numeric" | "font-feature-settings" | "text-decoration" | "text-decoration-line" | "text-decoration-color" | "text-decoration-style" | "text-decoration-thickness" | "text-underline-offset" | "letter-spacing" | "word-spacing" | "text-indent" | "text-transform" | "direction" | "white-space" | "text-wrap" | "word-break" | "overflow-wrap" | "hyphens" | "vertical-align" | "text-overflow" | "text-shadow" | "line-clamp" | "-webkit-line-clamp" | "-webkit-box-orient" | "-webkit-text-fill-color" | "stroke" | "stroke-width";
|
|
186
|
-
label: "color" | "cursor" | "filter" | "fill" | "display" | "flex-wrap" | "flex-direction" | "align-items" | "justify-items" | "justify-content" | "align-content" | "row-gap" | "column-gap" | "grid-row-gap" | "grid-column-gap" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows" | "grid-auto-flow" | "grid-auto-rows" | "grid-auto-columns" | "grid-row-start" | "grid-column-start" | "grid-row-end" | "grid-column-end" | "align-self" | "justify-self" | "order" | "flex-grow" | "flex-shrink" | "flex-basis" | "list-style" | "list-style-type" | "list-style-position" | "list-style-image" | "background-color" | "background-image" | "background-position" | "background-size" | "background-repeat" | "background-origin" | "background-clip" | "background-attachment" | "background-blend-mode" | "mask-image" | "border-top-style" | "border-top-width" | "border-top-color" | "border-bottom-style" | "border-bottom-width" | "border-bottom-color" | "border-left-style" | "border-left-width" | "border-left-color" | "border-right-style" | "border-right-width" | "border-right-color" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "border-collapse" | "border-spacing" | "table-layout" | "opacity" | "visibility" | "transition" | "transition-property" | "transition-duration" | "transition-timing-function" | "transition-delay" | "transition-behavior" | "animation" | "animation-name" | "animation-duration" | "animation-timing-function" | "animation-delay" | "animation-iteration-count" | "animation-direction" | "animation-fill-mode" | "animation-play-state" | "animation-timeline" | "animation-range" | "box-shadow" | "backdrop-filter" | "mix-blend-mode" | "isolation" | "clip-path" | "transform" | "transform-origin" | "perspective" | "will-change" | "outline-width" | "outline-style" | "outline-color" | "outline-offset" | "pointer-events" | "user-select" | "touch-action" | "resize" | "appearance" | "scroll-behavior" | "overscroll-behavior" | "scroll-snap-type" | "scroll-snap-align" | "scroll-snap-stop" | "scroll-padding-top" | "scroll-margin-top" | "accent-color" | "caret-color" | "color-scheme" | "position" | "float" | "clear" | "z-index" | "top" | "bottom" | "left" | "right" | "box-sizing" | "aspect-ratio" | "width" | "height" | "min-width" | "min-height" | "max-width" | "max-height" | "overflow" | "overflow-x" | "overflow-y" | "scrollbar-width" | "scrollbar-color" | "object-fit" | "object-position" | "column-width" | "column-count" | "margin-top" | "margin-bottom" | "margin-left" | "margin-right" | "padding-top" | "padding-bottom" | "padding-left" | "padding-right" | "font-family" | "font-weight" | "font-size" | "line-height" | "text-align" | "font-style" | "font-variant" | "font-variant-numeric" | "font-feature-settings" | "text-decoration" | "text-decoration-line" | "text-decoration-color" | "text-decoration-style" | "text-decoration-thickness" | "text-underline-offset" | "letter-spacing" | "word-spacing" | "text-indent" | "text-transform" | "direction" | "white-space" | "text-wrap" | "word-break" | "overflow-wrap" | "hyphens" | "vertical-align" | "text-overflow" | "text-shadow" | "line-clamp" | "-webkit-line-clamp" | "-webkit-box-orient" | "-webkit-text-fill-color" | "stroke" | "stroke-width";
|
|
201
|
+
path: "color" | "cursor" | "filter" | "fill" | "display" | "flex-wrap" | "flex-direction" | "align-items" | "justify-items" | "justify-content" | "align-content" | "row-gap" | "column-gap" | "grid-row-gap" | "grid-column-gap" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows" | "grid-auto-flow" | "grid-auto-rows" | "grid-auto-columns" | "grid-row-start" | "grid-column-start" | "grid-row-end" | "grid-column-end" | "align-self" | "justify-self" | "order" | "flex-grow" | "flex-shrink" | "flex-basis" | "list-style" | "list-style-type" | "list-style-position" | "list-style-image" | "background-color" | "background-image" | "background-position" | "background-size" | "background-repeat" | "background-origin" | "background-clip" | "background-attachment" | "background-blend-mode" | "mask-image" | "mask-size" | "mask-position" | "mask-repeat" | "mask-composite" | "-webkit-mask-image" | "border-top-style" | "border-top-width" | "border-top-color" | "border-bottom-style" | "border-bottom-width" | "border-bottom-color" | "border-left-style" | "border-left-width" | "border-left-color" | "border-right-style" | "border-right-width" | "border-right-color" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "border-collapse" | "border-spacing" | "table-layout" | "opacity" | "visibility" | "transition" | "transition-property" | "transition-duration" | "transition-timing-function" | "transition-delay" | "transition-behavior" | "animation" | "animation-name" | "animation-duration" | "animation-timing-function" | "animation-delay" | "animation-iteration-count" | "animation-direction" | "animation-fill-mode" | "animation-play-state" | "animation-timeline" | "animation-range" | "box-shadow" | "backdrop-filter" | "mix-blend-mode" | "isolation" | "clip-path" | "transform" | "transform-origin" | "translate" | "rotate" | "scale" | "transform-style" | "perspective" | "perspective-origin" | "backface-visibility" | "will-change" | "outline-width" | "outline-style" | "outline-color" | "outline-offset" | "pointer-events" | "user-select" | "touch-action" | "resize" | "appearance" | "scroll-behavior" | "overscroll-behavior" | "scroll-snap-type" | "scroll-snap-align" | "scroll-snap-stop" | "scroll-padding-top" | "scroll-margin-top" | "accent-color" | "caret-color" | "color-scheme" | "position" | "float" | "clear" | "z-index" | "top" | "bottom" | "left" | "right" | "box-sizing" | "aspect-ratio" | "width" | "height" | "min-width" | "min-height" | "max-width" | "max-height" | "overflow" | "overflow-x" | "overflow-y" | "scrollbar-width" | "scrollbar-color" | "container-type" | "container-name" | "object-fit" | "object-position" | "column-width" | "column-count" | "margin-top" | "margin-bottom" | "margin-left" | "margin-right" | "padding-top" | "padding-bottom" | "padding-left" | "padding-right" | "font-family" | "font-weight" | "font-size" | "line-height" | "text-align" | "font-style" | "font-variant" | "font-variant-numeric" | "font-feature-settings" | "text-decoration" | "text-decoration-line" | "text-decoration-color" | "text-decoration-style" | "text-decoration-thickness" | "text-underline-offset" | "letter-spacing" | "word-spacing" | "text-indent" | "text-transform" | "direction" | "white-space" | "text-wrap" | "word-break" | "overflow-wrap" | "hyphens" | "vertical-align" | "text-overflow" | "text-shadow" | "line-clamp" | "-webkit-line-clamp" | "-webkit-box-orient" | "-webkit-text-fill-color" | "-webkit-background-clip" | "box-decoration-break" | "-webkit-box-decoration-break" | "stroke" | "stroke-width";
|
|
202
|
+
label: "color" | "cursor" | "filter" | "fill" | "display" | "flex-wrap" | "flex-direction" | "align-items" | "justify-items" | "justify-content" | "align-content" | "row-gap" | "column-gap" | "grid-row-gap" | "grid-column-gap" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows" | "grid-auto-flow" | "grid-auto-rows" | "grid-auto-columns" | "grid-row-start" | "grid-column-start" | "grid-row-end" | "grid-column-end" | "align-self" | "justify-self" | "order" | "flex-grow" | "flex-shrink" | "flex-basis" | "list-style" | "list-style-type" | "list-style-position" | "list-style-image" | "background-color" | "background-image" | "background-position" | "background-size" | "background-repeat" | "background-origin" | "background-clip" | "background-attachment" | "background-blend-mode" | "mask-image" | "mask-size" | "mask-position" | "mask-repeat" | "mask-composite" | "-webkit-mask-image" | "border-top-style" | "border-top-width" | "border-top-color" | "border-bottom-style" | "border-bottom-width" | "border-bottom-color" | "border-left-style" | "border-left-width" | "border-left-color" | "border-right-style" | "border-right-width" | "border-right-color" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "border-collapse" | "border-spacing" | "table-layout" | "opacity" | "visibility" | "transition" | "transition-property" | "transition-duration" | "transition-timing-function" | "transition-delay" | "transition-behavior" | "animation" | "animation-name" | "animation-duration" | "animation-timing-function" | "animation-delay" | "animation-iteration-count" | "animation-direction" | "animation-fill-mode" | "animation-play-state" | "animation-timeline" | "animation-range" | "box-shadow" | "backdrop-filter" | "mix-blend-mode" | "isolation" | "clip-path" | "transform" | "transform-origin" | "translate" | "rotate" | "scale" | "transform-style" | "perspective" | "perspective-origin" | "backface-visibility" | "will-change" | "outline-width" | "outline-style" | "outline-color" | "outline-offset" | "pointer-events" | "user-select" | "touch-action" | "resize" | "appearance" | "scroll-behavior" | "overscroll-behavior" | "scroll-snap-type" | "scroll-snap-align" | "scroll-snap-stop" | "scroll-padding-top" | "scroll-margin-top" | "accent-color" | "caret-color" | "color-scheme" | "position" | "float" | "clear" | "z-index" | "top" | "bottom" | "left" | "right" | "box-sizing" | "aspect-ratio" | "width" | "height" | "min-width" | "min-height" | "max-width" | "max-height" | "overflow" | "overflow-x" | "overflow-y" | "scrollbar-width" | "scrollbar-color" | "container-type" | "container-name" | "object-fit" | "object-position" | "column-width" | "column-count" | "margin-top" | "margin-bottom" | "margin-left" | "margin-right" | "padding-top" | "padding-bottom" | "padding-left" | "padding-right" | "font-family" | "font-weight" | "font-size" | "line-height" | "text-align" | "font-style" | "font-variant" | "font-variant-numeric" | "font-feature-settings" | "text-decoration" | "text-decoration-line" | "text-decoration-color" | "text-decoration-style" | "text-decoration-thickness" | "text-underline-offset" | "letter-spacing" | "word-spacing" | "text-indent" | "text-transform" | "direction" | "white-space" | "text-wrap" | "word-break" | "overflow-wrap" | "hyphens" | "vertical-align" | "text-overflow" | "text-shadow" | "line-clamp" | "-webkit-line-clamp" | "-webkit-box-orient" | "-webkit-text-fill-color" | "-webkit-background-clip" | "box-decoration-break" | "-webkit-box-decoration-break" | "stroke" | "stroke-width";
|
|
187
203
|
}[];
|
|
188
204
|
export declare const baseDefaultValue: Record<StyleCategory, StyleValue>;
|
|
189
205
|
export default styleConstants;
|
|
@@ -55,6 +55,11 @@ var e = {
|
|
|
55
55
|
BACKGROUND_ATTACHMENT: "background-attachment",
|
|
56
56
|
BACKGROUND_BLEND_MODE: "background-blend-mode",
|
|
57
57
|
MASK_IMAGE: "mask-image",
|
|
58
|
+
MASK_SIZE: "mask-size",
|
|
59
|
+
MASK_POSITION: "mask-position",
|
|
60
|
+
MASK_REPEAT: "mask-repeat",
|
|
61
|
+
MASK_COMPOSITE: "mask-composite",
|
|
62
|
+
WEBKIT_MASK_IMAGE: "-webkit-mask-image",
|
|
58
63
|
BORDER_TOP_STYLE: "border-top-style",
|
|
59
64
|
BORDER_TOP_WIDTH: "border-top-width",
|
|
60
65
|
BORDER_TOP_COLOR: "border-top-color",
|
|
@@ -102,7 +107,13 @@ var e = {
|
|
|
102
107
|
CLIP_PATH: "clip-path",
|
|
103
108
|
TRANSFORM: "transform",
|
|
104
109
|
TRANSFORM_ORIGIN: "transform-origin",
|
|
110
|
+
TRANSLATE: "translate",
|
|
111
|
+
ROTATE: "rotate",
|
|
112
|
+
SCALE: "scale",
|
|
113
|
+
TRANSFORM_STYLE: "transform-style",
|
|
105
114
|
PERSPECTIVE: "perspective",
|
|
115
|
+
PERSPECTIVE_ORIGIN: "perspective-origin",
|
|
116
|
+
BACKFACE_VISIBILITY: "backface-visibility",
|
|
106
117
|
WILL_CHANGE: "will-change",
|
|
107
118
|
OUTLINE_WIDTH: "outline-width",
|
|
108
119
|
OUTLINE_STYLE: "outline-style",
|
|
@@ -144,6 +155,8 @@ var e = {
|
|
|
144
155
|
OVERFLOW_Y: "overflow-y",
|
|
145
156
|
SCROLLBAR_WIDTH: "scrollbar-width",
|
|
146
157
|
SCROLLBAR_COLOR: "scrollbar-color",
|
|
158
|
+
CONTAINER_TYPE: "container-type",
|
|
159
|
+
CONTAINER_NAME: "container-name",
|
|
147
160
|
OBJECT_FIT: "object-fit",
|
|
148
161
|
OBJECT_POSITION: "object-position",
|
|
149
162
|
COLUMN_WIDTH: "column-width",
|
|
@@ -189,6 +202,9 @@ var e = {
|
|
|
189
202
|
WEBKIT_LINE_CLAMP: "-webkit-line-clamp",
|
|
190
203
|
WEBKIT_BOX_ORIENT: "-webkit-box-orient",
|
|
191
204
|
WEBKIT_TEXT_FILL_COLOR: "-webkit-text-fill-color",
|
|
205
|
+
WEBKIT_BACKGROUND_CLIP: "-webkit-background-clip",
|
|
206
|
+
BOX_DECORATION_BREAK: "box-decoration-break",
|
|
207
|
+
WEBKIT_BOX_DECORATION_BREAK: "-webkit-box-decoration-break",
|
|
192
208
|
FILL: "fill",
|
|
193
209
|
STROKE: "stroke",
|
|
194
210
|
STROKE_WIDTH: "stroke-width"
|
|
@@ -260,6 +276,11 @@ var e = {
|
|
|
260
276
|
[t.BACKGROUND_ATTACHMENT]: "scroll",
|
|
261
277
|
[t.BACKGROUND_BLEND_MODE]: "normal",
|
|
262
278
|
[t.MASK_IMAGE]: "none",
|
|
279
|
+
[t.MASK_SIZE]: "auto",
|
|
280
|
+
[t.MASK_POSITION]: "0% 0%",
|
|
281
|
+
[t.MASK_REPEAT]: "repeat",
|
|
282
|
+
[t.MASK_COMPOSITE]: "add",
|
|
283
|
+
[t.WEBKIT_MASK_IMAGE]: "none",
|
|
263
284
|
[t.BORDER_TOP_STYLE]: "solid",
|
|
264
285
|
[t.BORDER_TOP_WIDTH]: "0px",
|
|
265
286
|
[t.BORDER_TOP_COLOR]: "#000000",
|
|
@@ -307,7 +328,13 @@ var e = {
|
|
|
307
328
|
[t.CLIP_PATH]: "none",
|
|
308
329
|
[t.TRANSFORM]: "translate3d(0px, 0px, 0px)",
|
|
309
330
|
[t.TRANSFORM_ORIGIN]: "50% 50%",
|
|
331
|
+
[t.TRANSLATE]: "none",
|
|
332
|
+
[t.ROTATE]: "none",
|
|
333
|
+
[t.SCALE]: "none",
|
|
334
|
+
[t.TRANSFORM_STYLE]: "flat",
|
|
310
335
|
[t.PERSPECTIVE]: "none",
|
|
336
|
+
[t.PERSPECTIVE_ORIGIN]: "50% 50%",
|
|
337
|
+
[t.BACKFACE_VISIBILITY]: "visible",
|
|
311
338
|
[t.WILL_CHANGE]: "auto",
|
|
312
339
|
[t.OUTLINE_WIDTH]: "medium",
|
|
313
340
|
[t.OUTLINE_STYLE]: "none",
|
|
@@ -349,6 +376,8 @@ var e = {
|
|
|
349
376
|
[t.OVERFLOW_Y]: "visible",
|
|
350
377
|
[t.SCROLLBAR_WIDTH]: "auto",
|
|
351
378
|
[t.SCROLLBAR_COLOR]: "auto",
|
|
379
|
+
[t.CONTAINER_TYPE]: "normal",
|
|
380
|
+
[t.CONTAINER_NAME]: "none",
|
|
352
381
|
[t.OBJECT_FIT]: "fill",
|
|
353
382
|
[t.OBJECT_POSITION]: "50% 50%",
|
|
354
383
|
[t.COLUMN_WIDTH]: "auto",
|
|
@@ -394,6 +423,9 @@ var e = {
|
|
|
394
423
|
[t.WEBKIT_LINE_CLAMP]: "none",
|
|
395
424
|
[t.WEBKIT_BOX_ORIENT]: "horizontal",
|
|
396
425
|
[t.WEBKIT_TEXT_FILL_COLOR]: "currentcolor",
|
|
426
|
+
[t.WEBKIT_BACKGROUND_CLIP]: "border-box",
|
|
427
|
+
[t.BOX_DECORATION_BREAK]: "slice",
|
|
428
|
+
[t.WEBKIT_BOX_DECORATION_BREAK]: "slice",
|
|
397
429
|
[t.FILL]: "currentColor",
|
|
398
430
|
[t.STROKE]: "none",
|
|
399
431
|
[t.STROKE_WIDTH]: "1"
|
|
@@ -2,6 +2,7 @@ import { InteractionCallbackParamValues, InteractionCallbackType } from './Inter
|
|
|
2
2
|
import { ChannelDeclarations } from './RealtimeTypes';
|
|
3
3
|
import { SnippetStyle } from './SnippetTypes';
|
|
4
4
|
import { BuiltinParam } from '../authoring/paramSpec';
|
|
5
|
+
import { ElementMotion } from '../schema/motion';
|
|
5
6
|
import { RuleGroup } from '@plitzi/plitzi-ui/QueryBuilder';
|
|
6
7
|
export type ElementRuntime = 'server' | 'client' | 'shared';
|
|
7
8
|
/**
|
|
@@ -114,6 +115,14 @@ export type ElementDefinition = {
|
|
|
114
115
|
* for the platform, this names it for the URL. One per rendered page, layouts included (`isAnchor`).
|
|
115
116
|
*/
|
|
116
117
|
anchor?: string;
|
|
118
|
+
/** How it arrives and whether it keeps moving, played by the SDK's stylesheet. See {@link ElementMotion}. */
|
|
119
|
+
motion?: ElementMotion;
|
|
120
|
+
/**
|
|
121
|
+
* The codes of the suggestions this element is not offered, because it is written this way on purpose —
|
|
122
|
+
* `['repeated-shape']`. Read by the one place suggestions are made (`suggestSpace`), so authoring, the builder and
|
|
123
|
+
* the MCP leave out the same ones. Never a problem's code.
|
|
124
|
+
*/
|
|
125
|
+
quiet?: string[];
|
|
117
126
|
};
|
|
118
127
|
/**
|
|
119
128
|
* An element, keyed by the one name it answers to.
|
|
@@ -337,14 +346,19 @@ export type SchemaContextValue = {
|
|
|
337
346
|
schemaUpdateSettings?: (value: string | number | boolean, path?: string, fromSubscriptions?: boolean) => void;
|
|
338
347
|
};
|
|
339
348
|
/** The fields of a definition an element may go without — absent in a document, `null` from GraphQL. */
|
|
340
|
-
type OptionalDefinitionKey = 'parentId' | 'items' | 'bindings' | 'interactions' | 'initialState' | 'runtime' | 'loadStrategy' | 'flag' | 'anchor';
|
|
349
|
+
type OptionalDefinitionKey = 'parentId' | 'items' | 'bindings' | 'interactions' | 'initialState' | 'runtime' | 'loadStrategy' | 'flag' | 'anchor' | 'motion' | 'quiet';
|
|
341
350
|
/**
|
|
342
351
|
* An element as it arrives on the wire. GraphQL answers every field a query names, so one the element does not have
|
|
343
352
|
* comes back `null` — where the element itself has nothing. `schemaFromWire` drops them on arrival.
|
|
344
353
|
*/
|
|
345
354
|
export type WireElement = Omit<Element, 'definition'> & {
|
|
346
355
|
definition: Omit<ElementDefinition, OptionalDefinitionKey> & {
|
|
347
|
-
[K in OptionalDefinitionKey]?: ElementDefinition[K] | null;
|
|
356
|
+
[K in Exclude<OptionalDefinitionKey, 'motion'>]?: ElementDefinition[K] | null;
|
|
357
|
+
} & {
|
|
358
|
+
/** Every field the query names, `null` where the motion has none. */
|
|
359
|
+
motion?: {
|
|
360
|
+
[K in keyof ElementMotion]?: ElementMotion[K] | null;
|
|
361
|
+
} | null;
|
|
348
362
|
};
|
|
349
363
|
};
|
|
350
364
|
export type SchemaRaw = {
|
|
@@ -136,6 +136,8 @@ export type SSRTemplateProps = {
|
|
|
136
136
|
reactCompilerRuntime?: string;
|
|
137
137
|
/** When true the client-side <script> block is omitted — useful for inspecting raw SSR HTML. */
|
|
138
138
|
ssrOnly?: boolean;
|
|
139
|
+
/** The page listens for the server saying the space changed, and loads again — with `devReload` on (`reloadPages`). */
|
|
140
|
+
devReload?: boolean;
|
|
139
141
|
debugMode?: boolean;
|
|
140
142
|
/**
|
|
141
143
|
* The theme class this document wears on `<html>` — `dark`, `light`, or nothing at all.
|
|
@@ -169,7 +171,7 @@ export type SSRImagesConfig = {
|
|
|
169
171
|
* to the rule every outbound request is (no private network, every redirect judged).
|
|
170
172
|
*/
|
|
171
173
|
domains: readonly string[];
|
|
172
|
-
/** Where the resized files are kept. Default:
|
|
174
|
+
/** Where the resized files are kept. Default: `tmp/images` under the working directory. */
|
|
173
175
|
cacheDir?: string;
|
|
174
176
|
};
|
|
175
177
|
/**
|
|
@@ -904,6 +906,12 @@ export type SSRServerConfig = {
|
|
|
904
906
|
publicDir?: string;
|
|
905
907
|
static?: Record<string, string>;
|
|
906
908
|
devMode?: boolean;
|
|
909
|
+
/**
|
|
910
|
+
* Every page this server renders listens for `reloadPages` and loads again — the edit loop of a project that authors
|
|
911
|
+
* its space in code and re-authors it on save. Off unless asked for, `devMode` included: each open page holds a
|
|
912
|
+
* connection to the server for it, which a server that never calls `reloadPages` would only pay for.
|
|
913
|
+
*/
|
|
914
|
+
devReload?: boolean;
|
|
907
915
|
/** Authorizes debugging on the pages this server renders. An SSR page loads the very same SDK, so this is the
|
|
908
916
|
* server-side face of the SDK's `debugMode` prop: the page decides, and the visitor's 'plitzi_debug' cookie can
|
|
909
917
|
* only narrow it. Left unset, `devMode` authorizes it — a development server debugs without being told to — and
|
|
@@ -937,6 +945,7 @@ export type SSRServerConfig = {
|
|
|
937
945
|
authCookie?: SSRAuthCookie;
|
|
938
946
|
templateFn?: SSRTemplateFn;
|
|
939
947
|
plugins?: Record<string, PluginSource>;
|
|
948
|
+
/** Where the plugins it builds are kept. Default: `tmp/.sdk-plugins` under the working directory. */
|
|
940
949
|
pluginsCacheDir?: string;
|
|
941
950
|
pluginsTtlMs?: number;
|
|
942
951
|
/** Auto-download and cache plugins declared in the schema's offlineData.plugins list. Default: true. */
|
|
@@ -1128,6 +1137,11 @@ export type SSRServer = {
|
|
|
1128
1137
|
close: () => Promise<void>;
|
|
1129
1138
|
readonly cache: CacheManager | null;
|
|
1130
1139
|
readonly plugins: PluginRegistry;
|
|
1140
|
+
/**
|
|
1141
|
+
* With `devReload` on, every page open on this server loads again — what a project that authors its space in code
|
|
1142
|
+
* calls once it wrote the new documents, instead of restarting the server. Nothing otherwise.
|
|
1143
|
+
*/
|
|
1144
|
+
reloadPages: () => void;
|
|
1131
1145
|
};
|
|
1132
1146
|
/** A key/value store with per-entry expiry, backing the OAuth layer's short-lived protocol state (registered
|
|
1133
1147
|
* clients, authorization codes, refresh grants). Values are opaque strings the SDK serialises itself. A
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-shared",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.4",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -254,6 +254,10 @@
|
|
|
254
254
|
"types": "./dist/devTools/DevToolsContext.d.ts",
|
|
255
255
|
"import": "./dist/devTools/DevToolsContext.mjs"
|
|
256
256
|
},
|
|
257
|
+
"./devTools/chrome": {
|
|
258
|
+
"types": "./dist/devTools/chrome.d.ts",
|
|
259
|
+
"import": "./dist/devTools/chrome.mjs"
|
|
260
|
+
},
|
|
257
261
|
"./devTools/debugCookie": {
|
|
258
262
|
"types": "./dist/devTools/debugCookie.d.ts",
|
|
259
263
|
"import": "./dist/devTools/debugCookie.mjs"
|
|
@@ -1135,6 +1139,14 @@
|
|
|
1135
1139
|
"types": "./dist/schema/layoutChain.d.ts",
|
|
1136
1140
|
"import": "./dist/schema/layoutChain.mjs"
|
|
1137
1141
|
},
|
|
1142
|
+
"./schema/motion": {
|
|
1143
|
+
"types": "./dist/schema/motion.d.ts",
|
|
1144
|
+
"import": "./dist/schema/motion.mjs"
|
|
1145
|
+
},
|
|
1146
|
+
"./schema/motionReveal": {
|
|
1147
|
+
"types": "./dist/schema/motionReveal.d.ts",
|
|
1148
|
+
"import": "./dist/schema/motionReveal.mjs"
|
|
1149
|
+
},
|
|
1138
1150
|
"./schema/schemaConstants": {
|
|
1139
1151
|
"types": "./dist/schema/schemaConstants.d.ts",
|
|
1140
1152
|
"import": "./dist/schema/schemaConstants.mjs"
|
|
@@ -1191,6 +1203,10 @@
|
|
|
1191
1203
|
"types": "./dist/source/export.d.ts",
|
|
1192
1204
|
"import": "./dist/source/export.mjs"
|
|
1193
1205
|
},
|
|
1206
|
+
"./source/import": {
|
|
1207
|
+
"types": "./dist/source/import.d.ts",
|
|
1208
|
+
"import": "./dist/source/import.mjs"
|
|
1209
|
+
},
|
|
1194
1210
|
"./source/index": {
|
|
1195
1211
|
"types": "./dist/source/index.d.ts",
|
|
1196
1212
|
"import": "./dist/source/index.mjs"
|