@webstudio-is/sdk 0.255.0 → 0.257.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.
@@ -31,6 +31,11 @@ var span = div;
31
31
  var html = [
32
32
  { property: "display", value: { type: "keyword", value: "grid" } },
33
33
  { property: "min-height", value: { type: "unit", unit: "%", value: 100 } },
34
+ { property: "grid-template-rows", value: { type: "keyword", value: "auto" } },
35
+ {
36
+ property: "grid-template-columns",
37
+ value: { type: "unit", unit: "fr", value: 1 }
38
+ },
34
39
  {
35
40
  property: "font-family",
36
41
  value: { type: "fontFamily", value: ["Arial", "Roboto", "sans-serif"] }
@@ -114,6 +114,11 @@ var span = div;
114
114
  var html = [
115
115
  { property: "display", value: { type: "keyword", value: "grid" } },
116
116
  { property: "min-height", value: { type: "unit", unit: "%", value: 100 } },
117
+ { property: "grid-template-rows", value: { type: "keyword", value: "auto" } },
118
+ {
119
+ property: "grid-template-columns",
120
+ value: { type: "unit", unit: "fr", value: 1 }
121
+ },
117
122
  {
118
123
  property: "font-family",
119
124
  value: { type: "fontFamily", value: ["Arial", "Roboto", "sans-serif"] }
@@ -554,7 +559,7 @@ var tags = [
554
559
  // src/core-metas.ts
555
560
  var rootComponent = "ws:root";
556
561
  var rootMeta = {
557
- label: "Global Root",
562
+ label: "Global root",
558
563
  icon: SettingsIcon,
559
564
  presetStyle: {
560
565
  html
package/lib/index.js CHANGED
@@ -593,12 +593,11 @@ var Breakpoint = z8.object({
593
593
  if (condition !== void 0) {
594
594
  return minWidth === void 0 && maxWidth === void 0;
595
595
  }
596
- return (
597
- // Either min or max width have to be defined
598
- minWidth !== void 0 && maxWidth === void 0 || minWidth === void 0 && maxWidth !== void 0 || // This is a base breakpoint
599
- minWidth === void 0 && maxWidth === void 0
600
- );
601
- }, "Either minWidth, maxWidth, or condition should be defined, but not both");
596
+ if (minWidth !== void 0 && maxWidth !== void 0) {
597
+ return minWidth < maxWidth;
598
+ }
599
+ return true;
600
+ }, "Width-based (minWidth/maxWidth) and condition are mutually exclusive, and minWidth must be less than maxWidth");
602
601
  var Breakpoints = z8.map(BreakpointId, Breakpoint);
603
602
  var initialBreakpoints = [
604
603
  { id: "placeholder", label: "Base" },
@@ -1337,6 +1336,11 @@ var span = div;
1337
1336
  var html = [
1338
1337
  { property: "display", value: { type: "keyword", value: "grid" } },
1339
1338
  { property: "min-height", value: { type: "unit", unit: "%", value: 100 } },
1339
+ { property: "grid-template-rows", value: { type: "keyword", value: "auto" } },
1340
+ {
1341
+ property: "grid-template-columns",
1342
+ value: { type: "unit", unit: "fr", value: 1 }
1343
+ },
1340
1344
  {
1341
1345
  property: "font-family",
1342
1346
  value: { type: "fontFamily", value: ["Arial", "Roboto", "sans-serif"] }
@@ -1777,7 +1781,7 @@ var tags = [
1777
1781
  // src/core-metas.ts
1778
1782
  var rootComponent = "ws:root";
1779
1783
  var rootMeta = {
1780
- label: "Global Root",
1784
+ label: "Global root",
1781
1785
  icon: SettingsIcon,
1782
1786
  presetStyle: {
1783
1787
  html
@@ -2008,13 +2012,7 @@ var allowedStringMethods = /* @__PURE__ */ new Set([
2008
2012
  "toLocaleLowerCase",
2009
2013
  "toLocaleUpperCase"
2010
2014
  ]);
2011
- var allowedArrayMethods = /* @__PURE__ */ new Set([
2012
- "at",
2013
- "includes",
2014
- "join",
2015
- "slice",
2016
- "filter"
2017
- ]);
2015
+ var allowedArrayMethods = /* @__PURE__ */ new Set(["at", "includes", "join", "slice"]);
2018
2016
  var lintExpression = ({
2019
2017
  expression,
2020
2018
  availableVariables = /* @__PURE__ */ new Set(),