Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

build: drop webstudio-custom-template fixture (#4834)

Bogdan Chadkin0eaf5c3c7a53
diff --git a/fixtures/webstudio-custom-template/.npmrc b/fixtures/webstudio-custom-template/.npmrc
deleted file mode 100644
index 43ce02f127..0000000000
--- a/fixtures/webstudio-custom-template/.npmrc
+++ /dev/null
@@ -1,3 +0,0 @@
-force=true
-# to support using NODE_OPTIONS for windows tests
-shell-emulator=true
diff --git a/fixtures/webstudio-custom-template/.webstudio/config.json b/fixtures/webstudio-custom-template/.webstudio/config.json
deleted file mode 100644
index 6d36358e5c..0000000000
--- a/fixtures/webstudio-custom-template/.webstudio/config.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "projectId": "0d856812-61d8-4014-a20a-82e01c0eb8ee"
-}
diff --git a/fixtures/webstudio-custom-template/.webstudio/data.json b/fixtures/webstudio-custom-template/.webstudio/data.json
deleted file mode 100644
index bb1df091fe..0000000000
--- a/fixtures/webstudio-custom-template/.webstudio/data.json
+++ /dev/null
@@ -1,2336 +0,0 @@
-{
- "build": {
- "id": "d48c7c5e-fdd3-4ef6-9173-ff2eaaf851d9",
- "projectId": "0d856812-61d8-4014-a20a-82e01c0eb8ee",
- "version": 244,
- "createdAt": "2024-05-06T21:23:44.086+00:00",
- "updatedAt": "2024-05-06T21:23:44.086+00:00",
- "pages": {
- "meta": {
- "siteName": "Fixture Site",
- "faviconAssetId": "cd1e9fad-8df1-45c6-800f-05fda2d2469f",
- "code": "<script>console.log('HELLO')</script>\n<meta property=\"saas:test\" content=\"test\">"
- },
- "redirects": [
- {
- "old": "/hello",
- "new": "/world",
- "status": "301"
- }
- ],
- "homePage": {
- "id": "nfzls_SkTc9jKYyxcZ8Lw",
- "name": "Home",
- "title": "\"Site Title\"",
- "meta": {
- "description": "\"Page description f511c297-b44f-4e4b-96bd-d013da06bada\"",
- "socialImageAssetId": "ff546bd2-9bb1-4717-a180-1a1fc05565dd"
- },
- "rootInstanceId": "ibXgMoi9_ipHx1gVrvii0",
- "systemDataSourceId": "_yJ0UuBlq2PEEobk8o_ku",
- "path": ""
- },
- "pages": [
- {
- "id": "xT46WZKzCBTvUCIObMELW",
- "name": "Script Test",
- "title": "\"Script Test\"",
- "meta": {
- "description": "\"\"",
- "excludePageFromSearch": "false",
- "socialImageAssetId": "",
- "custom": [
- {
- "property": "",
- "content": "\"\""
- }
- ]
- },
- "rootInstanceId": "LW98_-srDnnagkR10lsk4",
- "systemDataSourceId": "Mlo1vx1bhMUxPcNRfzESD",
- "path": "/script-test"
- },
- {
- "id": "lyz5sZaJ7WzLt71cX3VJ2",
- "name": "world",
- "title": "\"Untitled\"",
- "meta": {
- "description": "\"\"",
- "excludePageFromSearch": "false",
- "language": "\"ru\"",
- "socialImageUrl": "\"\"",
- "status": "200",
- "redirect": "\"\"",
- "custom": []
- },
- "rootInstanceId": "jDb2FuSK2-azIZxkH5XNv",
- "systemDataSourceId": "Zl0ZwsVkVbga9LehMyyQx",
- "path": "/world"
- },
- {
- "id": "2HLHiU2IwQkvfO0Uuodgo",
- "name": "sitemap.xml",
- "title": "\"Untitled\"",
- "meta": {
- "description": "\"\"",
- "excludePageFromSearch": "false",
- "language": "\"\"",
- "socialImageUrl": "\"\"",
- "status": "200",
- "redirect": "\"\"",
- "documentType": "xml",
- "custom": []
- },
- "rootInstanceId": "rve0BYRbzAkSCr3Lq-wzi",
- "systemDataSourceId": "6AKzkKHNkIHWUGJDCoXNz",
- "path": "/sitemap.xml"
- }
- ],
- "folders": [
- {
- "id": "root",
- "name": "Root",
- "slug": "",
- "children": [
- "nfzls_SkTc9jKYyxcZ8Lw",
- "xT46WZKzCBTvUCIObMELW",
- "lyz5sZaJ7WzLt71cX3VJ2",
- "2HLHiU2IwQkvfO0Uuodgo"
- ]
- }
- ]
- },
- "breakpoints": [
- [
- "mIDIDBHsdlix3RVZAVmv7",
- {
- "id": "mIDIDBHsdlix3RVZAVmv7",
- "label": "Base"
- }
- ],
- [
- "i96QYeYTHXPxfB_HOc1Yy",
- {
- "id": "i96QYeYTHXPxfB_HOc1Yy",
- "label": "Tablet",
- "maxWidth": 991
- }
- ],
- [
- "Khs__QBlUTJw8v4GU1-6R",
- {
- "id": "Khs__QBlUTJw8v4GU1-6R",
- "label": "Mobile landscape",
- "maxWidth": 767
- }
- ],
- [
- "RX7bPMPNIiqEdG__-RcTL",
- {
- "id": "RX7bPMPNIiqEdG__-RcTL",
- "label": "Mobile portrait",
- "maxWidth": 479
- }
- ]
- ],
- "styles": [
- [
- "NfeivFkbA_acBLVg7dn9P:mIDIDBHsdlix3RVZAVmv7:fontSize:",
- {
- "styleSourceId": "NfeivFkbA_acBLVg7dn9P",
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "property": "fontSize",
- "value": {
- "type": "unit",
- "unit": "em",
- "value": 4
- }
- }
- ],
- [
- "3h7-JvfKemCCCAoHL0Y5s:mIDIDBHsdlix3RVZAVmv7:marginTop:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "3h7-JvfKemCCCAoHL0Y5s",
- "property": "marginTop",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 15
- }
- }
- ],
- [
- "3h7-JvfKemCCCAoHL0Y5s:mIDIDBHsdlix3RVZAVmv7:marginBottom:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "3h7-JvfKemCCCAoHL0Y5s",
- "property": "marginBottom",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 15
- }
- }
- ],
- [
- "3h7-JvfKemCCCAoHL0Y5s:mIDIDBHsdlix3RVZAVmv7:marginRight:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "3h7-JvfKemCCCAoHL0Y5s",
- "property": "marginRight",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 15
- }
- }
- ],
- [
- "3h7-JvfKemCCCAoHL0Y5s:mIDIDBHsdlix3RVZAVmv7:marginLeft:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "3h7-JvfKemCCCAoHL0Y5s",
- "property": "marginLeft",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 15
- }
- }
- ],
- [
- "mOA5iiy4M-QrmmO22O02y:mIDIDBHsdlix3RVZAVmv7:marginTop:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "mOA5iiy4M-QrmmO22O02y",
- "property": "marginTop",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 15
- }
- }
- ],
- [
- "mOA5iiy4M-QrmmO22O02y:mIDIDBHsdlix3RVZAVmv7:marginRight:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "mOA5iiy4M-QrmmO22O02y",
- "property": "marginRight",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 15
- }
- }
- ],
- [
- "mOA5iiy4M-QrmmO22O02y:mIDIDBHsdlix3RVZAVmv7:marginBottom:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "mOA5iiy4M-QrmmO22O02y",
- "property": "marginBottom",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 15
- }
- }
- ],
- [
- "mOA5iiy4M-QrmmO22O02y:mIDIDBHsdlix3RVZAVmv7:marginLeft:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "mOA5iiy4M-QrmmO22O02y",
- "property": "marginLeft",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 15
- }
- }
- ],
- [
- "NfeivFkbA_acBLVg7dn9P:mIDIDBHsdlix3RVZAVmv7:fontFamily:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "NfeivFkbA_acBLVg7dn9P",
- "property": "fontFamily",
- "value": {
- "type": "fontFamily",
- "value": ["Cormorant Garamond"]
- }
- }
- ],
- [
- "NfeivFkbA_acBLVg7dn9P:mIDIDBHsdlix3RVZAVmv7:backgroundAttachment:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "NfeivFkbA_acBLVg7dn9P",
- "property": "backgroundAttachment",
- "value": {
- "type": "layers",
- "value": [
- {
- "type": "keyword",
- "value": "scroll"
- },
- {
- "type": "keyword",
- "value": "scroll"
- },
- {
- "type": "keyword",
- "value": "scroll"
- }
- ]
- }
- }
- ],
- [
- "NfeivFkbA_acBLVg7dn9P:mIDIDBHsdlix3RVZAVmv7:backgroundClip:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "NfeivFkbA_acBLVg7dn9P",
- "property": "backgroundClip",
- "value": {
- "type": "layers",
- "value": [
- {
- "type": "keyword",
- "value": "border-box"
- },
- {
- "type": "keyword",
- "value": "border-box"
- },
- {
- "type": "keyword",
- "value": "border-box"
- }
- ]
- }
- }
- ],
- [
- "NfeivFkbA_acBLVg7dn9P:mIDIDBHsdlix3RVZAVmv7:backgroundBlendMode:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "NfeivFkbA_acBLVg7dn9P",
- "property": "backgroundBlendMode",
- "value": {
- "type": "layers",
- "value": [
- {
- "type": "keyword",
- "value": "normal"
- },
- {
- "type": "keyword",
- "value": "normal"
- },
- {
- "type": "keyword",
- "value": "normal"
- }
- ]
- }
- }
- ],
- [
- "NfeivFkbA_acBLVg7dn9P:mIDIDBHsdlix3RVZAVmv7:backgroundImage:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "NfeivFkbA_acBLVg7dn9P",
- "property": "backgroundImage",
- "value": {
- "type": "layers",
- "value": [
- {
- "type": "unparsed",
- "value": "linear-gradient(rgba(255,0,0,0.2),rgba(0,255,255,0.2))"
- },
- {
- "type": "image",
- "value": {
- "type": "asset",
- "value": "cd1e9fad-8df1-45c6-800f-05fda2d2469f"
- }
- },
- {
- "type": "unparsed",
- "value": "linear-gradient(to right,rgba(255,0,255,0.2),rgba(0,255,0,0.2))"
- }
- ]
- }
- }
- ],
- [
- "NfeivFkbA_acBLVg7dn9P:mIDIDBHsdlix3RVZAVmv7:backgroundOrigin:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "NfeivFkbA_acBLVg7dn9P",
- "property": "backgroundOrigin",
- "value": {
- "type": "layers",
- "value": [
- {
- "type": "keyword",
- "value": "padding-box"
- },
- {
- "type": "keyword",
- "value": "padding-box"
- },
- {
- "type": "keyword",
- "value": "padding-box"
- }
- ]
- }
- }
- ],
- [
- "NfeivFkbA_acBLVg7dn9P:mIDIDBHsdlix3RVZAVmv7:backgroundPosition:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "NfeivFkbA_acBLVg7dn9P",
- "property": "backgroundPosition",
- "value": {
- "type": "layers",
- "value": [
- {
- "type": "unit",
- "value": 0,
- "unit": "%"
- },
- {
- "type": "unit",
- "value": 0,
- "unit": "%"
- },
- {
- "type": "unit",
- "value": 0,
- "unit": "%"
- }
- ]
- }
- }
- ],
- [
- "NfeivFkbA_acBLVg7dn9P:mIDIDBHsdlix3RVZAVmv7:backgroundRepeat:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "NfeivFkbA_acBLVg7dn9P",
- "property": "backgroundRepeat",
- "value": {
- "type": "layers",
- "value": [
- {
- "type": "keyword",
- "value": "repeat"
- },
- {
- "type": "keyword",
- "value": "repeat"
- },
- {
- "type": "keyword",
- "value": "repeat"
- }
- ]
- }
- }
- ],
- [
- "NfeivFkbA_acBLVg7dn9P:mIDIDBHsdlix3RVZAVmv7:backgroundSize:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "NfeivFkbA_acBLVg7dn9P",
- "property": "backgroundSize",
- "value": {
- "type": "layers",
- "value": [
- {
- "type": "keyword",
- "value": "auto"
- },
- {
- "type": "keyword",
- "value": "auto"
- },
- {
- "type": "keyword",
- "value": "auto"
- }
- ]
- }
- }
- ],
- [
- "tYL7DJNi2pIpMoHAxdNq8:mIDIDBHsdlix3RVZAVmv7:position:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "tYL7DJNi2pIpMoHAxdNq8",
- "property": "position",
- "value": {
- "type": "keyword",
- "value": "relative"
- }
- }
- ],
- [
- "tYL7DJNi2pIpMoHAxdNq8:mIDIDBHsdlix3RVZAVmv7:aspectRatio:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "tYL7DJNi2pIpMoHAxdNq8",
- "property": "aspectRatio",
- "value": {
- "type": "keyword",
- "value": "640/360"
- }
- }
- ],
- [
- "tYL7DJNi2pIpMoHAxdNq8:mIDIDBHsdlix3RVZAVmv7:width:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "tYL7DJNi2pIpMoHAxdNq8",
- "property": "width",
- "value": {
- "type": "unit",
- "value": 100,
- "unit": "%"
- }
- }
- ],
- [
- "ixkvvPZFAtSwSpcU7iwQh:mIDIDBHsdlix3RVZAVmv7:position:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ixkvvPZFAtSwSpcU7iwQh",
- "property": "position",
- "value": {
- "type": "keyword",
- "value": "absolute"
- }
- }
- ],
- [
- "ixkvvPZFAtSwSpcU7iwQh:mIDIDBHsdlix3RVZAVmv7:objectFit:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ixkvvPZFAtSwSpcU7iwQh",
- "property": "objectFit",
- "value": {
- "type": "keyword",
- "value": "cover"
- }
- }
- ],
- [
- "ixkvvPZFAtSwSpcU7iwQh:mIDIDBHsdlix3RVZAVmv7:width:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ixkvvPZFAtSwSpcU7iwQh",
- "property": "width",
- "value": {
- "type": "unit",
- "value": 100,
- "unit": "%"
- }
- }
- ],
- [
- "ixkvvPZFAtSwSpcU7iwQh:mIDIDBHsdlix3RVZAVmv7:height:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ixkvvPZFAtSwSpcU7iwQh",
- "property": "height",
- "value": {
- "type": "unit",
- "value": 100,
- "unit": "%"
- }
- }
- ],
- [
- "ixkvvPZFAtSwSpcU7iwQh:mIDIDBHsdlix3RVZAVmv7:borderTopLeftRadius:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ixkvvPZFAtSwSpcU7iwQh",
- "property": "borderTopLeftRadius",
- "value": {
- "type": "unit",
- "value": 20,
- "unit": "px"
- }
- }
- ],
- [
- "ixkvvPZFAtSwSpcU7iwQh:mIDIDBHsdlix3RVZAVmv7:borderTopRightRadius:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ixkvvPZFAtSwSpcU7iwQh",
- "property": "borderTopRightRadius",
- "value": {
- "type": "unit",
- "value": 20,
- "unit": "px"
- }
- }
- ],
- [
- "ixkvvPZFAtSwSpcU7iwQh:mIDIDBHsdlix3RVZAVmv7:borderBottomLeftRadius:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ixkvvPZFAtSwSpcU7iwQh",
- "property": "borderBottomLeftRadius",
- "value": {
- "type": "unit",
- "value": 20,
- "unit": "px"
- }
- }
- ],
- [
- "ixkvvPZFAtSwSpcU7iwQh:mIDIDBHsdlix3RVZAVmv7:borderBottomRightRadius:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ixkvvPZFAtSwSpcU7iwQh",
- "property": "borderBottomRightRadius",
- "value": {
- "type": "unit",
- "value": 20,
- "unit": "px"
- }
- }
- ],
- [
- "ixkvvPZFAtSwSpcU7iwQh:mIDIDBHsdlix3RVZAVmv7:objectPosition:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ixkvvPZFAtSwSpcU7iwQh",
- "property": "objectPosition",
- "value": {
- "type": "keyword",
- "value": "cover"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:position:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "position",
- "value": {
- "type": "keyword",
- "value": "absolute"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:width:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "width",
- "value": {
- "type": "unit",
- "value": 140,
- "unit": "px"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:height:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "height",
- "value": {
- "type": "unit",
- "value": 80,
- "unit": "px"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:top:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "top",
- "value": {
- "type": "unit",
- "value": 50,
- "unit": "%"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:left:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "left",
- "value": {
- "type": "unit",
- "value": 50,
- "unit": "%"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:marginTop:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "marginTop",
- "value": {
- "type": "unit",
- "value": -40,
- "unit": "px"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:marginLeft:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "marginLeft",
- "value": {
- "type": "unit",
- "value": -70,
- "unit": "px"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:display:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "display",
- "value": {
- "type": "keyword",
- "value": "flex"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:alignItems:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "alignItems",
- "value": {
- "type": "keyword",
- "value": "center"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:justifyContent:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "justifyContent",
- "value": {
- "type": "keyword",
- "value": "center"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:borderTopStyle:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "borderTopStyle",
- "value": {
- "type": "keyword",
- "value": "none"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:borderRightStyle:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "borderRightStyle",
- "value": {
- "type": "keyword",
- "value": "none"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:borderBottomStyle:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "borderBottomStyle",
- "value": {
- "type": "keyword",
- "value": "none"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:borderLeftStyle:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "borderLeftStyle",
- "value": {
- "type": "keyword",
- "value": "none"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:borderTopLeftRadius:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "borderTopLeftRadius",
- "value": {
- "type": "unit",
- "value": 5,
- "unit": "px"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:borderTopRightRadius:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "borderTopRightRadius",
- "value": {
- "type": "unit",
- "value": 5,
- "unit": "px"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:borderBottomLeftRadius:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "borderBottomLeftRadius",
- "value": {
- "type": "unit",
- "value": 5,
- "unit": "px"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:borderBottomRightRadius:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "borderBottomRightRadius",
- "value": {
- "type": "unit",
- "value": 5,
- "unit": "px"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:cursor:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "cursor",
- "value": {
- "type": "keyword",
- "value": "pointer"
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:backgroundColor:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "backgroundColor",
- "value": {
- "type": "rgb",
- "r": 18,
- "g": 18,
- "b": 18,
- "alpha": 1
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:color:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "property": "color",
- "value": {
- "type": "rgb",
- "r": 255,
- "g": 255,
- "b": 255,
- "alpha": 1
- }
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR:mIDIDBHsdlix3RVZAVmv7:backgroundColor::hover",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "ApzUnwi68P0pA75K1vbPR",
- "state": ":hover",
- "property": "backgroundColor",
- "value": {
- "type": "rgb",
- "r": 0,
- "g": 173,
- "b": 239,
- "alpha": 1
- }
- }
- ],
- [
- "FCu7u7zKAdzeUgaXaNtNm:mIDIDBHsdlix3RVZAVmv7:width:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "FCu7u7zKAdzeUgaXaNtNm",
- "property": "width",
- "value": {
- "type": "unit",
- "value": 60,
- "unit": "px"
- }
- }
- ],
- [
- "FCu7u7zKAdzeUgaXaNtNm:mIDIDBHsdlix3RVZAVmv7:height:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "FCu7u7zKAdzeUgaXaNtNm",
- "property": "height",
- "value": {
- "type": "unit",
- "value": 60,
- "unit": "px"
- }
- }
- ],
- [
- "8v4JU2TDZLCT4lVpVhiUW:mIDIDBHsdlix3RVZAVmv7:position:",
- {
- "styleSourceId": "8v4JU2TDZLCT4lVpVhiUW",
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "property": "position",
- "value": {
- "type": "keyword",
- "value": "absolute"
- }
- }
- ],
- [
- "8v4JU2TDZLCT4lVpVhiUW:mIDIDBHsdlix3RVZAVmv7:top:",
- {
- "styleSourceId": "8v4JU2TDZLCT4lVpVhiUW",
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "property": "top",
- "value": {
- "type": "unit",
- "unit": "%",
- "value": 50
- }
- }
- ],
- [
- "8v4JU2TDZLCT4lVpVhiUW:mIDIDBHsdlix3RVZAVmv7:left:",
- {
- "styleSourceId": "8v4JU2TDZLCT4lVpVhiUW",
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "property": "left",
- "value": {
- "type": "unit",
- "unit": "%",
- "value": 50
- }
- }
- ],
- [
- "8v4JU2TDZLCT4lVpVhiUW:mIDIDBHsdlix3RVZAVmv7:width:",
- {
- "styleSourceId": "8v4JU2TDZLCT4lVpVhiUW",
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "property": "width",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 70
- }
- }
- ],
- [
- "8v4JU2TDZLCT4lVpVhiUW:mIDIDBHsdlix3RVZAVmv7:height:",
- {
- "styleSourceId": "8v4JU2TDZLCT4lVpVhiUW",
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "property": "height",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 70
- }
- }
- ],
- [
- "8v4JU2TDZLCT4lVpVhiUW:mIDIDBHsdlix3RVZAVmv7:marginTop:",
- {
- "styleSourceId": "8v4JU2TDZLCT4lVpVhiUW",
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "property": "marginTop",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": -35
- }
- }
- ],
- [
- "8v4JU2TDZLCT4lVpVhiUW:mIDIDBHsdlix3RVZAVmv7:marginLeft:",
- {
- "styleSourceId": "8v4JU2TDZLCT4lVpVhiUW",
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "property": "marginLeft",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": -35
- }
- }
- ],
- [
- "8DRXBfAN4aGdHBDAYAzO7:mIDIDBHsdlix3RVZAVmv7:display:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "8DRXBfAN4aGdHBDAYAzO7",
- "property": "display",
- "value": {
- "type": "keyword",
- "value": "flex"
- }
- }
- ],
- [
- "8DRXBfAN4aGdHBDAYAzO7:mIDIDBHsdlix3RVZAVmv7:flexDirection:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "8DRXBfAN4aGdHBDAYAzO7",
- "property": "flexDirection",
- "value": {
- "type": "keyword",
- "value": "row"
- }
- }
- ],
- [
- "8DRXBfAN4aGdHBDAYAzO7:mIDIDBHsdlix3RVZAVmv7:flexWrap:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "8DRXBfAN4aGdHBDAYAzO7",
- "property": "flexWrap",
- "value": {
- "type": "keyword",
- "value": "nowrap"
- }
- }
- ],
- [
- "8DRXBfAN4aGdHBDAYAzO7:mIDIDBHsdlix3RVZAVmv7:alignItems:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "8DRXBfAN4aGdHBDAYAzO7",
- "property": "alignItems",
- "value": {
- "type": "keyword",
- "value": "stretch"
- }
- }
- ],
- [
- "8DRXBfAN4aGdHBDAYAzO7:mIDIDBHsdlix3RVZAVmv7:justifyContent:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "8DRXBfAN4aGdHBDAYAzO7",
- "property": "justifyContent",
- "value": {
- "type": "keyword",
- "value": "space-between"
- }
- }
- ],
- [
- "C94MB7fijp2s_2QUOj3Q2:mIDIDBHsdlix3RVZAVmv7:flexGrow:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "C94MB7fijp2s_2QUOj3Q2",
- "property": "flexGrow",
- "value": {
- "type": "unit",
- "unit": "number",
- "value": 1
- }
- }
- ],
- [
- "C94MB7fijp2s_2QUOj3Q2:mIDIDBHsdlix3RVZAVmv7:flexShrink:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "C94MB7fijp2s_2QUOj3Q2",
- "property": "flexShrink",
- "value": {
- "type": "unit",
- "unit": "number",
- "value": 0
- }
- }
- ],
- [
- "jGTUoz0ux0EK-bikmqnw7:mIDIDBHsdlix3RVZAVmv7:flexGrow:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "jGTUoz0ux0EK-bikmqnw7",
- "property": "flexGrow",
- "value": {
- "type": "unit",
- "unit": "number",
- "value": 1
- }
- }
- ],
- [
- "jGTUoz0ux0EK-bikmqnw7:mIDIDBHsdlix3RVZAVmv7:flexShrink:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "jGTUoz0ux0EK-bikmqnw7",
- "property": "flexShrink",
- "value": {
- "type": "unit",
- "unit": "number",
- "value": 0
- }
- }
- ],
- [
- "jGTUoz0ux0EK-bikmqnw7:mIDIDBHsdlix3RVZAVmv7:minWidth:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "jGTUoz0ux0EK-bikmqnw7",
- "property": "minWidth",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 0
- }
- }
- ],
- [
- "C94MB7fijp2s_2QUOj3Q2:mIDIDBHsdlix3RVZAVmv7:minWidth:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "C94MB7fijp2s_2QUOj3Q2",
- "property": "minWidth",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 0
- }
- }
- ],
- [
- "jGTUoz0ux0EK-bikmqnw7:mIDIDBHsdlix3RVZAVmv7:flexBasis:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "jGTUoz0ux0EK-bikmqnw7",
- "property": "flexBasis",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 0
- }
- }
- ],
- [
- "C94MB7fijp2s_2QUOj3Q2:mIDIDBHsdlix3RVZAVmv7:flexBasis:",
- {
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "styleSourceId": "C94MB7fijp2s_2QUOj3Q2",
- "property": "flexBasis",
- "value": {
- "type": "unit",
- "unit": "px",
- "value": 0
- }
- }
- ],
- [
- "3JNfFwmMATeV1bH2RfBgF:mIDIDBHsdlix3RVZAVmv7:color:",
- {
- "styleSourceId": "3JNfFwmMATeV1bH2RfBgF",
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "property": "color",
- "value": {
- "type": "rgb",
- "r": 36,
- "g": 12,
- "b": 233,
- "alpha": 1
- }
- }
- ],
- [
- "nS9BC-b89uRhQ6jI-6el4:mIDIDBHsdlix3RVZAVmv7:color:",
- {
- "styleSourceId": "nS9BC-b89uRhQ6jI-6el4",
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "property": "color",
- "value": {
- "type": "rgb",
- "r": 8,
- "g": 137,
- "b": 17,
- "alpha": 1
- }
- }
- ],
- [
- "iBzrDKfBww47SfmKZnSMO:mIDIDBHsdlix3RVZAVmv7:color:",
- {
- "styleSourceId": "iBzrDKfBww47SfmKZnSMO",
- "breakpointId": "mIDIDBHsdlix3RVZAVmv7",
- "property": "color",
- "value": {
- "type": "rgb",
- "r": 208,
- "g": 24,
- "b": 79,
- "alpha": 1
- }
- }
- ]
- ],
- "styleSources": [
- [
- "NfeivFkbA_acBLVg7dn9P",
- {
- "type": "local",
- "id": "NfeivFkbA_acBLVg7dn9P"
- }
- ],
- [
- "3h7-JvfKemCCCAoHL0Y5s",
- {
- "type": "local",
- "id": "3h7-JvfKemCCCAoHL0Y5s"
- }
- ],
- [
- "mOA5iiy4M-QrmmO22O02y",
- {
- "type": "local",
- "id": "mOA5iiy4M-QrmmO22O02y"
- }
- ],
- [
- "tYL7DJNi2pIpMoHAxdNq8",
- {
- "type": "local",
- "id": "tYL7DJNi2pIpMoHAxdNq8"
- }
- ],
- [
- "ixkvvPZFAtSwSpcU7iwQh",
- {
- "type": "local",
- "id": "ixkvvPZFAtSwSpcU7iwQh"
- }
- ],
- [
- "ApzUnwi68P0pA75K1vbPR",
- {
- "type": "local",
- "id": "ApzUnwi68P0pA75K1vbPR"
- }
- ],
- [
- "FCu7u7zKAdzeUgaXaNtNm",
- {
- "type": "local",
- "id": "FCu7u7zKAdzeUgaXaNtNm"
- }
- ],
- [
- "8v4JU2TDZLCT4lVpVhiUW",
- {
- "type": "local",
- "id": "8v4JU2TDZLCT4lVpVhiUW"
- }
- ],
- [
- "8DRXBfAN4aGdHBDAYAzO7",
- {
- "type": "local",
- "id": "8DRXBfAN4aGdHBDAYAzO7"
- }
- ],
- [
- "C94MB7fijp2s_2QUOj3Q2",
- {
- "type": "local",
- "id": "C94MB7fijp2s_2QUOj3Q2"
- }
- ],
- [
- "jGTUoz0ux0EK-bikmqnw7",
- {
- "type": "local",
- "id": "jGTUoz0ux0EK-bikmqnw7"
- }
- ],
- [
- "3JNfFwmMATeV1bH2RfBgF",
- {
- "type": "token",
- "id": "3JNfFwmMATeV1bH2RfBgF",
- "name": "color:url"
- }
- ],
- [
- "nS9BC-b89uRhQ6jI-6el4",
- {
- "type": "token",
- "id": "nS9BC-b89uRhQ6jI-6el4",
- "name": "color:loc"
- }
- ],
- [
- "iBzrDKfBww47SfmKZnSMO",
- {
- "type": "token",
- "id": "iBzrDKfBww47SfmKZnSMO",
- "name": "color:lastmod"
- }
- ]
- ],
- "styleSourceSelections": [
- [
- "7pwqBSgrfuuOfk1JblWcL",
- {
- "instanceId": "7pwqBSgrfuuOfk1JblWcL",
- "values": ["NfeivFkbA_acBLVg7dn9P"]
- }
- ],
- [
- "LW98_-srDnnagkR10lsk4",
- {
- "instanceId": "LW98_-srDnnagkR10lsk4",
- "values": ["3h7-JvfKemCCCAoHL0Y5s"]
- }
- ],
- [
- "ibXgMoi9_ipHx1gVrvii0",
- {
- "instanceId": "ibXgMoi9_ipHx1gVrvii0",
- "values": ["mOA5iiy4M-QrmmO22O02y"]
- }
- ],
- [
- "ZkDuD4HlHP3pDdp0SXJuh",
- {
- "instanceId": "ZkDuD4HlHP3pDdp0SXJuh",
- "values": ["tYL7DJNi2pIpMoHAxdNq8"]
- }
- ],
- [
- "wxd8Wul8dl2yPRFFedNn6",
- {
- "instanceId": "wxd8Wul8dl2yPRFFedNn6",
- "values": ["ixkvvPZFAtSwSpcU7iwQh"]
- }
- ],
- [
- "9hBBPGSf7hB30ZkSHKjNd",
- {
- "instanceId": "9hBBPGSf7hB30ZkSHKjNd",
- "values": ["ApzUnwi68P0pA75K1vbPR"]
- }
- ],
- [
- "D__QElBIIQtamhJN3a4FI",
- {
- "instanceId": "D__QElBIIQtamhJN3a4FI",
- "values": ["FCu7u7zKAdzeUgaXaNtNm"]
- }
- ],
- [
- "o8sAMUoaOraWYZClEfRgl",
- {
- "instanceId": "o8sAMUoaOraWYZClEfRgl",
- "values": ["8v4JU2TDZLCT4lVpVhiUW"]
- }
- ],
- [
- "GMg3Wi9tJBFMtKcwbIK6z",
- {
- "instanceId": "GMg3Wi9tJBFMtKcwbIK6z",
- "values": ["8DRXBfAN4aGdHBDAYAzO7"]
- }
- ],
- [
- "Mfd_mI-VJtT4r7gICAvXi",
- {
- "instanceId": "Mfd_mI-VJtT4r7gICAvXi",
- "values": ["C94MB7fijp2s_2QUOj3Q2"]
- }
- ],
- [
- "COafOppxs73Ne4O0Geik0",
- {
- "instanceId": "COafOppxs73Ne4O0Geik0",
- "values": ["jGTUoz0ux0EK-bikmqnw7"]
- }
- ]
- ],
- "props": [
- [
- "FbOz0nU4WCUd8WVU-Zit_",
- {
- "id": "FbOz0nU4WCUd8WVU-Zit_",
- "instanceId": "QzTSoZnbGD6luZ5xcv893",
- "name": "href",
- "type": "page",
- "value": "xT46WZKzCBTvUCIObMELW"
- }
- ],
- [
- "9gSir7lU2Gr0wxmjoUH5F",
- {
- "id": "9gSir7lU2Gr0wxmjoUH5F",
- "instanceId": "8MXByradrqVRiGSyHI0aH",
- "name": "href",
- "type": "page",
- "value": "nfzls_SkTc9jKYyxcZ8Lw"
- }
- ],
- [
- "5o774rM2fqVYhXm5ZSVHK",
- {
- "id": "5o774rM2fqVYhXm5ZSVHK",
- "instanceId": "wxd8Wul8dl2yPRFFedNn6",
- "name": "alt",
- "type": "string",
- "value": "Vimeo video preview image"
- }
- ],
- [
- "2e_opKEWGaCwfU9goKhL1",
- {
- "id": "2e_opKEWGaCwfU9goKhL1",
- "instanceId": "wxd8Wul8dl2yPRFFedNn6",
- "name": "sizes",
- "type": "string",
- "value": "100vw"
- }
- ],
- [
- "A5QmGCZRWs8UDa64ZfLt1",
- {
- "id": "A5QmGCZRWs8UDa64ZfLt1",
- "instanceId": "9hBBPGSf7hB30ZkSHKjNd",
- "name": "aria-label",
- "type": "string",
- "value": "Play button"
- }
- ],
- [
- "XfG3W6G3TluxiNMs7pI9A",
- {
- "id": "XfG3W6G3TluxiNMs7pI9A",
- "instanceId": "D__QElBIIQtamhJN3a4FI",
- "name": "aria-hidden",
- "type": "string",
- "value": "true"
- }
- ],
- [
- "vxkUoSK7DDwfK0C3Y4cQE",
- {
- "id": "vxkUoSK7DDwfK0C3Y4cQE",
- "instanceId": "iEc6hab-WardXZc5P9wJu",
- "name": "code",
- "type": "string",
- "value": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 22 22\" fill=\"currentColor\" width=\"100%\" height=\"100%\" style=\"display: block;\"><path d=\"M4.766 5.765c0-.725 0-1.088.178-1.288a.93.93 0 0 1 .648-.294c.294-.015.65.186 1.359.588l9.234 5.235c.586.332.88.498.982.708.09.183.09.389 0 .572-.102.21-.396.376-.982.708l-9.234 5.235c-.71.402-1.065.603-1.359.588a.93.93 0 0 1-.648-.294c-.178-.2-.178-.563-.178-1.288V5.765Z\"/></svg>"
- }
- ],
- [
- "HarVIKqJbGBdqOYfD12Oy",
- {
- "id": "HarVIKqJbGBdqOYfD12Oy",
- "instanceId": "ZkDuD4HlHP3pDdp0SXJuh",
- "name": "url",
- "type": "string",
- "value": "https://player.vimeo.com/video/831343124"
- }
- ],
- [
- "UOz9lmjTCpyqgwHS9se8s",
- {
- "id": "UOz9lmjTCpyqgwHS9se8s",
- "instanceId": "ZkDuD4HlHP3pDdp0SXJuh",
- "name": "showPreview",
- "type": "boolean",
- "value": true
- }
- ],
- [
- "EKvJtc95E_1T_DYMRsaOR",
- {
- "id": "EKvJtc95E_1T_DYMRsaOR",
- "instanceId": "wxd8Wul8dl2yPRFFedNn6",
- "name": "src",
- "type": "asset",
- "value": "cd1e9fad-8df1-45c6-800f-05fda2d2469f"
- }
- ],
- [
- "sA69O2yOITdCdJq7fHtGe",
- {
- "id": "sA69O2yOITdCdJq7fHtGe",
- "instanceId": "9hBBPGSf7hB30ZkSHKjNd",
- "name": "data-ws-show",
- "type": "boolean",
- "value": true
- }
- ],
- [
- "Aw5e3-tzDR1bLN2yDJaJd",
- {
- "id": "Aw5e3-tzDR1bLN2yDJaJd",
- "instanceId": "BeQ7sgDlUizFvf4aHqOsh",
- "name": "code",
- "type": "string",
- "value": "<svg xmlns=\"http://www.w3.org/2000/svg\" id=\"e2CRglijn891\" shape-rendering=\"geometricPrecision\" text-rendering=\"geometricPrecision\" viewBox=\"0 0 128 128\" fill=\"currentColor\" width=\"100%\" height=\"100%\" style=\"display: block;\"><style>@keyframes e2CRglijn892_tr__tr{0%{transform:translate(64px,64px) rotate(90deg);animation-timing-function:cubic-bezier(.42,0,.58,1)}50%{transform:translate(64px,64px) rotate(810deg);animation-timing-function:cubic-bezier(.42,0,.58,1)}to{transform:translate(64px,64px) rotate(1530deg)}}@keyframes e2CRglijn892_s_p{0%,to{stroke:#39fbbb}25%{stroke:#4a4efa}50%{stroke:#e63cfe}75%{stroke:#ffae3c}}@keyframes e2CRglijn892_s_do{0%{stroke-dashoffset:251.89}2.5%,52.5%{stroke-dashoffset:263.88;animation-timing-function:cubic-bezier(.42,0,.58,1)}25%,75%{stroke-dashoffset:131.945}to{stroke-dashoffset:251.885909}}#e2CRglijn892_tr{animation:e2CRglijn892_tr__tr 3000ms linear infinite normal forwards}#e2CRglijn892{animation-name:e2CRglijn892_s_p,e2CRglijn892_s_do;animation-duration:3000ms;animation-fill-mode:forwards;animation-timing-function:linear;animation-direction:normal;animation-iteration-count:infinite}</style><g id=\"e2CRglijn892_tr\" transform=\"translate(64,64) rotate(90)\"><circle id=\"e2CRglijn892\" r=\"42\" fill=\"none\" stroke=\"#39fbbb\" stroke-dasharray=\"263.89\" stroke-dashoffset=\"251.89\" stroke-linecap=\"round\" stroke-width=\"16\" transform=\"scale(-1,1) translate(0,0)\"/></g></svg>"
- }
- ],
- [
- "HccBQDPiEV84beaGE77Ko",
- {
- "id": "HccBQDPiEV84beaGE77Ko",
- "instanceId": "BeQ7sgDlUizFvf4aHqOsh",
- "name": "executeScriptOnCanvas",
- "type": "boolean",
- "value": false
- }
- ],
- [
- "iqfFtqv6cjN4nb3w91dNq",
- {
- "id": "iqfFtqv6cjN4nb3w91dNq",
- "instanceId": "ffuOk2adQRwdmAPbN0C02",
- "name": "code",
- "type": "string",
- "value": "<script>console.log('PAGE MAIN SSR')</script>\n<script>console.log('PAGE MAIN 2 SSR')</script>\nSCRIPTS ARE HERE <br>"
- }
- ],
- [
- "K1pxEPsRa_Nt-wkIQEfjY",
- {
- "id": "K1pxEPsRa_Nt-wkIQEfjY",
- "instanceId": "fx0TfnvHfudZ99agcyokN",
- "name": "code",
- "type": "string",
- "value": "<br>\n<script>console.log('SCRIPT TEST SSR')</script>\n<script>console.log('SCRIPT TEST SSR 2')</script>\nSCRIPTS ARE HERE 2<br>"
- }
- ],
- [
- "unR2CL4WDfk00zIJpg8u_",
- {
- "id": "unR2CL4WDfk00zIJpg8u_",
- "instanceId": "PI0W8MDhnG1glS5zDm8HQ",
- "name": "code",
- "type": "string",
- "value": "<script>console.log('PAGE MAIN Client')</script>\n<script>console.log('PAGE MAIN 2 Client')</script>\nSCRIPTS ARE HERE <br>"
- }
- ],
- [
- "jrV4n4y5NOVhwRIDKkuo-",
- {
- "id": "jrV4n4y5NOVhwRIDKkuo-",
- "instanceId": "PI0W8MDhnG1glS5zDm8HQ",
- "name": "clientOnly",
- "type": "boolean",
- "value": true
- }
- ],
- [
- "jGj9meMRShEuCpWmHRy91",
- {
- "id": "jGj9meMRShEuCpWmHRy91",
- "instanceId": "evFyHvPu9rGzKojoj723b",
- "name": "code",
- "type": "string",
- "value": "<script>console.log('SCRIPTS TEST Client')</script>\n<script>console.log('SCRIPTS TEST 2 Client')</script>\nSCRIPTS ARE HERE <br>"
- }
- ],
- [
- "H2no86fAFL-WHxdVu6CJ4",
- {
- "id": "H2no86fAFL-WHxdVu6CJ4",
- "instanceId": "evFyHvPu9rGzKojoj723b",
- "name": "clientOnly",
- "type": "boolean",
- "value": true
- }
- ],
- [
- "F2bI126ek5RVoDUJB_cBS",
- {
- "id": "F2bI126ek5RVoDUJB_cBS",
- "instanceId": "Mfd_mI-VJtT4r7gICAvXi",
- "name": "src",
- "type": "asset",
- "value": "ff546bd2-9bb1-4717-a180-1a1fc05565dd"
- }
- ],
- [
- "svEkyjh1QjPy1V-AC2QSO",
- {
- "id": "svEkyjh1QjPy1V-AC2QSO",
- "instanceId": "Mfd_mI-VJtT4r7gICAvXi",
- "name": "width",
- "type": "number",
- "value": 1024
- }
- ],
- [
- "ovmO9Tv4LzIYLYRsu_L2z",
- {
- "id": "ovmO9Tv4LzIYLYRsu_L2z",
- "instanceId": "Mfd_mI-VJtT4r7gICAvXi",
- "name": "height",
- "type": "number",
- "value": 1024
- }
- ],
- [
- "g0jOVrFDusEjaGcraMHBo",
- {
- "id": "g0jOVrFDusEjaGcraMHBo",
- "instanceId": "PjSYDNWuQ4oIg52BShwxB",
- "name": "data",
- "type": "expression",
- "value": "$ws$dataSource$kysfQMiYfpyLK8Z0BwHTn.data"
- }
- ],
- [
- "PUdpnvEE2lyVs7OfBwc7T",
- {
- "id": "PUdpnvEE2lyVs7OfBwc7T",
- "instanceId": "PjSYDNWuQ4oIg52BShwxB",
- "name": "item",
- "type": "parameter",
- "value": "C3teXw_3uxq4VBGE_J2yo"
- }
- ],
- [
- "9JRtdabNdYoyqICQaqsF4",
- {
- "id": "9JRtdabNdYoyqICQaqsF4",
- "instanceId": "SKzEKWw1VtVVFvUcIWuUp",
- "name": "tag",
- "type": "string",
- "value": "url"
- }
- ],
- [
- "fVOxC1Eyp2-f4iAh_-u_O",
- {
- "id": "fVOxC1Eyp2-f4iAh_-u_O",
- "instanceId": "9NJGnzZG3iPZs78XPTHhH",
- "name": "tag",
- "type": "string",
- "value": "loc"
- }
- ],
- [
- "L3gLkXqCMivcNj9pLrKZs",
- {
- "id": "L3gLkXqCMivcNj9pLrKZs",
- "instanceId": "IjNaHLHI4gWStV8GvhijX",
- "name": "tag",
- "type": "string",
- "value": "lastmod"
- }
- ],
- [
- "sDNoSuQSDz9hSGBTNmkay",
- {
- "id": "sDNoSuQSDz9hSGBTNmkay",
- "instanceId": "cgaMXxOMMAh4H-u-MB3_0",
- "name": "tag",
- "type": "string",
- "value": "urlset"
- }
- ],
- [
- "PLqbTfaDLOS5hxJ_dERqI",
- {
- "id": "PLqbTfaDLOS5hxJ_dERqI",
- "instanceId": "cgaMXxOMMAh4H-u-MB3_0",
- "name": "xmlns",
- "type": "string",
- "value": "http://www.sitemaps.org/schemas/sitemap/0.9"
- }
- ]
- ],
- "dataSources": [
- [
- "_yJ0UuBlq2PEEobk8o_ku",
- {
- "type": "parameter",
- "id": "_yJ0UuBlq2PEEobk8o_ku",
- "scopeInstanceId": "ibXgMoi9_ipHx1gVrvii0",
- "name": "system"
- }
- ],
- [
- "Mlo1vx1bhMUxPcNRfzESD",
- {
- "type": "parameter",
- "id": "Mlo1vx1bhMUxPcNRfzESD",
- "scopeInstanceId": "LW98_-srDnnagkR10lsk4",
- "name": "system"
- }
- ],
- [
- "Zl0ZwsVkVbga9LehMyyQx",
- {
- "type": "parameter",
- "id": "Zl0ZwsVkVbga9LehMyyQx",
- "scopeInstanceId": "jDb2FuSK2-azIZxkH5XNv",
- "name": "system"
- }
- ],
- [
- "6AKzkKHNkIHWUGJDCoXNz",
- {
- "type": "parameter",
- "id": "6AKzkKHNkIHWUGJDCoXNz",
- "scopeInstanceId": "rve0BYRbzAkSCr3Lq-wzi",
- "name": "system"
- }
- ],
- [
- "kysfQMiYfpyLK8Z0BwHTn",
- {
- "type": "resource",
- "id": "kysfQMiYfpyLK8Z0BwHTn",
- "scopeInstanceId": "rve0BYRbzAkSCr3Lq-wzi",
- "name": "sitemap.xml",
- "resourceId": "Y_ZBU-mHnSXigZ1IXI02s"
- }
- ],
- [
- "C3teXw_3uxq4VBGE_J2yo",
- {
- "type": "parameter",
- "id": "C3teXw_3uxq4VBGE_J2yo",
- "scopeInstanceId": "PjSYDNWuQ4oIg52BShwxB",
- "name": "url"
- }
- ]
- ],
- "resources": [
- [
- "Y_ZBU-mHnSXigZ1IXI02s",
- {
- "id": "Y_ZBU-mHnSXigZ1IXI02s",
- "name": "sitemap.xml",
- "method": "get",
- "url": "\"/$resources/sitemap.xml\"",
- "headers": []
- }
- ]
- ],
- "instances": [
- [
- "ibXgMoi9_ipHx1gVrvii0",
- {
- "type": "instance",
- "id": "ibXgMoi9_ipHx1gVrvii0",
- "component": "Body",
- "children": [
- {
- "type": "id",
- "value": "7pwqBSgrfuuOfk1JblWcL"
- },
- {
- "type": "id",
- "value": "GMg3Wi9tJBFMtKcwbIK6z"
- },
- {
- "type": "id",
- "value": "jWb8SRMYG_XPWqCYvGZjo"
- },
- {
- "type": "id",
- "value": "PI0W8MDhnG1glS5zDm8HQ"
- },
- {
- "type": "id",
- "value": "ffuOk2adQRwdmAPbN0C02"
- },
- {
- "type": "id",
- "value": "QzTSoZnbGD6luZ5xcv893"
- },
- {
- "type": "id",
- "value": "ZkDuD4HlHP3pDdp0SXJuh"
- }
- ]
- }
- ],
- [
- "7pwqBSgrfuuOfk1JblWcL",
- {
- "type": "instance",
- "id": "7pwqBSgrfuuOfk1JblWcL",
- "component": "Heading",
- "children": [
- {
- "type": "text",
- "value": "DO NOT TOUCH THIS PROJECT, IT'S USED FOR FIXTURES"
- }
- ]
- }
- ],
- [
- "LW98_-srDnnagkR10lsk4",
- {
- "type": "instance",
- "id": "LW98_-srDnnagkR10lsk4",
- "component": "Body",
- "children": [
- {
- "type": "id",
- "value": "SHXddDLFWST_sy44UfGQO"
- },
- {
- "type": "id",
- "value": "8MXByradrqVRiGSyHI0aH"
- },
- {
- "type": "id",
- "value": "fx0TfnvHfudZ99agcyokN"
- },
- {
- "type": "id",
- "value": "evFyHvPu9rGzKojoj723b"
- }
- ]
- }
- ],
- [
- "SHXddDLFWST_sy44UfGQO",
- {
- "type": "instance",
- "id": "SHXddDLFWST_sy44UfGQO",
- "component": "Heading",
- "children": [
- {
- "type": "text",
- "value": "Script Test"
- }
- ]
- }
- ],
- [
- "QzTSoZnbGD6luZ5xcv893",
- {
- "type": "instance",
- "id": "QzTSoZnbGD6luZ5xcv893",
- "component": "Link",
- "children": [
- {
- "type": "text",
- "value": "Goto Scr"
- }
- ]
- }
- ],
- [
- "8MXByradrqVRiGSyHI0aH",
- {
- "type": "instance",
- "id": "8MXByradrqVRiGSyHI0aH",
- "component": "Link",
- "children": [
- {
- "type": "text",
- "value": "Go Home"
- }
- ]
- }
- ],
- [
- "jDb2FuSK2-azIZxkH5XNv",
- {
- "type": "instance",
- "id": "jDb2FuSK2-azIZxkH5XNv",
- "component": "Body",
- "children": [
- {
- "type": "id",
- "value": "D7kQxgXxrjei-MS_KzUa2"
- }
- ]
- }
- ],
- [
- "D7kQxgXxrjei-MS_KzUa2",
- {
- "type": "instance",
- "id": "D7kQxgXxrjei-MS_KzUa2",
- "component": "Heading",
- "children": [
- {
- "type": "text",
- "value": "Привет Мир"
- }
- ]
- }
- ],
- [
- "ZkDuD4HlHP3pDdp0SXJuh",
- {
- "type": "instance",
- "id": "ZkDuD4HlHP3pDdp0SXJuh",
- "component": "Vimeo",
- "children": [
- {
- "type": "id",
- "value": "wxd8Wul8dl2yPRFFedNn6"
- },
- {
- "type": "id",
- "value": "o8sAMUoaOraWYZClEfRgl"
- },
- {
- "type": "id",
- "value": "9hBBPGSf7hB30ZkSHKjNd"
- }
- ]
- }
- ],
- [
- "wxd8Wul8dl2yPRFFedNn6",
- {
- "type": "instance",
- "id": "wxd8Wul8dl2yPRFFedNn6",
- "component": "VimeoPreviewImage",
- "children": []
- }
- ],
- [
- "9hBBPGSf7hB30ZkSHKjNd",
- {
- "type": "instance",
- "id": "9hBBPGSf7hB30ZkSHKjNd",
- "component": "VimeoPlayButton",
- "children": [
- {
- "type": "id",
- "value": "D__QElBIIQtamhJN3a4FI"
- }
- ]
- }
- ],
- [
- "D__QElBIIQtamhJN3a4FI",
- {
- "type": "instance",
- "id": "D__QElBIIQtamhJN3a4FI",
- "component": "Box",
- "label": "Play Icon",
- "children": [
- {
- "type": "id",
- "value": "iEc6hab-WardXZc5P9wJu"
- }
- ]
- }
- ],
- [
- "iEc6hab-WardXZc5P9wJu",
- {
- "type": "instance",
- "id": "iEc6hab-WardXZc5P9wJu",
- "component": "HtmlEmbed",
- "label": "Play SVG",
- "children": []
- }
- ],
- [
- "o8sAMUoaOraWYZClEfRgl",
- {
- "type": "instance",
- "id": "o8sAMUoaOraWYZClEfRgl",
- "component": "VimeoSpinner",
- "label": "Spinner",
- "children": [
- {
- "type": "id",
- "value": "BeQ7sgDlUizFvf4aHqOsh"
- }
- ]
- }
- ],
- [
- "BeQ7sgDlUizFvf4aHqOsh",
- {
- "type": "instance",
- "id": "BeQ7sgDlUizFvf4aHqOsh",
- "component": "HtmlEmbed",
- "label": "Spinner SVG",
- "children": []
- }
- ],
- [
- "ffuOk2adQRwdmAPbN0C02",
- {
- "type": "instance",
- "id": "ffuOk2adQRwdmAPbN0C02",
- "component": "HtmlEmbed",
- "label": "SSR",
- "children": []
- }
- ],
- [
- "fx0TfnvHfudZ99agcyokN",
- {
- "type": "instance",
- "id": "fx0TfnvHfudZ99agcyokN",
- "component": "HtmlEmbed",
- "label": "SSR",
- "children": []
- }
- ],
- [
- "PI0W8MDhnG1glS5zDm8HQ",
- {
- "type": "instance",
- "id": "PI0W8MDhnG1glS5zDm8HQ",
- "component": "HtmlEmbed",
- "label": "CLient",
- "children": []
- }
- ],
- [
- "evFyHvPu9rGzKojoj723b",
- {
- "type": "instance",
- "id": "evFyHvPu9rGzKojoj723b",
- "component": "HtmlEmbed",
- "label": "CLient",
- "children": []
- }
- ],
- [
- "GMg3Wi9tJBFMtKcwbIK6z",
- {
- "type": "instance",
- "id": "GMg3Wi9tJBFMtKcwbIK6z",
- "component": "Box",
- "children": [
- {
- "type": "id",
- "value": "Mfd_mI-VJtT4r7gICAvXi"
- },
- {
- "type": "id",
- "value": "COafOppxs73Ne4O0Geik0"
- }
- ]
- }
- ],
- [
- "Mfd_mI-VJtT4r7gICAvXi",
- {
- "type": "instance",
- "id": "Mfd_mI-VJtT4r7gICAvXi",
- "component": "Image",
- "children": []
- }
- ],
- [
- "COafOppxs73Ne4O0Geik0",
- {
- "type": "instance",
- "id": "COafOppxs73Ne4O0Geik0",
- "component": "Box",
- "children": []
- }
- ],
- [
- "jWb8SRMYG_XPWqCYvGZjo",
- {
- "type": "instance",
- "id": "jWb8SRMYG_XPWqCYvGZjo",
- "component": "Heading",
- "children": [
- {
- "type": "text",
- "value": "Below Image"
- }
- ]
- }
- ],
- [
- "rve0BYRbzAkSCr3Lq-wzi",
- {
- "type": "instance",
- "id": "rve0BYRbzAkSCr3Lq-wzi",
- "component": "Body",
- "children": [
- {
- "type": "id",
- "value": "cgaMXxOMMAh4H-u-MB3_0"
- }
- ]
- }
- ],
- [
- "cgaMXxOMMAh4H-u-MB3_0",
- {
- "type": "instance",
- "id": "cgaMXxOMMAh4H-u-MB3_0",
- "component": "XmlNode",
- "children": [
- {
- "type": "id",
- "value": "PjSYDNWuQ4oIg52BShwxB"
- }
- ]
- }
- ],
- [
- "PjSYDNWuQ4oIg52BShwxB",
- {
- "type": "instance",
- "id": "PjSYDNWuQ4oIg52BShwxB",
- "component": "ws:collection",
- "label": "urls",
- "children": [
- {
- "type": "id",
- "value": "SKzEKWw1VtVVFvUcIWuUp"
- }
- ]
- }
- ],
- [
- "SKzEKWw1VtVVFvUcIWuUp",
- {
- "type": "instance",
- "id": "SKzEKWw1VtVVFvUcIWuUp",
- "component": "XmlNode",
- "children": [
- {
- "type": "id",
- "value": "9NJGnzZG3iPZs78XPTHhH"
- },
- {
- "type": "id",
- "value": "IjNaHLHI4gWStV8GvhijX"
- }
- ]
- }
- ],
- [
- "9NJGnzZG3iPZs78XPTHhH",
- {
- "type": "instance",
- "id": "9NJGnzZG3iPZs78XPTHhH",
- "component": "XmlNode",
- "children": [
- {
- "type": "expression",
- "value": "`${$ws$dataSource$6AKzkKHNkIHWUGJDCoXNz.origin ?? '${ORIGIN}'}${$ws$dataSource$C3teXw_3uxq4VBGE_J2yo.path}`"
- }
- ]
- }
- ],
- [
- "IjNaHLHI4gWStV8GvhijX",
- {
- "type": "instance",
- "id": "IjNaHLHI4gWStV8GvhijX",
- "component": "XmlNode",
- "children": [
- {
- "type": "expression",
- "value": "$ws$dataSource$C3teXw_3uxq4VBGE_J2yo.lastModified"
- }
- ]
- }
- ]
- ],
- "deployment": {
- "domains": [],
- "projectDomain": "webstudio-custom-template-cochj"
- }
- },
- "page": {
- "id": "nfzls_SkTc9jKYyxcZ8Lw",
- "name": "Home",
- "title": "\"Site Title\"",
- "meta": {
- "description": "\"Page description f511c297-b44f-4e4b-96bd-d013da06bada\"",
- "socialImageAssetId": "ff546bd2-9bb1-4717-a180-1a1fc05565dd"
- },
- "rootInstanceId": "ibXgMoi9_ipHx1gVrvii0",
- "systemDataSourceId": "_yJ0UuBlq2PEEobk8o_ku",
- "path": ""
- },
- "pages": [
- {
- "id": "nfzls_SkTc9jKYyxcZ8Lw",
- "name": "Home",
- "title": "\"Site Title\"",
- "meta": {
- "description": "\"Page description f511c297-b44f-4e4b-96bd-d013da06bada\"",
- "socialImageAssetId": "ff546bd2-9bb1-4717-a180-1a1fc05565dd"
- },
- "rootInstanceId": "ibXgMoi9_ipHx1gVrvii0",
- "systemDataSourceId": "_yJ0UuBlq2PEEobk8o_ku",
- "path": ""
- },
- {
- "id": "xT46WZKzCBTvUCIObMELW",
- "name": "Script Test",
- "title": "\"Script Test\"",
- "meta": {
- "description": "\"\"",
- "excludePageFromSearch": "false",
- "socialImageAssetId": "",
- "custom": [
- {
- "property": "",
- "content": "\"\""
- }
- ]
- },
- "rootInstanceId": "LW98_-srDnnagkR10lsk4",
- "systemDataSourceId": "Mlo1vx1bhMUxPcNRfzESD",
- "path": "/script-test"
- },
- {
- "id": "lyz5sZaJ7WzLt71cX3VJ2",
- "name": "world",
- "title": "\"Untitled\"",
- "meta": {
- "description": "\"\"",
- "excludePageFromSearch": "false",
- "language": "\"ru\"",
- "socialImageUrl": "\"\"",
- "status": "200",
- "redirect": "\"\"",
- "custom": []
- },
- "rootInstanceId": "jDb2FuSK2-azIZxkH5XNv",
- "systemDataSourceId": "Zl0ZwsVkVbga9LehMyyQx",
- "path": "/world"
- },
- {
- "id": "2HLHiU2IwQkvfO0Uuodgo",
- "name": "sitemap.xml",
- "title": "\"Untitled\"",
- "meta": {
- "description": "\"\"",
- "excludePageFromSearch": "false",
- "language": "\"\"",
- "socialImageUrl": "\"\"",
- "status": "200",
- "redirect": "\"\"",
- "documentType": "xml",
- "custom": []
- },
- "rootInstanceId": "rve0BYRbzAkSCr3Lq-wzi",
- "systemDataSourceId": "6AKzkKHNkIHWUGJDCoXNz",
- "path": "/sitemap.xml"
- }
- ],
- "assets": [
- {
- "id": "a8fb692a-5970-4014-ad4d-45c6f1edea36",
- "name": "CormorantGaramond-Medium_-nWJ-OtHncaW9xDHQ9hSA_CBl88Oo59QKH_z9pCWva2.woff2",
- "description": null,
- "projectId": "0d856812-61d8-4014-a20a-82e01c0eb8ee",
- "size": 156212,
- "type": "font",
- "createdAt": "2024-02-22T05:36:52.004+00:00",
- "format": "woff2",
- "meta": {
- "family": "Cormorant Garamond",
- "style": "normal",
- "weight": 500
- }
- },
- {
- "id": "cd1e9fad-8df1-45c6-800f-05fda2d2469f",
- "name": "home_wsKvRSqvkajPPBeycZ-C8.svg",
- "description": null,
- "projectId": "0d856812-61d8-4014-a20a-82e01c0eb8ee",
- "size": 3350,
- "type": "image",
- "format": "svg",
- "createdAt": "2023-10-30T20:35:47.113+00:00",
- "meta": {
- "width": 16,
- "height": 16
- }
- },
- {
- "id": "ff546bd2-9bb1-4717-a180-1a1fc05565dd",
- "name": "_937084ed-a798-49fe-8664-df93a2af605e_1JqSy_0Wy9fY5mXNZSLJ0.jpeg",
- "description": null,
- "projectId": "0d856812-61d8-4014-a20a-82e01c0eb8ee",
- "size": 210614,
- "type": "image",
- "format": "jpg",
- "createdAt": "2024-03-26T18:31:04.086+00:00",
- "meta": {
- "width": 1024,
- "height": 1024
- }
- }
- ],
- "user": {
- "email": "[email protected]"
- },
- "projectDomain": "webstudio-custom-template-cochj",
- "projectTitle": "webstudio-custom-template",
- "origin": "https://main.development.webstudio.is"
-}
diff --git a/fixtures/webstudio-custom-template/README.md b/fixtures/webstudio-custom-template/README.md
deleted file mode 100644
index 0a1b6a9ca8..0000000000
--- a/fixtures/webstudio-custom-template/README.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# Fixture to test/play with webstudio
-
-## How to develop
-
-```bash
-# Terminal 1
-cd packages/webstudio
-pnpm dev
-```
-
-```bash
-# Terminal 2
-pnpm fixtures:link
-
-pnpm fixtures:sync
-# data.json generated
-
-pnpm fixtures:build
-# exec `pnpm run dev` to see result
-```
-
-## Can be used for profiling
-
-```bash
-pnpm build
-pnpm start
-```
-
-execute chrome profiler see web vital events inside
diff --git a/fixtures/webstudio-custom-template/app/__generated__/$resources.sitemap.xml.ts b/fixtures/webstudio-custom-template/app/__generated__/$resources.sitemap.xml.ts
deleted file mode 100644
index 4c1ab55cac..0000000000
--- a/fixtures/webstudio-custom-template/app/__generated__/$resources.sitemap.xml.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-export const sitemap = [
- {
- path: "/",
- lastModified: "2024-05-06",
- },
- {
- path: "/script-test",
- lastModified: "2024-05-06",
- },
- {
- path: "/world",
- lastModified: "2024-05-06",
- },
-];
diff --git a/fixtures/webstudio-custom-template/app/__generated__/[hello]._index.ts b/fixtures/webstudio-custom-template/app/__generated__/[hello]._index.ts
deleted file mode 100644
index 8e537ee5d1..0000000000
--- a/fixtures/webstudio-custom-template/app/__generated__/[hello]._index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const url = "/world";
-export const status = 301;
diff --git a/fixtures/webstudio-custom-template/app/__generated__/[script-test]._index.server.tsx b/fixtures/webstudio-custom-template/app/__generated__/[script-test]._index.server.tsx
deleted file mode 100644
index d714e6a4a6..0000000000
--- a/fixtures/webstudio-custom-template/app/__generated__/[script-test]._index.server.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-/* eslint-disable */
-/* This is a auto generated file for building the project */
-
-import type { PageMeta } from "@webstudio-is/sdk";
-import type { System, ResourceRequest } from "@webstudio-is/sdk";
-export const getResources = (_props: { system: System }) => {
- const _data = new Map<string, ResourceRequest>([]);
- const _action = new Map<string, ResourceRequest>([]);
- return { data: _data, action: _action };
-};
-
-export const getPageMeta = ({
- system,
- resources,
-}: {
- system: System;
- resources: Record<string, any>;
-}): PageMeta => {
- return {
- title: "Script Test",
- description: "",
- excludePageFromSearch: false,
- language: undefined,
- socialImageAssetName: undefined,
- socialImageUrl: undefined,
- status: undefined,
- redirect: undefined,
- custom: [],
- };
-};
-
-type Params = Record<string, string | undefined>;
-export const getRemixParams = ({ ...params }: Params): Params => {
- return params;
-};
-
-export const projectId = "0d856812-61d8-4014-a20a-82e01c0eb8ee";
-
-export const contactEmail = "[email protected]";
diff --git a/fixtures/webstudio-custom-template/app/__generated__/[script-test]._index.tsx b/fixtures/webstudio-custom-template/app/__generated__/[script-test]._index.tsx
deleted file mode 100644
index 23cb40f8f1..0000000000
--- a/fixtures/webstudio-custom-template/app/__generated__/[script-test]._index.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-/* eslint-disable */
-/* This is a auto generated file for building the project */
-
-import { Fragment, useState } from "react";
-import type { FontAsset, ImageAsset } from "@webstudio-is/sdk";
-import { useResource, useVariableState } from "@webstudio-is/react-sdk/runtime";
-import {
- Body as Body,
- Link as Link,
-} from "@webstudio-is/sdk-components-react-remix";
-import {
- Heading as Heading,
- HtmlEmbed as HtmlEmbed,
-} from "@webstudio-is/sdk-components-react";
-
-export const siteName = "Fixture Site";
-
-export const favIconAsset: ImageAsset | undefined = {
- id: "cd1e9fad-8df1-45c6-800f-05fda2d2469f",
- name: "home_wsKvRSqvkajPPBeycZ-C8.svg",
- description: null,
- projectId: "0d856812-61d8-4014-a20a-82e01c0eb8ee",
- size: 3350,
- type: "image",
- format: "svg",
- createdAt: "2023-10-30T20:35:47.113+00:00",
- meta: { width: 16, height: 16 },
-};
-
-// Font assets on current page (can be preloaded)
-export const pageFontAssets: FontAsset[] = [];
-
-export const pageBackgroundImageAssets: ImageAsset[] = [];
-
-const Page = ({}: { system: any }) => {
- return (
- <Body className={`w-body cjrgi00`}>
- <Heading className={`w-heading`}>{"Script Test"}</Heading>
- <Link href={"/"} className={`w-link`}>
- {"Go Home"}
- </Link>
- <HtmlEmbed
- code={
- "<br>\n<script>console.log('SCRIPT TEST SSR')</script>\n<script>console.log('SCRIPT TEST SSR 2')</script>\nSCRIPTS ARE HERE 2<br>"
- }
- className={`w-html-embed`}
- />
- <HtmlEmbed
- code={
- "<script>console.log('SCRIPTS TEST Client')</script>\n<script>console.log('SCRIPTS TEST 2 Client')</script>\nSCRIPTS ARE HERE <br>"
- }
- clientOnly={true}
- className={`w-html-embed`}
- />
- </Body>
- );
-};
-
-export { Page };
diff --git a/fixtures/webstudio-custom-template/app/__generated__/[sitemap.xml]._index.server.tsx b/fixtures/webstudio-custom-template/app/__generated__/[sitemap.xml]._index.server.tsx
deleted file mode 100644
index 5cc00f4ec5..0000000000
--- a/fixtures/webstudio-custom-template/app/__generated__/[sitemap.xml]._index.server.tsx
+++ /dev/null
@@ -1,48 +0,0 @@
-/* eslint-disable */
-/* This is a auto generated file for building the project */
-
-import type { PageMeta } from "@webstudio-is/sdk";
-import type { System, ResourceRequest } from "@webstudio-is/sdk";
-export const getResources = (_props: { system: System }) => {
- const sitemapxml_1: ResourceRequest = {
- id: "Y_ZBU-mHnSXigZ1IXI02s",
- name: "sitemap.xml",
- url: "/$resources/sitemap.xml",
- method: "get",
- headers: [],
- };
- const _data = new Map<string, ResourceRequest>([
- ["sitemapxml_1", sitemapxml_1],
- ]);
- const _action = new Map<string, ResourceRequest>([]);
- return { data: _data, action: _action };
-};
-
-export const getPageMeta = ({
- system,
- resources,
-}: {
- system: System;
- resources: Record<string, any>;
-}): PageMeta => {
- return {
- title: "Untitled",
- description: "",
- excludePageFromSearch: false,
- language: "",
- socialImageAssetName: undefined,
- socialImageUrl: "",
- status: 200,
- redirect: "",
- custom: [],
- };
-};
-
-type Params = Record<string, string | undefined>;
-export const getRemixParams = ({ ...params }: Params): Params => {
- return params;
-};
-
-export const projectId = "0d856812-61d8-4014-a20a-82e01c0eb8ee";
-
-export const contactEmail = "[email protected]";
diff --git a/fixtures/webstudio-custom-template/app/__generated__/[sitemap.xml]._index.tsx b/fixtures/webstudio-custom-template/app/__generated__/[sitemap.xml]._index.tsx
deleted file mode 100644
index 0cc85277fb..0000000000
--- a/fixtures/webstudio-custom-template/app/__generated__/[sitemap.xml]._index.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-/* eslint-disable */
-/* This is a auto generated file for building the project */
-
-import { Fragment, useState } from "react";
-import type { FontAsset, ImageAsset } from "@webstudio-is/sdk";
-import { useResource, useVariableState } from "@webstudio-is/react-sdk/runtime";
-import { XmlNode, XmlTime } from "@webstudio-is/sdk-components-react";
-
-export const siteName = "Fixture Site";
-
-export const favIconAsset: ImageAsset | undefined = {
- id: "cd1e9fad-8df1-45c6-800f-05fda2d2469f",
- name: "home_wsKvRSqvkajPPBeycZ-C8.svg",
- description: null,
- projectId: "0d856812-61d8-4014-a20a-82e01c0eb8ee",
- size: 3350,
- type: "image",
- format: "svg",
- createdAt: "2023-10-30T20:35:47.113+00:00",
- meta: { width: 16, height: 16 },
-};
-
-// Font assets on current page (can be preloaded)
-export const pageFontAssets: FontAsset[] = [];
-
-export const pageBackgroundImageAssets: ImageAsset[] = [];
-
-const Body = (props: any) => <svg>{props.children}</svg>;
-
-const Page = ({ system: system }: { system: any }) => {
- let sitemapxml = useResource("sitemapxml_1");
- return (
- <Body className={`w-body`}>
- <XmlNode
- tag={"urlset"}
- xmlns={"http://www.sitemaps.org/schemas/sitemap/0.9"}
- >
- {sitemapxml?.data?.map?.((url: any, index: number) => (
- <Fragment key={index}>
- <XmlNode tag={"url"}>
- <XmlNode tag={"loc"}>
- {`${system?.origin ?? "${ORIGIN}"}${url?.path}`}
- </XmlNode>
- <XmlNode tag={"lastmod"}>{url?.lastModified}</XmlNode>
- </XmlNode>
- </Fragment>
- ))}
- </XmlNode>
- </Body>
- );
-};
-
-export { Page };
diff --git a/fixtures/webstudio-custom-template/app/__generated__/[world]._index.server.tsx b/fixtures/webstudio-custom-template/app/__generated__/[world]._index.server.tsx
deleted file mode 100644
index db57a8a7f4..0000000000
--- a/fixtures/webstudio-custom-template/app/__generated__/[world]._index.server.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-/* eslint-disable */
-/* This is a auto generated file for building the project */
-
-import type { PageMeta } from "@webstudio-is/sdk";
-import type { System, ResourceRequest } from "@webstudio-is/sdk";
-export const getResources = (_props: { system: System }) => {
- const _data = new Map<string, ResourceRequest>([]);
- const _action = new Map<string, ResourceRequest>([]);
- return { data: _data, action: _action };
-};
-
-export const getPageMeta = ({
- system,
- resources,
-}: {
- system: System;
- resources: Record<string, any>;
-}): PageMeta => {
- return {
- title: "Untitled",
- description: "",
- excludePageFromSearch: false,
- language: "ru",
- socialImageAssetName: undefined,
- socialImageUrl: "",
- status: 200,
- redirect: "",
- custom: [],
- };
-};
-
-type Params = Record<string, string | undefined>;
-export const getRemixParams = ({ ...params }: Params): Params => {
- return params;
-};
-
-export const projectId = "0d856812-61d8-4014-a20a-82e01c0eb8ee";
-
-export const contactEmail = "[email protected]";
diff --git a/fixtures/webstudio-custom-template/app/__generated__/[world]._index.tsx b/fixtures/webstudio-custom-template/app/__generated__/[world]._index.tsx
deleted file mode 100644
index df92245233..0000000000
--- a/fixtures/webstudio-custom-template/app/__generated__/[world]._index.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-/* eslint-disable */
-/* This is a auto generated file for building the project */
-
-import { Fragment, useState } from "react";
-import type { FontAsset, ImageAsset } from "@webstudio-is/sdk";
-import { useResource, useVariableState } from "@webstudio-is/react-sdk/runtime";
-import { Body as Body } from "@webstudio-is/sdk-components-react-remix";
-import { Heading as Heading } from "@webstudio-is/sdk-components-react";
-
-export const siteName = "Fixture Site";
-
-export const favIconAsset: ImageAsset | undefined = {
- id: "cd1e9fad-8df1-45c6-800f-05fda2d2469f",
- name: "home_wsKvRSqvkajPPBeycZ-C8.svg",
- description: null,
- projectId: "0d856812-61d8-4014-a20a-82e01c0eb8ee",
- size: 3350,
- type: "image",
- format: "svg",
- createdAt: "2023-10-30T20:35:47.113+00:00",
- meta: { width: 16, height: 16 },
-};
-
-// Font assets on current page (can be preloaded)
-export const pageFontAssets: FontAsset[] = [];
-
-export const pageBackgroundImageAssets: ImageAsset[] = [];
-
-const Page = ({}: { system: any }) => {
- return (
- <Body className={`w-body`}>
- <Heading className={`w-heading`}>{"Привет Мир"}</Heading>
- </Body>
- );
-};
-
-export { Page };
diff --git a/fixtures/webstudio-custom-template/app/__generated__/_index.server.tsx b/fixtures/webstudio-custom-template/app/__generated__/_index.server.tsx
deleted file mode 100644
index 5fd4bcf60b..0000000000
--- a/fixtures/webstudio-custom-template/app/__generated__/_index.server.tsx
+++ /dev/null
@@ -1,40 +0,0 @@
-/* eslint-disable */
-/* This is a auto generated file for building the project */
-
-import type { PageMeta } from "@webstudio-is/sdk";
-import type { System, ResourceRequest } from "@webstudio-is/sdk";
-export const getResources = (_props: { system: System }) => {
- const _data = new Map<string, ResourceRequest>([]);
- const _action = new Map<string, ResourceRequest>([]);
- return { data: _data, action: _action };
-};
-
-export const getPageMeta = ({
- system,
- resources,
-}: {
- system: System;
- resources: Record<string, any>;
-}): PageMeta => {
- return {
- title: "Site Title",
- description: "Page description f511c297-b44f-4e4b-96bd-d013da06bada",
- excludePageFromSearch: undefined,
- language: undefined,
- socialImageAssetName:
- "_937084ed-a798-49fe-8664-df93a2af605e_1JqSy_0Wy9fY5mXNZSLJ0.jpeg",
- socialImageUrl: undefined,
- status: undefined,
- redirect: undefined,
- custom: [],
- };
-};
-
-type Params = Record<string, string | undefined>;
-export const getRemixParams = ({ ...params }: Params): Params => {
- return params;
-};
-
-export const projectId = "0d856812-61d8-4014-a20a-82e01c0eb8ee";
-
-export const contactEmail = "[email protected]";
diff --git a/fixtures/webstudio-custom-template/app/__generated__/_index.tsx b/fixtures/webstudio-custom-template/app/__generated__/_index.tsx
deleted file mode 100644
index b15d27582e..0000000000
--- a/fixtures/webstudio-custom-template/app/__generated__/_index.tsx
+++ /dev/null
@@ -1,165 +0,0 @@
-/* eslint-disable */
-/* This is a auto generated file for building the project */
-
-import { Fragment, useState } from "react";
-import type { FontAsset, ImageAsset } from "@webstudio-is/sdk";
-import { useResource, useVariableState } from "@webstudio-is/react-sdk/runtime";
-import {
- Body as Body,
- Link as Link,
-} from "@webstudio-is/sdk-components-react-remix";
-import {
- Heading as Heading,
- Vimeo as Vimeo,
- VimeoPreviewImage as VimeoPreviewImage,
- VimeoPlayButton as VimeoPlayButton,
- Box as Box,
- HtmlEmbed as HtmlEmbed,
- VimeoSpinner as VimeoSpinner,
- Image as Image,
-} from "@webstudio-is/sdk-components-react";
-
-export const siteName = "Fixture Site";
-
-export const favIconAsset: ImageAsset | undefined = {
- id: "cd1e9fad-8df1-45c6-800f-05fda2d2469f",
- name: "home_wsKvRSqvkajPPBeycZ-C8.svg",
- description: null,
- projectId: "0d856812-61d8-4014-a20a-82e01c0eb8ee",
- size: 3350,
- type: "image",
- format: "svg",
- createdAt: "2023-10-30T20:35:47.113+00:00",
- meta: { width: 16, height: 16 },
-};
-
-// Font assets on current page (can be preloaded)
-export const pageFontAssets: FontAsset[] = [
- {
- id: "a8fb692a-5970-4014-ad4d-45c6f1edea36",
- name: "CormorantGaramond-Medium_-nWJ-OtHncaW9xDHQ9hSA_CBl88Oo59QKH_z9pCWva2.woff2",
- description: null,
- projectId: "0d856812-61d8-4014-a20a-82e01c0eb8ee",
- size: 156212,
- type: "font",
- createdAt: "2024-02-22T05:36:52.004+00:00",
- format: "woff2",
- meta: { family: "Cormorant Garamond", style: "normal", weight: 500 },
- },
-];
-
-export const pageBackgroundImageAssets: ImageAsset[] = [
- {
- id: "cd1e9fad-8df1-45c6-800f-05fda2d2469f",
- name: "home_wsKvRSqvkajPPBeycZ-C8.svg",
- description: null,
- projectId: "0d856812-61d8-4014-a20a-82e01c0eb8ee",
- size: 3350,
- type: "image",
- format: "svg",
- createdAt: "2023-10-30T20:35:47.113+00:00",
- meta: { width: 16, height: 16 },
- },
-];
-
-const Script = ({ children, ...props }: Record<string, string | boolean>) => {
- if (children == null) {
- return <script {...props} />;
- }
-
- return <script {...props} dangerouslySetInnerHTML={{ __html: children }} />;
-};
-const Style = ({ children, ...props }: Record<string, string | boolean>) => {
- if (children == null) {
- return <style {...props} />;
- }
-
- return <style {...props} dangerouslySetInnerHTML={{ __html: children }} />;
-};
-
-export const CustomCode = () => {
- return (
- <>
- <Script>{"console.log('HELLO')"}</Script>
- <meta property={"saas:test"} content={"test"}></meta>
- </>
- );
-};
-
-const Page = ({}: { system: any }) => {
- return (
- <Body className={`w-body cjrgi00`}>
- <Heading
- className={`w-heading ce7mxws cd0g70b c1ku1ozg c1kbs9xq c1m6kmmg crjoqt7 c1n5sjmn c1hqh3e6 cwdggon c4o64du`}
- >
- {"DO NOT TOUCH THIS PROJECT, IT'S USED FOR FIXTURES"}
- </Heading>
- <Box className={`w-box cxb89wn c12qr5j7 c111rqf8 cp8i2p0 cwfevk3`}>
- <Image
- src={
- "/custom-folder/_937084ed-a798-49fe-8664-df93a2af605e_1JqSy_0Wy9fY5mXNZSLJ0.jpeg"
- }
- width={1024}
- height={1024}
- className={`w-image ccgiojm cv4f3rn cer5re4 c9lz7ss`}
- />
- <Box className={`w-box ccgiojm cv4f3rn cer5re4 c9lz7ss`} />
- </Box>
- <Heading className={`w-heading`}>{"Below Image"}</Heading>
- <HtmlEmbed
- code={
- "<script>console.log('PAGE MAIN Client')</script>\n<script>console.log('PAGE MAIN 2 Client')</script>\nSCRIPTS ARE HERE <br>"
- }
- clientOnly={true}
- className={`w-html-embed`}
- />
- <HtmlEmbed
- code={
- "<script>console.log('PAGE MAIN SSR')</script>\n<script>console.log('PAGE MAIN 2 SSR')</script>\nSCRIPTS ARE HERE <br>"
- }
- className={`w-html-embed`}
- />
- <Link href={"/script-test"} className={`w-link`}>
- {"Goto Scr"}
- </Link>
- <Vimeo
- url={"https://player.vimeo.com/video/831343124"}
- showPreview={true}
- className={`w-vimeo c17osjft c5kxibo c8mrdqb`}
- >
- <VimeoPreviewImage
- alt={"Vimeo video preview image"}
- sizes={"100vw"}
- src={"/custom-folder/home_wsKvRSqvkajPPBeycZ-C8.svg"}
- className={`w-preview-image c13adha2 c19kjzjn c8mrdqb chv0hit c1vw7ut7 c64vnj4 cow7xo6 cddunt6 cqjhyu2`}
- />
- <VimeoSpinner
- className={`w-spinner c13adha2 c1ifzo79 c1ljqvnn c10zke2u cplzsl2 c1ardg8l ces5mo3`}
- >
- <HtmlEmbed
- code={
- '<svg xmlns="http://www.w3.org/2000/svg" id="e2CRglijn891" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" viewBox="0 0 128 128" fill="currentColor" width="100%" height="100%" style="display: block;"><style>@keyframes e2CRglijn892_tr__tr{0%{transform:translate(64px,64px) rotate(90deg);animation-timing-function:cubic-bezier(.42,0,.58,1)}50%{transform:translate(64px,64px) rotate(810deg);animation-timing-function:cubic-bezier(.42,0,.58,1)}to{transform:translate(64px,64px) rotate(1530deg)}}@keyframes e2CRglijn892_s_p{0%,to{stroke:#39fbbb}25%{stroke:#4a4efa}50%{stroke:#e63cfe}75%{stroke:#ffae3c}}@keyframes e2CRglijn892_s_do{0%{stroke-dashoffset:251.89}2.5%,52.5%{stroke-dashoffset:263.88;animation-timing-function:cubic-bezier(.42,0,.58,1)}25%,75%{stroke-dashoffset:131.945}to{stroke-dashoffset:251.885909}}#e2CRglijn892_tr{animation:e2CRglijn892_tr__tr 3000ms linear infinite normal forwards}#e2CRglijn892{animation-name:e2CRglijn892_s_p,e2CRglijn892_s_do;animation-duration:3000ms;animation-fill-mode:forwards;animation-timing-function:linear;animation-direction:normal;animation-iteration-count:infinite}</style><g id="e2CRglijn892_tr" transform="translate(64,64) rotate(90)"><circle id="e2CRglijn892" r="42" fill="none" stroke="#39fbbb" stroke-dasharray="263.89" stroke-dashoffset="251.89" stroke-linecap="round" stroke-width="16" transform="scale(-1,1) translate(0,0)"/></g></svg>'
- }
- executeScriptOnCanvas={false}
- className={`w-html-embed`}
- />
- </VimeoSpinner>
- <VimeoPlayButton
- aria-label={"Play button"}
- className={`w-play-button c13adha2 c1t88ri8 ca7kf99 c1ifzo79 c1ljqvnn c1bld9op ctly9e6 cxb89wn cwcnvqs cvchf4 c1y7dyx c1bnrgjg c1joowif c120xed6 c2eug5n cvwgylz c1f0qcby c1syyj1x cil01r8 c11087u4 coba2o7 c82nx6d`}
- >
- <Box aria-hidden={"true"} className={`w-box c1cccshn c1eyznz`}>
- <HtmlEmbed
- code={
- '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22" fill="currentColor" width="100%" height="100%" style="display: block;"><path d="M4.766 5.765c0-.725 0-1.088.178-1.288a.93.93 0 0 1 .648-.294c.294-.015.65.186 1.359.588l9.234 5.235c.586.332.88.498.982.708.09.183.09.389 0 .572-.102.21-.396.376-.982.708l-9.234 5.235c-.71.402-1.065.603-1.359.588a.93.93 0 0 1-.648-.294c-.178-.2-.178-.563-.178-1.288V5.765Z"/></svg>'
- }
- className={`w-html-embed`}
- />
- </Box>
- </VimeoPlayButton>
- </Vimeo>
- </Body>
- );
-};
-
-export { Page };
diff --git a/fixtures/webstudio-custom-template/app/__generated__/index.css b/fixtures/webstudio-custom-template/app/__generated__/index.css
deleted file mode 100644
index e73fa2470b..0000000000
--- a/fixtures/webstudio-custom-template/app/__generated__/index.css
+++ /dev/null
@@ -1,404 +0,0 @@
-@font-face {
- font-family: "Cormorant Garamond";
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url("/custom-folder/CormorantGaramond-Medium_-nWJ-OtHncaW9xDHQ9hSA_CBl88Oo59QKH_z9pCWva2.woff2")
- format("woff2");
-}
-@media all {
- :root {
- display: grid;
- min-height: 100%;
- font-family: Arial, Roboto, sans-serif;
- font-size: 16px;
- line-height: 1.2;
- white-space: pre-wrap;
- white-space-collapse: preserve;
- }
- :where(body.w-body) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- margin: 0;
- }
- :where(h1.w-heading) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(h2.w-heading) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(h3.w-heading) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(h4.w-heading) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(h5.w-heading) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(h6.w-heading) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(a.w-link) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- display: inline-block;
- }
- :where(div.w-vimeo) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(img.w-preview-image) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- max-width: 100%;
- display: block;
- height: auto;
- }
- :where(button.w-play-button) {
- font-family: inherit;
- font-size: 100%;
- line-height: 1.15;
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- text-transform: none;
- margin: 0;
- }
- :where(div.w-box) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(address.w-box) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(article.w-box) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(aside.w-box) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(figure.w-box) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(footer.w-box) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(header.w-box) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(main.w-box) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(nav.w-box) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(section.w-box) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(div.w-html-embed) {
- display: contents;
- white-space: normal;
- white-space-collapse: collapse;
- }
- :where(div.w-spinner) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- }
- :where(img.w-image) {
- box-sizing: border-box;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- outline-width: 1px;
- max-width: 100%;
- display: block;
- height: auto;
- }
-}
-@media all {
- .ce7mxws {
- font-size: 4em;
- }
- .cd0g70b {
- font-family: "Cormorant Garamond", sans-serif;
- }
- .c1ku1ozg {
- background-attachment: scroll, scroll, scroll;
- }
- .c1kbs9xq {
- -webkit-background-clip: border-box, border-box, border-box;
- background-clip: border-box, border-box, border-box;
- }
- .c1m6kmmg {
- background-blend-mode: normal, normal, normal;
- }
- .crjoqt7 {
- background-image: linear-gradient(
- rgba(255, 0, 0, 0.2),
- rgba(0, 255, 255, 0.2)
- ),
- url("/custom-folder/home_wsKvRSqvkajPPBeycZ-C8.svg"),
- linear-gradient(to right, rgba(255, 0, 255, 0.2), rgba(0, 255, 0, 0.2));
- }
- .c1n5sjmn {
- background-origin: padding-box, padding-box, padding-box;
- }
- .c1hqh3e6 {
- background-position: 0%, 0%, 0%;
- }
- .cwdggon {
- background-repeat: repeat, repeat, repeat;
- }
- .c4o64du {
- background-size: auto, auto, auto;
- }
- .cjrgi00 {
- margin: 15px;
- }
- .c17osjft {
- position: relative;
- }
- .c5kxibo {
- aspect-ratio: 640/360;
- }
- .c8mrdqb {
- width: 100%;
- }
- .c13adha2 {
- position: absolute;
- }
- .c19kjzjn {
- object-fit: cover;
- }
- .chv0hit {
- height: 100%;
- }
- .c1vw7ut7 {
- border-top-left-radius: 20px;
- }
- .c64vnj4 {
- border-top-right-radius: 20px;
- }
- .cow7xo6 {
- border-bottom-left-radius: 20px;
- }
- .cddunt6 {
- border-bottom-right-radius: 20px;
- }
- .cqjhyu2 {
- object-position: cover;
- }
- .c1t88ri8 {
- width: 140px;
- }
- .ca7kf99 {
- height: 80px;
- }
- .c1ifzo79 {
- top: 50%;
- }
- .c1ljqvnn {
- left: 50%;
- }
- .c1bld9op {
- margin-top: -40px;
- }
- .ctly9e6 {
- margin-left: -70px;
- }
- .cxb89wn {
- display: flex;
- }
- .cwcnvqs {
- align-items: center;
- }
- .cvchf4 {
- justify-content: center;
- }
- .c1y7dyx {
- border-top-style: none;
- }
- .c1bnrgjg {
- border-right-style: none;
- }
- .c1joowif {
- border-bottom-style: none;
- }
- .c120xed6 {
- border-left-style: none;
- }
- .c2eug5n {
- border-top-left-radius: 5px;
- }
- .cvwgylz {
- border-top-right-radius: 5px;
- }
- .c1f0qcby {
- border-bottom-left-radius: 5px;
- }
- .c1syyj1x {
- border-bottom-right-radius: 5px;
- }
- .cil01r8 {
- cursor: pointer;
- }
- .c11087u4 {
- background-color: rgba(18, 18, 18, 1);
- }
- .coba2o7 {
- color: rgba(255, 255, 255, 1);
- }
- .c82nx6d:hover {
- background-color: rgba(0, 173, 239, 1);
- }
- .c1cccshn {
- width: 60px;
- }
- .c1eyznz {
- height: 60px;
- }
- .c10zke2u {
- width: 70px;
- }
- .cplzsl2 {
- height: 70px;
- }
- .c1ardg8l {
- margin-top: -35px;
- }
- .ces5mo3 {
- margin-left: -35px;
- }
- .c12qr5j7 {
- flex-direction: row;
- }
- .c111rqf8 {
- flex-wrap: nowrap;
- }
- .cp8i2p0 {
- align-items: stretch;
- }
- .cwfevk3 {
- justify-content: space-between;
- }
- .ccgiojm {
- flex-grow: 1;
- }
- .cv4f3rn {
- flex-shrink: 0;
- }
- .cer5re4 {
- min-width: 0px;
- }
- .c9lz7ss {
- flex-basis: 0px;
- }
-}
diff --git a/fixtures/webstudio-custom-template/app/constants.mjs b/fixtures/webstudio-custom-template/app/constants.mjs
deleted file mode 100644
index d234f059b5..0000000000
--- a/fixtures/webstudio-custom-template/app/constants.mjs
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * We use mjs extension as constants in this file is shared with the build script
- * and we use `node --eval` to extract the constants.
- */
-export const assetBaseUrl = "/custom-folder/";
-export const imageBaseUrl = "/custom-folder/";
-
-/**
- * @type {import("@webstudio-is/image").ImageLoader}
- */
-export const imageLoader = ({ src }) => {
- return assetBaseUrl + src;
-};
diff --git a/fixtures/webstudio-custom-template/app/extension.ts b/fixtures/webstudio-custom-template/app/extension.ts
deleted file mode 100644
index 3345c28d98..0000000000
--- a/fixtures/webstudio-custom-template/app/extension.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-// eslint-disable-next-line @typescript-eslint/ban-ts-comment
-// @ts-ignore
-import { AppLoadContext } from "@remix-run/server-runtime";
-import { ResourceRequest } from "@webstudio-is/sdk";
-
-declare module "@remix-run/server-runtime" {
- interface AppLoadContext {
- EXCLUDE_FROM_SEARCH: boolean;
- getDefaultActionResource?: (options: {
- url: URL;
- projectId: string;
- contactEmail: string;
- formData: FormData;
- }) => ResourceRequest;
- }
-}
diff --git a/fixtures/webstudio-custom-template/app/root.tsx b/fixtures/webstudio-custom-template/app/root.tsx
deleted file mode 100644
index 3d3e04bd79..0000000000
--- a/fixtures/webstudio-custom-template/app/root.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import { useEffect } from "react";
-import { Links, Meta, Outlet } from "@remix-run/react";
-import { subscribe } from "./web-vitals";
-
-/**
- * Custom root so we can add some custom logic for specific resurces etc like analytics, etc.
- */
-const Root = () => {
- useEffect(subscribe, []);
-
- return (
- <html lang="en">
- <head>
- <meta charSet="utf-8" />
- <meta name="viewport" content="width=device-width,initial-scale=1" />
- <Meta />
- <Links />
- </head>
- <Outlet />
- </html>
- );
-};
-
-export default Root;
diff --git a/fixtures/webstudio-custom-template/app/routes/[hello]._index.ts b/fixtures/webstudio-custom-template/app/routes/[hello]._index.ts
deleted file mode 100644
index 8a4456debd..0000000000
--- a/fixtures/webstudio-custom-template/app/routes/[hello]._index.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import { redirect } from "@remix-run/server-runtime";
-import { url, status } from "../__generated__/[hello]._index";
-
-export const loader = () => {
- return redirect(url, status);
-};
diff --git a/fixtures/webstudio-custom-template/app/routes/[robots.txt].tsx b/fixtures/webstudio-custom-template/app/routes/[robots.txt].tsx
deleted file mode 100644
index aad4a9b368..0000000000
--- a/fixtures/webstudio-custom-template/app/routes/[robots.txt].tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import type { LoaderFunctionArgs } from "@remix-run/server-runtime";
-
-export const loader = (arg: LoaderFunctionArgs) => {
- const host =
- arg.request.headers.get("x-forwarded-host") ||
- arg.request.headers.get("host") ||
- "";
-
- return new Response(
- `
-User-agent: *
-Disallow: /api/
-
-Sitemap: https://${host}/sitemap.xml
-
- `,
- {
- headers: {
- "Content-Type": "text/plain",
- },
- status: 200,
- }
- );
-};
diff --git a/fixtures/webstudio-custom-template/app/routes/[script-test]._index.tsx b/fixtures/webstudio-custom-template/app/routes/[script-test]._index.tsx
deleted file mode 100644
index e1ef0f53c6..0000000000
--- a/fixtures/webstudio-custom-template/app/routes/[script-test]._index.tsx
+++ /dev/null
@@ -1,297 +0,0 @@
-import {
- type ServerRuntimeMetaFunction as MetaFunction,
- type LinksFunction,
- type LinkDescriptor,
- type ActionFunctionArgs,
- type LoaderFunctionArgs,
- type HeadersFunction,
- json,
- redirect,
-} from "@remix-run/server-runtime";
-import { useLoaderData } from "@remix-run/react";
-import {
- isLocalResource,
- loadResource,
- loadResources,
- formIdFieldName,
- formBotFieldName,
-} from "@webstudio-is/sdk/runtime";
-import {
- ReactSdkContext,
- PageSettingsMeta,
- PageSettingsTitle,
- PageSettingsCanonicalLink,
-} from "@webstudio-is/react-sdk/runtime";
-import {
- Page,
- siteName,
- favIconAsset,
- pageFontAssets,
- pageBackgroundImageAssets,
-} from "../__generated__/[script-test]._index";
-import {
- getResources,
- getPageMeta,
- getRemixParams,
- projectId,
- contactEmail,
-} from "../__generated__/[script-test]._index.server";
-import { assetBaseUrl, imageLoader } from "../constants.mjs";
-import css from "../__generated__/index.css?url";
-import { sitemap } from "../__generated__/$resources.sitemap.xml";
-
-const customFetch: typeof fetch = (input, init) => {
- if (typeof input !== "string") {
- return fetch(input, init);
- }
-
- if (isLocalResource(input, "sitemap.xml")) {
- // @todo: dynamic import sitemap ???
- const response = new Response(JSON.stringify(sitemap));
- response.headers.set("content-type", "application/json; charset=utf-8");
- return Promise.resolve(response);
- }
-
- return fetch(input, init);
-};
-
-export const loader = async (arg: LoaderFunctionArgs) => {
- const url = new URL(arg.request.url);
- const host =
- arg.request.headers.get("x-forwarded-host") ||
- arg.request.headers.get("host") ||
- "";
- url.host = host;
- url.protocol = "https";
-
- const params = getRemixParams(arg.params);
- const system = {
- params,
- search: Object.fromEntries(url.searchParams),
- origin: url.origin,
- };
-
- const resources = await loadResources(
- customFetch,
- getResources({ system }).data
- );
- const pageMeta = getPageMeta({ system, resources });
-
- if (pageMeta.redirect) {
- const status =
- pageMeta.status === 301 || pageMeta.status === 302
- ? pageMeta.status
- : 302;
- return redirect(pageMeta.redirect, status);
- }
-
- // typecheck
- arg.context.EXCLUDE_FROM_SEARCH satisfies boolean;
-
- if (arg.context.EXCLUDE_FROM_SEARCH) {
- pageMeta.excludePageFromSearch = arg.context.EXCLUDE_FROM_SEARCH;
- }
-
- return json(
- {
- host,
- url: url.href,
- system,
- resources,
- pageMeta,
- },
- // No way for current information to change, so add cache for 10 minutes
- // In case of CRM Data, this should be set to 0
- {
- status: pageMeta.status,
- headers: {
- "Cache-Control": "public, max-age=600",
- },
- }
- );
-};
-
-export const headers: HeadersFunction = () => {
- return {
- "Cache-Control": "public, max-age=0, must-revalidate",
- };
-};
-
-export const meta: MetaFunction<typeof loader> = ({ data }) => {
- const metas: ReturnType<MetaFunction> = [];
- if (data === undefined) {
- return metas;
- }
-
- const origin = `https://${data.host}`;
-
- if (siteName) {
- metas.push({
- "script:ld+json": {
- "@context": "https://schema.org",
- "@type": "WebSite",
- name: siteName,
- url: origin,
- },
- });
- }
-
- return metas;
-};
-
-export const links: LinksFunction = () => {
- const result: LinkDescriptor[] = [];
-
- result.push({
- rel: "stylesheet",
- href: css,
- });
-
- if (favIconAsset) {
- result.push({
- rel: "icon",
- href: imageLoader({
- src: `${assetBaseUrl}${favIconAsset.name}`,
- // width,height must be multiple of 48 https://developers.google.com/search/docs/appearance/favicon-in-search
- width: 144,
- height: 144,
- fit: "pad",
- quality: 100,
- format: "auto",
- }),
- type: undefined,
- });
- }
-
- for (const asset of pageFontAssets) {
- result.push({
- rel: "preload",
- href: `${assetBaseUrl}${asset.name}`,
- as: "font",
- crossOrigin: "anonymous",
- });
- }
-
- for (const backgroundImageAsset of pageBackgroundImageAssets) {
- result.push({
- rel: "preload",
- href: `${assetBaseUrl}${backgroundImageAsset.name}`,
- as: "image",
- });
- }
-
- return result;
-};
-
-const getRequestHost = (request: Request): string =>
- request.headers.get("x-forwarded-host") || request.headers.get("host") || "";
-
-export const action = async ({
- request,
- context,
-}: ActionFunctionArgs): Promise<
- { success: true } | { success: false; errors: string[] }
-> => {
- try {
- const url = new URL(request.url);
- url.host = getRequestHost(request);
-
- const formData = await request.formData();
-
- const system = {
- params: {},
- search: {},
- origin: url.origin,
- };
-
- const resourceName = formData.get(formIdFieldName);
- let resource =
- typeof resourceName === "string"
- ? getResources({ system }).action.get(resourceName)
- : undefined;
-
- const formBotValue = formData.get(formBotFieldName);
-
- if (formBotValue == null || typeof formBotValue !== "string") {
- throw new Error("Form bot field not found");
- }
-
- const submitTime = parseInt(formBotValue, 16);
- // Assumes that the difference between the server time and the form submission time,
- // including any client-server time drift, is within a 5-minute range.
- // Note: submitTime might be NaN because formBotValue can be any string used for logging purposes.
- // Example: `formBotValue: jsdom`, or `formBotValue: headless-env`
- if (
- Number.isNaN(submitTime) ||
- Math.abs(Date.now() - submitTime) > 1000 * 60 * 5
- ) {
- throw new Error(`Form bot value invalid ${formBotValue}`);
- }
-
- formData.delete(formIdFieldName);
- formData.delete(formBotFieldName);
-
- if (resource) {
- resource.headers.push({
- name: "Content-Type",
- value: "application/json",
- });
- resource.body = Object.fromEntries(formData);
- } else {
- if (contactEmail === undefined) {
- throw new Error("Contact email not found");
- }
-
- resource = context.getDefaultActionResource?.({
- url,
- projectId,
- contactEmail,
- formData,
- });
- }
-
- if (resource === undefined) {
- throw Error("Resource not found");
- }
- const { ok, statusText } = await loadResource(fetch, resource);
- if (ok) {
- return { success: true };
- }
- return { success: false, errors: [statusText] };
- } catch (error) {
- console.error(error);
-
- return {
- success: false,
- errors: [error instanceof Error ? error.message : "Unknown error"],
- };
- }
-};
-
-const Outlet = () => {
- const { system, resources, url, pageMeta, host } =
- useLoaderData<typeof loader>();
- return (
- <ReactSdkContext.Provider
- value={{
- imageLoader,
- assetBaseUrl,
- resources,
- }}
- >
- {/* Use the URL as the key to force scripts in HTML Embed to reload on dynamic pages */}
- <Page key={url} system={system} />
- <PageSettingsMeta
- url={url}
- pageMeta={pageMeta}
- host={host}
- siteName={siteName}
- imageLoader={imageLoader}
- />
- <PageSettingsTitle>{pageMeta.title}</PageSettingsTitle>
- <PageSettingsCanonicalLink href={url} />
- </ReactSdkContext.Provider>
- );
-};
-
-export default Outlet;
diff --git a/fixtures/webstudio-custom-template/app/routes/[sitemap.xml]._index.tsx b/fixtures/webstudio-custom-template/app/routes/[sitemap.xml]._index.tsx
deleted file mode 100644
index 942cf02983..0000000000
--- a/fixtures/webstudio-custom-template/app/routes/[sitemap.xml]._index.tsx
+++ /dev/null
@@ -1,89 +0,0 @@
-import { renderToString } from "react-dom/server";
-import { type LoaderFunctionArgs, redirect } from "@remix-run/server-runtime";
-import { isLocalResource, loadResources } from "@webstudio-is/sdk/runtime";
-import {
- ReactSdkContext,
- xmlNodeTagSuffix,
-} from "@webstudio-is/react-sdk/runtime";
-import { Page } from "../__generated__/[sitemap.xml]._index";
-import {
- getPageMeta,
- getRemixParams,
- getResources,
-} from "../__generated__/[sitemap.xml]._index.server";
-import { assetBaseUrl, imageLoader } from "../constants.mjs";
-import { sitemap } from "../__generated__/$resources.sitemap.xml";
-
-const customFetch: typeof fetch = (input, init) => {
- if (typeof input !== "string") {
- return fetch(input, init);
- }
-
- if (isLocalResource(input, "sitemap.xml")) {
- // @todo: dynamic import sitemap ???
- const response = new Response(JSON.stringify(sitemap));
- response.headers.set("content-type", "application/json; charset=utf-8");
- return Promise.resolve(response);
- }
-
- return fetch(input, init);
-};
-
-export const loader = async (arg: LoaderFunctionArgs) => {
- const url = new URL(arg.request.url);
- const host =
- arg.request.headers.get("x-forwarded-host") ||
- arg.request.headers.get("host") ||
- "";
- url.host = host;
- url.protocol = "https";
-
- const params = getRemixParams(arg.params);
-
- const system = {
- params,
- search: Object.fromEntries(url.searchParams),
- origin: url.origin,
- };
-
- const resources = await loadResources(
- customFetch,
- getResources({ system }).data
- );
- const pageMeta = getPageMeta({ system, resources });
-
- if (pageMeta.redirect) {
- const status =
- pageMeta.status === 301 || pageMeta.status === 302
- ? pageMeta.status
- : 302;
- return redirect(pageMeta.redirect, status);
- }
-
- // typecheck
- arg.context.EXCLUDE_FROM_SEARCH satisfies boolean;
-
- let text = renderToString(
- <ReactSdkContext.Provider
- value={{
- imageLoader,
- assetBaseUrl,
- resources,
- }}
- >
- <Page system={system} />
- </ReactSdkContext.Provider>
- );
-
- // Xml is wrapped with <svg> to prevent React from hoisting elements like <title>, <meta>, and <link> out of their intended scope during rendering.
- // More details: https://github.com/facebook/react/blob/7c8e5e7ab8bb63de911637892392c5efd8ce1d0f/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js#L3083
- text = text.replace(/^<svg>/g, "").replace(/<\/svg>$/g, "");
-
- // React has issues rendering certain elements, such as errors when a <link> element has children.
- // To render XML, we wrap it with an <svg> tag and add a suffix to avoid React's default behavior on these elements.
- text = text.replaceAll(xmlNodeTagSuffix, "");
-
- return new Response(`<?xml version="1.0" encoding="UTF-8"?>\n${text}`, {
- headers: { "Content-Type": "application/xml" },
- });
-};
diff --git a/fixtures/webstudio-custom-template/app/routes/[world]._index.tsx b/fixtures/webstudio-custom-template/app/routes/[world]._index.tsx
deleted file mode 100644
index 5e20e7ac2b..0000000000
--- a/fixtures/webstudio-custom-template/app/routes/[world]._index.tsx
+++ /dev/null
@@ -1,297 +0,0 @@
-import {
- type ServerRuntimeMetaFunction as MetaFunction,
- type LinksFunction,
- type LinkDescriptor,
- type ActionFunctionArgs,
- type LoaderFunctionArgs,
- type HeadersFunction,
- json,
- redirect,
-} from "@remix-run/server-runtime";
-import { useLoaderData } from "@remix-run/react";
-import {
- isLocalResource,
- loadResource,
- loadResources,
- formIdFieldName,
- formBotFieldName,
-} from "@webstudio-is/sdk/runtime";
-import {
- ReactSdkContext,
- PageSettingsMeta,
- PageSettingsTitle,
- PageSettingsCanonicalLink,
-} from "@webstudio-is/react-sdk/runtime";
-import {
- Page,
- siteName,
- favIconAsset,
- pageFontAssets,
- pageBackgroundImageAssets,
-} from "../__generated__/[world]._index";
-import {
- getResources,
- getPageMeta,
- getRemixParams,
- projectId,
- contactEmail,
-} from "../__generated__/[world]._index.server";
-import { assetBaseUrl, imageLoader } from "../constants.mjs";
-import css from "../__generated__/index.css?url";
-import { sitemap } from "../__generated__/$resources.sitemap.xml";
-
-const customFetch: typeof fetch = (input, init) => {
- if (typeof input !== "string") {
- return fetch(input, init);
- }
-
- if (isLocalResource(input, "sitemap.xml")) {
- // @todo: dynamic import sitemap ???
- const response = new Response(JSON.stringify(sitemap));
- response.headers.set("content-type", "application/json; charset=utf-8");
- return Promise.resolve(response);
- }
-
- return fetch(input, init);
-};
-
-export const loader = async (arg: LoaderFunctionArgs) => {
- const url = new URL(arg.request.url);
- const host =
- arg.request.headers.get("x-forwarded-host") ||
- arg.request.headers.get("host") ||
- "";
- url.host = host;
- url.protocol = "https";
-
- const params = getRemixParams(arg.params);
- const system = {
- params,
- search: Object.fromEntries(url.searchParams),
- origin: url.origin,
- };
-
- const resources = await loadResources(
- customFetch,
- getResources({ system }).data
- );
- const pageMeta = getPageMeta({ system, resources });
-
- if (pageMeta.redirect) {
- const status =
- pageMeta.status === 301 || pageMeta.status === 302
- ? pageMeta.status
- : 302;
- return redirect(pageMeta.redirect, status);
- }
-
- // typecheck
- arg.context.EXCLUDE_FROM_SEARCH satisfies boolean;
-
- if (arg.context.EXCLUDE_FROM_SEARCH) {
- pageMeta.excludePageFromSearch = arg.context.EXCLUDE_FROM_SEARCH;
- }
-
- return json(
- {
- host,
- url: url.href,
- system,
- resources,
- pageMeta,
- },
- // No way for current information to change, so add cache for 10 minutes
- // In case of CRM Data, this should be set to 0
- {
- status: pageMeta.status,
- headers: {
- "Cache-Control": "public, max-age=600",
- },
- }
- );
-};
-
-export const headers: HeadersFunction = () => {
- return {
- "Cache-Control": "public, max-age=0, must-revalidate",
- };
-};
-
-export const meta: MetaFunction<typeof loader> = ({ data }) => {
- const metas: ReturnType<MetaFunction> = [];
- if (data === undefined) {
- return metas;
- }
-
- const origin = `https://${data.host}`;
-
- if (siteName) {
- metas.push({
- "script:ld+json": {
- "@context": "https://schema.org",
- "@type": "WebSite",
- name: siteName,
- url: origin,
- },
- });
- }
-
- return metas;
-};
-
-export const links: LinksFunction = () => {
- const result: LinkDescriptor[] = [];
-
- result.push({
- rel: "stylesheet",
- href: css,
- });
-
- if (favIconAsset) {
- result.push({
- rel: "icon",
- href: imageLoader({
- src: `${assetBaseUrl}${favIconAsset.name}`,
- // width,height must be multiple of 48 https://developers.google.com/search/docs/appearance/favicon-in-search
- width: 144,
- height: 144,
- fit: "pad",
- quality: 100,
- format: "auto",
- }),
- type: undefined,
- });
- }
-
- for (const asset of pageFontAssets) {
- result.push({
- rel: "preload",
- href: `${assetBaseUrl}${asset.name}`,
- as: "font",
- crossOrigin: "anonymous",
- });
- }
-
- for (const backgroundImageAsset of pageBackgroundImageAssets) {
- result.push({
- rel: "preload",
- href: `${assetBaseUrl}${backgroundImageAsset.name}`,
- as: "image",
- });
- }
-
- return result;
-};
-
-const getRequestHost = (request: Request): string =>
- request.headers.get("x-forwarded-host") || request.headers.get("host") || "";
-
-export const action = async ({
- request,
- context,
-}: ActionFunctionArgs): Promise<
- { success: true } | { success: false; errors: string[] }
-> => {
- try {
- const url = new URL(request.url);
- url.host = getRequestHost(request);
-
- const formData = await request.formData();
-
- const system = {
- params: {},
- search: {},
- origin: url.origin,
- };
-
- const resourceName = formData.get(formIdFieldName);
- let resource =
- typeof resourceName === "string"
- ? getResources({ system }).action.get(resourceName)
- : undefined;
-
- const formBotValue = formData.get(formBotFieldName);
-
- if (formBotValue == null || typeof formBotValue !== "string") {
- throw new Error("Form bot field not found");
- }
-
- const submitTime = parseInt(formBotValue, 16);
- // Assumes that the difference between the server time and the form submission time,
- // including any client-server time drift, is within a 5-minute range.
- // Note: submitTime might be NaN because formBotValue can be any string used for logging purposes.
- // Example: `formBotValue: jsdom`, or `formBotValue: headless-env`
- if (
- Number.isNaN(submitTime) ||
- Math.abs(Date.now() - submitTime) > 1000 * 60 * 5
- ) {
- throw new Error(`Form bot value invalid ${formBotValue}`);
- }
-
- formData.delete(formIdFieldName);
- formData.delete(formBotFieldName);
-
- if (resource) {
- resource.headers.push({
- name: "Content-Type",
- value: "application/json",
- });
- resource.body = Object.fromEntries(formData);
- } else {
- if (contactEmail === undefined) {
- throw new Error("Contact email not found");
- }
-
- resource = context.getDefaultActionResource?.({
- url,
- projectId,
- contactEmail,
- formData,
- });
- }
-
- if (resource === undefined) {
- throw Error("Resource not found");
- }
- const { ok, statusText } = await loadResource(fetch, resource);
- if (ok) {
- return { success: true };
- }
- return { success: false, errors: [statusText] };
- } catch (error) {
- console.error(error);
-
- return {
- success: false,
- errors: [error instanceof Error ? error.message : "Unknown error"],
- };
- }
-};
-
-const Outlet = () => {
- const { system, resources, url, pageMeta, host } =
- useLoaderData<typeof loader>();
- return (
- <ReactSdkContext.Provider
- value={{
- imageLoader,
- assetBaseUrl,
- resources,
- }}
- >
- {/* Use the URL as the key to force scripts in HTML Embed to reload on dynamic pages */}
- <Page key={url} system={system} />
- <PageSettingsMeta
- url={url}
- pageMeta={pageMeta}
- host={host}
- siteName={siteName}
- imageLoader={imageLoader}
- />
- <PageSettingsTitle>{pageMeta.title}</PageSettingsTitle>
- <PageSettingsCanonicalLink href={url} />
- </ReactSdkContext.Provider>
- );
-};
-
-export default Outlet;
diff --git a/fixtures/webstudio-custom-template/app/routes/_index.tsx b/fixtures/webstudio-custom-template/app/routes/_index.tsx
deleted file mode 100644
index 9bc280da9b..0000000000
--- a/fixtures/webstudio-custom-template/app/routes/_index.tsx
+++ /dev/null
@@ -1,297 +0,0 @@
-import {
- type ServerRuntimeMetaFunction as MetaFunction,
- type LinksFunction,
- type LinkDescriptor,
- type ActionFunctionArgs,
- type LoaderFunctionArgs,
- type HeadersFunction,
- json,
- redirect,
-} from "@remix-run/server-runtime";
-import { useLoaderData } from "@remix-run/react";
-import {
- isLocalResource,
- loadResource,
- loadResources,
- formIdFieldName,
- formBotFieldName,
-} from "@webstudio-is/sdk/runtime";
-import {
- ReactSdkContext,
- PageSettingsMeta,
- PageSettingsTitle,
- PageSettingsCanonicalLink,
-} from "@webstudio-is/react-sdk/runtime";
-import {
- Page,
- siteName,
- favIconAsset,
- pageFontAssets,
- pageBackgroundImageAssets,
-} from "../__generated__/_index";
-import {
- getResources,
- getPageMeta,
- getRemixParams,
- projectId,
- contactEmail,
-} from "../__generated__/_index.server";
-import { assetBaseUrl, imageLoader } from "../constants.mjs";
-import css from "../__generated__/index.css?url";
-import { sitemap } from "../__generated__/$resources.sitemap.xml";
-
-const customFetch: typeof fetch = (input, init) => {
- if (typeof input !== "string") {
- return fetch(input, init);
- }
-
- if (isLocalResource(input, "sitemap.xml")) {
- // @todo: dynamic import sitemap ???
- const response = new Response(JSON.stringify(sitemap));
- response.headers.set("content-type", "application/json; charset=utf-8");
- return Promise.resolve(response);
- }
-
- return fetch(input, init);
-};
-
-export const loader = async (arg: LoaderFunctionArgs) => {
- const url = new URL(arg.request.url);
- const host =
- arg.request.headers.get("x-forwarded-host") ||
- arg.request.headers.get("host") ||
- "";
- url.host = host;
- url.protocol = "https";
-
- const params = getRemixParams(arg.params);
- const system = {
- params,
- search: Object.fromEntries(url.searchParams),
- origin: url.origin,
- };
-
- const resources = await loadResources(
- customFetch,
- getResources({ system }).data
- );
- const pageMeta = getPageMeta({ system, resources });
-
- if (pageMeta.redirect) {
- const status =
- pageMeta.status === 301 || pageMeta.status === 302
- ? pageMeta.status
- : 302;
- return redirect(pageMeta.redirect, status);
- }
-
- // typecheck
- arg.context.EXCLUDE_FROM_SEARCH satisfies boolean;
-
- if (arg.context.EXCLUDE_FROM_SEARCH) {
- pageMeta.excludePageFromSearch = arg.context.EXCLUDE_FROM_SEARCH;
- }
-
- return json(
- {
- host,
- url: url.href,
- system,
- resources,
- pageMeta,
- },
- // No way for current information to change, so add cache for 10 minutes
- // In case of CRM Data, this should be set to 0
- {
- status: pageMeta.status,
- headers: {
- "Cache-Control": "public, max-age=600",
- },
- }
- );
-};
-
-export const headers: HeadersFunction = () => {
- return {
- "Cache-Control": "public, max-age=0, must-revalidate",
- };
-};
-
-export const meta: MetaFunction<typeof loader> = ({ data }) => {
- const metas: ReturnType<MetaFunction> = [];
- if (data === undefined) {
- return metas;
- }
-
- const origin = `https://${data.host}`;
-
- if (siteName) {
- metas.push({
- "script:ld+json": {
- "@context": "https://schema.org",
- "@type": "WebSite",
- name: siteName,
- url: origin,
- },
- });
- }
-
- return metas;
-};
-
-export const links: LinksFunction = () => {
- const result: LinkDescriptor[] = [];
-
- result.push({
- rel: "stylesheet",
- href: css,
- });
-
- if (favIconAsset) {
- result.push({
- rel: "icon",
- href: imageLoader({
- src: `${assetBaseUrl}${favIconAsset.name}`,
- // width,height must be multiple of 48 https://developers.google.com/search/docs/appearance/favicon-in-search
- width: 144,
- height: 144,
- fit: "pad",
- quality: 100,
- format: "auto",
- }),
- type: undefined,
- });
- }
-
- for (const asset of pageFontAssets) {
- result.push({
- rel: "preload",
- href: `${assetBaseUrl}${asset.name}`,
- as: "font",
- crossOrigin: "anonymous",
- });
- }
-
- for (const backgroundImageAsset of pageBackgroundImageAssets) {
- result.push({
- rel: "preload",
- href: `${assetBaseUrl}${backgroundImageAsset.name}`,
- as: "image",
- });
- }
-
- return result;
-};
-
-const getRequestHost = (request: Request): string =>
- request.headers.get("x-forwarded-host") || request.headers.get("host") || "";
-
-export const action = async ({
- request,
- context,
-}: ActionFunctionArgs): Promise<
- { success: true } | { success: false; errors: string[] }
-> => {
- try {
- const url = new URL(request.url);
- url.host = getRequestHost(request);
-
- const formData = await request.formData();
-
- const system = {
- params: {},
- search: {},
- origin: url.origin,
- };
-
- const resourceName = formData.get(formIdFieldName);
- let resource =
- typeof resourceName === "string"
- ? getResources({ system }).action.get(resourceName)
- : undefined;
-
- const formBotValue = formData.get(formBotFieldName);
-
- if (formBotValue == null || typeof formBotValue !== "string") {
- throw new Error("Form bot field not found");
- }
-
- const submitTime = parseInt(formBotValue, 16);
- // Assumes that the difference between the server time and the form submission time,
- // including any client-server time drift, is within a 5-minute range.
- // Note: submitTime might be NaN because formBotValue can be any string used for logging purposes.
- // Example: `formBotValue: jsdom`, or `formBotValue: headless-env`
- if (
- Number.isNaN(submitTime) ||
- Math.abs(Date.now() - submitTime) > 1000 * 60 * 5
- ) {
- throw new Error(`Form bot value invalid ${formBotValue}`);
- }
-
- formData.delete(formIdFieldName);
- formData.delete(formBotFieldName);
-
- if (resource) {
- resource.headers.push({
- name: "Content-Type",
- value: "application/json",
- });
- resource.body = Object.fromEntries(formData);
- } else {
- if (contactEmail === undefined) {
- throw new Error("Contact email not found");
- }
-
- resource = context.getDefaultActionResource?.({
- url,
- projectId,
- contactEmail,
- formData,
- });
- }
-
- if (resource === undefined) {
- throw Error("Resource not found");
- }
- const { ok, statusText } = await loadResource(fetch, resource);
- if (ok) {
- return { success: true };
- }
- return { success: false, errors: [statusText] };
- } catch (error) {
- console.error(error);
-
- return {
- success: false,
- errors: [error instanceof Error ? error.message : "Unknown error"],
- };
- }
-};
-
-const Outlet = () => {
- const { system, resources, url, pageMeta, host } =
- useLoaderData<typeof loader>();
- return (
- <ReactSdkContext.Provider
- value={{
- imageLoader,
- assetBaseUrl,
- resources,
- }}
- >
- {/* Use the URL as the key to force scripts in HTML Embed to reload on dynamic pages */}
- <Page key={url} system={system} />
- <PageSettingsMeta
- url={url}
- pageMeta={pageMeta}
- host={host}
- siteName={siteName}
- imageLoader={imageLoader}
- />
- <PageSettingsTitle>{pageMeta.title}</PageSettingsTitle>
- <PageSettingsCanonicalLink href={url} />
- </ReactSdkContext.Provider>
- );
-};
-
-export default Outlet;
diff --git a/fixtures/webstudio-custom-template/app/web-vitals.ts b/fixtures/webstudio-custom-template/app/web-vitals.ts
deleted file mode 100644
index f04d89e8aa..0000000000
--- a/fixtures/webstudio-custom-template/app/web-vitals.ts
+++ /dev/null
@@ -1,234 +0,0 @@
-/**
- * This code is based on work from the web.dev project by GoogleChrome.
- * Source: https://github.com/GoogleChrome/web.dev/blob/a64d870f59c25431bbedf0ef06aa635072c43a2e/src/lib/analytics.js
- * Licensed under CC BY 3.0: https://creativecommons.org/licenses/by/3.0/ https://github.com/GoogleChrome/web.dev/blob/main/LICENSE
- * Changes were made to the original work.
- */
-
-import {
- onCLS,
- onFCP,
- onFID,
- onINP,
- onLCP,
- onTTFB,
- type CLSReportCallbackWithAttribution,
- type FCPReportCallbackWithAttribution,
- type FIDReportCallbackWithAttribution,
- type INPReportCallbackWithAttribution,
- type LCPReportCallbackWithAttribution,
- type TTFBReportCallbackWithAttribution,
- type ReportOpts,
-} from "web-vitals/attribution";
-
-const logEvent = (
- name: string,
- params: {
- /* */
- metric_value: number;
- }
-) => {
- performance.measure(`${name}`, {
- detail: JSON.stringify(params),
- duration: params.metric_value,
- start: performance.now(),
- });
-
- console.info(JSON.stringify({ name, params }));
-};
-
-const buildElementHumanReadablePath = (element: Element) => {
- let content =
- element.tagName + " > " + (element?.textContent ?? "").slice(0, 100);
-
- let node: null | Element = element;
-
- while (node != null) {
- content = node.tagName + " > " + content;
- node = node.parentElement;
- }
-
- return content;
-};
-
-const sendToAnalitics: CLSReportCallbackWithAttribution &
- FCPReportCallbackWithAttribution &
- FIDReportCallbackWithAttribution &
- INPReportCallbackWithAttribution &
- LCPReportCallbackWithAttribution &
- TTFBReportCallbackWithAttribution = ({
- name,
- value,
- delta,
- id,
- attribution,
- navigationType,
-}) => {
- const params = {
- event_category: "Web Vitals",
- // The `id` value will be unique to the current page load. When sending
- // multiple values from the same page (e.g. for CLS), Google Analytics can
- // compute a total by grouping on this ID (note: requires `eventLabel` to
- // be a dimension in your report).
- event_label: id,
- // Google Analytics metrics must be integers, so the value is rounded.
- // For CLS the value is first multiplied by 1000 for greater precision
- // (note: increase the multiplier for greater precision if needed).
- value: Math.round(name === "CLS" ? delta * 1000 : delta),
- // Send the raw metric value in addition to the value computed for GA
- // so it's available in BigQuery and the API.
- metric_value: value,
- // This should already by set globally, but to ensure it's consistent
- // with the web-vitals library, set it again.
- // Override for 'navigational-prefetch' for the prefetch origin trial
- // experiment (https://github.com/GoogleChrome/web.dev/pull/9532)
- navigation_type:
- navigationType === "navigate" &&
- performance.getEntriesByType &&
- performance.getEntriesByType("navigation")[0] &&
- (
- performance.getEntriesByType("navigation")[0] as unknown as {
- deliveryType: string;
- }
- ).deliveryType === "navigational-prefetch"
- ? "navigational-prefetch"
- : navigationType,
- url: location.href,
-
- debug_target_path: undefined as unknown as string,
- last_touched_path: undefined as unknown as string,
- };
-
- let overrides;
- let debugInputDelay;
- let debugProcessingTime;
- let debugPresentationDelay;
-
- switch (name) {
- case "CLS":
- overrides = {
- debug_time: attribution.largestShiftTime,
- debug_load_state: attribution.loadState,
- debug_target: attribution.largestShiftTarget || "(not set)",
- };
- break;
- case "FCP":
- overrides = {
- debug_ttfb: attribution.timeToFirstByte,
- debug_fb2fcp: attribution.firstByteToFCP,
- debug_load_state: attribution.loadState,
- debug_target: attribution.loadState || "(not set)",
- };
- break;
- case "FID":
- overrides = {
- debug_event: attribution.eventType,
- debug_time: attribution.eventTime,
- debug_load_state: attribution.loadState,
- debug_target: attribution.eventTarget || "(not set)",
- };
- break;
- case "INP":
- if (attribution.eventEntry) {
- debugInputDelay = Math.round(
- attribution.eventEntry.processingStart -
- attribution.eventEntry.startTime
- );
- debugProcessingTime = Math.round(
- attribution.eventEntry.processingEnd -
- attribution.eventEntry.processingStart
- );
- debugPresentationDelay = Math.round(
- // RenderTime is an estimate, because duration is rounded, and may get rounded down.
- // In rare cases it can be less than processingEnd and that breaks performance.measure().
- // Lets make sure its at least 4ms in those cases so you can just barely see it.
- Math.max(
- attribution.eventEntry.processingEnd + 4,
- attribution.eventEntry.startTime + attribution.eventEntry.duration
- ) - attribution.eventEntry.processingEnd
- );
- }
- overrides = {
- debug_event: attribution.eventType,
- debug_time: attribution.eventTime,
- debug_load_state: attribution.loadState,
- debug_target: attribution.eventTarget || "(not set)",
- debug_input_delay: debugInputDelay,
- debug_processing_time: debugProcessingTime,
- debug_presentation_delay: debugPresentationDelay,
- };
- break;
- case "LCP":
- overrides = {
- debug_url: attribution.url,
- debug_ttfb: attribution.timeToFirstByte,
- debug_rld: attribution.resourceLoadDelay,
- debug_rlt: attribution.resourceLoadTime,
- debug_erd: attribution.elementRenderDelay,
- debug_target: attribution.element || "(not set)",
- };
- break;
- case "TTFB":
- overrides = {
- debug_waiting_time: attribution.waitingTime,
- debug_dns_time: attribution.dnsTime,
- debug_connection_time: attribution.connectionTime,
- debug_request_time: attribution.requestTime,
- };
- break;
- }
-
- let selector = "";
- if ("debug_target" in overrides && overrides.debug_target !== "(not set)") {
- try {
- // Fix radix like selectors with `:` inside
- selector = overrides.debug_target.replace(/([:])/g, "\\$1");
- const element = document.querySelector(selector);
-
- if (element) {
- const content = buildElementHumanReadablePath(element);
- params.debug_target_path = content;
- }
- } catch (error) {
- console.error(error);
-
- console.error(`selector: ${selector} seems like not working`);
- }
- }
-
- logEvent(name, Object.assign(params, overrides, { is_mobile: _isMobile }));
-};
-
-let _subscribed = false;
-let _isMobile = false;
-
-export const subscribe = () => {
- const reportOptions: ReportOpts = {
- durationThreshold: 0,
- reportAllChanges: true,
- };
-
- if (_subscribed === false) {
- onCLS(sendToAnalitics, reportOptions);
- onFCP(sendToAnalitics, reportOptions);
- onFID(sendToAnalitics, reportOptions);
- onINP(sendToAnalitics, reportOptions);
- onLCP(sendToAnalitics, reportOptions);
- onTTFB(sendToAnalitics, reportOptions);
- }
-
- try {
- _isMobile = window.matchMedia("(hover: none)").matches;
- } catch (error) {
- console.error(error);
- }
-
- const options = {
- capture: true,
- passive: true,
- };
-
- _subscribed = true;
-
- return () => {};
-};
diff --git a/fixtures/webstudio-custom-template/custom-template-stage/app/root.tsx b/fixtures/webstudio-custom-template/custom-template-stage/app/root.tsx
deleted file mode 100644
index 3d3e04bd79..0000000000
--- a/fixtures/webstudio-custom-template/custom-template-stage/app/root.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import { useEffect } from "react";
-import { Links, Meta, Outlet } from "@remix-run/react";
-import { subscribe } from "./web-vitals";
-
-/**
- * Custom root so we can add some custom logic for specific resurces etc like analytics, etc.
- */
-const Root = () => {
- useEffect(subscribe, []);
-
- return (
- <html lang="en">
- <head>
- <meta charSet="utf-8" />
- <meta name="viewport" content="width=device-width,initial-scale=1" />
- <Meta />
- <Links />
- </head>
- <Outlet />
- </html>
- );
-};
-
-export default Root;
diff --git a/fixtures/webstudio-custom-template/custom-template-stage/app/web-vitals.ts b/fixtures/webstudio-custom-template/custom-template-stage/app/web-vitals.ts
deleted file mode 100644
index f04d89e8aa..0000000000
--- a/fixtures/webstudio-custom-template/custom-template-stage/app/web-vitals.ts
+++ /dev/null
@@ -1,234 +0,0 @@
-/**
- * This code is based on work from the web.dev project by GoogleChrome.
- * Source: https://github.com/GoogleChrome/web.dev/blob/a64d870f59c25431bbedf0ef06aa635072c43a2e/src/lib/analytics.js
- * Licensed under CC BY 3.0: https://creativecommons.org/licenses/by/3.0/ https://github.com/GoogleChrome/web.dev/blob/main/LICENSE
- * Changes were made to the original work.
- */
-
-import {
- onCLS,
- onFCP,
- onFID,
- onINP,
- onLCP,
- onTTFB,
- type CLSReportCallbackWithAttribution,
- type FCPReportCallbackWithAttribution,
- type FIDReportCallbackWithAttribution,
- type INPReportCallbackWithAttribution,
- type LCPReportCallbackWithAttribution,
- type TTFBReportCallbackWithAttribution,
- type ReportOpts,
-} from "web-vitals/attribution";
-
-const logEvent = (
- name: string,
- params: {
- /* */
- metric_value: number;
- }
-) => {
- performance.measure(`${name}`, {
- detail: JSON.stringify(params),
- duration: params.metric_value,
- start: performance.now(),
- });
-
- console.info(JSON.stringify({ name, params }));
-};
-
-const buildElementHumanReadablePath = (element: Element) => {
- let content =
- element.tagName + " > " + (element?.textContent ?? "").slice(0, 100);
-
- let node: null | Element = element;
-
- while (node != null) {
- content = node.tagName + " > " + content;
- node = node.parentElement;
- }
-
- return content;
-};
-
-const sendToAnalitics: CLSReportCallbackWithAttribution &
- FCPReportCallbackWithAttribution &
- FIDReportCallbackWithAttribution &
- INPReportCallbackWithAttribution &
- LCPReportCallbackWithAttribution &
- TTFBReportCallbackWithAttribution = ({
- name,
- value,
- delta,
- id,
- attribution,
- navigationType,
-}) => {
- const params = {
- event_category: "Web Vitals",
- // The `id` value will be unique to the current page load. When sending
- // multiple values from the same page (e.g. for CLS), Google Analytics can
- // compute a total by grouping on this ID (note: requires `eventLabel` to
- // be a dimension in your report).
- event_label: id,
- // Google Analytics metrics must be integers, so the value is rounded.
- // For CLS the value is first multiplied by 1000 for greater precision
- // (note: increase the multiplier for greater precision if needed).
- value: Math.round(name === "CLS" ? delta * 1000 : delta),
- // Send the raw metric value in addition to the value computed for GA
- // so it's available in BigQuery and the API.
- metric_value: value,
- // This should already by set globally, but to ensure it's consistent
- // with the web-vitals library, set it again.
- // Override for 'navigational-prefetch' for the prefetch origin trial
- // experiment (https://github.com/GoogleChrome/web.dev/pull/9532)
- navigation_type:
- navigationType === "navigate" &&
- performance.getEntriesByType &&
- performance.getEntriesByType("navigation")[0] &&
- (
- performance.getEntriesByType("navigation")[0] as unknown as {
- deliveryType: string;
- }
- ).deliveryType === "navigational-prefetch"
- ? "navigational-prefetch"
- : navigationType,
- url: location.href,
-
- debug_target_path: undefined as unknown as string,
- last_touched_path: undefined as unknown as string,
- };
-
- let overrides;
- let debugInputDelay;
- let debugProcessingTime;
- let debugPresentationDelay;
-
- switch (name) {
- case "CLS":
- overrides = {
- debug_time: attribution.largestShiftTime,
- debug_load_state: attribution.loadState,
- debug_target: attribution.largestShiftTarget || "(not set)",
- };
- break;
- case "FCP":
- overrides = {
- debug_ttfb: attribution.timeToFirstByte,
- debug_fb2fcp: attribution.firstByteToFCP,
- debug_load_state: attribution.loadState,
- debug_target: attribution.loadState || "(not set)",
- };
- break;
- case "FID":
- overrides = {
- debug_event: attribution.eventType,
- debug_time: attribution.eventTime,
- debug_load_state: attribution.loadState,
- debug_target: attribution.eventTarget || "(not set)",
- };
- break;
- case "INP":
- if (attribution.eventEntry) {
- debugInputDelay = Math.round(
- attribution.eventEntry.processingStart -
- attribution.eventEntry.startTime
- );
- debugProcessingTime = Math.round(
- attribution.eventEntry.processingEnd -
- attribution.eventEntry.processingStart
- );
- debugPresentationDelay = Math.round(
- // RenderTime is an estimate, because duration is rounded, and may get rounded down.
- // In rare cases it can be less than processingEnd and that breaks performance.measure().
- // Lets make sure its at least 4ms in those cases so you can just barely see it.
- Math.max(
- attribution.eventEntry.processingEnd + 4,
- attribution.eventEntry.startTime + attribution.eventEntry.duration
- ) - attribution.eventEntry.processingEnd
- );
- }
- overrides = {
- debug_event: attribution.eventType,
- debug_time: attribution.eventTime,
- debug_load_state: attribution.loadState,
- debug_target: attribution.eventTarget || "(not set)",
- debug_input_delay: debugInputDelay,
- debug_processing_time: debugProcessingTime,
- debug_presentation_delay: debugPresentationDelay,
- };
- break;
- case "LCP":
- overrides = {
- debug_url: attribution.url,
- debug_ttfb: attribution.timeToFirstByte,
- debug_rld: attribution.resourceLoadDelay,
- debug_rlt: attribution.resourceLoadTime,
- debug_erd: attribution.elementRenderDelay,
- debug_target: attribution.element || "(not set)",
- };
- break;
- case "TTFB":
- overrides = {
- debug_waiting_time: attribution.waitingTime,
- debug_dns_time: attribution.dnsTime,
- debug_connection_time: attribution.connectionTime,
- debug_request_time: attribution.requestTime,
- };
- break;
- }
-
- let selector = "";
- if ("debug_target" in overrides && overrides.debug_target !== "(not set)") {
- try {
- // Fix radix like selectors with `:` inside
- selector = overrides.debug_target.replace(/([:])/g, "\\$1");
- const element = document.querySelector(selector);
-
- if (element) {
- const content = buildElementHumanReadablePath(element);
- params.debug_target_path = content;
- }
- } catch (error) {
- console.error(error);
-
- console.error(`selector: ${selector} seems like not working`);
- }
- }
-
- logEvent(name, Object.assign(params, overrides, { is_mobile: _isMobile }));
-};
-
-let _subscribed = false;
-let _isMobile = false;
-
-export const subscribe = () => {
- const reportOptions: ReportOpts = {
- durationThreshold: 0,
- reportAllChanges: true,
- };
-
- if (_subscribed === false) {
- onCLS(sendToAnalitics, reportOptions);
- onFCP(sendToAnalitics, reportOptions);
- onFID(sendToAnalitics, reportOptions);
- onINP(sendToAnalitics, reportOptions);
- onLCP(sendToAnalitics, reportOptions);
- onTTFB(sendToAnalitics, reportOptions);
- }
-
- try {
- _isMobile = window.matchMedia("(hover: none)").matches;
- } catch (error) {
- console.error(error);
- }
-
- const options = {
- capture: true,
- passive: true,
- };
-
- _subscribed = true;
-
- return () => {};
-};
diff --git a/fixtures/webstudio-custom-template/custom-template/app/constants.mjs b/fixtures/webstudio-custom-template/custom-template/app/constants.mjs
deleted file mode 100644
index d234f059b5..0000000000
--- a/fixtures/webstudio-custom-template/custom-template/app/constants.mjs
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * We use mjs extension as constants in this file is shared with the build script
- * and we use `node --eval` to extract the constants.
- */
-export const assetBaseUrl = "/custom-folder/";
-export const imageBaseUrl = "/custom-folder/";
-
-/**
- * @type {import("@webstudio-is/image").ImageLoader}
- */
-export const imageLoader = ({ src }) => {
- return assetBaseUrl + src;
-};
diff --git a/fixtures/webstudio-custom-template/custom-template/package.json b/fixtures/webstudio-custom-template/custom-template/package.json
deleted file mode 100644
index a3c6e2442b..0000000000
--- a/fixtures/webstudio-custom-template/custom-template/package.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "scripts": {
- "custom-template-script": "echo \"This is a custom template script\""
- }
-}
diff --git a/fixtures/webstudio-custom-template/package.json b/fixtures/webstudio-custom-template/package.json
deleted file mode 100644
index 95814424e8..0000000000
--- a/fixtures/webstudio-custom-template/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "scripts": {
- "custom-template-script": "echo \"This is a custom template script\"",
- "build": "remix vite:build",
- "dev": "remix vite:dev",
- "typecheck": "tsc",
- "cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
- "fixtures:link": "pnpm cli link --link https://p-0d856812-61d8-4014-a20a-82e01c0eb8ee-dot-${BUILDER_HOST:-main.development.webstudio.is}'?authToken=d225fafb-4f20-4340-9359-c21df7c49a3f'",
- "fixtures:sync": "pnpm cli sync --buildId d48c7c5e-fdd3-4ef6-9173-ff2eaaf851d9 && pnpm prettier --write ./.webstudio/",
- "fixtures:build": "pnpm cli build --template defaults --template ./custom-template --template ./custom-template-stage --template internal --assets false && pnpm prettier --write ./app/ ./package.json ./tsconfig.json"
- },
- "private": true,
- "sideEffects": false,
- "dependencies": {
- "@remix-run/node": "2.15.2",
- "@remix-run/react": "2.15.2",
- "@remix-run/server-runtime": "2.15.2",
- "@webstudio-is/image": "workspace:*",
- "@webstudio-is/react-sdk": "workspace:*",
- "@webstudio-is/sdk": "workspace:*",
- "@webstudio-is/sdk-components-animation": "workspace:*",
- "@webstudio-is/sdk-components-react": "workspace:*",
- "@webstudio-is/sdk-components-react-radix": "workspace:*",
- "@webstudio-is/sdk-components-react-remix": "workspace:*",
- "isbot": "^5.1.22",
- "react": "18.3.0-canary-14898b6a9-20240318",
- "react-dom": "18.3.0-canary-14898b6a9-20240318",
- "web-vitals": "^3.5.2"
- },
- "devDependencies": {
- "@remix-run/dev": "2.15.2",
- "@types/react": "^18.2.70",
- "@types/react-dom": "^18.2.25",
- "typescript": "5.7.3",
- "vite": "^5.4.11",
- "webstudio": "workspace:*"
- },
- "engines": {
- "node": ">=20.0.0"
- },
- "size-limit": [
- {
- "path": "public/build/*.js",
- "limit": "160 kB",
- "gzip": false
- }
- ],
- "name": "webstudio-custom-template",
- "version": "0.0.1",
- "description": "",
- "main": "index.js",
- "keywords": [],
- "author": "",
- "license": "AGPL-3.0-or-later",
- "type": "module"
-}
diff --git a/fixtures/webstudio-custom-template/public/custom-folder/CormorantGaramond-Medium_-nWJ-OtHncaW9xDHQ9hSA_CBl88Oo59QKH_z9pCWva2.woff2 b/fixtures/webstudio-custom-template/public/custom-folder/CormorantGaramond-Medium_-nWJ-OtHncaW9xDHQ9hSA_CBl88Oo59QKH_z9pCWva2.woff2
deleted file mode 100644
index e7f98ba27f..0000000000
Binary files a/fixtures/webstudio-custom-template/public/custom-folder/CormorantGaramond-Medium_-nWJ-OtHncaW9xDHQ9hSA_CBl88Oo59QKH_z9pCWva2.woff2 and /dev/null differ
diff --git a/fixtures/webstudio-custom-template/public/custom-folder/_937084ed-a798-49fe-8664-df93a2af605e_1JqSy_0Wy9fY5mXNZSLJ0.jpeg b/fixtures/webstudio-custom-template/public/custom-folder/_937084ed-a798-49fe-8664-df93a2af605e_1JqSy_0Wy9fY5mXNZSLJ0.jpeg
deleted file mode 100644
index 1c8219b73b..0000000000
Binary files a/fixtures/webstudio-custom-template/public/custom-folder/_937084ed-a798-49fe-8664-df93a2af605e_1JqSy_0Wy9fY5mXNZSLJ0.jpeg and /dev/null differ
diff --git a/fixtures/webstudio-custom-template/public/custom-folder/home_wsKvRSqvkajPPBeycZ-C8.svg b/fixtures/webstudio-custom-template/public/custom-folder/home_wsKvRSqvkajPPBeycZ-C8.svg
deleted file mode 100644
index 67284862e7..0000000000
--- a/fixtures/webstudio-custom-template/public/custom-folder/home_wsKvRSqvkajPPBeycZ-C8.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path fill-rule="evenodd" clip-rule="evenodd" d="M7.6559 0.907089C7.88124 0.846075 8.11876 0.846075 8.34411 0.907089C8.60553 0.97787 8.82581 1.15075 9.00433 1.29086C9.02124 1.30414 9.03777 1.31712 9.05393 1.32968L13.5755 4.84644C13.5927 4.85983 13.6098 4.87308 13.6267 4.88623C13.8784 5.08159 14.0978 5.25187 14.2612 5.47281C14.4047 5.66677 14.5116 5.88528 14.5766 6.11759C14.6507 6.38223 14.6504 6.65995 14.65 6.9786C14.65 7.00004 14.65 7.02165 14.65 7.04347V11.8919C14.65 12.2438 14.65 12.5464 14.6297 12.7954C14.6082 13.0579 14.561 13.3177 14.4338 13.5672C14.2437 13.9404 13.9403 14.2438 13.5671 14.4339C13.3176 14.561 13.0579 14.6083 12.7953 14.6298C12.5463 14.6501 12.2437 14.6501 11.8918 14.6501H4.10816C3.75628 14.6501 3.4537 14.6501 3.20467 14.6298C2.94214 14.6083 2.68243 14.561 2.43292 14.4339C2.05973 14.2438 1.75632 13.9404 1.56617 13.5672C1.43904 13.3177 1.39178 13.0579 1.37033 12.7954C1.34998 12.5464 1.34999 12.2438 1.35 11.8919L1.35 7.04347C1.35 7.02165 1.34998 7.00003 1.34996 6.9786C1.34963 6.65995 1.34934 6.38222 1.42341 6.11759C1.48844 5.88527 1.59531 5.66677 1.73876 5.47281C1.90218 5.25187 2.12158 5.08159 2.3733 4.88623C2.39024 4.87308 2.40732 4.85983 2.42453 4.84644L6.94607 1.32968C6.96223 1.31711 6.97877 1.30414 6.99568 1.29086C7.1742 1.15075 7.39448 0.97787 7.6559 0.907089ZM6.65 13.3501H9.35V9.06675C9.35 8.86934 9.3495 8.76038 9.34308 8.68182C9.34236 8.67303 9.34162 8.66552 9.34091 8.65918C9.33457 8.65847 9.32706 8.65773 9.31827 8.65701C9.23971 8.65059 9.13075 8.65009 8.93334 8.65009H7.06667C6.86926 8.65009 6.76029 8.65059 6.68174 8.65701C6.67294 8.65773 6.66544 8.65847 6.6591 8.65918C6.65839 8.66552 6.65765 8.67303 6.65693 8.68182C6.65051 8.76038 6.65 8.86934 6.65 9.06675V13.3501ZM10.65 13.3501L10.65 9.04584C10.65 8.87727 10.65 8.71403 10.6388 8.57596C10.6264 8.42459 10.5973 8.24721 10.5065 8.069C10.3803 7.82125 10.1788 7.61983 9.93109 7.49359C9.75288 7.40279 9.5755 7.37369 9.42413 7.36133C9.28606 7.35005 9.12282 7.35007 8.95425 7.35008H7.04575C6.87718 7.35007 6.71395 7.35005 6.57587 7.36133C6.42451 7.37369 6.24712 7.40279 6.06892 7.49359C5.82117 7.61983 5.61974 7.82125 5.49351 8.069C5.40271 8.24721 5.37361 8.42459 5.36124 8.57596C5.34996 8.71403 5.34998 8.87727 5.35 9.04584L5.35 13.3501H4.13334C3.74924 13.3501 3.50026 13.3496 3.31054 13.3341C3.1284 13.3192 3.05881 13.2938 3.02311 13.2756C2.89453 13.2101 2.79 13.1056 2.72448 12.977C2.70629 12.9413 2.68089 12.8717 2.66601 12.6896C2.65051 12.4998 2.65 12.2508 2.65 11.8668V7.04347C2.65 6.62375 2.65565 6.53819 2.6753 6.46801C2.6977 6.38796 2.73452 6.31268 2.78395 6.24586C2.82729 6.18726 2.89135 6.13027 3.22266 5.87259L7.74419 2.35584C7.86861 2.25907 7.93516 2.20781 7.98588 2.17392C7.99132 2.17029 7.99601 2.16725 8 2.16473C8.00399 2.16725 8.00869 2.17029 8.01413 2.17392C8.06485 2.20781 8.13139 2.25907 8.25581 2.35584L12.7773 5.87259C13.1087 6.13027 13.1727 6.18726 13.2161 6.24586C13.2655 6.31268 13.3023 6.38796 13.3247 6.46801C13.3444 6.53819 13.35 6.62375 13.35 7.04347V11.8668C13.35 12.2508 13.3495 12.4998 13.334 12.6896C13.3191 12.8717 13.2937 12.9413 13.2755 12.977C13.21 13.1056 13.1055 13.2101 12.9769 13.2756C12.9412 13.2938 12.8716 13.3192 12.6895 13.3341C12.4997 13.3496 12.2508 13.3501 11.8667 13.3501H10.65Z" fill="#11181C"/>
-</svg>
diff --git a/fixtures/webstudio-custom-template/public/favicon.ico b/fixtures/webstudio-custom-template/public/favicon.ico
deleted file mode 100644
index 9cb8c815dc..0000000000
Binary files a/fixtures/webstudio-custom-template/public/favicon.ico and /dev/null differ
diff --git a/fixtures/webstudio-custom-template/tsconfig.json b/fixtures/webstudio-custom-template/tsconfig.json
deleted file mode 100644
index 99e0e652cc..0000000000
--- a/fixtures/webstudio-custom-template/tsconfig.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "include": ["**/*.ts", "**/*.tsx", "**/*.mjs"],
- "compilerOptions": {
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
- "types": [
- "@remix-run/node",
- "vite/client",
- "@webstudio-is/react-sdk/placeholder"
- ],
- "isolatedModules": true,
- "esModuleInterop": true,
- "jsx": "react-jsx",
- "module": "ESNext",
- "moduleResolution": "bundler",
- "target": "ES2022",
- "strict": true,
- "allowJs": true,
- "forceConsistentCasingInFileNames": true,
- "noEmit": true,
- "skipLibCheck": true,
- "customConditions": ["webstudio"]
- }
-}
diff --git a/fixtures/webstudio-custom-template/vite.config.ts b/fixtures/webstudio-custom-template/vite.config.ts
deleted file mode 100644
index cdd2d81108..0000000000
--- a/fixtures/webstudio-custom-template/vite.config.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { defineConfig } from "vite";
-import { vitePlugin as remix } from "@remix-run/dev";
-
-export default defineConfig({
- plugins: [
- remix({
- future: {
- v3_lazyRouteDiscovery: false,
- v3_relativeSplatPath: false,
- v3_singleFetch: false,
- v3_fetcherPersist: false,
- v3_throwAbortReason: false,
- },
- }),
- ],
-});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1aa40b1c28..f73cad7a10 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -797,70 +797,6 @@ importers:
specifier: ^3.63.2
version: 3.63.2(@cloudflare/[email protected])
- fixtures/webstudio-custom-template:
- dependencies:
- '@remix-run/node':
- specifier: 2.15.2
- version: 2.15.2([email protected])
- '@remix-run/react':
- specifier: 2.15.2
- '@remix-run/server-runtime':
- specifier: 2.15.2
- version: 2.15.2([email protected])
- '@webstudio-is/image':
- specifier: workspace:*
- version: link:../../packages/image
- '@webstudio-is/react-sdk':
- specifier: workspace:*
- version: link:../../packages/react-sdk
- '@webstudio-is/sdk':
- specifier: workspace:*
- version: link:../../packages/sdk
- '@webstudio-is/sdk-components-animation':
- specifier: workspace:*
- version: link:../../packages/sdk-components-animation
- '@webstudio-is/sdk-components-react':
- specifier: workspace:*
- version: link:../../packages/sdk-components-react
- '@webstudio-is/sdk-components-react-radix':
- specifier: workspace:*
- version: link:../../packages/sdk-components-react-radix
- '@webstudio-is/sdk-components-react-remix':
- specifier: workspace:*
- version: link:../../packages/sdk-components-react-remix
- isbot:
- specifier: ^5.1.22
- version: 5.1.22
- react:
- specifier: 18.3.0-canary-14898b6a9-20240318
- version: 18.3.0-canary-14898b6a9-20240318
- react-dom:
- specifier: 18.3.0-canary-14898b6a9-20240318
- version: 18.3.0-canary-14898b6a9-20240318([email protected])
- web-vitals:
- specifier: ^3.5.2
- version: 3.5.2
- devDependencies:
- '@remix-run/dev':
- specifier: 2.15.2
- '@types/react':
- specifier: ^18.2.70
- version: 18.2.79
- '@types/react-dom':
- specifier: ^18.2.25
- version: 18.2.25
- typescript:
- specifier: 5.7.3
- version: 5.7.3
- vite:
- specifier: ^5.4.11
- version: 5.4.11(@types/[email protected])
- webstudio:
- specifier: workspace:*
- version: link:../../packages/cli
-
fixtures/webstudio-features:
dependencies:
'@miniflare/html-rewriter':
@@ -9331,9 +9267,6 @@ packages:
resolution: {integrity: sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==}
engines: {node: '>= 14'}
- resolution: {integrity: sha512-c0rhqNcHXRkY/ogGDJQxZ9Im9D19hDihbzSQJrsioex+KnFgmMzBiy57Z1EjkhX/+OjyBpclDCzz2ITtjokFmg==}
-
resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}
@@ -17426,8 +17359,6 @@ snapshots:
-