@webstudio-is/sdk 0.0.0-c1d6247 → 0.0.0-ca00e2a
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/lib/__generated__/normalize.css.js +247 -151
- package/lib/core-templates.js +40 -36
- package/lib/index.js +788 -378
- package/lib/runtime.js +17 -1
- package/lib/types/__generated__/normalize.css.d.ts +2 -2
- package/lib/types/core-metas.d.ts +371 -89
- package/lib/types/css.d.ts +31 -0
- package/lib/types/css.test.d.ts +1 -0
- package/lib/types/expression.d.ts +7 -5
- package/lib/types/index.d.ts +3 -1
- package/lib/types/instances-utils.d.ts +3 -0
- package/lib/types/runtime.d.ts +5 -0
- package/lib/types/schema/animation-schema.d.ts +53844 -0
- package/lib/types/schema/assets.d.ts +12 -84
- package/lib/types/schema/breakpoints.d.ts +8 -8
- package/lib/types/schema/component-meta.d.ts +11162 -995
- package/lib/types/schema/data-sources.d.ts +18 -18
- package/lib/types/schema/deployment.d.ts +4 -4
- package/lib/types/schema/instances.d.ts +14 -217
- package/lib/types/schema/pages.d.ts +147 -146
- package/lib/types/schema/prop-meta.d.ts +105 -39
- package/lib/types/schema/props.d.ts +36858 -20
- package/lib/types/schema/resources.d.ts +4 -4
- package/lib/types/schema/styles.d.ts +4903 -1239
- package/lib/types/schema/webstudio.d.ts +23143 -783
- package/package.json +10 -9
- package/lib/types/schema/embed-template.d.ts +0 -2250
package/lib/runtime.js
CHANGED
|
@@ -89,13 +89,29 @@ var isPlainObject = (value) => {
|
|
|
89
89
|
// src/form-fields.ts
|
|
90
90
|
var formIdFieldName = `ws--form-id`;
|
|
91
91
|
var formBotFieldName = `ws--form-bot`;
|
|
92
|
+
|
|
93
|
+
// src/runtime.ts
|
|
94
|
+
var tagProperty = "data-ws-tag";
|
|
95
|
+
var getTagFromProps = (props) => {
|
|
96
|
+
return props[tagProperty];
|
|
97
|
+
};
|
|
98
|
+
var indexProperty = "data-ws-index";
|
|
99
|
+
var getIndexWithinAncestorFromProps = (props) => {
|
|
100
|
+
return props[indexProperty];
|
|
101
|
+
};
|
|
102
|
+
var animationCanPlayOnCanvasProperty = "data-ws-animation-can-play-on-canvas";
|
|
92
103
|
export {
|
|
104
|
+
animationCanPlayOnCanvasProperty,
|
|
93
105
|
createJsonStringifyProxy,
|
|
94
106
|
formBotFieldName,
|
|
95
107
|
formIdFieldName,
|
|
108
|
+
getIndexWithinAncestorFromProps,
|
|
109
|
+
getTagFromProps,
|
|
110
|
+
indexProperty,
|
|
96
111
|
isLocalResource,
|
|
97
112
|
isPlainObject,
|
|
98
113
|
loadResource,
|
|
99
114
|
loadResources,
|
|
100
|
-
sitemapResourceUrl
|
|
115
|
+
sitemapResourceUrl,
|
|
116
|
+
tagProperty
|
|
101
117
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CssProperty, StyleValue } from "@webstudio-is/css-engine";
|
|
2
2
|
type StyleDecl = {
|
|
3
3
|
state?: string;
|
|
4
|
-
property:
|
|
4
|
+
property: CssProperty;
|
|
5
5
|
value: StyleValue;
|
|
6
6
|
};
|
|
7
7
|
export declare const div: StyleDecl[];
|