@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/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 { StyleProperty, StyleValue } from "@webstudio-is/css-engine";
1
+ import type { CssProperty, StyleValue } from "@webstudio-is/css-engine";
2
2
  type StyleDecl = {
3
3
  state?: string;
4
- property: StyleProperty;
4
+ property: CssProperty;
5
5
  value: StyleValue;
6
6
  };
7
7
  export declare const div: StyleDecl[];