webstudio 0.252.2 → 0.254.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.
package/lib/cli.js
CHANGED
|
@@ -9,7 +9,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
11
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
|
-
var _declarations, _dirtyBreakpoints, _a, _selector, _descendantSuffix, _mixinRules, _mixins, _declarations2, _cache, _NestingRule_instances, getDeclarations_fn, _b, _name,
|
|
12
|
+
var _declarations, _dirtyBreakpoints, _a, _selector, _descendantSuffix, _mixinRules, _mixins, _declarations2, _cache, _NestingRule_instances, getDeclarations_fn, _b, _name, _c, _cached, _options, _d, _element, _name2, _e, _cssText, _mediaRules, _plainRules, _mixinRules2, _fontFaceRules, _transformValue, _element2, _f;
|
|
13
13
|
import { exit, cwd, chdir, argv } from "node:process";
|
|
14
14
|
import { hideBin } from "yargs/helpers";
|
|
15
15
|
import { join, dirname, normalize, basename, relative } from "node:path";
|
|
@@ -1397,11 +1397,9 @@ var MediaRule = (_c = class {
|
|
|
1397
1397
|
__privateAdd(this, _name);
|
|
1398
1398
|
__publicField(this, "options");
|
|
1399
1399
|
__publicField(this, "rules");
|
|
1400
|
-
__privateAdd(this, _mediaType);
|
|
1401
1400
|
__privateSet(this, _name, name2);
|
|
1402
1401
|
this.options = options;
|
|
1403
1402
|
this.rules = /* @__PURE__ */ new Map();
|
|
1404
|
-
__privateSet(this, _mediaType, options.mediaType ?? "all");
|
|
1405
1403
|
}
|
|
1406
1404
|
insertRule(rule) {
|
|
1407
1405
|
this.rules.set(rule.cssText, rule);
|
|
@@ -1438,7 +1436,7 @@ var MediaRule = (_c = class {
|
|
|
1438
1436
|
return "";
|
|
1439
1437
|
}
|
|
1440
1438
|
let conditionText = "";
|
|
1441
|
-
const { minWidth, maxWidth, condition } = this.options;
|
|
1439
|
+
const { minWidth, maxWidth, condition, mediaType = "all" } = this.options;
|
|
1442
1440
|
if (condition !== void 0) {
|
|
1443
1441
|
conditionText = ` and (${condition})`;
|
|
1444
1442
|
} else {
|
|
@@ -1449,13 +1447,11 @@ var MediaRule = (_c = class {
|
|
|
1449
1447
|
conditionText += ` and (max-width: ${maxWidth}px)`;
|
|
1450
1448
|
}
|
|
1451
1449
|
}
|
|
1452
|
-
return `@media ${
|
|
1453
|
-
${rules.join(
|
|
1454
|
-
"\n"
|
|
1455
|
-
)}
|
|
1450
|
+
return `@media ${mediaType}${conditionText} {
|
|
1451
|
+
${rules.join("\n")}
|
|
1456
1452
|
}`;
|
|
1457
1453
|
}
|
|
1458
|
-
}, _name = new WeakMap(),
|
|
1454
|
+
}, _name = new WeakMap(), _c);
|
|
1459
1455
|
var PlaintextRule = class {
|
|
1460
1456
|
constructor(cssText) {
|
|
1461
1457
|
__publicField(this, "cssText");
|
|
@@ -1496,17 +1492,21 @@ var FontFaceRule = (_d = class {
|
|
|
1496
1492
|
return __privateGet(this, _cached);
|
|
1497
1493
|
}
|
|
1498
1494
|
}, _cached = new WeakMap(), _options = new WeakMap(), _d);
|
|
1495
|
+
var isSimulatedCondition = (options) => options.mediaType !== void 0 && options.condition === void 0 && options.minWidth === void 0 && options.maxWidth === void 0;
|
|
1496
|
+
var isCondition = (options) => options.condition !== void 0 || isSimulatedCondition(options);
|
|
1499
1497
|
var compareMedia = (optionA, optionB) => {
|
|
1500
|
-
|
|
1501
|
-
|
|
1498
|
+
const aIsCondition = isCondition(optionA);
|
|
1499
|
+
const bIsCondition = isCondition(optionB);
|
|
1500
|
+
if (aIsCondition && bIsCondition) {
|
|
1501
|
+
return (optionA.condition ?? "").localeCompare(optionB.condition ?? "");
|
|
1502
1502
|
}
|
|
1503
|
-
if (
|
|
1503
|
+
if (aIsCondition) {
|
|
1504
1504
|
if (optionB.minWidth === void 0 && optionB.maxWidth === void 0) {
|
|
1505
1505
|
return 1;
|
|
1506
1506
|
}
|
|
1507
1507
|
return -1;
|
|
1508
1508
|
}
|
|
1509
|
-
if (
|
|
1509
|
+
if (bIsCondition) {
|
|
1510
1510
|
if (optionA.minWidth === void 0 && optionA.maxWidth === void 0) {
|
|
1511
1511
|
return -1;
|
|
1512
1512
|
}
|
|
@@ -6674,9 +6674,16 @@ const e$d = {
|
|
|
6674
6674
|
options: ["full", "long", "medium", "short", "none"]
|
|
6675
6675
|
},
|
|
6676
6676
|
format: {
|
|
6677
|
-
description: `Custom format template
|
|
6678
|
-
|
|
6679
|
-
|
|
6677
|
+
description: `Custom format template. Overrides Date Style and Time Style.
|
|
6678
|
+
|
|
6679
|
+
Tokens: YYYY/YY (year), MMMM/MMM/MM/M (month), DDDD/DDD/DD/D (day), HH/H (hours), mm/m (minutes), ss/s (seconds)
|
|
6680
|
+
|
|
6681
|
+
Examples:
|
|
6682
|
+
"YYYY-MM-DD" → 2025-11-03
|
|
6683
|
+
"DDDD, MMMM D" → Monday, November 3
|
|
6684
|
+
"DDD, D. MMM YYYY" → Mon, 3. Nov 2025
|
|
6685
|
+
|
|
6686
|
+
Day and month names use the selected language.`,
|
|
6680
6687
|
required: false,
|
|
6681
6688
|
control: "text",
|
|
6682
6689
|
type: "string"
|
|
@@ -9035,7 +9042,7 @@ const getDeploymentInstructions = (deployTarget) => {
|
|
|
9035
9042
|
}
|
|
9036
9043
|
};
|
|
9037
9044
|
const name = "webstudio";
|
|
9038
|
-
const version = "0.
|
|
9045
|
+
const version = "0.254.0";
|
|
9039
9046
|
const description = "Webstudio CLI";
|
|
9040
9047
|
const author = "Webstudio <github@webstudio.is>";
|
|
9041
9048
|
const homepage = "https://webstudio.is";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webstudio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.254.0",
|
|
4
4
|
"description": "Webstudio CLI",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -71,16 +71,16 @@
|
|
|
71
71
|
"vite": "^6.3.4",
|
|
72
72
|
"vitest": "^3.1.2",
|
|
73
73
|
"wrangler": "^3.63.2",
|
|
74
|
-
"@webstudio-is/css-engine": "0.
|
|
75
|
-
"@webstudio-is/http-client": "0.
|
|
76
|
-
"@webstudio-is/image": "0.
|
|
77
|
-
"@webstudio-is/sdk": "0.
|
|
78
|
-
"@webstudio-is/
|
|
79
|
-
"@webstudio-is/sdk
|
|
80
|
-
"@webstudio-is/sdk-components-react
|
|
81
|
-
"@webstudio-is/sdk-components-react-
|
|
82
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
83
|
-
"@webstudio-is/sdk-components-react-router": "0.
|
|
74
|
+
"@webstudio-is/css-engine": "0.254.0",
|
|
75
|
+
"@webstudio-is/http-client": "0.254.0",
|
|
76
|
+
"@webstudio-is/image": "0.254.0",
|
|
77
|
+
"@webstudio-is/sdk": "0.254.0",
|
|
78
|
+
"@webstudio-is/sdk-components-animation": "0.254.0",
|
|
79
|
+
"@webstudio-is/react-sdk": "0.254.0",
|
|
80
|
+
"@webstudio-is/sdk-components-react": "0.254.0",
|
|
81
|
+
"@webstudio-is/sdk-components-react-radix": "0.254.0",
|
|
82
|
+
"@webstudio-is/sdk-components-react-remix": "0.254.0",
|
|
83
|
+
"@webstudio-is/sdk-components-react-router": "0.254.0",
|
|
84
84
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"@remix-run/node": "2.16.5",
|
|
12
12
|
"@remix-run/react": "2.16.5",
|
|
13
13
|
"@remix-run/server-runtime": "2.16.5",
|
|
14
|
-
"@webstudio-is/image": "0.
|
|
15
|
-
"@webstudio-is/react-sdk": "0.
|
|
16
|
-
"@webstudio-is/sdk": "0.
|
|
17
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
18
|
-
"@webstudio-is/sdk-components-animation": "0.
|
|
19
|
-
"@webstudio-is/sdk-components-react-radix": "0.
|
|
20
|
-
"@webstudio-is/sdk-components-react-remix": "0.
|
|
14
|
+
"@webstudio-is/image": "0.254.0",
|
|
15
|
+
"@webstudio-is/react-sdk": "0.254.0",
|
|
16
|
+
"@webstudio-is/sdk": "0.254.0",
|
|
17
|
+
"@webstudio-is/sdk-components-react": "0.254.0",
|
|
18
|
+
"@webstudio-is/sdk-components-animation": "0.254.0",
|
|
19
|
+
"@webstudio-is/sdk-components-react-radix": "0.254.0",
|
|
20
|
+
"@webstudio-is/sdk-components-react-remix": "0.254.0",
|
|
21
21
|
"isbot": "^5.1.25",
|
|
22
22
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
23
23
|
"react-dom": "18.3.0-canary-14898b6a9-20240318"
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@react-router/dev": "^7.5.3",
|
|
12
12
|
"@react-router/fs-routes": "^7.5.3",
|
|
13
|
-
"@webstudio-is/image": "0.
|
|
14
|
-
"@webstudio-is/react-sdk": "0.
|
|
15
|
-
"@webstudio-is/sdk": "0.
|
|
16
|
-
"@webstudio-is/sdk-components-animation": "0.
|
|
17
|
-
"@webstudio-is/sdk-components-react-radix": "0.
|
|
18
|
-
"@webstudio-is/sdk-components-react-router": "0.
|
|
19
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
13
|
+
"@webstudio-is/image": "0.254.0",
|
|
14
|
+
"@webstudio-is/react-sdk": "0.254.0",
|
|
15
|
+
"@webstudio-is/sdk": "0.254.0",
|
|
16
|
+
"@webstudio-is/sdk-components-animation": "0.254.0",
|
|
17
|
+
"@webstudio-is/sdk-components-react-radix": "0.254.0",
|
|
18
|
+
"@webstudio-is/sdk-components-react-router": "0.254.0",
|
|
19
|
+
"@webstudio-is/sdk-components-react": "0.254.0",
|
|
20
20
|
"isbot": "^5.1.25",
|
|
21
21
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
22
22
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"typecheck": "tsgo --noEmit"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@webstudio-is/image": "0.
|
|
12
|
-
"@webstudio-is/react-sdk": "0.
|
|
13
|
-
"@webstudio-is/sdk": "0.
|
|
14
|
-
"@webstudio-is/sdk-components-react": "0.
|
|
15
|
-
"@webstudio-is/sdk-components-animation": "0.
|
|
16
|
-
"@webstudio-is/sdk-components-react-radix": "0.
|
|
11
|
+
"@webstudio-is/image": "0.254.0",
|
|
12
|
+
"@webstudio-is/react-sdk": "0.254.0",
|
|
13
|
+
"@webstudio-is/sdk": "0.254.0",
|
|
14
|
+
"@webstudio-is/sdk-components-react": "0.254.0",
|
|
15
|
+
"@webstudio-is/sdk-components-animation": "0.254.0",
|
|
16
|
+
"@webstudio-is/sdk-components-react-radix": "0.254.0",
|
|
17
17
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
18
18
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
19
19
|
"vike": "^0.4.229"
|