@webstudio-is/react-sdk 0.128.0 → 0.130.0

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.
@@ -1,5 +1,5 @@
1
1
  // src/css/presets.ts
2
- var borders = [
2
+ var borderWidth = [
3
3
  {
4
4
  property: "borderTopWidth",
5
5
  value: { type: "unit", value: 1, unit: "px" }
@@ -23,13 +23,31 @@ var outline = [
23
23
  value: { type: "unit", value: 1, unit: "px" }
24
24
  }
25
25
  ];
26
+ var borderStyle = (value) => [
27
+ {
28
+ property: "borderTopStyle",
29
+ value: { type: "keyword", value }
30
+ },
31
+ {
32
+ property: "borderRightStyle",
33
+ value: { type: "keyword", value }
34
+ },
35
+ {
36
+ property: "borderBottomStyle",
37
+ value: { type: "keyword", value }
38
+ },
39
+ {
40
+ property: "borderLeftStyle",
41
+ value: { type: "keyword", value }
42
+ }
43
+ ];
26
44
 
27
45
  // src/css/normalize.ts
28
46
  var boxSizing = {
29
47
  property: "boxSizing",
30
48
  value: { type: "keyword", value: "border-box" }
31
49
  };
32
- var baseStyle = [boxSizing, ...borders, ...outline];
50
+ var baseStyle = [boxSizing, ...borderWidth, ...outline];
33
51
  var div = baseStyle;
34
52
  var address = baseStyle;
35
53
  var article = baseStyle;
@@ -73,7 +91,7 @@ var html = [
73
91
  value: { type: "unit", value: 4, unit: "number" }
74
92
  },
75
93
  boxSizing,
76
- ...borders
94
+ ...borderWidth
77
95
  ];
78
96
  var body = [
79
97
  /* 1 */
@@ -110,7 +128,7 @@ var body = [
110
128
  value: { type: "unit", unit: "number", value: 1.2 }
111
129
  },
112
130
  boxSizing,
113
- ...borders
131
+ ...borderWidth
114
132
  ];
115
133
  var hr = [
116
134
  /* 1 */
@@ -124,7 +142,7 @@ var hr = [
124
142
  value: { type: "keyword", value: "inherit" }
125
143
  },
126
144
  boxSizing,
127
- ...borders
145
+ ...borderWidth
128
146
  ];
129
147
  var b = [
130
148
  {
@@ -132,7 +150,7 @@ var b = [
132
150
  value: { type: "keyword", value: "700" }
133
151
  },
134
152
  boxSizing,
135
- ...borders
153
+ ...borderWidth
136
154
  ];
137
155
  var strong = b;
138
156
  var code = [
@@ -150,7 +168,7 @@ var code = [
150
168
  value: { type: "unit", value: 1, unit: "em" }
151
169
  },
152
170
  boxSizing,
153
- ...borders
171
+ ...borderWidth
154
172
  ];
155
173
  var kbd = code;
156
174
  var samp = code;
@@ -161,7 +179,7 @@ var small = [
161
179
  value: { type: "unit", value: 80, unit: "%" }
162
180
  },
163
181
  boxSizing,
164
- ...borders
182
+ ...borderWidth
165
183
  ];
166
184
  var subSupBase = [
167
185
  {
@@ -181,7 +199,7 @@ var subSupBase = [
181
199
  value: { type: "keyword", value: "baseline" }
182
200
  },
183
201
  boxSizing,
184
- ...borders
202
+ ...borderWidth
185
203
  ];
186
204
  var sub = [
187
205
  ...subSupBase,
@@ -203,7 +221,7 @@ var table = [
203
221
  property: "textIndent",
204
222
  value: { type: "unit", value: 0, unit: "number" }
205
223
  },
206
- ...borders,
224
+ ...borderWidth,
207
225
  /* 2 */
208
226
  {
209
227
  property: "borderTopColor",
@@ -255,13 +273,17 @@ var buttonBase = [
255
273
  value: { type: "unit", value: 0, unit: "number" }
256
274
  },
257
275
  boxSizing,
258
- ...borders
276
+ ...borderWidth
259
277
  ];
260
- var input = buttonBase;
278
+ var input = [...buttonBase, ...borderStyle("solid")];
279
+ var textarea = input;
261
280
  var optgroup = buttonBase;
262
- var textarea = buttonBase;
281
+ var radio = [...buttonBase, ...borderStyle("none")];
282
+ var checkbox = [...buttonBase, ...borderStyle("none")];
263
283
  var button = [
264
284
  ...buttonBase,
285
+ // Button uses border style outset by default, wich we don't support in style panel.
286
+ ...borderStyle("solid"),
265
287
  {
266
288
  property: "textTransform",
267
289
  value: { type: "keyword", value: "none" }
@@ -286,7 +308,7 @@ var legend = [
286
308
  value: { type: "unit", value: 0, unit: "number" }
287
309
  },
288
310
  boxSizing,
289
- ...borders
311
+ ...borderWidth
290
312
  ];
291
313
  var progress = [
292
314
  {
@@ -294,7 +316,7 @@ var progress = [
294
316
  value: { type: "keyword", value: "baseline" }
295
317
  },
296
318
  boxSizing,
297
- ...borders
319
+ ...borderWidth
298
320
  ];
299
321
  var summary = [
300
322
  {
@@ -302,7 +324,7 @@ var summary = [
302
324
  value: { type: "keyword", value: "list-item" }
303
325
  },
304
326
  boxSizing,
305
- ...borders
327
+ ...borderWidth
306
328
  ];
307
329
  export {
308
330
  a,
@@ -312,6 +334,7 @@ export {
312
334
  b,
313
335
  body,
314
336
  button,
337
+ checkbox,
315
338
  code,
316
339
  div,
317
340
  figure,
@@ -340,6 +363,7 @@ export {
340
363
  p,
341
364
  pre,
342
365
  progress,
366
+ radio,
343
367
  samp,
344
368
  section,
345
369
  select,
package/lib/index.js CHANGED
@@ -31,6 +31,8 @@ var generateRemixRoute = (pathname) => {
31
31
  var generateRemixParams = (pathname) => {
32
32
  const name = pathname.match(/:(?<name>\w+)\*$/)?.groups?.name;
33
33
  let generated = "";
34
+ generated += `type Params = Record<string, string | undefined>;
35
+ `;
34
36
  generated += `export const getRemixParams = ({ ...params }: Params): Params => {
35
37
  `;
36
38
  if (name) {
@@ -802,6 +804,13 @@ var generateExpression = ({
802
804
  }
803
805
  });
804
806
  };
807
+ var executeExpression = (expression) => {
808
+ try {
809
+ const fn = new Function(`return (${expression})`);
810
+ return fn();
811
+ } catch {
812
+ }
813
+ };
805
814
 
806
815
  // src/embed-template.ts
807
816
  var EmbedTemplateText = z2.object({
@@ -1564,19 +1573,38 @@ var generateJsxChildren = ({
1564
1573
  }
1565
1574
  return generatedChildren;
1566
1575
  };
1567
- var generatePageComponent = ({
1576
+ var generateWebstudioComponent = ({
1568
1577
  scope,
1569
- page,
1578
+ name,
1579
+ rootInstanceId,
1580
+ parameters,
1570
1581
  instances,
1571
1582
  props,
1572
1583
  dataSources,
1573
1584
  indexesWithinAncestors,
1574
1585
  classesMap
1575
1586
  }) => {
1576
- const instance = instances.get(page.rootInstanceId);
1587
+ const instance = instances.get(rootInstanceId);
1577
1588
  if (instance === void 0) {
1578
1589
  return "";
1579
1590
  }
1591
+ let generatedProps = "";
1592
+ if (parameters.length > 0) {
1593
+ let generatedPropsValue = "{ ";
1594
+ let generatedPropsType = "{ ";
1595
+ for (const parameter of parameters) {
1596
+ const dataSource = dataSources.get(parameter.value);
1597
+ if (dataSource === void 0) {
1598
+ continue;
1599
+ }
1600
+ const valueName = scope.getName(dataSource.id, dataSource.name);
1601
+ generatedPropsValue += `${parameter.name}: ${valueName}, `;
1602
+ generatedPropsType += `${parameter.name}: any; `;
1603
+ }
1604
+ generatedPropsValue += `}`;
1605
+ generatedPropsType += `}`;
1606
+ generatedProps = `${generatedPropsValue}: ${generatedPropsType}`;
1607
+ }
1580
1608
  let generatedDataSources = "";
1581
1609
  for (const dataSource of dataSources.values()) {
1582
1610
  if (dataSource.type === "variable") {
@@ -1590,13 +1618,6 @@ var generatePageComponent = ({
1590
1618
  generatedDataSources += `let [${valueName}, ${setterName}] = useState<any>(${initialValueString})
1591
1619
  `;
1592
1620
  }
1593
- if (dataSource.type === "parameter") {
1594
- if (dataSource.id === page.pathVariableId) {
1595
- const valueName = scope.getName(dataSource.id, dataSource.name);
1596
- generatedDataSources += `let ${valueName} = _props.params
1597
- `;
1598
- }
1599
- }
1600
1621
  if (dataSource.type === "resource") {
1601
1622
  const valueName = scope.getName(dataSource.id, dataSource.name);
1602
1623
  const resourceName = scope.getName(
@@ -1626,9 +1647,7 @@ var generatePageComponent = ({
1626
1647
  })
1627
1648
  });
1628
1649
  let generatedComponent = "";
1629
- generatedComponent += `type Params = Record<string, string | undefined>
1630
- `;
1631
- generatedComponent += `const Page = (_props: { params: Params }) => {
1650
+ generatedComponent += `const ${name} = (${generatedProps}) => {
1632
1651
  `;
1633
1652
  generatedComponent += `${generatedDataSources}`;
1634
1653
  generatedComponent += `return ${generatedJsx}`;
@@ -1742,6 +1761,88 @@ var generateResourcesLoader = ({
1742
1761
  `;
1743
1762
  return generated;
1744
1763
  };
1764
+
1765
+ // src/page-meta-generator.ts
1766
+ var generatePageMeta = ({
1767
+ scope,
1768
+ page,
1769
+ dataSources
1770
+ }) => {
1771
+ const titleExpression = generateExpression({
1772
+ expression: page.title,
1773
+ dataSources,
1774
+ scope
1775
+ });
1776
+ const descriptionExpression = generateExpression({
1777
+ expression: page.meta.description ?? "undefined",
1778
+ dataSources,
1779
+ scope
1780
+ });
1781
+ const excludePageFromSearchExpression = generateExpression({
1782
+ expression: page.meta.excludePageFromSearch ?? "undefined",
1783
+ dataSources,
1784
+ scope
1785
+ });
1786
+ const socialImageAssetIdExpression = JSON.stringify(
1787
+ page.meta.socialImageAssetId
1788
+ );
1789
+ const socialImageUrlExpression = generateExpression({
1790
+ expression: page.meta.socialImageUrl ?? "undefined",
1791
+ dataSources,
1792
+ scope
1793
+ });
1794
+ let generated = "";
1795
+ generated += `export const getPageMeta = ({}: {
1796
+ `;
1797
+ generated += ` params: Record<string, undefined | string>;
1798
+ `;
1799
+ generated += ` resources: Record<string, any>;
1800
+ `;
1801
+ generated += `}): PageMeta => {
1802
+ `;
1803
+ generated += ` return {
1804
+ `;
1805
+ generated += ` title: ${titleExpression},
1806
+ `;
1807
+ generated += ` description: ${descriptionExpression},
1808
+ `;
1809
+ generated += ` excludePageFromSearch: ${excludePageFromSearchExpression},
1810
+ `;
1811
+ generated += ` socialImageAssetId: ${socialImageAssetIdExpression},
1812
+ `;
1813
+ generated += ` socialImageUrl: ${socialImageUrlExpression},
1814
+ `;
1815
+ generated += ` custom: [
1816
+ `;
1817
+ if (page.meta.custom) {
1818
+ for (const customMeta of page.meta.custom) {
1819
+ if (customMeta.property.trim().length === 0) {
1820
+ continue;
1821
+ }
1822
+ const propertyExpression = JSON.stringify(customMeta.property);
1823
+ const contentExpression = generateExpression({
1824
+ scope,
1825
+ dataSources,
1826
+ expression: customMeta.content
1827
+ });
1828
+ generated += ` {
1829
+ `;
1830
+ generated += ` property: ${propertyExpression},
1831
+ `;
1832
+ generated += ` content: ${contentExpression},
1833
+ `;
1834
+ generated += ` },
1835
+ `;
1836
+ }
1837
+ }
1838
+ generated += ` ],
1839
+ `;
1840
+ generated += ` };
1841
+ `;
1842
+ generated += `};
1843
+ `;
1844
+ return generated;
1845
+ };
1745
1846
  export {
1746
1847
  EmbedTemplateInstance,
1747
1848
  EmbedTemplateProp,
@@ -1764,15 +1865,17 @@ export {
1764
1865
  decodeDataSourceVariable,
1765
1866
  defaultStates,
1766
1867
  encodeDataSourceVariable,
1868
+ executeExpression,
1767
1869
  generateCss,
1768
1870
  generateDataFromEmbedTemplate,
1769
1871
  generateJsxChildren,
1770
1872
  generateJsxElement,
1771
- generatePageComponent,
1873
+ generatePageMeta,
1772
1874
  generateRemixParams,
1773
1875
  generateRemixRoute,
1774
1876
  generateResourcesLoader,
1775
1877
  generateUtilsExport,
1878
+ generateWebstudioComponent,
1776
1879
  getClosestInstance,
1777
1880
  getIndexWithinAncestorFromComponentProps,
1778
1881
  getIndexesWithinAncestors,
@@ -1,4 +1,4 @@
1
- import type { Instances, Instance, Props, Scope, DataSources, Page } from "@webstudio-is/sdk";
1
+ import type { Instances, Instance, Props, Scope, DataSources, Prop } from "@webstudio-is/sdk";
2
2
  import type { IndexesWithinAncestors } from "./instance-utils";
3
3
  export declare const generateJsxElement: ({ scope, instance, props, dataSources, indexesWithinAncestors, children, classesMap, }: {
4
4
  scope: Scope;
@@ -257,9 +257,13 @@ export declare const generateJsxChildren: ({ scope, children, instances, props,
257
257
  indexesWithinAncestors: IndexesWithinAncestors;
258
258
  classesMap?: Map<string, string[]> | undefined;
259
259
  }) => string;
260
- export declare const generatePageComponent: ({ scope, page, instances, props, dataSources, indexesWithinAncestors, classesMap, }: {
260
+ export declare const generateWebstudioComponent: ({ scope, name, rootInstanceId, parameters, instances, props, dataSources, indexesWithinAncestors, classesMap, }: {
261
261
  scope: Scope;
262
- page: Page;
262
+ name: string;
263
+ rootInstanceId: Instance["id"];
264
+ parameters: Extract<Prop, {
265
+ type: "parameter";
266
+ }>[];
263
267
  instances: Map<string, {
264
268
  type: "instance";
265
269
  id: string;
@@ -5711,10 +5711,10 @@ export declare const span: ({
5711
5711
  };
5712
5712
  })[];
5713
5713
  /**
5714
- 1. Correct the line height in all browsers.
5715
- 2. Prevent adjustments of font size after orientation changes in iOS.
5716
- 3. Use a more readable tab size (opinionated).
5717
- */
5714
+ * 1. Correct the line height in all browsers.
5715
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
5716
+ * 3. Use a more readable tab size (opinionated).
5717
+ */
5718
5718
  export declare const html: ({
5719
5719
  value: {
5720
5720
  value: number;
@@ -5935,9 +5935,9 @@ export declare const html: ({
5935
5935
  };
5936
5936
  })[];
5937
5937
  /**
5938
- 1. Remove the margin in all browsers.
5939
- 2. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
5940
- */
5938
+ * 1. Remove the margin in all browsers.
5939
+ * 2. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
5940
+ */
5941
5941
  export declare const body: ({
5942
5942
  value: {
5943
5943
  value: number;
@@ -6158,9 +6158,9 @@ export declare const body: ({
6158
6158
  };
6159
6159
  })[];
6160
6160
  /**
6161
- 1. Add the correct height in Firefox.
6162
- 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
6163
- */
6161
+ * 1. Add the correct height in Firefox.
6162
+ * 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
6163
+ */
6164
6164
  export declare const hr: ({
6165
6165
  value: {
6166
6166
  value: number;
@@ -6390,8 +6390,8 @@ abbr[title] {
6390
6390
  }
6391
6391
  */
6392
6392
  /**
6393
- Add the correct font weight in Edge and Safari.
6394
- */
6393
+ * Add the correct font weight in Edge and Safari.
6394
+ */
6395
6395
  export declare const b: ({
6396
6396
  value: {
6397
6397
  value: number;
@@ -6831,9 +6831,9 @@ export declare const strong: ({
6831
6831
  };
6832
6832
  })[];
6833
6833
  /**
6834
- 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
6835
- 2. Correct the odd 'em' font sizing in all browsers.
6836
- */
6834
+ * 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
6835
+ * 2. Correct the odd 'em' font sizing in all browsers.
6836
+ */
6837
6837
  export declare const code: ({
6838
6838
  value: {
6839
6839
  value: number;
@@ -7711,8 +7711,8 @@ export declare const pre: ({
7711
7711
  };
7712
7712
  })[];
7713
7713
  /**
7714
- Add the correct font size in all browsers.
7715
- */
7714
+ * Add the correct font size in all browsers.
7715
+ */
7716
7716
  export declare const small: ({
7717
7717
  value: {
7718
7718
  value: number;
@@ -8371,9 +8371,9 @@ export declare const sup: ({
8371
8371
  };
8372
8372
  })[];
8373
8373
  /**
8374
- 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
8375
- 2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
8376
- */
8374
+ * 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
8375
+ * 2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
8376
+ */
8377
8377
  export declare const table: ({
8378
8378
  value: {
8379
8379
  value: number;
@@ -8812,6 +8812,225 @@ export declare const input: ({
8812
8812
  value: string;
8813
8813
  };
8814
8814
  })[];
8815
+ export declare const textarea: ({
8816
+ value: {
8817
+ value: number;
8818
+ type: "unit";
8819
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
8820
+ } | {
8821
+ value: string;
8822
+ type: "keyword";
8823
+ } | {
8824
+ value: string;
8825
+ type: "unparsed";
8826
+ hidden?: boolean | undefined;
8827
+ } | {
8828
+ value: string[];
8829
+ type: "fontFamily";
8830
+ } | {
8831
+ type: "rgb";
8832
+ r: number;
8833
+ g: number;
8834
+ b: number;
8835
+ alpha: number;
8836
+ } | {
8837
+ value: {
8838
+ value: string;
8839
+ type: "asset";
8840
+ } | {
8841
+ type: "url";
8842
+ url: string;
8843
+ };
8844
+ type: "image";
8845
+ hidden?: boolean | undefined;
8846
+ } | {
8847
+ value: string;
8848
+ type: "invalid";
8849
+ } | {
8850
+ value: "";
8851
+ type: "unset";
8852
+ } | {
8853
+ value: ({
8854
+ value: number;
8855
+ type: "unit";
8856
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
8857
+ } | {
8858
+ value: string;
8859
+ type: "keyword";
8860
+ } | {
8861
+ value: string;
8862
+ type: "unparsed";
8863
+ hidden?: boolean | undefined;
8864
+ } | {
8865
+ type: "rgb";
8866
+ r: number;
8867
+ g: number;
8868
+ b: number;
8869
+ alpha: number;
8870
+ })[];
8871
+ type: "tuple";
8872
+ hidden?: boolean | undefined;
8873
+ } | {
8874
+ value: ({
8875
+ value: number;
8876
+ type: "unit";
8877
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
8878
+ } | {
8879
+ value: string;
8880
+ type: "keyword";
8881
+ } | {
8882
+ value: string;
8883
+ type: "unparsed";
8884
+ hidden?: boolean | undefined;
8885
+ } | {
8886
+ value: {
8887
+ value: string;
8888
+ type: "asset";
8889
+ } | {
8890
+ type: "url";
8891
+ url: string;
8892
+ };
8893
+ type: "image";
8894
+ hidden?: boolean | undefined;
8895
+ } | {
8896
+ value: string;
8897
+ type: "invalid";
8898
+ } | {
8899
+ value: ({
8900
+ value: number;
8901
+ type: "unit";
8902
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
8903
+ } | {
8904
+ value: string;
8905
+ type: "keyword";
8906
+ } | {
8907
+ value: string;
8908
+ type: "unparsed";
8909
+ hidden?: boolean | undefined;
8910
+ } | {
8911
+ type: "rgb";
8912
+ r: number;
8913
+ g: number;
8914
+ b: number;
8915
+ alpha: number;
8916
+ })[];
8917
+ type: "tuple";
8918
+ hidden?: boolean | undefined;
8919
+ })[];
8920
+ type: "layers";
8921
+ } | {
8922
+ value: string;
8923
+ type: "var";
8924
+ fallbacks: ({
8925
+ value: number;
8926
+ type: "unit";
8927
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
8928
+ } | {
8929
+ value: string;
8930
+ type: "keyword";
8931
+ } | {
8932
+ value: string;
8933
+ type: "unparsed";
8934
+ hidden?: boolean | undefined;
8935
+ } | {
8936
+ value: string[];
8937
+ type: "fontFamily";
8938
+ } | {
8939
+ type: "rgb";
8940
+ r: number;
8941
+ g: number;
8942
+ b: number;
8943
+ alpha: number;
8944
+ } | {
8945
+ value: {
8946
+ value: string;
8947
+ type: "asset";
8948
+ } | {
8949
+ type: "url";
8950
+ url: string;
8951
+ };
8952
+ type: "image";
8953
+ hidden?: boolean | undefined;
8954
+ } | {
8955
+ value: ({
8956
+ value: number;
8957
+ type: "unit";
8958
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
8959
+ } | {
8960
+ value: string;
8961
+ type: "keyword";
8962
+ } | {
8963
+ value: string;
8964
+ type: "unparsed";
8965
+ hidden?: boolean | undefined;
8966
+ } | {
8967
+ type: "rgb";
8968
+ r: number;
8969
+ g: number;
8970
+ b: number;
8971
+ alpha: number;
8972
+ })[];
8973
+ type: "tuple";
8974
+ hidden?: boolean | undefined;
8975
+ } | {
8976
+ value: ({
8977
+ value: number;
8978
+ type: "unit";
8979
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
8980
+ } | {
8981
+ value: string;
8982
+ type: "keyword";
8983
+ } | {
8984
+ value: string;
8985
+ type: "unparsed";
8986
+ hidden?: boolean | undefined;
8987
+ } | {
8988
+ value: {
8989
+ value: string;
8990
+ type: "asset";
8991
+ } | {
8992
+ type: "url";
8993
+ url: string;
8994
+ };
8995
+ type: "image";
8996
+ hidden?: boolean | undefined;
8997
+ } | {
8998
+ value: string;
8999
+ type: "invalid";
9000
+ } | {
9001
+ value: ({
9002
+ value: number;
9003
+ type: "unit";
9004
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
9005
+ } | {
9006
+ value: string;
9007
+ type: "keyword";
9008
+ } | {
9009
+ value: string;
9010
+ type: "unparsed";
9011
+ hidden?: boolean | undefined;
9012
+ } | {
9013
+ type: "rgb";
9014
+ r: number;
9015
+ g: number;
9016
+ b: number;
9017
+ alpha: number;
9018
+ })[];
9019
+ type: "tuple";
9020
+ hidden?: boolean | undefined;
9021
+ })[];
9022
+ type: "layers";
9023
+ })[];
9024
+ };
9025
+ state?: string | undefined;
9026
+ property: import("@webstudio-is/css-engine").StyleProperty;
9027
+ } | {
9028
+ property: "boxSizing";
9029
+ value: {
9030
+ type: "keyword";
9031
+ value: string;
9032
+ };
9033
+ })[];
8815
9034
  export declare const optgroup: ({
8816
9035
  value: {
8817
9036
  value: number;
@@ -9031,7 +9250,226 @@ export declare const optgroup: ({
9031
9250
  value: string;
9032
9251
  };
9033
9252
  })[];
9034
- export declare const textarea: ({
9253
+ export declare const radio: ({
9254
+ value: {
9255
+ value: number;
9256
+ type: "unit";
9257
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
9258
+ } | {
9259
+ value: string;
9260
+ type: "keyword";
9261
+ } | {
9262
+ value: string;
9263
+ type: "unparsed";
9264
+ hidden?: boolean | undefined;
9265
+ } | {
9266
+ value: string[];
9267
+ type: "fontFamily";
9268
+ } | {
9269
+ type: "rgb";
9270
+ r: number;
9271
+ g: number;
9272
+ b: number;
9273
+ alpha: number;
9274
+ } | {
9275
+ value: {
9276
+ value: string;
9277
+ type: "asset";
9278
+ } | {
9279
+ type: "url";
9280
+ url: string;
9281
+ };
9282
+ type: "image";
9283
+ hidden?: boolean | undefined;
9284
+ } | {
9285
+ value: string;
9286
+ type: "invalid";
9287
+ } | {
9288
+ value: "";
9289
+ type: "unset";
9290
+ } | {
9291
+ value: ({
9292
+ value: number;
9293
+ type: "unit";
9294
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
9295
+ } | {
9296
+ value: string;
9297
+ type: "keyword";
9298
+ } | {
9299
+ value: string;
9300
+ type: "unparsed";
9301
+ hidden?: boolean | undefined;
9302
+ } | {
9303
+ type: "rgb";
9304
+ r: number;
9305
+ g: number;
9306
+ b: number;
9307
+ alpha: number;
9308
+ })[];
9309
+ type: "tuple";
9310
+ hidden?: boolean | undefined;
9311
+ } | {
9312
+ value: ({
9313
+ value: number;
9314
+ type: "unit";
9315
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
9316
+ } | {
9317
+ value: string;
9318
+ type: "keyword";
9319
+ } | {
9320
+ value: string;
9321
+ type: "unparsed";
9322
+ hidden?: boolean | undefined;
9323
+ } | {
9324
+ value: {
9325
+ value: string;
9326
+ type: "asset";
9327
+ } | {
9328
+ type: "url";
9329
+ url: string;
9330
+ };
9331
+ type: "image";
9332
+ hidden?: boolean | undefined;
9333
+ } | {
9334
+ value: string;
9335
+ type: "invalid";
9336
+ } | {
9337
+ value: ({
9338
+ value: number;
9339
+ type: "unit";
9340
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
9341
+ } | {
9342
+ value: string;
9343
+ type: "keyword";
9344
+ } | {
9345
+ value: string;
9346
+ type: "unparsed";
9347
+ hidden?: boolean | undefined;
9348
+ } | {
9349
+ type: "rgb";
9350
+ r: number;
9351
+ g: number;
9352
+ b: number;
9353
+ alpha: number;
9354
+ })[];
9355
+ type: "tuple";
9356
+ hidden?: boolean | undefined;
9357
+ })[];
9358
+ type: "layers";
9359
+ } | {
9360
+ value: string;
9361
+ type: "var";
9362
+ fallbacks: ({
9363
+ value: number;
9364
+ type: "unit";
9365
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
9366
+ } | {
9367
+ value: string;
9368
+ type: "keyword";
9369
+ } | {
9370
+ value: string;
9371
+ type: "unparsed";
9372
+ hidden?: boolean | undefined;
9373
+ } | {
9374
+ value: string[];
9375
+ type: "fontFamily";
9376
+ } | {
9377
+ type: "rgb";
9378
+ r: number;
9379
+ g: number;
9380
+ b: number;
9381
+ alpha: number;
9382
+ } | {
9383
+ value: {
9384
+ value: string;
9385
+ type: "asset";
9386
+ } | {
9387
+ type: "url";
9388
+ url: string;
9389
+ };
9390
+ type: "image";
9391
+ hidden?: boolean | undefined;
9392
+ } | {
9393
+ value: ({
9394
+ value: number;
9395
+ type: "unit";
9396
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
9397
+ } | {
9398
+ value: string;
9399
+ type: "keyword";
9400
+ } | {
9401
+ value: string;
9402
+ type: "unparsed";
9403
+ hidden?: boolean | undefined;
9404
+ } | {
9405
+ type: "rgb";
9406
+ r: number;
9407
+ g: number;
9408
+ b: number;
9409
+ alpha: number;
9410
+ })[];
9411
+ type: "tuple";
9412
+ hidden?: boolean | undefined;
9413
+ } | {
9414
+ value: ({
9415
+ value: number;
9416
+ type: "unit";
9417
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
9418
+ } | {
9419
+ value: string;
9420
+ type: "keyword";
9421
+ } | {
9422
+ value: string;
9423
+ type: "unparsed";
9424
+ hidden?: boolean | undefined;
9425
+ } | {
9426
+ value: {
9427
+ value: string;
9428
+ type: "asset";
9429
+ } | {
9430
+ type: "url";
9431
+ url: string;
9432
+ };
9433
+ type: "image";
9434
+ hidden?: boolean | undefined;
9435
+ } | {
9436
+ value: string;
9437
+ type: "invalid";
9438
+ } | {
9439
+ value: ({
9440
+ value: number;
9441
+ type: "unit";
9442
+ unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
9443
+ } | {
9444
+ value: string;
9445
+ type: "keyword";
9446
+ } | {
9447
+ value: string;
9448
+ type: "unparsed";
9449
+ hidden?: boolean | undefined;
9450
+ } | {
9451
+ type: "rgb";
9452
+ r: number;
9453
+ g: number;
9454
+ b: number;
9455
+ alpha: number;
9456
+ })[];
9457
+ type: "tuple";
9458
+ hidden?: boolean | undefined;
9459
+ })[];
9460
+ type: "layers";
9461
+ })[];
9462
+ };
9463
+ state?: string | undefined;
9464
+ property: import("@webstudio-is/css-engine").StyleProperty;
9465
+ } | {
9466
+ property: "boxSizing";
9467
+ value: {
9468
+ type: "keyword";
9469
+ value: string;
9470
+ };
9471
+ })[];
9472
+ export declare const checkbox: ({
9035
9473
  value: {
9036
9474
  value: number;
9037
9475
  type: "unit";
@@ -9251,8 +9689,8 @@ export declare const textarea: ({
9251
9689
  };
9252
9690
  })[];
9253
9691
  /**
9254
- Remove the inheritance of text transform in Edge and Firefox.
9255
- */
9692
+ * Remove the inheritance of text transform in Edge and Firefox.
9693
+ */
9256
9694
  export declare const button: ({
9257
9695
  value: {
9258
9696
  value: number;
@@ -9733,8 +10171,8 @@ See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d4
9733
10171
  }
9734
10172
  */
9735
10173
  /**
9736
- Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
9737
- */
10174
+ * Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
10175
+ */
9738
10176
  export declare const legend: ({
9739
10177
  value: {
9740
10178
  value: number;
@@ -9955,8 +10393,8 @@ export declare const legend: ({
9955
10393
  };
9956
10394
  })[];
9957
10395
  /**
9958
- Add the correct vertical alignment in Chrome and Firefox.
9959
- */
10396
+ * Add the correct vertical alignment in Chrome and Firefox.
10397
+ */
9960
10398
  export declare const progress: ({
9961
10399
  value: {
9962
10400
  value: number;
@@ -10217,6 +10655,9 @@ Remove the inner padding in Chrome and Safari on macOS.
10217
10655
  font: inherit;
10218
10656
  }
10219
10657
  */
10658
+ /**
10659
+ * Add the correct display in Chrome and Safari.
10660
+ */
10220
10661
  export declare const summary: ({
10221
10662
  value: {
10222
10663
  value: number;
@@ -1,3 +1,4 @@
1
1
  import type { Styles } from "./normalize";
2
- export declare const borders: Styles;
2
+ export declare const borderWidth: Styles;
3
3
  export declare const outline: Styles;
4
+ export declare const borderStyle: (value: string) => Styles;
@@ -51,4 +51,5 @@ export declare const generateExpression: ({ expression, dataSources, scope, }: {
51
51
  }>;
52
52
  scope: Scope;
53
53
  }) => string;
54
+ export declare const executeExpression: (expression: undefined | string) => any;
54
55
  export {};
@@ -9,9 +9,10 @@ export { type WsComponentPropsMeta, type ComponentState, type PresetStyle, WsCom
9
9
  export * from "./embed-template";
10
10
  export * from "./props";
11
11
  export * from "./context";
12
- export { validateExpression, encodeDataSourceVariable, decodeDataSourceVariable, } from "./expression";
12
+ export { validateExpression, encodeDataSourceVariable, decodeDataSourceVariable, executeExpression, } from "./expression";
13
13
  export { getIndexesWithinAncestors } from "./instance-utils";
14
14
  export * from "./hook";
15
15
  export { generateUtilsExport } from "./generator";
16
- export { generatePageComponent, generateJsxElement, generateJsxChildren, } from "./component-generator";
16
+ export { generateWebstudioComponent, generateJsxElement, generateJsxChildren, } from "./component-generator";
17
17
  export { generateResourcesLoader } from "./resources-generator";
18
+ export * from "./page-meta-generator";
@@ -0,0 +1,49 @@
1
+ import type { Asset, DataSources, Page, Scope } from "@webstudio-is/sdk";
2
+ export type PageMeta = {
3
+ title: string;
4
+ description?: string;
5
+ excludePageFromSearch?: boolean;
6
+ socialImageAssetId?: Asset["id"];
7
+ socialImageUrl?: string;
8
+ custom: Array<{
9
+ property: string;
10
+ content: string;
11
+ }>;
12
+ };
13
+ export declare const generatePageMeta: ({ scope, page, dataSources, }: {
14
+ scope: Scope;
15
+ page: Page;
16
+ dataSources: Map<string, {
17
+ value: {
18
+ value: number;
19
+ type: "number";
20
+ } | {
21
+ value: string;
22
+ type: "string";
23
+ } | {
24
+ value: boolean;
25
+ type: "boolean";
26
+ } | {
27
+ value: string[];
28
+ type: "string[]";
29
+ } | {
30
+ type: "json";
31
+ value?: unknown;
32
+ };
33
+ type: "variable";
34
+ name: string;
35
+ id: string;
36
+ scopeInstanceId?: string | undefined;
37
+ } | {
38
+ type: "parameter";
39
+ name: string;
40
+ id: string;
41
+ scopeInstanceId?: string | undefined;
42
+ } | {
43
+ type: "resource";
44
+ name: string;
45
+ id: string;
46
+ resourceId: string;
47
+ scopeInstanceId?: string | undefined;
48
+ }>;
49
+ }) => string;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/react-sdk",
3
- "version": "0.128.0",
3
+ "version": "0.130.0",
4
4
  "description": "Webstudio JavaScript / TypeScript API",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -33,11 +33,11 @@
33
33
  "jsep": "^1.3.8",
34
34
  "nanoid": "^5.0.1",
35
35
  "title-case": "^4.1.0",
36
- "@webstudio-is/fonts": "0.128.0",
37
- "@webstudio-is/css-engine": "0.128.0",
38
- "@webstudio-is/icons": "^0.128.0",
39
- "@webstudio-is/image": "0.128.0",
40
- "@webstudio-is/sdk": "0.128.0"
36
+ "@webstudio-is/css-engine": "0.130.0",
37
+ "@webstudio-is/icons": "^0.130.0",
38
+ "@webstudio-is/image": "0.130.0",
39
+ "@webstudio-is/sdk": "0.130.0",
40
+ "@webstudio-is/fonts": "0.130.0"
41
41
  },
42
42
  "exports": {
43
43
  ".": {