Skip to content

Commit faf5650

Browse files
committed
Add to fixture
1 parent da8a4be commit faf5650

File tree

6 files changed

+42
-18
lines changed

6 files changed

+42
-18
lines changed

fixtures/webstudio-remix-vercel/.webstudio/data.json

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"build": {
3-
"id": "00bc4703-0722-4929-9647-fbe0ae091b94",
3+
"id": "0ff71ecc-db91-41d0-ba52-26d2fc6c196d",
44
"projectId": "cddc1d44-af37-4cb6-a430-d300cf6f932d",
5-
"version": 392,
6-
"createdAt": "2024-12-02T14:50:20.265+00:00",
7-
"updatedAt": "2024-12-02T14:50:20.265+00:00",
5+
"version": 396,
6+
"createdAt": "2024-12-05T12:47:15.161+00:00",
7+
"updatedAt": "2024-12-05T12:47:15.161+00:00",
88
"pages": {
99
"meta": {
1010
"siteName": "KittyGuardedZone",
@@ -2857,6 +2857,16 @@
28572857
"type": "string",
28582858
"value": "title"
28592859
}
2860+
],
2861+
[
2862+
"q2FTulKKH-VEhZpaVqYoj",
2863+
{
2864+
"id": "q2FTulKKH-VEhZpaVqYoj",
2865+
"instanceId": "NBRETFGlP8H6t_1ZLbJ5J",
2866+
"name": "datetime",
2867+
"type": "string",
2868+
"value": "1733402818245"
2869+
}
28602870
]
28612871
],
28622872
"dataSources": [
@@ -4370,8 +4380,8 @@
43704380
"component": "XmlNode",
43714381
"children": [
43724382
{
4373-
"type": "text",
4374-
"value": "2020-10-10"
4383+
"type": "id",
4384+
"value": "NBRETFGlP8H6t_1ZLbJ5J"
43754385
}
43764386
]
43774387
}
@@ -4823,6 +4833,15 @@
48234833
"label": "Templates",
48244834
"children": []
48254835
}
4836+
],
4837+
[
4838+
"NBRETFGlP8H6t_1ZLbJ5J",
4839+
{
4840+
"type": "instance",
4841+
"id": "NBRETFGlP8H6t_1ZLbJ5J",
4842+
"component": "XmlTime",
4843+
"children": []
4844+
}
48264845
]
48274846
],
48284847
"deployment": {

fixtures/webstudio-remix-vercel/app/__generated__/$resources.sitemap.xml.ts

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fixtures/webstudio-remix-vercel/app/__generated__/[sitemap.xml]._index.tsx

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fixtures/webstudio-remix-vercel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"typecheck": "tsc",
77
"cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
88
"fixtures:link": "pnpm cli link --link https://p-cddc1d44-af37-4cb6-a430-d300cf6f932d-dot-${BUILDER_HOST:-main.development.webstudio.is}'?authToken=1cdc6026-dd5b-4624-b89b-9bd45e9bcc3d'",
9-
"fixtures:sync": "pnpm cli sync --buildId 00bc4703-0722-4929-9647-fbe0ae091b94 && pnpm prettier --write ./.webstudio/",
9+
"fixtures:sync": "pnpm cli sync --buildId 0ff71ecc-db91-41d0-ba52-26d2fc6c196d && pnpm prettier --write ./.webstudio/",
1010
"fixtures:build": "pnpm cli build --template vercel --template internal --preview && pnpm prettier --write ./app/ ./package.json ./tsconfig.json"
1111
},
1212
"private": true,

packages/cli/src/prebuild.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,13 +548,16 @@ export const prebuild = async (options: {
548548
case "xml":
549549
{
550550
// In case of xml it's the only component we are supporting
551-
componentImports = `import { XmlNode } from "@webstudio-is/sdk-components-react";\n`;
551+
componentImports = `import { XmlNode, XmlTime } from "@webstudio-is/sdk-components-react";\n`;
552552

553553
xmlPresentationComponents += Array.from(componentsSet)
554554
.map(([shortName, component]) =>
555555
scope.getName(component, shortName)
556556
)
557-
.filter((scopedName) => scopedName !== "XmlNode")
557+
.filter(
558+
(scopedName) =>
559+
scopedName !== "XmlNode" && scopedName !== "XmlTime"
560+
)
558561
.map((scopedName) =>
559562
scopedName === "Body"
560563
? // Using <svg> prevents React from hoisting elements like <title>, <meta>, and <link>

packages/sdk-components-react/src/xml-time.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const INITIAL_DATE_STRING = "dateTime attribute is not set";
66
const INVALID_DATE_STRING = "";
77

88
type XmlTimeProps = {
9-
dateStyle: "long" | "short";
9+
dateStyle?: "long" | "short";
1010
datetime: string;
1111
};
1212

0 commit comments

Comments
 (0)