@websolutespa/bom-next 4.0.0-next.0 → 4.0.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +111 -0
- package/README.md +79 -1
- package/dist/client/client.d.ts +2 -4
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +8 -17
- package/dist/client/client.js.map +1 -1
- package/dist/client/extra.d.ts +3 -5
- package/dist/client/extra.d.ts.map +1 -1
- package/dist/client/extra.js +3 -10
- package/dist/client/extra.js.map +1 -1
- package/dist/client/label.d.ts +3 -5
- package/dist/client/label.d.ts.map +1 -1
- package/dist/client/label.js +8 -15
- package/dist/client/label.js.map +1 -1
- package/dist/client/layout.d.ts +3 -5
- package/dist/client/layout.d.ts.map +1 -1
- package/dist/client/layout.js +3 -10
- package/dist/client/layout.js.map +1 -1
- package/dist/client/local.collection.d.ts +0 -2
- package/dist/client/local.collection.d.ts.map +1 -1
- package/dist/client/local.collection.js +2 -4
- package/dist/client/local.collection.js.map +1 -1
- package/dist/client/metadata.d.ts +13 -4
- package/dist/client/metadata.d.ts.map +1 -1
- package/dist/client/metadata.js +43 -80
- package/dist/client/metadata.js.map +1 -1
- package/dist/client/page.d.ts +4 -4
- package/dist/client/page.d.ts.map +1 -1
- package/dist/client/page.js +3 -10
- package/dist/client/page.js.map +1 -1
- package/dist/client/useApi.d.ts +7 -7
- package/dist/client/useApi.d.ts.map +1 -1
- package/dist/client/useApi.js +2 -4
- package/dist/client/useApi.js.map +1 -1
- package/dist/client/useCollectionApi.d.ts +6 -6
- package/dist/client/useCollectionApi.d.ts.map +1 -1
- package/dist/client/useCollectionApi.js +2 -4
- package/dist/client/useCollectionApi.js.map +1 -1
- package/dist/client/useExtra.d.ts +0 -2
- package/dist/client/useExtra.d.ts.map +1 -1
- package/dist/client/useExtra.js +2 -5
- package/dist/client/useExtra.js.map +1 -1
- package/dist/client/useHttp.d.ts +0 -2
- package/dist/client/useHttp.d.ts.map +1 -1
- package/dist/client/useHttp.js +5 -9
- package/dist/client/useHttp.js.map +1 -1
- package/dist/client/useLabel.d.ts +0 -2
- package/dist/client/useLabel.d.ts.map +1 -1
- package/dist/client/useLabel.js +2 -5
- package/dist/client/useLabel.js.map +1 -1
- package/dist/client/useLayout.d.ts +0 -2
- package/dist/client/useLayout.d.ts.map +1 -1
- package/dist/client/useLayout.js +2 -5
- package/dist/client/useLayout.js.map +1 -1
- package/dist/client/useLink.d.ts +0 -2
- package/dist/client/useLink.d.ts.map +1 -1
- package/dist/client/useLink.js +3 -7
- package/dist/client/useLink.js.map +1 -1
- package/dist/client/useMetaData.d.ts +0 -3
- package/dist/client/useMetaData.d.ts.map +1 -1
- package/dist/client/useMetaData.js +2 -5
- package/dist/client/useMetaData.js.map +1 -1
- package/dist/client/usePage.d.ts +33 -33
- package/dist/client/usePage.d.ts.map +1 -1
- package/dist/client/usePage.js +2 -5
- package/dist/client/usePage.js.map +1 -1
- package/dist/client/useUser.d.ts +0 -2
- package/dist/client/useUser.d.ts.map +1 -1
- package/dist/client/useUser.js +2 -5
- package/dist/client/useUser.js.map +1 -1
- package/dist/client/user.d.ts +15 -8
- package/dist/client/user.d.ts.map +1 -1
- package/dist/client/user.js +41 -28
- package/dist/client/user.js.map +1 -1
- package/dist/exports/client.d.ts +2 -2
- package/dist/exports/client.js +2 -3
- package/dist/exports/instrumentation.js +1 -2
- package/dist/exports/proxy.d.ts +4 -4
- package/dist/exports/proxy.js +3 -4
- package/dist/exports/server.d.ts +10 -6
- package/dist/exports/server.js +10 -7
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -4
- package/dist/instrumentation/client.d.ts +0 -2
- package/dist/instrumentation/client.d.ts.map +1 -1
- package/dist/instrumentation/client.js +1 -2
- package/dist/instrumentation/client.js.map +1 -1
- package/dist/instrumentation/sentry/capture.requestError.js +4 -6
- package/dist/instrumentation/sentry/capture.requestError.js.map +1 -1
- package/dist/instrumentation/sentry/capture.routerTransitionStart.js +4 -4
- package/dist/instrumentation/sentry/capture.routerTransitionStart.js.map +1 -1
- package/dist/instrumentation/sentry/config.client.js +2 -2
- package/dist/instrumentation/sentry/config.client.js.map +1 -1
- package/dist/instrumentation/sentry/config.edge.js +2 -2
- package/dist/instrumentation/sentry/config.edge.js.map +1 -1
- package/dist/instrumentation/sentry/config.server.js +2 -2
- package/dist/instrumentation/sentry/config.server.js.map +1 -1
- package/dist/instrumentation/server.d.ts +0 -2
- package/dist/instrumentation/server.d.ts.map +1 -1
- package/dist/instrumentation/server.js +5 -8
- package/dist/instrumentation/server.js.map +1 -1
- package/dist/instrumentation/types.d.ts +0 -1
- package/dist/instrumentation/types.d.ts.map +1 -1
- package/dist/lib/breadcrumb.d.ts +0 -3
- package/dist/lib/breadcrumb.d.ts.map +1 -1
- package/dist/lib/breadcrumb.js +1 -6
- package/dist/lib/breadcrumb.js.map +1 -1
- package/dist/lib/const.d.ts +15 -4
- package/dist/lib/const.d.ts.map +1 -1
- package/dist/lib/const.js +15 -2
- package/dist/lib/const.js.map +1 -1
- package/dist/lib/debug.js +13 -0
- package/dist/lib/debug.js.map +1 -0
- package/dist/lib/http.d.ts +9 -2
- package/dist/lib/http.d.ts.map +1 -1
- package/dist/lib/http.js +18 -8
- package/dist/lib/http.js.map +1 -1
- package/dist/lib/label.d.ts +0 -2
- package/dist/lib/label.d.ts.map +1 -1
- package/dist/lib/label.js +3 -4
- package/dist/lib/label.js.map +1 -1
- package/dist/lib/layout.defaults.d.ts +0 -2
- package/dist/lib/layout.defaults.d.ts.map +1 -1
- package/dist/lib/layout.defaults.js +1 -1
- package/dist/lib/layout.defaults.js.map +1 -1
- package/dist/lib/link.d.ts +0 -2
- package/dist/lib/link.d.ts.map +1 -1
- package/dist/lib/link.js +1 -2
- package/dist/lib/link.js.map +1 -1
- package/dist/lib/meta-data.d.ts +0 -1
- package/dist/lib/meta-data.d.ts.map +1 -1
- package/dist/lib/open-graph.d.ts +0 -1
- package/dist/lib/open-graph.d.ts.map +1 -1
- package/dist/lib/page-metadata.d.ts +49 -0
- package/dist/lib/page-metadata.d.ts.map +1 -0
- package/dist/lib/page-metadata.js +192 -0
- package/dist/lib/page-metadata.js.map +1 -0
- package/dist/lib/pagination.d.ts +0 -2
- package/dist/lib/pagination.d.ts.map +1 -1
- package/dist/lib/pagination.js +2 -4
- package/dist/lib/pagination.js.map +1 -1
- package/dist/lib/route.d.ts +6 -3
- package/dist/lib/route.d.ts.map +1 -1
- package/dist/lib/route.js +16 -13
- package/dist/lib/route.js.map +1 -1
- package/dist/lib/store.d.ts +3 -4
- package/dist/lib/store.d.ts.map +1 -1
- package/dist/lib/store.js +31 -31
- package/dist/lib/store.js.map +1 -1
- package/dist/lib/structured-data.d.ts +0 -2
- package/dist/lib/structured-data.d.ts.map +1 -1
- package/dist/lib/ttl-cache.js +59 -0
- package/dist/lib/ttl-cache.js.map +1 -0
- package/dist/lib/twitter-card.d.ts +0 -1
- package/dist/lib/twitter-card.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +0 -2
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +2 -3
- package/dist/lib/utils.js.map +1 -1
- package/dist/mock.d.ts +1 -1
- package/dist/mock.d.ts.map +1 -1
- package/dist/proxy/protected-route.d.ts +0 -2
- package/dist/proxy/protected-route.d.ts.map +1 -1
- package/dist/proxy/protected-route.js +12 -13
- package/dist/proxy/protected-route.js.map +1 -1
- package/dist/proxy/proxy.d.ts +8 -8
- package/dist/proxy/proxy.d.ts.map +1 -1
- package/dist/proxy/proxy.js +10 -21
- package/dist/proxy/proxy.js.map +1 -1
- package/dist/proxy/route-auto-detection.d.ts +6 -3
- package/dist/proxy/route-auto-detection.d.ts.map +1 -1
- package/dist/proxy/route-auto-detection.js +77 -47
- package/dist/proxy/route-auto-detection.js.map +1 -1
- package/dist/proxy/route-proxy.d.ts +5 -5
- package/dist/proxy/route-proxy.d.ts.map +1 -1
- package/dist/proxy/route-proxy.js +95 -36
- package/dist/proxy/route-proxy.js.map +1 -1
- package/dist/server/context.d.ts +30 -17
- package/dist/server/context.d.ts.map +1 -1
- package/dist/server/context.js +145 -88
- package/dist/server/context.js.map +1 -1
- package/dist/server/handlers/auth.handler.d.ts +0 -2
- package/dist/server/handlers/auth.handler.d.ts.map +1 -1
- package/dist/server/handlers/auth.handler.js +11 -11
- package/dist/server/handlers/auth.handler.js.map +1 -1
- package/dist/server/handlers/captions.handler.d.ts +0 -2
- package/dist/server/handlers/captions.handler.d.ts.map +1 -1
- package/dist/server/handlers/captions.handler.js +2 -4
- package/dist/server/handlers/captions.handler.js.map +1 -1
- package/dist/server/handlers/collection.handler.d.ts +0 -2
- package/dist/server/handlers/collection.handler.d.ts.map +1 -1
- package/dist/server/handlers/collection.handler.js +2 -4
- package/dist/server/handlers/collection.handler.js.map +1 -1
- package/dist/server/handlers/error-response.js +2 -6
- package/dist/server/handlers/error-response.js.map +1 -1
- package/dist/server/handlers/index.handler.d.ts +0 -2
- package/dist/server/handlers/index.handler.d.ts.map +1 -1
- package/dist/server/handlers/index.handler.js +1 -2
- package/dist/server/handlers/index.handler.js.map +1 -1
- package/dist/server/handlers/preview.handler.d.ts +0 -2
- package/dist/server/handlers/preview.handler.d.ts.map +1 -1
- package/dist/server/handlers/preview.handler.js +3 -6
- package/dist/server/handlers/preview.handler.js.map +1 -1
- package/dist/server/handlers/registry.handler.d.ts +0 -2
- package/dist/server/handlers/registry.handler.d.ts.map +1 -1
- package/dist/server/handlers/registry.handler.js +76 -22
- package/dist/server/handlers/registry.handler.js.map +1 -1
- package/dist/server/handlers/revalidate.handler.d.ts +47 -0
- package/dist/server/handlers/revalidate.handler.d.ts.map +1 -0
- package/dist/server/handlers/revalidate.handler.js +101 -0
- package/dist/server/handlers/revalidate.handler.js.map +1 -0
- package/dist/server/handlers/route.handler.d.ts +11 -4
- package/dist/server/handlers/route.handler.d.ts.map +1 -1
- package/dist/server/handlers/route.handler.js +52 -51
- package/dist/server/handlers/route.handler.js.map +1 -1
- package/dist/server/handlers/sitemap.handler.d.ts +0 -2
- package/dist/server/handlers/sitemap.handler.d.ts.map +1 -1
- package/dist/server/handlers/sitemap.handler.js +10 -14
- package/dist/server/handlers/sitemap.handler.js.map +1 -1
- package/dist/server/handlers/static-params.handler.d.ts +0 -3
- package/dist/server/handlers/static-params.handler.d.ts.map +1 -1
- package/dist/server/handlers/static-params.handler.js +8 -14
- package/dist/server/handlers/static-params.handler.js.map +1 -1
- package/dist/server/handlers/vars.handler.d.ts +0 -2
- package/dist/server/handlers/vars.handler.d.ts.map +1 -1
- package/dist/server/handlers/vars.handler.js +4 -5
- package/dist/server/handlers/vars.handler.js.map +1 -1
- package/dist/server/helpers.d.ts +46 -0
- package/dist/server/helpers.d.ts.map +1 -0
- package/dist/server/helpers.js +51 -0
- package/dist/server/helpers.js.map +1 -0
- package/dist/server/json-ld.d.ts +31 -0
- package/dist/server/json-ld.d.ts.map +1 -0
- package/dist/server/json-ld.js +45 -0
- package/dist/server/json-ld.js.map +1 -0
- package/dist/server/layout.js +48 -54
- package/dist/server/layout.js.map +1 -1
- package/dist/server/lazy.d.ts +0 -3
- package/dist/server/lazy.d.ts.map +1 -1
- package/dist/server/lazy.js +11 -19
- package/dist/server/lazy.js.map +1 -1
- package/dist/server/local-api.d.ts +0 -2
- package/dist/server/local-api.d.ts.map +1 -1
- package/dist/server/local-api.js +15 -16
- package/dist/server/local-api.js.map +1 -1
- package/dist/server/metadata.d.ts +34 -14
- package/dist/server/metadata.d.ts.map +1 -1
- package/dist/server/metadata.js +31 -15
- package/dist/server/metadata.js.map +1 -1
- package/dist/server/mixer-payload.d.ts +0 -2
- package/dist/server/mixer-payload.d.ts.map +1 -1
- package/dist/server/mixer.d.ts +60 -110
- package/dist/server/mixer.d.ts.map +1 -1
- package/dist/server/mixer.js +151 -260
- package/dist/server/mixer.js.map +1 -1
- package/dist/server/page.d.ts +20 -7
- package/dist/server/page.d.ts.map +1 -1
- package/dist/server/page.js +53 -26
- package/dist/server/page.js.map +1 -1
- package/dist/server/utils.d.ts +0 -2
- package/dist/server/utils.d.ts.map +1 -1
- package/dist/server/utils.js +2 -4
- package/dist/server/utils.js.map +1 -1
- package/dist/server/utmz.d.ts +0 -2
- package/dist/server/utmz.d.ts.map +1 -1
- package/dist/server/utmz.js +1 -1
- package/dist/server/utmz.js.map +1 -1
- package/dist/types.d.ts +82 -19
- package/dist/types.d.ts.map +1 -1
- package/package.json +51 -37
- package/src/client/client.tsx +3 -1
- package/src/client/extra.tsx +3 -7
- package/src/client/label.tsx +8 -12
- package/src/client/layout.tsx +3 -7
- package/src/client/local.collection.ts +48 -9
- package/src/client/metadata.tsx +50 -80
- package/src/client/page.tsx +3 -7
- package/src/client/useApi.test.tsx +22 -13
- package/src/client/useApi.ts +69 -13
- package/src/client/useCollectionApi.test.tsx +23 -11
- package/src/client/useCollectionApi.ts +86 -17
- package/src/client/useHttp.ts +30 -6
- package/src/client/useLabel.test.tsx +9 -3
- package/src/client/useLink.tsx +6 -3
- package/src/client/user.test.tsx +63 -0
- package/src/client/user.tsx +48 -19
- package/src/exports/client.ts +0 -1
- package/src/exports/instrumentation.ts +1 -1
- package/src/exports/proxy.ts +0 -1
- package/src/exports/server.ts +3 -1
- package/src/global.d.ts +1 -1
- package/src/instrumentation/client.ts +0 -1
- package/src/instrumentation/sentry/capture.requestError.ts +5 -2
- package/src/instrumentation/sentry/capture.routerTransitionStart.ts +5 -2
- package/src/instrumentation/server.ts +5 -1
- package/src/instrumentation/types.ts +0 -1
- package/src/lib/breadcrumb.ts +6 -2
- package/src/lib/const.ts +16 -1
- package/src/lib/debug.ts +11 -0
- package/src/lib/http.test.ts +13 -13
- package/src/lib/http.ts +68 -15
- package/src/lib/label.ts +6 -2
- package/src/lib/page-metadata.test.ts +160 -0
- package/src/lib/page-metadata.ts +277 -0
- package/src/lib/pagination.ts +6 -4
- package/src/lib/route.test.ts +62 -0
- package/src/lib/route.ts +40 -12
- package/src/lib/store.ts +1 -1
- package/src/lib/ttl-cache.ts +72 -0
- package/src/lib/utils.ts +0 -1
- package/src/mock.ts +62 -34
- package/src/proxy/protected-route.test.ts +2 -2
- package/src/proxy/protected-route.ts +21 -10
- package/src/proxy/proxy.test.ts +36 -33
- package/src/proxy/proxy.ts +30 -13
- package/src/proxy/route-auto-detection.test.ts +55 -0
- package/src/proxy/route-auto-detection.ts +149 -53
- package/src/proxy/route-proxy.test.ts +104 -0
- package/src/proxy/route-proxy.ts +143 -39
- package/src/server/context.test.ts +645 -0
- package/src/server/context.ts +305 -77
- package/src/server/context.type-test.ts +112 -0
- package/src/server/handlers/auth.handler.ts +12 -7
- package/src/server/handlers/captions.handler.ts +7 -3
- package/src/server/handlers/collection.handler.test.ts +48 -42
- package/src/server/handlers/collection.handler.ts +43 -34
- package/src/server/handlers/error-response.ts +30 -25
- package/src/server/handlers/index.handler.ts +19 -12
- package/src/server/handlers/registry.handler.test.ts +164 -58
- package/src/server/handlers/registry.handler.ts +314 -59
- package/src/server/handlers/revalidate.handler.ts +148 -0
- package/src/server/handlers/route.handler.test.ts +50 -0
- package/src/server/handlers/route.handler.ts +87 -60
- package/src/server/handlers/sitemap.handler.ts +102 -44
- package/src/server/handlers/static-params.handler.ts +41 -44
- package/src/server/handlers/vars.handler.ts +22 -15
- package/src/server/helpers.ts +97 -0
- package/src/server/json-ld.tsx +65 -0
- package/src/server/layout.ts +82 -54
- package/src/server/lazy.ts +20 -20
- package/src/server/local-api.ts +14 -10
- package/src/server/metadata.ts +71 -79
- package/src/server/mixer-payload.ts +38 -47
- package/src/server/mixer-payload.type-test.ts +4 -4
- package/src/server/mixer.ts +192 -135
- package/src/server/page.ts +85 -23
- package/src/server/request-data.test.ts +34 -0
- package/src/types.ts +182 -30
- package/dist/_virtual/rolldown_runtime.js +0 -27
- package/dist/node_modules/@selderee/plugin-htmlparser2/lib/hp2-builder.js +0 -76
- package/dist/node_modules/@selderee/plugin-htmlparser2/lib/hp2-builder.js.map +0 -1
- package/dist/node_modules/deepmerge/dist/cjs.js +0 -94
- package/dist/node_modules/deepmerge/dist/cjs.js.map +0 -1
- package/dist/node_modules/dom-serializer/lib/esm/foreignNames.js +0 -105
- package/dist/node_modules/dom-serializer/lib/esm/foreignNames.js.map +0 -1
- package/dist/node_modules/dom-serializer/lib/esm/index.js +0 -141
- package/dist/node_modules/dom-serializer/lib/esm/index.js.map +0 -1
- package/dist/node_modules/domelementtype/lib/esm/index.js +0 -53
- package/dist/node_modules/domelementtype/lib/esm/index.js.map +0 -1
- package/dist/node_modules/domhandler/lib/esm/index.js +0 -131
- package/dist/node_modules/domhandler/lib/esm/index.js.map +0 -1
- package/dist/node_modules/domhandler/lib/esm/node.js +0 -308
- package/dist/node_modules/domhandler/lib/esm/node.js.map +0 -1
- package/dist/node_modules/entities/lib/esm/decode.js +0 -364
- package/dist/node_modules/entities/lib/esm/decode.js.map +0 -1
- package/dist/node_modules/entities/lib/esm/decode_codepoint.js +0 -59
- package/dist/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
- package/dist/node_modules/entities/lib/esm/escape.js +0 -93
- package/dist/node_modules/entities/lib/esm/escape.js.map +0 -1
- package/dist/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -6
- package/dist/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
- package/dist/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -6
- package/dist/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
- package/dist/node_modules/html-to-text/lib/html-to-text.js +0 -1828
- package/dist/node_modules/html-to-text/lib/html-to-text.js.map +0 -1
- package/dist/node_modules/html-to-text/node_modules/htmlparser2/lib/esm/Parser.js +0 -435
- package/dist/node_modules/html-to-text/node_modules/htmlparser2/lib/esm/Parser.js.map +0 -1
- package/dist/node_modules/html-to-text/node_modules/htmlparser2/lib/esm/Tokenizer.js +0 -739
- package/dist/node_modules/html-to-text/node_modules/htmlparser2/lib/esm/Tokenizer.js.map +0 -1
- package/dist/node_modules/html-to-text/node_modules/htmlparser2/lib/esm/index.js +0 -20
- package/dist/node_modules/html-to-text/node_modules/htmlparser2/lib/esm/index.js.map +0 -1
- package/dist/node_modules/leac/lib/leac.js +0 -101
- package/dist/node_modules/leac/lib/leac.js.map +0 -1
- package/dist/node_modules/parseley/lib/parseley.js +0 -314
- package/dist/node_modules/parseley/lib/parseley.js.map +0 -1
- package/dist/node_modules/peberminta/lib/core.js +0 -149
- package/dist/node_modules/peberminta/lib/core.js.map +0 -1
- package/dist/node_modules/selderee/lib/selderee.js +0 -325
- package/dist/node_modules/selderee/lib/selderee.js.map +0 -1
- package/src/lib/payload.config.ts +0 -12
- package/src/server/mock/category.ts +0 -34
- package/src/server/mock/collection.ts +0 -21
- package/src/server/mock/page.ts +0 -62
- package/src/server/mock/route.ts +0 -36
- package/src/server/mock/store.ts +0 -159
- package/src/server/session/session.ts +0 -101
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,116 @@
|
|
|
1
1
|
# @websolutespa/bom-next
|
|
2
2
|
|
|
3
|
+
## 4.0.0-next.10
|
|
4
|
+
|
|
5
|
+
## 4.0.0-next.9
|
|
6
|
+
|
|
7
|
+
## 4.0.0-next.8
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Cleanup: unused dependencies, peers and unreachable code removed.
|
|
12
|
+
- `payload-utils`: the `jsdom` peer accepts `^26.1.0 || ^30.1.3`, and `htmlToLexical` imports it on use, so routes that never convert html don't load it. jsdom 30 fails with `ERR_REQUIRE_ESM` on Vercel's Node runtime; projects can stay on jsdom 26 and drop a `jsdom` override.
|
|
13
|
+
- Peers that nothing imports are gone: `uuid` (search, seo, thron), `@payloadcms/ui` (seed), `react-error-boundary` (mixer-ui, mixer-emails), `@websolutespa/payload-utils` (live-preview).
|
|
14
|
+
- `bom-mixer-hooks` declares `@types/html-to-text`, which it got from the web apps before.
|
|
15
|
+
- `bom-mixer-llm` publishes only the default mocks.
|
|
16
|
+
- Source files that no export reached are removed: mixer-ui carousel, navbar/menubar, media-image-next, useThemeForm, lazy-loader-client; mixer-llm card and product cta, Background, scroller-lenis, cors, useBlock, useComponent.
|
|
17
|
+
- `bom-cli`: nodemon is a dev dependency (it was installed in every project); no theme or storybook apps.
|
|
18
|
+
- `bom-next`: `jose` and `transliteration` dropped with the unused mock and session code.
|
|
19
|
+
- `eslint-config` is the legacy ESLint 10 config; projects on oxlint and oxfmt use `@websolutespa/oxc`.
|
|
20
|
+
|
|
21
|
+
## 4.0.0-next.7
|
|
22
|
+
|
|
23
|
+
## 4.0.0-next.6
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- 4.x on the 3.1 stack: Payload 3.91, Next.js 16.4.2, React 19.2.9, TypeScript 6, Vitest 5, ESLint 10 (see the 3.1.0 and 3.1.1 notes below for the breaking changes of the stack).
|
|
28
|
+
- `@websolutespa/bom-next`: peers are ranges (`next ^16.3.3`, `payload ^3.91.0`, `react ^19.2.1`); `@sentry/nextjs` is an optional peer, loaded only when `NEXT_PUBLIC_SENTRY_DSN` is set; `jose` and `transliteration` are declared and pinned; no `next/dist` internals.
|
|
29
|
+
- `@websolutespa/bom-next`: local api reads use the logged in user or, without one, the guest user (roles `guest`), like the http api with `STORE_API_KEY`.
|
|
30
|
+
- `@websolutespa/payload-plugin-bowl`: the mixer context is resolved for reads with a user only: the api key user (guest), the logged in user, or for the local api of bom-next the same users. Without a user the request is still being authenticated (since Payload 3.90 the jwt user lookup receives the request query).
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- a82309c: The package ships `dist/**/*.js` and `.d.ts` again, as its `exports` map expects: tsdown 0.21 emitted `.mjs`/`.d.mts`, so `@websolutespa/bom-next` could not be resolved (ERR_MODULE_NOT_FOUND on `dist/index.js`).
|
|
35
|
+
- 4.x consumers type check and create projects from the 4.x samples.
|
|
36
|
+
- `IUser` and `IEndUser` accept the bom-core user contract (`UserWithRoles`, `IEndUser`) as well as the generated bowl documents: a user typed with `@websolutespa/bom-core`'s `IEndUser` (e.g. a login response) can be passed to `useUser().setUser` again, and `user.roles` is typed on both. Payload 3.91's generated types require `collection: 'users' | 'end_users'`, which the bom-core contract does not have.
|
|
37
|
+
- `useLabel()` returns the same function while the labels do not change: effects that list `label` in their dependencies ran again on every `LabelProvider` render (e.g. a toast shown twice).
|
|
38
|
+
- `schema-dts` is a peer dependency (`^2.1.0`) of `@websolutespa/bom-next`, like the mixer packages: its public types use it, and a project on `schema-dts` 1.x got `TS2321: Excessive stack depth` instead of a peer warning. Projects on 1.x move to 2.1.0.
|
|
39
|
+
- `bom create` (4.x) falls back to the `bom-next` branch samples when its release tag does not exist.
|
|
40
|
+
|
|
41
|
+
## 4.0.0-next.5
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- feat: renamed API handlers for image, mock, preview, revalidate, vars, and session endpoints
|
|
46
|
+
- Updated dependencies
|
|
47
|
+
- @websolutespa/payload-plugin-bowl@4.0.0-next.4
|
|
48
|
+
|
|
49
|
+
## 4.0.0-next.4
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- Helpers no longer read request data; only the template does and passes it down.
|
|
54
|
+
- `getPageMetadata` / `getMetadata` read only `params` (no more `DYNAMIC_SERVER_USAGE` on static/ISR pages). A dynamic template awaits its own `searchParams` and calls `buildPageMetadata(page, layout, { searchParams })`.
|
|
55
|
+
- `getPayload` no longer calls `headers()`: in draft mode pass `headers` from the template.
|
|
56
|
+
- `draft` defaults to `false` in `createPageContext` and `createLayoutContext`; `'auto'` (reads `draftMode()`) is an explicit opt-in.
|
|
57
|
+
- Session helpers (`createSession`, `getSession`, `hasValidSession`, `updateSession`, `deleteSession`) take the cookie store as an argument.
|
|
58
|
+
- `detectedRoute` cookie values with dot segments (`..`, also percent-encoded) or backslashes are rejected.
|
|
59
|
+
|
|
60
|
+
- Updated dependencies
|
|
61
|
+
- @websolutespa/payload-plugin-bowl@4.0.0-next.3
|
|
62
|
+
- @websolutespa/payload-db-memory@3.0.3
|
|
63
|
+
- @websolutespa/payload-utils@4.0.0-next.0
|
|
64
|
+
- @websolutespa/bom-core@4.0.0-next.1
|
|
65
|
+
|
|
66
|
+
## 4.0.0-next.3
|
|
67
|
+
|
|
68
|
+
### Patch Changes
|
|
69
|
+
|
|
70
|
+
- Proxy: route resolutions are cached per instance (`BOM_ROUTE_CACHE_TTL` seconds, default 30; misses and redirects at most 10) with concurrent lookups shared. Draft requests and server errors are never cached.
|
|
71
|
+
- Proxy: the resolver query values (`pathname`, `href`, `hrefBeforeRedirect`) are now encoded, and CMS redirects go to the target and status returned by the resolver instead of always to `/`.
|
|
72
|
+
- `routeAutoDetection`: a valid `detectedRoute` cookie (relative paths only) redirects straight away without route, market or GeoIP lookups; GeoIP calls have a 2 s timeout and are cached per IP for one hour.
|
|
73
|
+
- Per-request diagnostics (proxy, local API calls, context cache) are logged in development only.
|
|
74
|
+
- Server context: `getRoutes` and `getMixerContext` read routes from the Bowl route store instead of re-reading every page collection and media document. Routes no longer depend on `market`, `locale` or `user`, and unpublished pages and category routes are not part of the public routes anymore.
|
|
75
|
+
- Server context: locale, market, category and route reads run in parallel; the result is cached per market, locale and user for `MEMORY_CACHE_DURATION` seconds and cleared as soon as the route store changes (also from other instances through Redis). Draft contexts are never cached, only shared within a request. The `_mixer` and `_route` globals are replaced by `_bomMixerContext`.
|
|
76
|
+
- `decorateLazyComponents` runs the lazy decorators in parallel, keeping the component order.
|
|
77
|
+
- Metadata: new `getPageMetadata`, `buildPageMetadata` and `inheritParentMetadata` build plain-text title and description, canonical (keeping `pagination[page]`), `alternates.languages` with `x-default`, robots, keywords, Open Graph and Twitter on the server. `getMetadata` is now a wrapper of `getPageMetadata`, so its result contains all of them instead of title and description only; Open Graph and Twitter fields left empty by the page are inherited from the parent metadata.
|
|
78
|
+
- Metadata: `JsonLd` and `buildPageStructuredData` render JSON-LD in Server Components.
|
|
79
|
+
- `MetaDataProvider` no longer uses `next/compat/router` (pass the query string through the new `search` prop), takes `brand.url` from `layout.homeHref`, reads `meta.robots` or `meta.robot`, converts HTML to text without bullets, link URLs or uppercased headings, and uses uppercase hreflang countries (`it-IT`).
|
|
80
|
+
- `layout.homeHref` exposes the root page href for the current market and locale.
|
|
81
|
+
- `html-to-text` and `schema-dts` are declared as dependencies.
|
|
82
|
+
- Registry: aliases are read from `components.json` (or `UI_REGISTRY_COMPONENTS_JSON` and `UI_REGISTRY_SOURCE_ALIAS`) and rewritten to registry imports; only import and export specifiers are rewritten. Items that import app code the registry cannot ship are reported in `meta.unresolvedImports`, or hidden with `UI_REGISTRY_SKIP_UNRESOLVED`.
|
|
83
|
+
- `UserProvider` reads `/auth/me` once per browser session and accepts `initialUser`; `invalidateUser()` forces a new read.
|
|
84
|
+
- Updated dependencies
|
|
85
|
+
- @websolutespa/payload-plugin-bowl@4.0.0-next.2
|
|
86
|
+
- @websolutespa/bom-core@4.0.0-next.1
|
|
87
|
+
|
|
88
|
+
## 4.0.0-next.2
|
|
89
|
+
|
|
90
|
+
### Patch Changes
|
|
91
|
+
|
|
92
|
+
- feat: add route template handling and tests for static parameters
|
|
93
|
+
|
|
94
|
+
## 4.0.0-next.1
|
|
95
|
+
|
|
96
|
+
### Minor Changes
|
|
97
|
+
|
|
98
|
+
- Next: options signature for `createPageContext`, `createLayoutContext`, `createNotFoundContext` and `getMetadata`.
|
|
99
|
+
- New form: `createPageContext(market, locale, slug, id, { config, headers, depth, select, populate, joins, draft, layout })` and `createLayoutContext(market, locale, { config, headers, depth, draft })`. The positional `(config, headers)` form still works, logs a one-time deprecation warning in development.
|
|
100
|
+
- **Behaviour change:** pages are now read at `DEFAULT_PAGE_DEPTH` (2) and the layout at `DEFAULT_LAYOUT_DEPTH` (1), including through the legacy signature. Relationships and uploads (page media, media inside blocks, category, template, markets) are populated objects instead of ids; pass `depth: 0` to keep the previous shape.
|
|
101
|
+
- `select` narrows the page type; envelope fields (`id`, `slug`, `title`, `category`, `markets`, `meta`, `template`) are always read so `href`, alternates and breadcrumb keep working.
|
|
102
|
+
- Draft mode works: `draft: 'auto'` (default) reads Next `draftMode()`, draft reads use the draft mixer/route cache key and the authenticated user. `createNotFoundContext` always reads published content.
|
|
103
|
+
- Page and layout are loaded once per request (React `cache`, serialized key) and in parallel, so `getMetadata` and the page share the same reads. `getLayout` runs its reads in parallel.
|
|
104
|
+
- `getPage` returns `undefined` only for not found / not accessible documents and rethrows other errors.
|
|
105
|
+
- `buildBaseOptions` is deprecated in favour of `buildReadOptions({ user, locale, draft, depth, select, populate, joins })`.
|
|
106
|
+
- `context`, `page`, `layout` and `lazy` modules use `import 'server-only'` instead of `'use server'`, so their exports are no longer exposed as Server Actions. `server-only` is now a dependency; outside Next (scripts, Payload CLI, Vitest) `@websolutespa/bom-next/server` needs the `react-server` condition (`node --conditions=react-server`, Vitest `resolve.conditions`) or a `server-only` mock.
|
|
107
|
+
- `TypedPageContext.layout` follows the `layout` option: `undefined` with `layout: false`.
|
|
108
|
+
- New `createContextHelpers({ config, defaults })` factory and `Populated<T>` type helper.
|
|
109
|
+
|
|
110
|
+
### Patch Changes
|
|
111
|
+
|
|
112
|
+
- feat: enhance page context options and helpers
|
|
113
|
+
|
|
3
114
|
## 4.0.0-next.0
|
|
4
115
|
|
|
5
116
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -8,4 +8,82 @@ Next module of the [BOM Repository](https://github.com/websolutespa/bom) by [web
|
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
#####
|
|
11
|
+
##### _this library is for internal usage and not production ready_
|
|
12
|
+
|
|
13
|
+
## Page context
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { createPageContext, getMetadata } from '@websolutespa/bom-next/server';
|
|
17
|
+
|
|
18
|
+
export const generateMetadata = getMetadata('post_detail', config);
|
|
19
|
+
|
|
20
|
+
const { page, layout, label, link } = await createPageContext(market, locale, 'post_detail', id, {
|
|
21
|
+
config,
|
|
22
|
+
depth: 2, // default DEFAULT_PAGE_DEPTH
|
|
23
|
+
select: { title: true, abstract: true, media: true, components: true },
|
|
24
|
+
populate: { media: { url: true, alt: true, width: true, height: true, type: true } },
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const { layout } = await createLayoutContext(market, locale, { config }); // depth: DEFAULT_LAYOUT_DEPTH (1)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
| option | default | |
|
|
31
|
+
| ---------- | -------------- | ------------------------------------------------------------------------------------------------------------------ |
|
|
32
|
+
| `depth` | `2` | `0` ids only, `1` direct relations/uploads (including those inside blocks), `2` relations of relations |
|
|
33
|
+
| `select` | – | Payload select; envelope fields (`id`, `slug`, `title`, `category`, `markets`, `meta`, `template`) are always read |
|
|
34
|
+
| `populate` | – | per-collection select for populated documents |
|
|
35
|
+
| `draft` | `'auto'` | `true` / `false`, or `'auto'` to read Next `draftMode()` |
|
|
36
|
+
| `layout` | `{ depth: 1 }` | layout options, or `false` to skip the layout |
|
|
37
|
+
|
|
38
|
+
Page and layout reads are memoized per request, so `getMetadata` and the page component share them when called with the same options.
|
|
39
|
+
To bind `config` once: `export const { createPageContext, createLayoutContext, getMetadata } = createContextHelpers({ config, defaults: { depth: 2 } });`
|
|
40
|
+
|
|
41
|
+
## Metadata
|
|
42
|
+
|
|
43
|
+
`getPageMetadata` (and `getMetadata`, its `config`-first form) returns a `generateMetadata` function that renders on the server: plain-text title and description, canonical (keeping `?pagination[page]=N` after the first page), `alternates.languages` with one `locale-COUNTRY` entry per market country plus `x-default`, robots, keywords, Open Graph and Twitter.
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
import { getPageMetadata, JsonLd, buildPageStructuredData } from '@websolutespa/bom-next/server';
|
|
47
|
+
|
|
48
|
+
export const generateMetadata = getPageMetadata('post_detail', {
|
|
49
|
+
config,
|
|
50
|
+
metadata: {
|
|
51
|
+
brand: { name: 'Example', logo: '/logo.png', twitterName: '@example' },
|
|
52
|
+
extend: (metadata, { page }) => ({ ...metadata, title: `${metadata.title} | Example` }),
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// JSON-LD in the page component
|
|
57
|
+
<JsonLd data={buildPageStructuredData(page, layout, { brand: { name: 'Example' } })} />
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
`buildPageMetadata(page, layout, options)` is the same builder for custom routes. URLs are resolved against `NEXT_PUBLIC_URL` unless `baseUrl` is passed. Robots come from `meta.robots`, or `meta.robot` (the `@payloadcms/plugin-seo` field).
|
|
61
|
+
|
|
62
|
+
The client `MetaDataProvider` only computes values for `useMetaData`; the `next/head` based `Meta`, `OpenGraph` and `StructuredData` components of the mixer packages render nothing in the App Router.
|
|
63
|
+
|
|
64
|
+
`layout.homeHref` is the root page href for the current market and locale; prefer it to `layout.topLevelHrefs.<slug>`, which is keyed by collection slug or template.
|
|
65
|
+
|
|
66
|
+
## Routing proxy
|
|
67
|
+
|
|
68
|
+
`createRouteProxy` resolves each request through `/api/-route` and caches the result per instance: found routes for `BOM_ROUTE_CACHE_TTL` seconds (default `30`, `0` disables), misses and redirects for at most 10 seconds. Draft requests and server errors are never cached. CMS redirects send the browser to the target returned by the resolver.
|
|
69
|
+
|
|
70
|
+
`routeAutoDetection` redirects `/` straight from the `detectedRoute` cookie when present; otherwise it detects the market (GeoIP, 2 s timeout, cached per IP for one hour) and the locale.
|
|
71
|
+
|
|
72
|
+
The server context (`getContext`) reads routes from the Bowl route store and caches the rest per market, locale and user for `MEMORY_CACHE_DURATION` seconds (default 300). Any route store change, local or from another instance through Redis, clears it. Draft contexts are never cached.
|
|
73
|
+
|
|
74
|
+
## Environment
|
|
75
|
+
|
|
76
|
+
Per-request diagnostics (proxy, local API calls, context cache) are logged in development only (`NODE_ENV` unset or `development`).
|
|
77
|
+
|
|
78
|
+
| Variable | Default | |
|
|
79
|
+
| ----------------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
80
|
+
| `BOM_ROUTE_CACHE_TTL` | `30` | proxy route cache lifetime in seconds, `0` disables it |
|
|
81
|
+
| `MEMORY_CACHE_DURATION` | `300` | server context cache lifetime in seconds |
|
|
82
|
+
| `UI_REGISTRY_SOURCE_DIR` | `packages/ui/src` | registry source directory |
|
|
83
|
+
| `UI_REGISTRY_COMPONENTS_JSON` | nearest `components.json` | shadcn config whose aliases (e.g. `@/ui/lib/utils`) are mapped to registry imports |
|
|
84
|
+
| `UI_REGISTRY_SOURCE_ALIAS` | – | extra import prefix pointing at the registry source, e.g. `@/ui/` |
|
|
85
|
+
| `UI_REGISTRY_SKIP_UNRESOLVED` | – | `1` hides registry items that import app code; otherwise they are listed with `meta.unresolvedImports` |
|
|
86
|
+
|
|
87
|
+
## User
|
|
88
|
+
|
|
89
|
+
`UserProvider` reads `/api/auth/me` once per page load, shared by every mount and client navigation. Pass `initialUser` (a user or `null`) when the server already knows it to skip the request; `setUser` and `invalidateUser()` keep the cached value current after login or logout.
|
package/dist/client/client.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/client/client.d.ts
|
|
4
|
-
declare function Client():
|
|
5
|
-
//# sourceMappingURL=client.d.ts.map
|
|
6
|
-
|
|
4
|
+
declare function Client(): react.JSX.Element;
|
|
7
5
|
//#endregion
|
|
8
6
|
export { Client };
|
|
9
7
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","names":[],"sources":["../../src/client/client.tsx"],"
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../../src/client/client.tsx"],"mappings":";;;iBAMgB,MAAA,CAAA,GAAM,KAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/client/client.js
CHANGED
|
@@ -1,29 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use client";
|
|
4
2
|
import { useLabel } from "./useLabel.js";
|
|
5
3
|
import { usePage } from "./usePage.js";
|
|
6
4
|
import { getClassNames } from "@websolutespa/bom-core";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
9
5
|
//#region src/client/client.tsx
|
|
10
6
|
function Client() {
|
|
11
7
|
const label = useLabel();
|
|
12
8
|
const page = usePage();
|
|
13
9
|
const classNames = getClassNames("client");
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
" ",
|
|
21
|
-
/* @__PURE__ */ jsx("sup", { children: page.id })
|
|
22
|
-
]
|
|
23
|
-
}), /* @__PURE__ */ jsx("h2", { children: label("label") })]
|
|
24
|
-
});
|
|
10
|
+
return <div className={classNames}>
|
|
11
|
+
<h2 className="display-2">
|
|
12
|
+
{page.title} <sup>{page.id}</sup>
|
|
13
|
+
</h2>
|
|
14
|
+
<h2>{label("label")}</h2>
|
|
15
|
+
</div>;
|
|
25
16
|
}
|
|
26
|
-
|
|
27
17
|
//#endregion
|
|
28
18
|
export { Client };
|
|
19
|
+
|
|
29
20
|
//# sourceMappingURL=client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","names":[],"sources":["../../src/client/client.tsx"],"sourcesContent":["'use client';\r\n\r\nimport { getClassNames } from '@websolutespa/bom-core';\r\nimport { useLabel } from './useLabel';\r\nimport { usePage } from './usePage';\r\n\r\nexport function Client() {\r\n const label = useLabel();\r\n const page = usePage();\r\n // console.log('Client', layout, page, label('label'));\r\n const classNames = getClassNames('client');\r\n return (\r\n <div className={classNames}>\r\n <h2 className=\"display-2\"
|
|
1
|
+
{"version":3,"file":"client.js","names":[],"sources":["../../src/client/client.tsx"],"sourcesContent":["'use client';\r\n\r\nimport { getClassNames } from '@websolutespa/bom-core';\r\nimport { useLabel } from './useLabel';\r\nimport { usePage } from './usePage';\r\n\r\nexport function Client() {\r\n const label = useLabel();\r\n const page = usePage();\r\n // console.log('Client', layout, page, label('label'));\r\n const classNames = getClassNames('client');\r\n return (\r\n <div className={classNames}>\r\n <h2 className=\"display-2\">\r\n {page.title} <sup>{page.id}</sup>\r\n </h2>\r\n <h2>{label('label')}</h2>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;AAMA,SAAgB,SAAS;CACvB,MAAM,QAAQ,UAAU;CACxB,MAAM,OAAO,SAAS;CAEtB,MAAM,aAAa,cAAc,SAAS;AAC1C,QACE,CAAC,IAAI,WAAW,YAAY;MAC1B,CAAC,GAAG,sBAAsB;SACvB,KAAK,MAAM,CAAC,CAAC,KAAK,KAAK,GAAG,EAAE,IAAI;MACnC,EAAE,GAAG;MACL,CAAC,IAAI,MAAM,QAAQ,CAAC,EAAE,GAAG;IAC3B,EAAE"}
|
package/dist/client/extra.d.ts
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/client/extra.d.ts
|
|
4
4
|
type IExtraContext = Record<string, any>;
|
|
5
|
-
declare const ExtraContext:
|
|
5
|
+
declare const ExtraContext: react.Context<IExtraContext | undefined>;
|
|
6
6
|
declare function ExtraProvider({
|
|
7
7
|
extra,
|
|
8
8
|
children
|
|
9
9
|
}: {
|
|
10
10
|
extra?: Record<string, any>;
|
|
11
11
|
children?: React.ReactNode;
|
|
12
|
-
}):
|
|
13
|
-
//# sourceMappingURL=extra.d.ts.map
|
|
14
|
-
|
|
12
|
+
}): react.JSX.Element;
|
|
15
13
|
//#endregion
|
|
16
14
|
export { ExtraContext, ExtraProvider, IExtraContext };
|
|
17
15
|
//# sourceMappingURL=extra.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extra.d.ts","names":[],"sources":["../../src/client/extra.tsx"],"
|
|
1
|
+
{"version":3,"file":"extra.d.ts","names":[],"sources":["../../src/client/extra.tsx"],"mappings":";;;KAIY,aAAA,GAAgB,MAAA;AAAA,cAEf,YAAA,EAAY,KAAA,CAAA,OAAA,CAAA,aAAA;AAAA,iBAET,aAAA,CAAA;EACd,KAAA;EACA;AAAA;EAEA,KAAA,GAAQ,MAAA;EACR,QAAA,GAAW,KAAA,CAAM,SAAA;AAAA,IAClB,KAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/client/extra.js
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use client";
|
|
4
2
|
import { createContext } from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
7
3
|
//#region src/client/extra.tsx
|
|
8
4
|
const ExtraContext = createContext(void 0);
|
|
9
5
|
function ExtraProvider({ extra = {}, children }) {
|
|
10
|
-
return
|
|
11
|
-
value: extra,
|
|
12
|
-
children
|
|
13
|
-
});
|
|
6
|
+
return <ExtraContext.Provider value={extra}>{children}</ExtraContext.Provider>;
|
|
14
7
|
}
|
|
15
|
-
|
|
16
8
|
//#endregion
|
|
17
9
|
export { ExtraContext, ExtraProvider };
|
|
10
|
+
|
|
18
11
|
//# sourceMappingURL=extra.js.map
|
package/dist/client/extra.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extra.js","names":[],"sources":["../../src/client/extra.tsx"],"sourcesContent":["'use client';\r\n\r\nimport { createContext } from 'react';\r\n\r\nexport type IExtraContext = Record<string, any>;\r\n\r\nexport const ExtraContext = createContext<IExtraContext | undefined>(undefined);\r\n\r\nexport function ExtraProvider({\r\n extra = {},\r\n children,\r\n}: {\r\n extra?: Record<string, any
|
|
1
|
+
{"version":3,"file":"extra.js","names":[],"sources":["../../src/client/extra.tsx"],"sourcesContent":["'use client';\r\n\r\nimport { createContext } from 'react';\r\n\r\nexport type IExtraContext = Record<string, any>;\r\n\r\nexport const ExtraContext = createContext<IExtraContext | undefined>(undefined);\r\n\r\nexport function ExtraProvider({\r\n extra = {},\r\n children,\r\n}: {\r\n extra?: Record<string, any>;\r\n children?: React.ReactNode;\r\n}) {\r\n return <ExtraContext.Provider value={extra}>{children}</ExtraContext.Provider>;\r\n}\r\n"],"mappings":";;;AAMA,MAAa,eAAe,cAAyC,KAAA,EAAU;AAE/E,SAAgB,cAAc,EAC5B,QAAQ,EAAE,EACV,YAIC;AACD,QAAO,CAAC,aAAa,SAAS,OAAO,QAAQ,SAAS,EAAE,aAAa"}
|
package/dist/client/label.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/client/label.d.ts
|
|
4
4
|
type ILabelContext = (key: string, params?: Record<string, any>) => string;
|
|
5
|
-
declare const LabelContext:
|
|
5
|
+
declare const LabelContext: react.Context<ILabelContext | undefined>;
|
|
6
6
|
declare function LabelProvider({
|
|
7
7
|
children
|
|
8
8
|
}: {
|
|
9
9
|
children?: React.ReactNode;
|
|
10
|
-
}):
|
|
11
|
-
//# sourceMappingURL=label.d.ts.map
|
|
12
|
-
|
|
10
|
+
}): react.JSX.Element;
|
|
13
11
|
//#endregion
|
|
14
12
|
export { ILabelContext, LabelContext, LabelProvider };
|
|
15
13
|
//# sourceMappingURL=label.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","names":[],"sources":["../../src/client/label.tsx"],"
|
|
1
|
+
{"version":3,"file":"label.d.ts","names":[],"sources":["../../src/client/label.tsx"],"mappings":";;;KAMY,aAAA,IAAiB,GAAA,UAAa,MAAA,GAAS,MAAA;AAAA,cAEtC,YAAA,EAAY,KAAA,CAAA,OAAA,CAAA,aAAA;AAAA,iBAET,aAAA,CAAA;EAAgB;AAAA;EAAc,QAAA,GAAW,KAAA,CAAM,SAAA;AAAA,IAAW,KAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/client/label.js
CHANGED
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use client";
|
|
4
2
|
import { LabelService } from "../lib/label.js";
|
|
5
3
|
import { useLayout } from "./useLayout.js";
|
|
6
|
-
import { createContext } from "react";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
|
|
4
|
+
import { createContext, useMemo } from "react";
|
|
9
5
|
//#region src/client/label.tsx
|
|
10
6
|
const LabelContext = createContext(void 0);
|
|
11
7
|
function LabelProvider({ children }) {
|
|
12
8
|
const { labels } = useLayout();
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
return labelService.getLabel(key, params);
|
|
16
|
-
};
|
|
17
|
-
return
|
|
18
|
-
value: getLabel,
|
|
19
|
-
children
|
|
20
|
-
});
|
|
9
|
+
const getLabel = useMemo(() => {
|
|
10
|
+
const labelService = new LabelService(labels);
|
|
11
|
+
return (key, params) => labelService.getLabel(key, params);
|
|
12
|
+
}, [labels]);
|
|
13
|
+
return <LabelContext.Provider value={getLabel}>{children}</LabelContext.Provider>;
|
|
21
14
|
}
|
|
22
|
-
|
|
23
15
|
//#endregion
|
|
24
16
|
export { LabelContext, LabelProvider };
|
|
17
|
+
|
|
25
18
|
//# sourceMappingURL=label.js.map
|
package/dist/client/label.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","names":[
|
|
1
|
+
{"version":3,"file":"label.js","names":[],"sources":["../../src/client/label.tsx"],"sourcesContent":["'use client';\r\n\r\nimport { createContext, useMemo } from 'react';\r\nimport { LabelService } from '../lib/label';\r\nimport { useLayout } from './useLayout';\r\n\r\nexport type ILabelContext = (key: string, params?: Record<string, any>) => string;\r\n\r\nexport const LabelContext = createContext<ILabelContext | undefined>(undefined);\r\n\r\nexport function LabelProvider({ children }: { children?: React.ReactNode }) {\r\n const { labels } = useLayout();\r\n // one function per labels: consumers list `label` in effect dependencies, a new function on every\r\n // render would run their effects again (e.g. a toast shown twice)\r\n const getLabel = useMemo<ILabelContext>(() => {\r\n const labelService = new LabelService(labels);\r\n return (key, params) => labelService.getLabel(key, params);\r\n }, [labels]);\r\n return <LabelContext.Provider value={getLabel}>{children}</LabelContext.Provider>;\r\n}\r\n"],"mappings":";;;;;AAQA,MAAa,eAAe,cAAyC,KAAA,EAAU;AAE/E,SAAgB,cAAc,EAAE,YAA4C;CAC1E,MAAM,EAAE,WAAW,WAAW;CAG9B,MAAM,WAAW,cAA6B;EAC5C,MAAM,eAAe,IAAI,aAAa,OAAO;AAC7C,UAAQ,KAAK,WAAW,aAAa,SAAS,KAAK,OAAO;IACzD,CAAC,OAAO,CAAC;AACZ,QAAO,CAAC,aAAa,SAAS,OAAO,WAAW,SAAS,EAAE,aAAa"}
|
package/dist/client/layout.d.ts
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { ILayout } from "@websolutespa/bom-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/client/layout.d.ts
|
|
5
5
|
type ILayoutContext = ILayout;
|
|
6
|
-
declare const LayoutContext:
|
|
6
|
+
declare const LayoutContext: react.Context<ILayoutContext | undefined>;
|
|
7
7
|
declare function LayoutProvider({
|
|
8
8
|
layout,
|
|
9
9
|
children
|
|
10
10
|
}: {
|
|
11
11
|
layout: ILayout;
|
|
12
12
|
children?: React.ReactNode;
|
|
13
|
-
}):
|
|
14
|
-
//# sourceMappingURL=layout.d.ts.map
|
|
15
|
-
|
|
13
|
+
}): react.JSX.Element;
|
|
16
14
|
//#endregion
|
|
17
15
|
export { ILayoutContext, LayoutContext, LayoutProvider };
|
|
18
16
|
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","names":[],"sources":["../../src/client/layout.tsx"],"
|
|
1
|
+
{"version":3,"file":"layout.d.ts","names":[],"sources":["../../src/client/layout.tsx"],"mappings":";;;;KAKY,cAAA,GAAiB,OAAA;AAAA,cAEhB,aAAA,EAAa,KAAA,CAAA,OAAA,CAAA,cAAA;AAAA,iBAEV,cAAA,CAAA;EACd,MAAA;EACA;AAAA;EAEA,MAAA,EAAQ,OAAA;EACR,QAAA,GAAW,KAAA,CAAM,SAAA;AAAA,IAClB,KAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/client/layout.js
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use client";
|
|
4
2
|
import { createContext } from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
7
3
|
//#region src/client/layout.tsx
|
|
8
4
|
const LayoutContext = createContext(void 0);
|
|
9
5
|
function LayoutProvider({ layout, children }) {
|
|
10
|
-
return
|
|
11
|
-
value: layout,
|
|
12
|
-
children
|
|
13
|
-
});
|
|
6
|
+
return <LayoutContext.Provider value={layout}>{children}</LayoutContext.Provider>;
|
|
14
7
|
}
|
|
15
|
-
|
|
16
8
|
//#endregion
|
|
17
9
|
export { LayoutContext, LayoutProvider };
|
|
10
|
+
|
|
18
11
|
//# sourceMappingURL=layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","names":[],"sources":["../../src/client/layout.tsx"],"sourcesContent":["'use client';\r\n\r\nimport { ILayout } from '@websolutespa/bom-core';\r\nimport { createContext } from 'react';\r\n\r\nexport type ILayoutContext = ILayout;\r\n\r\nexport const LayoutContext = createContext<ILayoutContext | undefined>(undefined);\r\n\r\nexport function LayoutProvider({\r\n layout,\r\n children,\r\n}: {\r\n layout: ILayout
|
|
1
|
+
{"version":3,"file":"layout.js","names":[],"sources":["../../src/client/layout.tsx"],"sourcesContent":["'use client';\r\n\r\nimport { ILayout } from '@websolutespa/bom-core';\r\nimport { createContext } from 'react';\r\n\r\nexport type ILayoutContext = ILayout;\r\n\r\nexport const LayoutContext = createContext<ILayoutContext | undefined>(undefined);\r\n\r\nexport function LayoutProvider({\r\n layout,\r\n children,\r\n}: {\r\n layout: ILayout;\r\n children?: React.ReactNode;\r\n}) {\r\n return <LayoutContext.Provider value={layout}>{children}</LayoutContext.Provider>;\r\n}\r\n"],"mappings":";;;AAOA,MAAa,gBAAgB,cAA0C,KAAA,EAAU;AAEjF,SAAgB,eAAe,EAC7B,QACA,YAIC;AACD,QAAO,CAAC,cAAc,SAAS,OAAO,SAAS,SAAS,EAAE,cAAc"}
|
|
@@ -25,8 +25,6 @@ declare function localCollectionDelete<T = unknown>(url: string, options?: ApiRe
|
|
|
25
25
|
locale: string;
|
|
26
26
|
market: string;
|
|
27
27
|
}): Promise<T>;
|
|
28
|
-
//# sourceMappingURL=local.collection.d.ts.map
|
|
29
|
-
|
|
30
28
|
//#endregion
|
|
31
29
|
export { localCollectionDelete, localCollectionFetch, localCollectionGet, localCollectionPatch, localCollectionPost, localCollectionPut };
|
|
32
30
|
//# sourceMappingURL=local.collection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local.collection.d.ts","names":[],"sources":["../../src/client/local.collection.ts"],"
|
|
1
|
+
{"version":3,"file":"local.collection.d.ts","names":[],"sources":["../../src/client/local.collection.ts"],"mappings":";;;iBAGsB,oBAAA,aAAA,CACpB,QAAA,UACA,OAAA,GAAS,iBAAA,EACT,cAAA;EAAmB,MAAA;EAAgB,MAAA;AAAA,IAClC,OAAA,CAAQ,CAAA;AAAA,iBAWW,kBAAA,aAAA,CACpB,GAAA,UACA,OAAA,GAAS,iBAAA,EACT,cAAA;EAAmB,MAAA;EAAgB,MAAA;AAAA,IAClC,OAAA,CAAQ,CAAA;AAAA,iBAIW,mBAAA,aAAA,CACpB,GAAA,UACA,OAAA,YACA,OAAA,GAAS,iBAAA,EACT,cAAA;EAAmB,MAAA;EAAgB,MAAA;AAAA,IAClC,OAAA,CAAQ,CAAA;AAAA,iBAQW,kBAAA,aAAA,CACpB,GAAA,UACA,OAAA,YACA,OAAA,GAAS,iBAAA,EACT,cAAA;EAAmB,MAAA;EAAgB,MAAA;AAAA,IAClC,OAAA,CAAQ,CAAA;AAAA,iBAQW,oBAAA,aAAA,CACpB,GAAA,UACA,OAAA,YACA,OAAA,GAAS,iBAAA,EACT,cAAA;EAAmB,MAAA;EAAgB,MAAA;AAAA,IAClC,OAAA,CAAQ,CAAA;AAAA,iBAQW,qBAAA,aAAA,CACpB,GAAA,UACA,OAAA,GAAS,iBAAA,EACT,cAAA;EAAmB,MAAA;EAAgB,MAAA;AAAA,IAClC,OAAA,CAAQ,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getLocalApiRequestOptions, getLocalApiUrl } from "../lib/http.js";
|
|
2
2
|
import { httpFetch, merge } from "@websolutespa/bom-core";
|
|
3
|
-
|
|
4
3
|
//#region src/client/local.collection.ts
|
|
5
4
|
async function localCollectionFetch(pathname, options = {}, serviceOptions) {
|
|
6
5
|
const url = new URL(getLocalApiUrl(pathname));
|
|
@@ -9,8 +8,7 @@ async function localCollectionFetch(pathname, options = {}, serviceOptions) {
|
|
|
9
8
|
url.searchParams.append("market", serviceOptions.market);
|
|
10
9
|
}
|
|
11
10
|
const apiOptions = merge({ ...getLocalApiRequestOptions() }, options);
|
|
12
|
-
|
|
13
|
-
return apiResponse;
|
|
11
|
+
return await httpFetch(url.href, apiOptions);
|
|
14
12
|
}
|
|
15
13
|
async function localCollectionGet(url, options = {}, serviceOptions) {
|
|
16
14
|
return await localCollectionFetch(url, {
|
|
@@ -45,7 +43,7 @@ async function localCollectionDelete(url, options = {}, serviceOptions) {
|
|
|
45
43
|
method: "DELETE"
|
|
46
44
|
}, serviceOptions);
|
|
47
45
|
}
|
|
48
|
-
|
|
49
46
|
//#endregion
|
|
50
47
|
export { localCollectionDelete, localCollectionFetch, localCollectionGet, localCollectionPatch, localCollectionPost, localCollectionPut };
|
|
48
|
+
|
|
51
49
|
//# sourceMappingURL=local.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local.collection.js","names":[
|
|
1
|
+
{"version":3,"file":"local.collection.js","names":[],"sources":["../../src/client/local.collection.ts"],"sourcesContent":["import { httpFetch, merge } from '@websolutespa/bom-core';\r\nimport { ApiRequestOptions, getLocalApiRequestOptions, getLocalApiUrl } from '../lib/http';\r\n\r\nexport async function localCollectionFetch<T = unknown>(\r\n pathname: string,\r\n options: ApiRequestOptions = {},\r\n serviceOptions?: { locale: string; market: string }\r\n): Promise<T> {\r\n const url = new URL(getLocalApiUrl(pathname));\r\n if (serviceOptions) {\r\n url.searchParams.append('locale', serviceOptions.locale);\r\n url.searchParams.append('market', serviceOptions.market);\r\n }\r\n const apiOptions = merge({ ...getLocalApiRequestOptions() }, options);\r\n const apiResponse = await httpFetch(url.href, apiOptions);\r\n return apiResponse;\r\n}\r\n\r\nexport async function localCollectionGet<T = unknown>(\r\n url: string,\r\n options: ApiRequestOptions = {},\r\n serviceOptions?: { locale: string; market: string }\r\n): Promise<T> {\r\n return await localCollectionFetch<T>(url, { ...options, method: 'GET' }, serviceOptions);\r\n}\r\n\r\nexport async function localCollectionPost<T = unknown>(\r\n url: string,\r\n payload?: unknown,\r\n options: ApiRequestOptions = {},\r\n serviceOptions?: { locale: string; market: string }\r\n): Promise<T> {\r\n return await localCollectionFetch<T>(\r\n url,\r\n { ...options, method: 'POST', body: payload ? JSON.stringify(payload) : undefined },\r\n serviceOptions\r\n );\r\n}\r\n\r\nexport async function localCollectionPut<T = unknown>(\r\n url: string,\r\n payload?: unknown,\r\n options: ApiRequestOptions = {},\r\n serviceOptions?: { locale: string; market: string }\r\n): Promise<T> {\r\n return await localCollectionFetch<T>(\r\n url,\r\n { ...options, method: 'PUT', body: payload ? JSON.stringify(payload) : undefined },\r\n serviceOptions\r\n );\r\n}\r\n\r\nexport async function localCollectionPatch<T = unknown>(\r\n url: string,\r\n payload?: unknown,\r\n options: ApiRequestOptions = {},\r\n serviceOptions?: { locale: string; market: string }\r\n): Promise<T> {\r\n return await localCollectionFetch<T>(\r\n url,\r\n { ...options, method: 'PATCH', body: payload ? JSON.stringify(payload) : undefined },\r\n serviceOptions\r\n );\r\n}\r\n\r\nexport async function localCollectionDelete<T = unknown>(\r\n url: string,\r\n options: ApiRequestOptions = {},\r\n serviceOptions?: { locale: string; market: string }\r\n): Promise<T> {\r\n return await localCollectionFetch<T>(url, { ...options, method: 'DELETE' }, serviceOptions);\r\n}\r\n"],"mappings":";;;AAGA,eAAsB,qBACpB,UACA,UAA6B,EAAE,EAC/B,gBACY;CACZ,MAAM,MAAM,IAAI,IAAI,eAAe,SAAS,CAAC;AAC7C,KAAI,gBAAgB;AAClB,MAAI,aAAa,OAAO,UAAU,eAAe,OAAO;AACxD,MAAI,aAAa,OAAO,UAAU,eAAe,OAAO;;CAE1D,MAAM,aAAa,MAAM,EAAE,GAAG,2BAA2B,EAAE,EAAE,QAAQ;AAErE,QADoB,MAAM,UAAU,IAAI,MAAM,WAAW;;AAI3D,eAAsB,mBACpB,KACA,UAA6B,EAAE,EAC/B,gBACY;AACZ,QAAO,MAAM,qBAAwB,KAAK;EAAE,GAAG;EAAS,QAAQ;EAAO,EAAE,eAAe;;AAG1F,eAAsB,oBACpB,KACA,SACA,UAA6B,EAAE,EAC/B,gBACY;AACZ,QAAO,MAAM,qBACX,KACA;EAAE,GAAG;EAAS,QAAQ;EAAQ,MAAM,UAAU,KAAK,UAAU,QAAQ,GAAG,KAAA;EAAW,EACnF,eACD;;AAGH,eAAsB,mBACpB,KACA,SACA,UAA6B,EAAE,EAC/B,gBACY;AACZ,QAAO,MAAM,qBACX,KACA;EAAE,GAAG;EAAS,QAAQ;EAAO,MAAM,UAAU,KAAK,UAAU,QAAQ,GAAG,KAAA;EAAW,EAClF,eACD;;AAGH,eAAsB,qBACpB,KACA,SACA,UAA6B,EAAE,EAC/B,gBACY;AACZ,QAAO,MAAM,qBACX,KACA;EAAE,GAAG;EAAS,QAAQ;EAAS,MAAM,UAAU,KAAK,UAAU,QAAQ,GAAG,KAAA;EAAW,EACpF,eACD;;AAGH,eAAsB,sBACpB,KACA,UAA6B,EAAE,EAC/B,gBACY;AACZ,QAAO,MAAM,qBAAwB,KAAK;EAAE,GAAG;EAAS,QAAQ;EAAU,EAAE,eAAe"}
|
|
@@ -2,7 +2,7 @@ import { OpenGraphType } from "../lib/open-graph.js";
|
|
|
2
2
|
import { StructuredDataType } from "../lib/structured-data.js";
|
|
3
3
|
import { TwitterCardType } from "../lib/twitter-card.js";
|
|
4
4
|
import { IMetaData } from "../lib/meta-data.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react from "react";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/client/metadata.d.ts
|
|
@@ -29,15 +29,24 @@ type IMetaDataOptions = {
|
|
|
29
29
|
twitterCard?: TwitterCardType;
|
|
30
30
|
};
|
|
31
31
|
type IMetaDataContext = IMetaData;
|
|
32
|
-
declare const MetaDataContext:
|
|
32
|
+
declare const MetaDataContext: react.Context<IMetaData | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Computes page metadata for client components (`useMetaData`). It renders
|
|
35
|
+
* nothing into `<head>`: in the App Router, export `generateMetadata` built
|
|
36
|
+
* with `getPageMetadata` from `@websolutespa/bom-next/server` instead.
|
|
37
|
+
*
|
|
38
|
+
* `search` is the current query string (e.g. `?pagination[page]=2`); pages
|
|
39
|
+
* after the first keep their pagination in the canonical URL.
|
|
40
|
+
*/
|
|
33
41
|
declare function MetaDataProvider({
|
|
34
42
|
metaData,
|
|
43
|
+
search,
|
|
35
44
|
children
|
|
36
45
|
}: {
|
|
37
46
|
metaData: IMetaDataOptions;
|
|
47
|
+
search?: string;
|
|
38
48
|
children?: ReactNode;
|
|
39
|
-
}):
|
|
40
|
-
//# sourceMappingURL=metadata.d.ts.map
|
|
49
|
+
}): react.JSX.Element;
|
|
41
50
|
//#endregion
|
|
42
51
|
export { IMetaDataContext, IMetaDataOptions, MetaDataContext, MetaDataProvider };
|
|
43
52
|
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","names":[],"sources":["../../src/client/metadata.tsx"],"
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","names":[],"sources":["../../src/client/metadata.tsx"],"mappings":";;;;;;;;KAmBY,gBAAA;EACV,KAAA;IACE,IAAA;IACA,IAAA;IACA,YAAA;IACA,OAAA;IACA,GAAA;IACA,KAAA;IACA,SAAA;IACA,OAAA;IACA,OAAA;IACA,IAAA;IACA,YAAA;IACA,WAAA;IACA,WAAA;IACA,WAAA;IACA,MAAA,GAAS,MAAA;EAAA;EAEX,cAAA,GAAiB,kBAAA;EACjB,SAAA,GAAY,aAAA;EACZ,WAAA,GAAc,eAAA;AAAA;AAAA,KAGJ,gBAAA,GAAmB,SAAA;AAAA,cAElB,eAAA,EAAe,KAAA,CAAA,OAAA,CAAA,SAAA;;;;;;;;;iBAUZ,gBAAA,CAAA;EACd,QAAA;EACA,MAAA;EACA;AAAA;EAEA,QAAA,EAAU,gBAAA;EACV,MAAA;EACA,QAAA,GAAW,SAAA;AAAA,IACZ,KAAA,CAAA,GAAA,CAAA,OAAA"}
|