From 85374c505743db8e13a9865a1337771c7d84dd8a Mon Sep 17 00:00:00 2001 From: Marcos Candeia Date: Sat, 15 Jul 2023 20:31:34 -0300 Subject: [PATCH 1/3] Use file system only routing Signed-off-by: Marcos Candeia --- .release.json | 52 ++ import_map.json | 2 +- live.gen.ts | 4 + main.ts | 2 +- schemas.gen.json | 908 +++++++++++++++++++++++++++++ sections/Newsletter/Newsletter.tsx | 2 +- 6 files changed, 967 insertions(+), 3 deletions(-) create mode 100644 .release.json diff --git a/.release.json b/.release.json new file mode 100644 index 00000000..e3d7cda5 --- /dev/null +++ b/.release.json @@ -0,0 +1,52 @@ +{ + "MySection.tsx": { + "path": "deco-sites/fashion/sections/MySection.tsx", + "content": "export default function MySection({phrase}: {phrase:string}) { return

{phrase}

; }", + "__resolveType": "$live/loaders/file.ts" + }, + "manifest": { + "files": [{ "__resolveType": "MySection.tsx" }], + "__resolveType": "$live/loaders/manifest.ts" + }, + "audience-everyone": { + "overrides": [], + "routes": [ + { + "pathTemplate": "/test", + "handler": { + "value": { + "page": { + "sections": [ + { + "phrase": "hello world", + "__resolveType": "deco-sites/fashion/sections/MySection.tsx" + } + ], + "__resolveType": "$live/pages/LivePage.tsx" + }, + "__resolveType": "$live/handlers/fresh.ts" + } + } + }, + { + "pathTemplate": "/*", + "handler": { + "value": { + "to": "https://www.google.com", + "type": "temporary", + "__resolveType": "$live/handlers/redirect.ts" + } + } + } + ], + "__resolveType": "$live/flags/everyone.ts" + }, + "./routes/[...catchall].tsx": { + "audiences": [ + { + "__resolveType": "audience-everyone" + } + ], + "__resolveType": "$live/handlers/routesSelection.ts" + } +} diff --git a/import_map.json b/import_map.json index f3170c0a..9e4cc720 100644 --- a/import_map.json +++ b/import_map.json @@ -3,7 +3,7 @@ "deco-sites/fashion/": "./", "$store/": "./", "deco-sites/std/": "https://denopkg.com/deco-sites/std@1.12.19/", - "$live/": "https://denopkg.com/deco-cx/deco@1.20.1/", + "$live/": "https://denopkg.com/deco-cx/deco@33ed906f9eceada67553906301dd13cd288f62cc/", "$fresh/": "https://denopkg.com/deco-cx/fresh@1.3.1/", "preact": "https://esm.sh/preact@10.15.1", "preact/": "https://esm.sh/preact@10.15.1/", diff --git a/live.gen.ts b/live.gen.ts index 904774d8..8151869f 100644 --- a/live.gen.ts +++ b/live.gen.ts @@ -52,6 +52,8 @@ import * as $live_meta from "$live/routes/live/_meta.ts"; import * as $live_previews_block from "$live/routes/live/previews/[...block].tsx"; import * as $live_previews_index from "$live/routes/live/previews/index.tsx"; import * as $live_catchall from "$live/routes/[...catchall].tsx"; +import * as i1$0 from "$live/loaders/file.ts"; +import * as i1$1 from "$live/loaders/manifest.ts"; import * as i2$$$0 from "$live/loaders/state.ts"; import * as i2$$$1 from "$live/loaders/workflows/events.ts"; import * as i2$$$2 from "$live/loaders/workflows/get.ts"; @@ -240,6 +242,8 @@ const manifest = { "deco-sites/std/sections/VTEXPortalDataLayerCompatibility.tsx": i2$$$$$15, }, "loaders": { + "$live/loaders/file.ts": i1$0, + "$live/loaders/manifest.ts": i1$1, "$live/loaders/state.ts": i2$$$0, "$live/loaders/workflows/events.ts": i2$$$1, "$live/loaders/workflows/get.ts": i2$$$2, diff --git a/main.ts b/main.ts index 8bcf2871..992d7931 100644 --- a/main.ts +++ b/main.ts @@ -9,7 +9,7 @@ import partytownPlugin from "partytown/mod.ts"; import manifest from "./live.gen.ts"; import site from "./site.json" assert { type: "json" }; -await start($live(manifest, site), { +await start(await $live(manifest, site, true), { plugins: [ partytownPlugin(), ], diff --git a/schemas.gen.json b/schemas.gen.json index b014105d..8cb25e3c 100644 --- a/schemas.gen.json +++ b/schemas.gen.json @@ -45,6 +45,8 @@ "deco-sites/std/accounts/vnda.ts", "deco-sites/std/accounts/vtex.ts", "deco-sites/std/accounts/yourViews.ts", + "$live/loaders/file.ts", + "$live/loaders/manifest.ts", "$live/loaders/state.ts", "$live/loaders/workflows/events.ts", "$live/loaders/workflows/get.ts", @@ -3633,6 +3635,864 @@ ], "title": "deco-sites/std/commerce/yourViews/client.ts@ConfigYourViews" }, + "ZGVjby1jeC9kZWNvL2xvYWRlcnMvbWFuaWZlc3QudHM=@File": { + "anyOf": [ + { + "$ref": "#/definitions/Resolvable" + }, + { + "type": "object", + "properties": { + "content": { + "type": "string", + "title": "Content" + }, + "path": { + "type": "string", + "title": "Path" + } + }, + "required": [ + "content", + "path" + ], + "title": "deco-cx/deco/loaders/manifest.ts@File" + }, + { + "title": "$live/loaders/file.ts", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2xvYWRlcnMvZmlsZS50cw==@Props" + } + ], + "required": [ + "__resolveType" + ], + "properties": { + "__resolveType": { + "type": "string", + "enum": [ + "$live/loaders/file.ts" + ], + "default": "$live/loaders/file.ts" + } + } + } + ] + }, + "ZGVjby1jeC9kZWNvL2xvYWRlcnMvZmlsZS50cw==@Props": { + "type": "object", + "properties": { + "content": { + "type": "string", + "title": "Content" + }, + "path": { + "type": "string", + "title": "Path" + } + }, + "required": [ + "content", + "path" + ], + "title": "deco-cx/deco/loaders/file.ts@Props" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@partialPageProps": { + "type": "object", + "properties": { + "url": { + "title": "Url" + }, + "route": { + "type": "string", + "title": "Route" + }, + "params": { + "title": "Params", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "data": { + "type": "object", + "title": "Data" + } + }, + "required": [], + "title": "partialPageProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@FunctionComponent": { + "type": "object", + "properties": { + "displayName": { + "type": [ + "string", + "null" + ], + "title": "Display Name" + }, + "defaultProps": { + "anyOf": [ + { + "type": "object", + "properties": { + "children": { + "title": "Children" + } + }, + "required": [] + }, + { + "type": "null" + } + ], + "title": "Default Props" + } + }, + "required": [], + "title": "FunctionComponent" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@Consumer": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@FunctionComponent" + } + ], + "properties": {}, + "required": [], + "title": "Consumer" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@Provider": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@FunctionComponent" + } + ], + "properties": {}, + "required": [], + "title": "Provider" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@Context": { + "type": "object", + "properties": { + "Consumer": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@Consumer", + "title": " Consumer" + }, + "Provider": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@Provider", + "title": " Provider" + }, + "displayName": { + "type": [ + "string", + "null" + ], + "title": "Display Name" + } + }, + "required": [ + "Consumer", + "Provider" + ], + "title": "Context" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+PageProps": { + "type": "object", + "properties": { + "displayName": { + "type": [ + "string", + "null" + ], + "title": "Display Name" + }, + "defaultProps": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@partialPageProps", + "title": "Default Props" + }, + "contextType": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@Context", + "title": "Context Type" + } + }, + "required": [], + "title": "ComponentClass+PageProps" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@null|partialPageProps": { + "anyOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@partialPageProps" + }, + { + "type": "null" + } + ], + "title": "null|partialPageProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@FunctionComponent+PageProps": { + "type": "object", + "properties": { + "displayName": { + "type": [ + "string", + "null" + ], + "title": "Display Name" + }, + "defaultProps": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@null|partialPageProps", + "title": "Default Props" + } + }, + "required": [], + "title": "FunctionComponent+PageProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+PageProps|FunctionComponent+PageProps+PageProps": { + "anyOf": [ + { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+PageProps" + }, + { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@FunctionComponent+PageProps" + } + ], + "title": "ComponentClass+PageProps|FunctionComponent+PageProps+PageProps" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@Handler": { + "title": "Handler" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@Handlers": { + "title": "Handlers" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@Handler|Handlers": { + "anyOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@Handler" + }, + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@Handlers" + } + ], + "title": "Handler|Handlers" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@RouteConfig": { + "type": "object", + "properties": { + "routeOverride": { + "type": [ + "string", + "null" + ], + "title": "Route Override" + }, + "csp": { + "type": [ + "boolean", + "null" + ], + "title": "Csp" + } + }, + "required": [], + "title": "RouteConfig" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@RouteModule": { + "type": "object", + "properties": { + "default": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+PageProps|FunctionComponent+PageProps+PageProps", + "title": "Default" + }, + "handler": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@Handler|Handlers", + "title": "Handler" + }, + "config": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@RouteConfig", + "title": "Config" + } + }, + "required": [], + "title": "RouteModule" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@MiddlewareHandler": { + "title": "MiddlewareHandler" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@MiddlewareHandler[]": { + "type": "array", + "items": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@MiddlewareHandler" + }, + "title": "MiddlewareHandler[]" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@MiddlewareHandler|MiddlewareHandler[]": { + "anyOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@MiddlewareHandler" + }, + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@MiddlewareHandler[]" + } + ], + "title": "MiddlewareHandler|MiddlewareHandler[]" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@MiddlewareModule": { + "type": "object", + "properties": { + "handler": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@MiddlewareHandler|MiddlewareHandler[]", + "title": "Handler" + } + }, + "required": [ + "handler" + ], + "title": "MiddlewareModule" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@PageProps": { + "type": "object", + "properties": { + "url": { + "title": "Url" + }, + "route": { + "type": "string", + "title": "Route" + }, + "params": { + "title": "Params", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "data": { + "type": "object", + "title": "Data" + } + }, + "required": [ + "url", + "route", + "params", + "data" + ], + "title": "PageProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass": { + "type": "object", + "properties": { + "displayName": { + "type": [ + "string", + "null" + ], + "title": "Display Name" + }, + "defaultProps": { + "title": "Default Props" + }, + "contextType": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@Context", + "title": "Context Type" + } + }, + "required": [], + "title": "ComponentClass" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass|FunctionComponent": { + "anyOf": [ + { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass" + }, + { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@FunctionComponent" + } + ], + "title": "ComponentClass|FunctionComponent" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@partialAppProps": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@PageProps" + } + ], + "properties": { + "Component": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass|FunctionComponent", + "title": " Component" + } + }, + "required": [], + "title": "partialAppProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+AppProps": { + "type": "object", + "properties": { + "displayName": { + "type": [ + "string", + "null" + ], + "title": "Display Name" + }, + "defaultProps": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@partialAppProps", + "title": "Default Props" + }, + "contextType": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@Context", + "title": "Context Type" + } + }, + "required": [], + "title": "ComponentClass+AppProps" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@null|partialAppProps": { + "anyOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@partialAppProps" + }, + { + "type": "null" + } + ], + "title": "null|partialAppProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@FunctionComponent+AppProps": { + "type": "object", + "properties": { + "displayName": { + "type": [ + "string", + "null" + ], + "title": "Display Name" + }, + "defaultProps": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@null|partialAppProps", + "title": "Default Props" + } + }, + "required": [], + "title": "FunctionComponent+AppProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+AppProps|FunctionComponent+AppProps+AppProps": { + "anyOf": [ + { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+AppProps" + }, + { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@FunctionComponent+AppProps" + } + ], + "title": "ComponentClass+AppProps|FunctionComponent+AppProps+AppProps" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@AppModule": { + "type": "object", + "properties": { + "default": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+AppProps|FunctionComponent+AppProps+AppProps", + "title": "Default" + } + }, + "required": [ + "default" + ], + "title": "AppModule" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@partialErrorPageProps": { + "type": "object", + "properties": { + "url": { + "title": "Url" + }, + "pattern": { + "type": "string", + "title": "Pattern" + }, + "error": { + "title": "Error" + } + }, + "required": [], + "title": "partialErrorPageProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+ErrorPageProps": { + "type": "object", + "properties": { + "displayName": { + "type": [ + "string", + "null" + ], + "title": "Display Name" + }, + "defaultProps": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@partialErrorPageProps", + "title": "Default Props" + }, + "contextType": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@Context", + "title": "Context Type" + } + }, + "required": [], + "title": "ComponentClass+ErrorPageProps" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@null|partialErrorPageProps": { + "anyOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@partialErrorPageProps" + }, + { + "type": "null" + } + ], + "title": "null|partialErrorPageProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@FunctionComponent+ErrorPageProps": { + "type": "object", + "properties": { + "displayName": { + "type": [ + "string", + "null" + ], + "title": "Display Name" + }, + "defaultProps": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@null|partialErrorPageProps", + "title": "Default Props" + } + }, + "required": [], + "title": "FunctionComponent+ErrorPageProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+ErrorPageProps|FunctionComponent+ErrorPageProps+ErrorPageProps": { + "anyOf": [ + { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+ErrorPageProps" + }, + { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@FunctionComponent+ErrorPageProps" + } + ], + "title": "ComponentClass+ErrorPageProps|FunctionComponent+ErrorPageProps+ErrorPageProps" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@ErrorHandler": { + "title": "ErrorHandler" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@ErrorPageModule": { + "type": "object", + "properties": { + "default": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+ErrorPageProps|FunctionComponent+ErrorPageProps+ErrorPageProps", + "title": "Default" + }, + "handler": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@ErrorHandler", + "title": "Handler" + }, + "config": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@RouteConfig", + "title": "Config" + } + }, + "required": [], + "title": "ErrorPageModule" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@partialUnknownPageProps": { + "type": "object", + "properties": { + "url": { + "title": "Url" + }, + "route": { + "type": "string", + "title": "Route" + } + }, + "required": [], + "title": "partialUnknownPageProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+UnknownPageProps": { + "type": "object", + "properties": { + "displayName": { + "type": [ + "string", + "null" + ], + "title": "Display Name" + }, + "defaultProps": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@partialUnknownPageProps", + "title": "Default Props" + }, + "contextType": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@Context", + "title": "Context Type" + } + }, + "required": [], + "title": "ComponentClass+UnknownPageProps" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@null|partialUnknownPageProps": { + "anyOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@partialUnknownPageProps" + }, + { + "type": "null" + } + ], + "title": "null|partialUnknownPageProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@FunctionComponent+UnknownPageProps": { + "type": "object", + "properties": { + "displayName": { + "type": [ + "string", + "null" + ], + "title": "Display Name" + }, + "defaultProps": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@null|partialUnknownPageProps", + "title": "Default Props" + } + }, + "required": [], + "title": "FunctionComponent+UnknownPageProps" + }, + "djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+UnknownPageProps|FunctionComponent+UnknownPageProps+UnknownPageProps": { + "anyOf": [ + { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+UnknownPageProps" + }, + { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@FunctionComponent+UnknownPageProps" + } + ], + "title": "ComponentClass+UnknownPageProps|FunctionComponent+UnknownPageProps+UnknownPageProps" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@UnknownHandler": { + "title": "UnknownHandler" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@UnknownPageModule": { + "type": "object", + "properties": { + "default": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass+UnknownPageProps|FunctionComponent+UnknownPageProps+UnknownPageProps", + "title": "Default" + }, + "handler": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@UnknownHandler", + "title": "Handler" + }, + "config": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@RouteConfig", + "title": "Config" + } + }, + "required": [], + "title": "UnknownPageModule" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@AppModule|ErrorPageModule|MiddlewareModule|RouteModule|UnknownPageModule": { + "anyOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@RouteModule" + }, + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@MiddlewareModule" + }, + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@AppModule" + }, + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@ErrorPageModule" + }, + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@UnknownPageModule" + } + ], + "title": "AppModule|ErrorPageModule|MiddlewareModule|RouteModule|UnknownPageModule" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@AppModule|ErrorPageModule|MiddlewareModule|RouteModule|UnknownPageModule@record": { + "title": "Unknown record", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@AppModule|ErrorPageModule|MiddlewareModule|RouteModule|UnknownPageModule" + } + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@IslandModule": { + "type": "object", + "properties": { + "default": { + "$ref": "#/definitions/djExOC9wcmVhY3RAMTAuMTUuMS9pbmRleC5kLnRz@ComponentClass|FunctionComponent", + "title": "Default" + } + }, + "required": [ + "default" + ], + "title": "IslandModule" + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@IslandModule@record": { + "title": "Unknown record", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@IslandModule" + } + }, + "ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL21vZC50cw==@Manifest": { + "type": "object", + "properties": { + "routes": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@AppModule|ErrorPageModule|MiddlewareModule|RouteModule|UnknownPageModule@record", + "title": "Routes" + }, + "islands": { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL3R5cGVzLnRz@IslandModule@record", + "title": "Islands" + }, + "baseUrl": { + "type": "string", + "title": "Base Url" + } + }, + "required": [ + "routes", + "islands", + "baseUrl" + ], + "title": "Manifest" + }, + "ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf": { + "title": "ModuleOf" + }, + "ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf@record": { + "title": "Unknown record", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf" + } + }, + "ZGVjby1jeC9kZWNvL3R5cGVzLnRz@DecoManifest": { + "anyOf": [ + { + "$ref": "#/definitions/Resolvable" + }, + { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9mcmVzaC9zcmMvc2VydmVyL21vZC50cw==@Manifest" + } + ], + "properties": { + "islands": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf@record", + "title": "Islands" + }, + "workflows": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf@record", + "title": "Workflows" + }, + "actions": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf@record", + "title": "Actions" + }, + "sections": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf@record", + "title": "Sections" + }, + "functions": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf@record", + "title": "Functions" + }, + "loaders": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf@record", + "title": "Loaders" + }, + "pages": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf@record", + "title": "Pages" + }, + "matchers": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf@record", + "title": "Matchers" + }, + "handlers": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf@record", + "title": "Handlers" + }, + "flags": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf@record", + "title": "Flags" + }, + "accounts": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2VuZ2luZS9ibG9jay50cw==@ModuleOf@record", + "title": "Accounts" + } + }, + "required": [ + "islands" + ], + "title": "deco-cx/deco/types.ts@DecoManifest" + }, + { + "title": "$live/loaders/manifest.ts", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2xvYWRlcnMvbWFuaWZlc3QudHM=@Props" + } + ], + "required": [ + "__resolveType" + ], + "properties": { + "__resolveType": { + "type": "string", + "enum": [ + "$live/loaders/manifest.ts" + ], + "default": "$live/loaders/manifest.ts" + } + } + } + ] + }, + "ZGVjby1jeC9kZWNvL2xvYWRlcnMvbWFuaWZlc3QudHM=@File[]": { + "type": "array", + "items": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2xvYWRlcnMvbWFuaWZlc3QudHM=@File" + }, + "title": "File[]" + }, + "ZGVjby1jeC9kZWNvL2xvYWRlcnMvbWFuaWZlc3QudHM=@Props": { + "type": "object", + "properties": { + "files": { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2xvYWRlcnMvbWFuaWZlc3QudHM=@File[]", + "title": "Files" + } + }, + "required": [ + "files" + ], + "title": "deco-cx/deco/loaders/manifest.ts@Props" + }, "ZGVjby1jeC9kZWNvL3JvdXRlcy9fbWlkZGxld2FyZS50cw==@MiddlewareConfig": { "anyOf": [ { @@ -13649,6 +14509,48 @@ } } }, + "JGxpdmUvbG9hZGVycy9maWxlLnRz": { + "title": "$live/loaders/file.ts", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2xvYWRlcnMvZmlsZS50cw==@Props" + } + ], + "required": [ + "__resolveType" + ], + "properties": { + "__resolveType": { + "type": "string", + "enum": [ + "$live/loaders/file.ts" + ], + "default": "$live/loaders/file.ts" + } + } + }, + "JGxpdmUvbG9hZGVycy9tYW5pZmVzdC50cw==": { + "title": "$live/loaders/manifest.ts", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ZGVjby1jeC9kZWNvL2xvYWRlcnMvbWFuaWZlc3QudHM=@Props" + } + ], + "required": [ + "__resolveType" + ], + "properties": { + "__resolveType": { + "type": "string", + "enum": [ + "$live/loaders/manifest.ts" + ], + "default": "$live/loaders/manifest.ts" + } + } + }, "JGxpdmUvbG9hZGVycy9zdGF0ZS50cw==": { "title": "Shared application State Loader.", "description": "Set the application state using resolvables.", @@ -16132,6 +17034,12 @@ { "$ref": "#/definitions/Resolvable" }, + { + "$ref": "#/definitions/JGxpdmUvbG9hZGVycy9maWxlLnRz" + }, + { + "$ref": "#/definitions/JGxpdmUvbG9hZGVycy9tYW5pZmVzdC50cw==" + }, { "$ref": "#/definitions/JGxpdmUvbG9hZGVycy9zdGF0ZS50cw==" }, diff --git a/sections/Newsletter/Newsletter.tsx b/sections/Newsletter/Newsletter.tsx index a08ad699..a29acd0d 100644 --- a/sections/Newsletter/Newsletter.tsx +++ b/sections/Newsletter/Newsletter.tsx @@ -124,4 +124,4 @@ export default function Newsletter(props: Props) { )} ); -} +} \ No newline at end of file From 59a79109924b799bc2e9d25a1119fa91fac764d3 Mon Sep 17 00:00:00 2001 From: Marcos Candeia Date: Sat, 15 Jul 2023 20:34:05 -0300 Subject: [PATCH 2/3] Use wasm dep Signed-off-by: Marcos Candeia --- import_map.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import_map.json b/import_map.json index 9e4cc720..6c95b593 100644 --- a/import_map.json +++ b/import_map.json @@ -3,7 +3,7 @@ "deco-sites/fashion/": "./", "$store/": "./", "deco-sites/std/": "https://denopkg.com/deco-sites/std@1.12.19/", - "$live/": "https://denopkg.com/deco-cx/deco@33ed906f9eceada67553906301dd13cd288f62cc/", + "$live/": "https://denopkg.com/deco-cx/deco@60037e61a26fa5d86bd2041496f28acbbc97ae96/", "$fresh/": "https://denopkg.com/deco-cx/fresh@1.3.1/", "preact": "https://esm.sh/preact@10.15.1", "preact/": "https://esm.sh/preact@10.15.1/", From 75e1dd725bea62cd02b3354044873fffdca66dc1 Mon Sep 17 00:00:00 2001 From: Marcos Candeia Date: Sat, 15 Jul 2023 20:39:02 -0300 Subject: [PATCH 3/3] Us esbuildwasm Signed-off-by: Marcos Candeia --- import_map.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import_map.json b/import_map.json index 6c95b593..142178b4 100644 --- a/import_map.json +++ b/import_map.json @@ -3,7 +3,7 @@ "deco-sites/fashion/": "./", "$store/": "./", "deco-sites/std/": "https://denopkg.com/deco-sites/std@1.12.19/", - "$live/": "https://denopkg.com/deco-cx/deco@60037e61a26fa5d86bd2041496f28acbbc97ae96/", + "$live/": "https://denopkg.com/deco-cx/deco@294a25bad2f996cd55cca361b7638f0606d1c2be/", "$fresh/": "https://denopkg.com/deco-cx/fresh@1.3.1/", "preact": "https://esm.sh/preact@10.15.1", "preact/": "https://esm.sh/preact@10.15.1/",