fimo 0.6.0 → 0.7.0-experimental.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/assets/skills/fimo/SKILL.md +2 -2
- package/assets/skills/fimo/references/locales.md +0 -8
- package/assets/skills/fimo/references/setup-react-router.md +2 -2
- package/assets/skills/fimo/references/ui.md +1 -1
- package/assets/skills/fimo-cli/references/content.md +0 -3
- package/assets/skills/fimo-cli/references/locales.md +0 -6
- package/assets/skills/fimo-migration/SKILL.md +22 -2
- package/assets/skills/fimo-migration/references/content.md +8 -0
- package/assets/skills/fimo-migration/references/manifest.md +35 -0
- package/assets/skills/fimo-migration/references/qa.md +24 -2
- package/assets/skills/fimo-migration/references/workflow.md +12 -1
- package/assets/skills/fimo-migration/references/wrap.md +617 -0
- package/assets/skills/fimo-studio/references/visual-editing.md +5 -3
- package/dist/build/vite/plugins/translations.d.ts +2 -8
- package/dist/build/vite/plugins/translations.d.ts.map +1 -1
- package/dist/build/vite/plugins/translations.js +3 -121
- package/dist/cli/bundle.json +1 -1
- package/dist/cli/index.js +29490 -21165
- package/dist/runtime/app/FimoProviders.d.ts +1 -11
- package/dist/runtime/app/FimoProviders.d.ts.map +1 -1
- package/dist/runtime/app/FimoProviders.js +2 -23
- package/dist/runtime/astro/index.d.ts +2 -0
- package/dist/runtime/astro/index.d.ts.map +1 -0
- package/dist/runtime/astro/index.js +3 -0
- package/dist/runtime/astro/server.d.ts +3 -0
- package/dist/runtime/astro/server.d.ts.map +1 -0
- package/dist/runtime/astro/server.js +6 -0
- package/dist/runtime/i18n/FimoLocaleContext.d.ts.map +1 -1
- package/dist/runtime/i18n/FimoLocaleContext.js +1 -0
- package/dist/runtime/next/FimoNextProviders.d.ts +24 -0
- package/dist/runtime/next/FimoNextProviders.d.ts.map +1 -0
- package/dist/runtime/next/FimoNextProviders.js +20 -0
- package/dist/runtime/next/FimoNextScripts.d.ts +10 -0
- package/dist/runtime/next/FimoNextScripts.d.ts.map +1 -0
- package/dist/runtime/next/FimoNextScripts.js +19 -0
- package/dist/runtime/next/index.d.ts +14 -0
- package/dist/runtime/next/index.d.ts.map +1 -0
- package/dist/runtime/next/index.js +14 -0
- package/dist/runtime/next/server.d.ts +2 -0
- package/dist/runtime/next/server.d.ts.map +1 -0
- package/dist/runtime/next/server.js +4 -0
- package/dist/runtime/nuxt/composables.d.ts +9 -0
- package/dist/runtime/nuxt/composables.d.ts.map +1 -0
- package/dist/runtime/nuxt/composables.js +57 -0
- package/dist/runtime/nuxt/index.d.ts +3 -0
- package/dist/runtime/nuxt/index.d.ts.map +1 -0
- package/dist/runtime/nuxt/index.js +6 -0
- package/dist/runtime/nuxt/server.d.ts +3 -0
- package/dist/runtime/nuxt/server.d.ts.map +1 -0
- package/dist/runtime/nuxt/server.js +6 -0
- package/dist/runtime/paths/get-fimo-paths.d.ts.map +1 -1
- package/dist/runtime/paths/get-fimo-paths.js +5 -15
- package/dist/runtime/primitives/labels-hook.d.ts +33 -0
- package/dist/runtime/primitives/labels-hook.d.ts.map +1 -0
- package/dist/runtime/primitives/labels-hook.js +41 -0
- package/dist/runtime/primitives/labels-store.d.ts +12 -0
- package/dist/runtime/primitives/labels-store.d.ts.map +1 -0
- package/dist/runtime/primitives/labels-store.js +60 -0
- package/dist/runtime/primitives/labels-store.test.d.ts +2 -0
- package/dist/runtime/primitives/labels-store.test.d.ts.map +1 -0
- package/dist/runtime/primitives/labels-store.test.js +66 -0
- package/dist/runtime/primitives/lib/useFimoLiveValue.d.ts +5 -3
- package/dist/runtime/primitives/lib/useFimoLiveValue.d.ts.map +1 -1
- package/dist/runtime/primitives/lib/useFimoLiveValue.js +11 -4
- package/dist/runtime/primitives/translations.d.ts +1 -27
- package/dist/runtime/primitives/translations.d.ts.map +1 -1
- package/dist/runtime/primitives/translations.js +7 -85
- package/dist/runtime/react/FimoSpaProviders.d.ts +36 -0
- package/dist/runtime/react/FimoSpaProviders.d.ts.map +1 -0
- package/dist/runtime/react/FimoSpaProviders.js +63 -0
- package/dist/runtime/react/index.d.ts +33 -0
- package/dist/runtime/react/index.d.ts.map +1 -0
- package/dist/runtime/react/index.js +39 -0
- package/dist/runtime/remix/FimoRemixProviders.d.ts +16 -0
- package/dist/runtime/remix/FimoRemixProviders.d.ts.map +1 -0
- package/dist/runtime/remix/FimoRemixProviders.js +12 -0
- package/dist/runtime/remix/FimoRemixScripts.d.ts +10 -0
- package/dist/runtime/remix/FimoRemixScripts.d.ts.map +1 -0
- package/dist/runtime/remix/FimoRemixScripts.js +19 -0
- package/dist/runtime/remix/index.d.ts +12 -0
- package/dist/runtime/remix/index.d.ts.map +1 -0
- package/dist/runtime/remix/index.js +11 -0
- package/dist/runtime/remix/server.d.ts +2 -0
- package/dist/runtime/remix/server.d.ts.map +1 -0
- package/dist/runtime/remix/server.js +2 -0
- package/dist/runtime/seo/buildSeoForPath.d.ts +3 -1
- package/dist/runtime/seo/buildSeoForPath.d.ts.map +1 -1
- package/dist/runtime/seo/buildSeoForPath.js +1 -4
- package/dist/runtime/shared/display-routes.d.ts +14 -0
- package/dist/runtime/shared/display-routes.d.ts.map +1 -0
- package/dist/runtime/shared/display-routes.js +25 -0
- package/dist/runtime/shared/fimo-config.server.d.ts.map +1 -1
- package/dist/runtime/shared/fimo-config.server.js +1 -0
- package/dist/runtime/shared/fimo-config.types.d.ts +2 -0
- package/dist/runtime/shared/fimo-config.types.d.ts.map +1 -1
- package/dist/runtime/shared/i18n-messages.d.ts +29 -0
- package/dist/runtime/shared/i18n-messages.d.ts.map +1 -0
- package/dist/runtime/shared/i18n-messages.js +79 -0
- package/dist/runtime/shared/i18n-messages.test.d.ts +2 -0
- package/dist/runtime/shared/i18n-messages.test.d.ts.map +1 -0
- package/dist/runtime/shared/i18n-messages.test.js +39 -0
- package/dist/runtime/shared/labels-fetch.pure.d.ts +17 -0
- package/dist/runtime/shared/labels-fetch.pure.d.ts.map +1 -0
- package/dist/runtime/shared/labels-fetch.pure.js +71 -0
- package/dist/runtime/shared/labels-fetch.server.d.ts +7 -0
- package/dist/runtime/shared/labels-fetch.server.d.ts.map +1 -0
- package/dist/runtime/shared/labels-fetch.server.js +97 -0
- package/dist/runtime/shared/labels-t.pure.d.ts +2 -0
- package/dist/runtime/shared/labels-t.pure.d.ts.map +1 -0
- package/dist/runtime/shared/labels-t.pure.js +10 -0
- package/dist/runtime/strapi/client.d.ts +26 -0
- package/dist/runtime/strapi/client.d.ts.map +1 -0
- package/dist/runtime/strapi/client.js +88 -0
- package/dist/runtime/strapi/client.test.d.ts +2 -0
- package/dist/runtime/strapi/client.test.d.ts.map +1 -0
- package/dist/runtime/strapi/client.test.js +64 -0
- package/dist/runtime/strapi/index.d.ts +5 -0
- package/dist/runtime/strapi/index.d.ts.map +1 -0
- package/dist/runtime/strapi/index.js +6 -0
- package/dist/runtime/strapi/reshape.d.ts +28 -0
- package/dist/runtime/strapi/reshape.d.ts.map +1 -0
- package/dist/runtime/strapi/reshape.js +79 -0
- package/dist/runtime/strapi/reshape.test.d.ts +2 -0
- package/dist/runtime/strapi/reshape.test.d.ts.map +1 -0
- package/dist/runtime/strapi/reshape.test.js +33 -0
- package/dist/runtime/svelte/index.d.ts +3 -0
- package/dist/runtime/svelte/index.d.ts.map +1 -0
- package/dist/runtime/svelte/index.js +7 -0
- package/dist/runtime/svelte/server.d.ts +3 -0
- package/dist/runtime/svelte/server.d.ts.map +1 -0
- package/dist/runtime/svelte/server.js +6 -0
- package/dist/runtime/vue/index.d.ts +3 -0
- package/dist/runtime/vue/index.d.ts.map +1 -0
- package/dist/runtime/vue/index.js +5 -0
- package/dist/runtime/vue/server.d.ts +3 -0
- package/dist/runtime/vue/server.d.ts.map +1 -0
- package/dist/runtime/vue/server.js +6 -0
- package/dist/runtime/wrapped/FimoFileLink.d.ts +17 -0
- package/dist/runtime/wrapped/FimoFileLink.d.ts.map +1 -0
- package/dist/runtime/wrapped/FimoFileLink.js +19 -0
- package/dist/runtime/wrapped/FimoMediaImage.d.ts +14 -0
- package/dist/runtime/wrapped/FimoMediaImage.d.ts.map +1 -0
- package/dist/runtime/wrapped/FimoMediaImage.js +20 -0
- package/dist/runtime/wrapped/FimoMediaVideo.d.ts +14 -0
- package/dist/runtime/wrapped/FimoMediaVideo.d.ts.map +1 -0
- package/dist/runtime/wrapped/FimoMediaVideo.js +20 -0
- package/dist/runtime/wrapped/FimoRichTextBlock.d.ts +23 -0
- package/dist/runtime/wrapped/FimoRichTextBlock.d.ts.map +1 -0
- package/dist/runtime/wrapped/FimoRichTextBlock.js +22 -0
- package/dist/runtime/wrapped/FimoText.d.ts +22 -0
- package/dist/runtime/wrapped/FimoText.d.ts.map +1 -0
- package/dist/runtime/wrapped/FimoText.js +20 -0
- package/dist/runtime/wrapped/WrappedContentContext.d.ts +28 -0
- package/dist/runtime/wrapped/WrappedContentContext.d.ts.map +1 -0
- package/dist/runtime/wrapped/WrappedContentContext.js +30 -0
- package/dist/runtime/wrapped/WrappedProviders.d.ts +33 -0
- package/dist/runtime/wrapped/WrappedProviders.d.ts.map +1 -0
- package/dist/runtime/wrapped/WrappedProviders.js +101 -0
- package/dist/runtime/wrapped/dom.d.ts +4 -0
- package/dist/runtime/wrapped/dom.d.ts.map +1 -0
- package/dist/runtime/wrapped/dom.js +23 -0
- package/dist/runtime/wrapped/dom.test.d.ts +2 -0
- package/dist/runtime/wrapped/dom.test.d.ts.map +1 -0
- package/dist/runtime/wrapped/dom.test.js +16 -0
- package/dist/runtime/wrapped/server.d.ts +77 -0
- package/dist/runtime/wrapped/server.d.ts.map +1 -0
- package/dist/runtime/wrapped/server.js +237 -0
- package/dist/runtime/wrapped/server.test.d.ts +2 -0
- package/dist/runtime/wrapped/server.test.d.ts.map +1 -0
- package/dist/runtime/wrapped/server.test.js +91 -0
- package/dist/scripts/apply-wrap-templates.d.ts +61 -0
- package/dist/scripts/apply-wrap-templates.js +132 -0
- package/dist/scripts/apply-wrap-templates.test.d.ts +1 -0
- package/dist/scripts/apply-wrap-templates.test.js +199 -0
- package/dist/scripts/apply-wrap.d.ts +46 -0
- package/dist/scripts/apply-wrap.js +278 -0
- package/dist/scripts/apply-wrap.test.d.ts +1 -0
- package/dist/scripts/apply-wrap.test.js +226 -0
- package/dist/scripts/cms/discover.d.ts +2 -0
- package/dist/scripts/cms/discover.js +17 -0
- package/dist/scripts/cms/example-content.d.ts +32 -0
- package/dist/scripts/cms/example-content.js +108 -0
- package/dist/scripts/cms/example-content.test.d.ts +1 -0
- package/dist/scripts/cms/example-content.test.js +66 -0
- package/dist/scripts/cms/strapi/detect.d.ts +2 -0
- package/dist/scripts/cms/strapi/detect.js +186 -0
- package/dist/scripts/cms/strapi/detect.test.d.ts +1 -0
- package/dist/scripts/cms/strapi/detect.test.js +56 -0
- package/dist/scripts/cms/strapi/index.d.ts +3 -0
- package/dist/scripts/cms/strapi/index.js +25 -0
- package/dist/scripts/cms/strapi/list-source.d.ts +17 -0
- package/dist/scripts/cms/strapi/list-source.js +90 -0
- package/dist/scripts/cms/strapi/list-source.test.d.ts +1 -0
- package/dist/scripts/cms/strapi/list-source.test.js +33 -0
- package/dist/scripts/cms/strapi/schema-map.d.ts +9 -0
- package/dist/scripts/cms/strapi/schema-map.js +149 -0
- package/dist/scripts/cms/strapi/schema-map.test.d.ts +1 -0
- package/dist/scripts/cms/strapi/schema-map.test.js +91 -0
- package/dist/scripts/cms/strapi/touchpoints.d.ts +31 -0
- package/dist/scripts/cms/strapi/touchpoints.js +145 -0
- package/dist/scripts/cms/strapi/touchpoints.test.d.ts +1 -0
- package/dist/scripts/cms/strapi/touchpoints.test.js +62 -0
- package/dist/scripts/cms/strapi/wire-client.d.ts +15 -0
- package/dist/scripts/cms/strapi/wire-client.js +107 -0
- package/dist/scripts/cms/strapi/wire-client.test.d.ts +1 -0
- package/dist/scripts/cms/strapi/wire-client.test.js +51 -0
- package/dist/scripts/cms/strapi/wiring.d.ts +17 -0
- package/dist/scripts/cms/strapi/wiring.js +36 -0
- package/dist/scripts/cms/strapi/wiring.test.d.ts +1 -0
- package/dist/scripts/cms/strapi/wiring.test.js +27 -0
- package/dist/scripts/cms/types.d.ts +117 -0
- package/dist/scripts/cms/types.js +11 -0
- package/dist/scripts/detect-framework.d.ts +39 -0
- package/dist/scripts/detect-framework.js +133 -0
- package/dist/scripts/detect-framework.test.d.ts +1 -0
- package/dist/scripts/detect-framework.test.js +122 -0
- package/dist/scripts/draft-rows.d.ts +19 -0
- package/dist/scripts/draft-rows.js +135 -0
- package/dist/scripts/draft-rows.test.d.ts +1 -0
- package/dist/scripts/draft-rows.test.js +113 -0
- package/dist/scripts/draft-schemas.d.ts +27 -0
- package/dist/scripts/draft-schemas.js +188 -0
- package/dist/scripts/draft-schemas.test.d.ts +1 -0
- package/dist/scripts/draft-schemas.test.js +152 -0
- package/dist/scripts/extract-translations.js +16 -11
- package/dist/scripts/extract-translations.test.d.ts +1 -0
- package/dist/scripts/extract-translations.test.js +66 -0
- package/dist/scripts/frameworks/astro/routes.d.ts +3 -0
- package/dist/scripts/frameworks/astro/routes.js +55 -0
- package/dist/scripts/frameworks/astro/template-style.d.ts +7 -0
- package/dist/scripts/frameworks/astro/template-style.js +19 -0
- package/dist/scripts/frameworks/discover.d.ts +70 -0
- package/dist/scripts/frameworks/discover.js +178 -0
- package/dist/scripts/frameworks/next/rewire.d.ts +30 -0
- package/dist/scripts/frameworks/next/rewire.js +258 -0
- package/dist/scripts/frameworks/next/rewire.test.d.ts +1 -0
- package/dist/scripts/frameworks/next/rewire.test.js +134 -0
- package/dist/scripts/frameworks/next/routes.d.ts +17 -0
- package/dist/scripts/frameworks/next/routes.js +134 -0
- package/dist/scripts/frameworks/next/routes.test.d.ts +1 -0
- package/dist/scripts/frameworks/next/routes.test.js +64 -0
- package/dist/scripts/frameworks/next/wiring.d.ts +33 -0
- package/dist/scripts/frameworks/next/wiring.js +186 -0
- package/dist/scripts/frameworks/next/wiring.test.d.ts +1 -0
- package/dist/scripts/frameworks/next/wiring.test.js +174 -0
- package/dist/scripts/frameworks/nuxt/routes.d.ts +3 -0
- package/dist/scripts/frameworks/nuxt/routes.js +54 -0
- package/dist/scripts/frameworks/nuxt/template-style.d.ts +9 -0
- package/dist/scripts/frameworks/nuxt/template-style.js +27 -0
- package/dist/scripts/frameworks/remix/routes.d.ts +3 -0
- package/dist/scripts/frameworks/remix/routes.js +50 -0
- package/dist/scripts/frameworks/support.d.ts +75 -0
- package/dist/scripts/frameworks/support.js +165 -0
- package/dist/scripts/frameworks/support.test.d.ts +1 -0
- package/dist/scripts/frameworks/support.test.js +87 -0
- package/dist/scripts/frameworks/sveltekit/routes.d.ts +3 -0
- package/dist/scripts/frameworks/sveltekit/routes.js +50 -0
- package/dist/scripts/frameworks/sveltekit/template-style.d.ts +9 -0
- package/dist/scripts/frameworks/sveltekit/template-style.js +54 -0
- package/dist/scripts/frameworks/vite/routes.d.ts +15 -0
- package/dist/scripts/frameworks/vite/routes.js +93 -0
- package/dist/scripts/frameworks/vite/routes.test.d.ts +1 -0
- package/dist/scripts/frameworks/vite/routes.test.js +73 -0
- package/dist/scripts/frameworks/vite/wiring.d.ts +10 -0
- package/dist/scripts/frameworks/vite/wiring.js +99 -0
- package/dist/scripts/frameworks/vite/wiring.test.d.ts +1 -0
- package/dist/scripts/frameworks/vite/wiring.test.js +88 -0
- package/dist/scripts/i18n-namespace.d.ts +25 -0
- package/dist/scripts/i18n-namespace.js +53 -0
- package/dist/scripts/lib/validation-report.d.ts +1 -0
- package/dist/scripts/lib/validation-report.js +3 -0
- package/dist/scripts/render-parity/capture.d.ts +56 -0
- package/dist/scripts/render-parity/capture.js +366 -0
- package/dist/scripts/render-parity/capture.test.d.ts +1 -0
- package/dist/scripts/render-parity/capture.test.js +306 -0
- package/dist/scripts/render-parity/compare.d.ts +59 -0
- package/dist/scripts/render-parity/compare.js +0 -0
- package/dist/scripts/render-parity/compare.test.d.ts +1 -0
- package/dist/scripts/render-parity/compare.test.js +98 -0
- package/dist/scripts/render-parity/normalize-html.d.ts +13 -0
- package/dist/scripts/render-parity/normalize-html.js +223 -0
- package/dist/scripts/render-parity/normalize-html.test.d.ts +1 -0
- package/dist/scripts/render-parity/normalize-html.test.js +58 -0
- package/dist/scripts/render-parity/types.d.ts +41 -0
- package/dist/scripts/render-parity/types.js +1 -0
- package/dist/scripts/resolve-routes.js +1 -1
- package/dist/scripts/scan-wrappable.d.ts +196 -0
- package/dist/scripts/scan-wrappable.js +1227 -0
- package/dist/scripts/scan-wrappable.test.d.ts +1 -0
- package/dist/scripts/scan-wrappable.test.js +521 -0
- package/dist/scripts/validate-route-metadata.js +11 -0
- package/package.json +92 -5
- package/release.json +2 -2
- package/templates/react-router/package.json +7 -10
- package/dist/runtime/paths/get-fimo-paths.test.d.ts +0 -2
- package/dist/runtime/paths/get-fimo-paths.test.d.ts.map +0 -1
- package/dist/runtime/paths/get-fimo-paths.test.js +0 -69
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fimo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-experimental.10",
|
|
4
4
|
"description": "Fimo CLI - create, deploy, and manage Fimo projects",
|
|
5
5
|
"bin": {
|
|
6
6
|
"fimo": "dist/cli/index.js"
|
|
@@ -20,6 +20,18 @@
|
|
|
20
20
|
"types": "./dist/runtime/index.d.ts",
|
|
21
21
|
"import": "./dist/runtime/index.js"
|
|
22
22
|
},
|
|
23
|
+
"./react": {
|
|
24
|
+
"types": "./dist/runtime/react/index.d.ts",
|
|
25
|
+
"import": "./dist/runtime/react/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./next": {
|
|
28
|
+
"types": "./dist/runtime/next/index.d.ts",
|
|
29
|
+
"import": "./dist/runtime/next/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./next/server": {
|
|
32
|
+
"types": "./dist/runtime/next/server.d.ts",
|
|
33
|
+
"import": "./dist/runtime/next/server.js"
|
|
34
|
+
},
|
|
23
35
|
"./react-router": {
|
|
24
36
|
"types": "./dist/runtime/react-router/index.d.ts",
|
|
25
37
|
"import": "./dist/runtime/react-router/index.js"
|
|
@@ -39,6 +51,50 @@
|
|
|
39
51
|
"./templates": {
|
|
40
52
|
"types": "./dist/runtime/templates.d.ts",
|
|
41
53
|
"import": "./dist/runtime/templates.js"
|
|
54
|
+
},
|
|
55
|
+
"./strapi": {
|
|
56
|
+
"types": "./dist/runtime/strapi/index.d.ts",
|
|
57
|
+
"import": "./dist/runtime/strapi/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./remix": {
|
|
60
|
+
"types": "./dist/runtime/remix/index.d.ts",
|
|
61
|
+
"import": "./dist/runtime/remix/index.js"
|
|
62
|
+
},
|
|
63
|
+
"./remix/server": {
|
|
64
|
+
"types": "./dist/runtime/remix/server.d.ts",
|
|
65
|
+
"import": "./dist/runtime/remix/server.js"
|
|
66
|
+
},
|
|
67
|
+
"./astro": {
|
|
68
|
+
"types": "./dist/runtime/astro/index.d.ts",
|
|
69
|
+
"import": "./dist/runtime/astro/index.js"
|
|
70
|
+
},
|
|
71
|
+
"./astro/server": {
|
|
72
|
+
"types": "./dist/runtime/astro/server.d.ts",
|
|
73
|
+
"import": "./dist/runtime/astro/server.js"
|
|
74
|
+
},
|
|
75
|
+
"./nuxt": {
|
|
76
|
+
"types": "./dist/runtime/nuxt/index.d.ts",
|
|
77
|
+
"import": "./dist/runtime/nuxt/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./nuxt/server": {
|
|
80
|
+
"types": "./dist/runtime/nuxt/server.d.ts",
|
|
81
|
+
"import": "./dist/runtime/nuxt/server.js"
|
|
82
|
+
},
|
|
83
|
+
"./svelte": {
|
|
84
|
+
"types": "./dist/runtime/svelte/index.d.ts",
|
|
85
|
+
"import": "./dist/runtime/svelte/index.js"
|
|
86
|
+
},
|
|
87
|
+
"./svelte/server": {
|
|
88
|
+
"types": "./dist/runtime/svelte/server.d.ts",
|
|
89
|
+
"import": "./dist/runtime/svelte/server.js"
|
|
90
|
+
},
|
|
91
|
+
"./vue": {
|
|
92
|
+
"types": "./dist/runtime/vue/index.d.ts",
|
|
93
|
+
"import": "./dist/runtime/vue/index.js"
|
|
94
|
+
},
|
|
95
|
+
"./vue/server": {
|
|
96
|
+
"types": "./dist/runtime/vue/server.d.ts",
|
|
97
|
+
"import": "./dist/runtime/vue/server.js"
|
|
42
98
|
}
|
|
43
99
|
},
|
|
44
100
|
"publishConfig": {
|
|
@@ -96,11 +152,42 @@
|
|
|
96
152
|
"wrangler": "^4.83.0"
|
|
97
153
|
},
|
|
98
154
|
"peerDependencies": {
|
|
155
|
+
"@remix-run/react": ">=2.0.0",
|
|
156
|
+
"@sveltejs/kit": ">=2.0.0",
|
|
99
157
|
"@tanstack/react-query": "^5.80.6",
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
158
|
+
"astro": ">=4.0.0",
|
|
159
|
+
"next": ">=14.0.0",
|
|
160
|
+
"nuxt": ">=3.0.0",
|
|
161
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
162
|
+
"react-dom": "^18.2.0 || ^19.0.0",
|
|
163
|
+
"react-router": "^7.0.0",
|
|
164
|
+
"vue": ">=3.0.0"
|
|
165
|
+
},
|
|
166
|
+
"peerDependenciesMeta": {
|
|
167
|
+
"@tanstack/react-query": {
|
|
168
|
+
"optional": true
|
|
169
|
+
},
|
|
170
|
+
"next": {
|
|
171
|
+
"optional": true
|
|
172
|
+
},
|
|
173
|
+
"react-router": {
|
|
174
|
+
"optional": true
|
|
175
|
+
},
|
|
176
|
+
"@remix-run/react": {
|
|
177
|
+
"optional": true
|
|
178
|
+
},
|
|
179
|
+
"astro": {
|
|
180
|
+
"optional": true
|
|
181
|
+
},
|
|
182
|
+
"nuxt": {
|
|
183
|
+
"optional": true
|
|
184
|
+
},
|
|
185
|
+
"@sveltejs/kit": {
|
|
186
|
+
"optional": true
|
|
187
|
+
},
|
|
188
|
+
"vue": {
|
|
189
|
+
"optional": true
|
|
190
|
+
}
|
|
104
191
|
},
|
|
105
192
|
"engines": {
|
|
106
193
|
"node": ">=20.12.0"
|
package/release.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "react-router dev --port 5173",
|
|
8
|
-
"build": "
|
|
8
|
+
"build": "react-router build && fimo export-static",
|
|
9
9
|
"lint": "oxlint --deny-warnings",
|
|
10
10
|
"typecheck": "tsc --noEmit",
|
|
11
11
|
"preview": "vite preview --host 0.0.0.0 --port 4173"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@base-ui/react": "^1.3.0",
|
|
15
15
|
"@hookform/resolvers": "^5.2.2",
|
|
16
|
-
"@react-router/node": "^
|
|
16
|
+
"@react-router/node": "^7.15.1",
|
|
17
17
|
"@tailwindcss/typography": "^0.5.19",
|
|
18
18
|
"@tanstack/react-query": "^5.80.6",
|
|
19
19
|
"class-variance-authority": "^0.7.1",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"cmdk": "^1.1.1",
|
|
22
22
|
"date-fns": "^4.1.0",
|
|
23
23
|
"embla-carousel-react": "^8.6.0",
|
|
24
|
-
"fimo": "0.
|
|
24
|
+
"fimo": "0.7.0-experimental.10",
|
|
25
25
|
"input-otp": "^1.4.2",
|
|
26
26
|
"isbot": "^5",
|
|
27
27
|
"lucide-react": "^0.577.0",
|
|
28
28
|
"motion": "^12.36.0",
|
|
29
29
|
"next-themes": "^0.4.6",
|
|
30
30
|
"radix-ui": "^1.4.3",
|
|
31
|
-
"react": "^19.2.
|
|
31
|
+
"react": "^19.2.4",
|
|
32
32
|
"react-day-picker": "^9.14.0",
|
|
33
|
-
"react-dom": "^19.2.
|
|
33
|
+
"react-dom": "^19.2.4",
|
|
34
34
|
"react-error-boundary": "^6.0.0",
|
|
35
35
|
"react-hook-form": "^7.72.1",
|
|
36
36
|
"react-resizable-panels": "^4.9.0",
|
|
37
|
-
"react-router": "^
|
|
37
|
+
"react-router": "^7.15.1",
|
|
38
38
|
"recharts": "^3.8.0",
|
|
39
39
|
"sonner": "^2.0.7",
|
|
40
40
|
"tailwind-merge": "^3.2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"zod": "^4.3.6"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@react-router/dev": "^
|
|
45
|
+
"@react-router/dev": "^7.15.1",
|
|
46
46
|
"@tailwindcss/vite": "^4.3.0",
|
|
47
47
|
"@types/node": "^24.12.0",
|
|
48
48
|
"@types/react": "^19.2.14",
|
|
@@ -52,8 +52,5 @@
|
|
|
52
52
|
"tw-animate-css": "^1.4.0",
|
|
53
53
|
"typescript": "5.9.3",
|
|
54
54
|
"vite": "^8.0.13"
|
|
55
|
-
},
|
|
56
|
-
"engines": {
|
|
57
|
-
"node": ">=22.22.0"
|
|
58
55
|
}
|
|
59
56
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-fimo-paths.test.d.ts","sourceRoot":"","sources":["../../../src/runtime/paths/get-fimo-paths.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { mkdtempSync, rmSync, writeFileSync } from 'node:fs';
|
|
2
|
-
import { tmpdir } from 'node:os';
|
|
3
|
-
import { join } from 'node:path';
|
|
4
|
-
import { afterEach, describe, expect, it, vi } from 'vitest';
|
|
5
|
-
import { getFimoPaths } from './get-fimo-paths.js';
|
|
6
|
-
const roots = [];
|
|
7
|
-
function createDynamicProject() {
|
|
8
|
-
const root = mkdtempSync(join(tmpdir(), 'fimo-paths-'));
|
|
9
|
-
roots.push(root);
|
|
10
|
-
writeFileSync(join(root, '.env'), 'VITE_API_URL=https://tenant.example.test\n');
|
|
11
|
-
writeFileSync(join(root, 'fimo-config.json'), JSON.stringify({
|
|
12
|
-
routes: {
|
|
13
|
-
'blog/post': {
|
|
14
|
-
path: '/blog/:slug',
|
|
15
|
-
params: {
|
|
16
|
-
slug: {
|
|
17
|
-
schema: 'BlogPost',
|
|
18
|
-
queryField: 'slug',
|
|
19
|
-
displayField: 'title',
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
}));
|
|
25
|
-
return root;
|
|
26
|
-
}
|
|
27
|
-
function response(status, data = []) {
|
|
28
|
-
return new Response(JSON.stringify({ data }), {
|
|
29
|
-
status,
|
|
30
|
-
headers: { 'Content-Type': 'application/json' },
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
afterEach(() => {
|
|
34
|
-
vi.useRealTimers();
|
|
35
|
-
vi.unstubAllGlobals();
|
|
36
|
-
for (const root of roots.splice(0)) {
|
|
37
|
-
rmSync(root, { recursive: true, force: true });
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
describe('getFimoPaths content fetches', () => {
|
|
41
|
-
it.each([502, 503, 504])('recovers from a transient %s response', async (status) => {
|
|
42
|
-
vi.useFakeTimers();
|
|
43
|
-
const fetchMock = vi
|
|
44
|
-
.fn()
|
|
45
|
-
.mockResolvedValueOnce(response(status))
|
|
46
|
-
.mockResolvedValueOnce(response(200, [{ slug: 'hello-world' }]));
|
|
47
|
-
vi.stubGlobal('fetch', fetchMock);
|
|
48
|
-
const resultPromise = getFimoPaths({ cwd: createDynamicProject() });
|
|
49
|
-
await vi.runAllTimersAsync();
|
|
50
|
-
await expect(resultPromise).resolves.toContainEqual(expect.objectContaining({ routeKey: 'blog/post', path: '/blog/hello-world' }));
|
|
51
|
-
expect(fetchMock).toHaveBeenCalledTimes(2);
|
|
52
|
-
});
|
|
53
|
-
it('fails clearly after exhausting the transient retry budget', async () => {
|
|
54
|
-
vi.useFakeTimers();
|
|
55
|
-
const fetchMock = vi.fn().mockResolvedValue(response(503));
|
|
56
|
-
vi.stubGlobal('fetch', fetchMock);
|
|
57
|
-
const resultPromise = getFimoPaths({ cwd: createDynamicProject() });
|
|
58
|
-
const rejection = expect(resultPromise).rejects.toThrow('Failed to fetch BlogPost: 503 after 3 attempts');
|
|
59
|
-
await vi.runAllTimersAsync();
|
|
60
|
-
await rejection;
|
|
61
|
-
expect(fetchMock).toHaveBeenCalledTimes(3);
|
|
62
|
-
});
|
|
63
|
-
it('does not retry an author response', async () => {
|
|
64
|
-
const fetchMock = vi.fn().mockResolvedValue(response(400));
|
|
65
|
-
vi.stubGlobal('fetch', fetchMock);
|
|
66
|
-
await expect(getFimoPaths({ cwd: createDynamicProject() })).rejects.toThrow('Failed to fetch BlogPost: 400');
|
|
67
|
-
expect(fetchMock).toHaveBeenCalledTimes(1);
|
|
68
|
-
});
|
|
69
|
-
});
|