nebula-cms 0.1.3 → 0.1.4
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/README.md +2 -0
- package/dist/astro/index.d.ts +43 -0
- package/dist/astro/index.d.ts.map +1 -0
- package/dist/astro/index.js +223 -0
- package/dist/client/Admin.svelte.d.ts +11 -0
- package/dist/client/Admin.svelte.d.ts.map +1 -0
- package/dist/client/components/BackendPicker.svelte.d.ts +4 -0
- package/dist/client/components/BackendPicker.svelte.d.ts.map +1 -0
- package/dist/client/components/DraftChip.svelte.d.ts +10 -0
- package/dist/client/components/DraftChip.svelte.d.ts.map +1 -0
- package/dist/client/components/MetadataForm.svelte.d.ts +12 -0
- package/dist/client/components/MetadataForm.svelte.d.ts.map +1 -0
- package/dist/client/components/ThemeToggle.svelte.d.ts +19 -0
- package/dist/client/components/ThemeToggle.svelte.d.ts.map +1 -0
- package/dist/client/components/dialogs/DeleteDraftDialog.svelte.d.ts +11 -0
- package/dist/client/components/dialogs/DeleteDraftDialog.svelte.d.ts.map +1 -0
- package/dist/client/components/dialogs/FilenameDialog.svelte.d.ts +13 -0
- package/dist/client/components/dialogs/FilenameDialog.svelte.d.ts.map +1 -0
- package/dist/client/components/editor/EditorPane.svelte.d.ts +4 -0
- package/dist/client/components/editor/EditorPane.svelte.d.ts.map +1 -0
- package/dist/client/components/editor/EditorTabs.svelte.d.ts +8 -0
- package/dist/client/components/editor/EditorTabs.svelte.d.ts.map +1 -0
- package/dist/client/components/editor/EditorToolbar.svelte.d.ts +4 -0
- package/dist/client/components/editor/EditorToolbar.svelte.d.ts.map +1 -0
- package/dist/client/components/editor/FormatSelector.svelte.d.ts +4 -0
- package/dist/client/components/editor/FormatSelector.svelte.d.ts.map +1 -0
- package/dist/client/components/editor/Toolbar.svelte.d.ts +19 -0
- package/dist/client/components/editor/Toolbar.svelte.d.ts.map +1 -0
- package/dist/client/components/fields/ArrayField.svelte.d.ts +15 -0
- package/dist/client/components/fields/ArrayField.svelte.d.ts.map +1 -0
- package/dist/client/components/fields/ArrayItem.svelte.d.ts +28 -0
- package/dist/client/components/fields/ArrayItem.svelte.d.ts.map +1 -0
- package/dist/client/components/fields/BooleanField.svelte.d.ts +16 -0
- package/dist/client/components/fields/BooleanField.svelte.d.ts.map +1 -0
- package/dist/client/components/fields/DateField.svelte.d.ts +16 -0
- package/dist/client/components/fields/DateField.svelte.d.ts.map +1 -0
- package/dist/client/components/fields/EnumField.svelte.d.ts +17 -0
- package/dist/client/components/fields/EnumField.svelte.d.ts.map +1 -0
- package/dist/client/components/fields/FieldWrapper.svelte.d.ts +18 -0
- package/dist/client/components/fields/FieldWrapper.svelte.d.ts.map +1 -0
- package/dist/client/components/fields/NumberField.svelte.d.ts +16 -0
- package/dist/client/components/fields/NumberField.svelte.d.ts.map +1 -0
- package/dist/client/components/fields/ObjectField.svelte.d.ts +16 -0
- package/dist/client/components/fields/ObjectField.svelte.d.ts.map +1 -0
- package/dist/client/components/fields/SchemaField.svelte.d.ts +16 -0
- package/dist/client/components/fields/SchemaField.svelte.d.ts.map +1 -0
- package/dist/client/components/fields/StringField.svelte.d.ts +16 -0
- package/dist/client/components/fields/StringField.svelte.d.ts.map +1 -0
- package/dist/client/components/sidebar/AdminSidebar.svelte.d.ts +19 -0
- package/dist/client/components/sidebar/AdminSidebar.svelte.d.ts.map +1 -0
- package/dist/client/components/sidebar/AdminSidebarSort.svelte.d.ts +12 -0
- package/dist/client/components/sidebar/AdminSidebarSort.svelte.d.ts.map +1 -0
- package/dist/client/css/icons.css +29 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/js/drafts/merge.svelte.d.ts +24 -0
- package/dist/client/js/drafts/merge.svelte.d.ts.map +1 -0
- package/dist/client/js/drafts/merge.svelte.js +106 -0
- package/dist/client/js/drafts/ops.svelte.d.ts +31 -0
- package/dist/client/js/drafts/ops.svelte.d.ts.map +1 -0
- package/dist/client/js/drafts/ops.svelte.js +182 -0
- package/dist/client/js/drafts/storage.d.ts +45 -0
- package/dist/client/js/drafts/storage.d.ts.map +1 -0
- package/dist/client/js/drafts/storage.js +76 -0
- package/dist/client/js/drafts/workers/diff.d.ts +2 -0
- package/dist/client/js/drafts/workers/diff.d.ts.map +1 -0
- package/dist/client/js/drafts/workers/diff.js +20 -0
- package/dist/client/js/editor/editor.svelte.d.ts +124 -0
- package/dist/client/js/editor/editor.svelte.d.ts.map +1 -0
- package/dist/client/js/editor/editor.svelte.js +294 -0
- package/dist/client/js/editor/languages.d.ts +11 -0
- package/dist/client/js/editor/languages.d.ts.map +1 -0
- package/dist/client/js/editor/languages.js +93 -0
- package/dist/client/js/editor/link-wrap.d.ts +6 -0
- package/dist/client/js/editor/link-wrap.d.ts.map +1 -0
- package/{src/client/js/editor/link-wrap.ts → dist/client/js/editor/link-wrap.js} +17 -24
- package/dist/client/js/editor/markdown-shortcuts.d.ts +4 -0
- package/dist/client/js/editor/markdown-shortcuts.d.ts.map +1 -0
- package/dist/client/js/editor/markdown-shortcuts.js +219 -0
- package/dist/client/js/handlers/admin.d.ts +64 -0
- package/dist/client/js/handlers/admin.d.ts.map +1 -0
- package/dist/client/js/handlers/admin.js +186 -0
- package/dist/client/js/state/dialogs.svelte.d.ts +16 -0
- package/dist/client/js/state/dialogs.svelte.d.ts.map +1 -0
- package/dist/client/js/state/dialogs.svelte.js +28 -0
- package/dist/client/js/state/router.svelte.d.ts +44 -0
- package/dist/client/js/state/router.svelte.d.ts.map +1 -0
- package/dist/client/js/state/router.svelte.js +135 -0
- package/dist/client/js/state/schema.svelte.d.ts +51 -0
- package/dist/client/js/state/schema.svelte.d.ts.map +1 -0
- package/{src/client/js/state/schema.svelte.ts → dist/client/js/state/schema.svelte.js} +55 -70
- package/dist/client/js/state/state.svelte.d.ts +68 -0
- package/dist/client/js/state/state.svelte.d.ts.map +1 -0
- package/dist/client/js/state/state.svelte.js +291 -0
- package/dist/client/js/state/theme.svelte.d.ts +24 -0
- package/dist/client/js/state/theme.svelte.d.ts.map +1 -0
- package/{src/client/js/state/theme.svelte.ts → dist/client/js/state/theme.svelte.js} +54 -91
- package/dist/client/js/storage/adapter.d.ts +130 -0
- package/dist/client/js/storage/adapter.d.ts.map +1 -0
- package/dist/client/js/storage/adapter.js +5 -0
- package/dist/client/js/storage/client.d.ts +72 -0
- package/dist/client/js/storage/client.d.ts.map +1 -0
- package/dist/client/js/storage/client.js +121 -0
- package/dist/client/js/storage/db.d.ts +8 -0
- package/dist/client/js/storage/db.d.ts.map +1 -0
- package/dist/client/js/storage/db.js +35 -0
- package/dist/client/js/storage/fsa.d.ts +51 -0
- package/dist/client/js/storage/fsa.d.ts.map +1 -0
- package/dist/client/js/storage/fsa.js +91 -0
- package/dist/client/js/storage/github.d.ts +62 -0
- package/dist/client/js/storage/github.d.ts.map +1 -0
- package/dist/client/js/storage/github.js +216 -0
- package/dist/client/js/storage/storage.d.ts +32 -0
- package/dist/client/js/storage/storage.d.ts.map +1 -0
- package/dist/client/js/storage/storage.js +68 -0
- package/dist/client/js/storage/workers/frontmatter.d.ts +2 -0
- package/dist/client/js/storage/workers/frontmatter.d.ts.map +1 -0
- package/dist/client/js/storage/workers/frontmatter.js +253 -0
- package/dist/client/js/storage/workers/storage.d.ts +2 -0
- package/dist/client/js/storage/workers/storage.d.ts.map +1 -0
- package/dist/client/js/storage/workers/storage.js +167 -0
- package/dist/client/js/storage/workers/toml-parser.d.ts +2 -0
- package/dist/client/js/storage/workers/toml-parser.d.ts.map +1 -0
- package/dist/client/js/storage/workers/toml-parser.js +75 -0
- package/dist/client/js/storage/workers/yaml-parser.d.ts +2 -0
- package/dist/client/js/storage/workers/yaml-parser.d.ts.map +1 -0
- package/dist/client/js/storage/workers/yaml-parser.js +100 -0
- package/dist/client/js/utils/file-types.d.ts +58 -0
- package/dist/client/js/utils/file-types.d.ts.map +1 -0
- package/{src/client/js/utils/file-types.ts → dist/client/js/utils/file-types.js} +75 -107
- package/dist/client/js/utils/format.d.ts +8 -0
- package/dist/client/js/utils/format.d.ts.map +1 -0
- package/{src/client/js/utils/format.ts → dist/client/js/utils/format.js} +5 -6
- package/dist/client/js/utils/frontmatter.d.ts +12 -0
- package/dist/client/js/utils/frontmatter.d.ts.map +1 -0
- package/dist/client/js/utils/frontmatter.js +29 -0
- package/dist/client/js/utils/schema-utils.d.ts +110 -0
- package/dist/client/js/utils/schema-utils.d.ts.map +1 -0
- package/dist/client/js/utils/schema-utils.js +242 -0
- package/dist/client/js/utils/slug.d.ts +8 -0
- package/dist/client/js/utils/slug.d.ts.map +1 -0
- package/{src/client/js/utils/slug.ts → dist/client/js/utils/slug.js} +6 -7
- package/dist/client/js/utils/sort.d.ts +41 -0
- package/dist/client/js/utils/sort.d.ts.map +1 -0
- package/dist/client/js/utils/sort.js +65 -0
- package/dist/client/js/utils/stable-stringify.d.ts +8 -0
- package/dist/client/js/utils/stable-stringify.d.ts.map +1 -0
- package/dist/client/js/utils/stable-stringify.js +23 -0
- package/dist/client/js/utils/url-utils.d.ts +11 -0
- package/dist/client/js/utils/url-utils.d.ts.map +1 -0
- package/{src/client/js/utils/url-utils.ts → dist/client/js/utils/url-utils.js} +22 -23
- package/dist/types.d.ts +22 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/package.json +4 -1
- package/.github/workflows/ci.yml +0 -27
- package/.github/workflows/publish.yml +0 -34
- package/.mcp.json +0 -12
- package/.prettierignore +0 -5
- package/.prettierrc.cjs +0 -22
- package/AGENTS.md +0 -183
- package/playground/astro.config.mjs +0 -7
- package/playground/node_modules/.bin/astro +0 -21
- package/playground/node_modules/.vite/deps/@astrojs_svelte_client__js.js +0 -85
- package/playground/node_modules/.vite/deps/@astrojs_svelte_client__js.js.map +0 -7
- package/playground/node_modules/.vite/deps/_metadata.json +0 -184
- package/playground/node_modules/.vite/deps/astro___aria-query.js +0 -6776
- package/playground/node_modules/.vite/deps/astro___aria-query.js.map +0 -7
- package/playground/node_modules/.vite/deps/astro___axobject-query.js +0 -3754
- package/playground/node_modules/.vite/deps/astro___axobject-query.js.map +0 -7
- package/playground/node_modules/.vite/deps/astro___html-escaper.js +0 -34
- package/playground/node_modules/.vite/deps/astro___html-escaper.js.map +0 -7
- package/playground/node_modules/.vite/deps/chunk-AJXJMYAF.js +0 -0
- package/playground/node_modules/.vite/deps/chunk-AJXJMYAF.js.map +0 -7
- package/playground/node_modules/.vite/deps/chunk-BUSYA2B4.js +0 -8
- package/playground/node_modules/.vite/deps/chunk-BUSYA2B4.js.map +0 -7
- package/playground/node_modules/.vite/deps/chunk-CNYJBM5F.js +0 -21
- package/playground/node_modules/.vite/deps/chunk-CNYJBM5F.js.map +0 -7
- package/playground/node_modules/.vite/deps/chunk-DBPNBGEI.js +0 -223
- package/playground/node_modules/.vite/deps/chunk-DBPNBGEI.js.map +0 -7
- package/playground/node_modules/.vite/deps/chunk-FPEUJ7DG.js +0 -27
- package/playground/node_modules/.vite/deps/chunk-FPEUJ7DG.js.map +0 -7
- package/playground/node_modules/.vite/deps/chunk-MHDZ3SK7.js +0 -1005
- package/playground/node_modules/.vite/deps/chunk-MHDZ3SK7.js.map +0 -7
- package/playground/node_modules/.vite/deps/chunk-RBDTDTPY.js +0 -204
- package/playground/node_modules/.vite/deps/chunk-RBDTDTPY.js.map +0 -7
- package/playground/node_modules/.vite/deps/chunk-RJGEXL5C.js +0 -688
- package/playground/node_modules/.vite/deps/chunk-RJGEXL5C.js.map +0 -7
- package/playground/node_modules/.vite/deps/chunk-YL4MIWGJ.js +0 -5099
- package/playground/node_modules/.vite/deps/chunk-YL4MIWGJ.js.map +0 -7
- package/playground/node_modules/.vite/deps/chunk-ZOV3DWEJ.js +0 -4376
- package/playground/node_modules/.vite/deps/chunk-ZOV3DWEJ.js.map +0 -7
- package/playground/node_modules/.vite/deps/chunk-ZP4UNCSN.js +0 -23
- package/playground/node_modules/.vite/deps/chunk-ZP4UNCSN.js.map +0 -7
- package/playground/node_modules/.vite/deps/chunk-ZREFNRZZ.js +0 -148
- package/playground/node_modules/.vite/deps/chunk-ZREFNRZZ.js.map +0 -7
- package/playground/node_modules/.vite/deps/package.json +0 -3
- package/playground/node_modules/.vite/deps/smol-toml.js +0 -843
- package/playground/node_modules/.vite/deps/smol-toml.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte.js +0 -55
- package/playground/node_modules/.vite/deps/svelte.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte___clsx.js +0 -9
- package/playground/node_modules/.vite/deps/svelte___clsx.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_animate.js +0 -57
- package/playground/node_modules/.vite/deps/svelte_animate.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_attachments.js +0 -15
- package/playground/node_modules/.vite/deps/svelte_attachments.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_easing.js +0 -67
- package/playground/node_modules/.vite/deps/svelte_easing.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_events.js +0 -11
- package/playground/node_modules/.vite/deps/svelte_events.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_internal.js +0 -5
- package/playground/node_modules/.vite/deps/svelte_internal.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_internal_client.js +0 -402
- package/playground/node_modules/.vite/deps/svelte_internal_client.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_internal_disclose-version.js +0 -10
- package/playground/node_modules/.vite/deps/svelte_internal_disclose-version.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_internal_flags_async.js +0 -8
- package/playground/node_modules/.vite/deps/svelte_internal_flags_async.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_internal_flags_legacy.js +0 -8
- package/playground/node_modules/.vite/deps/svelte_internal_flags_legacy.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_internal_flags_tracing.js +0 -8
- package/playground/node_modules/.vite/deps/svelte_internal_flags_tracing.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_legacy.js +0 -35
- package/playground/node_modules/.vite/deps/svelte_legacy.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_motion.js +0 -545
- package/playground/node_modules/.vite/deps/svelte_motion.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_reactivity.js +0 -29
- package/playground/node_modules/.vite/deps/svelte_reactivity.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_reactivity_window.js +0 -127
- package/playground/node_modules/.vite/deps/svelte_reactivity_window.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_store.js +0 -103
- package/playground/node_modules/.vite/deps/svelte_store.js.map +0 -7
- package/playground/node_modules/.vite/deps/svelte_transition.js +0 -208
- package/playground/node_modules/.vite/deps/svelte_transition.js.map +0 -7
- package/playground/package.json +0 -16
- package/playground/pnpm-lock.yaml +0 -3167
- package/playground/src/content/authors/jane-doe.json +0 -8
- package/playground/src/content/config/build.toml +0 -2
- package/playground/src/content/courses/web-fundamentals.json +0 -29
- package/playground/src/content/docs/advanced.mdx +0 -6
- package/playground/src/content/docs/intro.md +0 -6
- package/playground/src/content/guides/getting-started.mdx +0 -6
- package/playground/src/content/posts/hello-world.md +0 -7
- package/playground/src/content/products/t-shirt.json +0 -16
- package/playground/src/content/recipes/pancakes.mdoc +0 -8
- package/playground/src/content/settings/site.yml +0 -2
- package/playground/src/content.config.ts +0 -198
- package/playground/src/env.d.ts +0 -1
- package/playground/src/pages/index.astro +0 -11
- package/playground/src/pages/nebula.astro +0 -14
- package/pnpm-workspace.yaml +0 -2
- package/scripts/subset-icons.mjs +0 -178
- package/src/astro/index.ts +0 -295
- package/src/client/js/drafts/merge.svelte.ts +0 -121
- package/src/client/js/drafts/ops.svelte.ts +0 -227
- package/src/client/js/drafts/storage.ts +0 -108
- package/src/client/js/drafts/workers/diff.ts +0 -40
- package/src/client/js/editor/editor.svelte.ts +0 -343
- package/src/client/js/editor/languages.ts +0 -98
- package/src/client/js/editor/markdown-shortcuts.ts +0 -261
- package/src/client/js/handlers/admin.ts +0 -246
- package/src/client/js/state/dialogs.svelte.ts +0 -35
- package/src/client/js/state/router.svelte.ts +0 -156
- package/src/client/js/state/state.svelte.ts +0 -334
- package/src/client/js/storage/adapter.ts +0 -102
- package/src/client/js/storage/client.ts +0 -150
- package/src/client/js/storage/db.ts +0 -36
- package/src/client/js/storage/fsa.ts +0 -110
- package/src/client/js/storage/github.ts +0 -297
- package/src/client/js/storage/storage.ts +0 -83
- package/src/client/js/storage/workers/frontmatter.ts +0 -320
- package/src/client/js/storage/workers/storage.ts +0 -177
- package/src/client/js/storage/workers/toml-parser.ts +0 -106
- package/src/client/js/storage/workers/yaml-parser.ts +0 -132
- package/src/client/js/utils/frontmatter.ts +0 -38
- package/src/client/js/utils/schema-utils.ts +0 -295
- package/src/client/js/utils/sort.ts +0 -84
- package/src/client/js/utils/stable-stringify.ts +0 -27
- package/src/types.ts +0 -25
- package/svelte.config.js +0 -4
- package/tests/astro/build.test.ts +0 -63
- package/tests/astro/index.test.ts +0 -689
- package/tests/client/components/Admin.test.ts +0 -446
- package/tests/client/components/BackendPicker.test.ts +0 -239
- package/tests/client/components/DraftChip.test.ts +0 -53
- package/tests/client/components/MetadataForm.test.ts +0 -164
- package/tests/client/components/dialogs/DeleteDraftDialog.test.ts +0 -91
- package/tests/client/components/dialogs/FilenameDialog.test.ts +0 -209
- package/tests/client/components/dialogs/dialog-stubs.ts +0 -19
- package/tests/client/components/editor/EditorPane.test.ts +0 -100
- package/tests/client/components/editor/EditorTabs.test.ts +0 -253
- package/tests/client/components/editor/EditorToolbar.test.ts +0 -252
- package/tests/client/components/editor/fixtures.ts +0 -31
- package/tests/client/components/fields/ArrayField.test.ts +0 -197
- package/tests/client/components/fields/BooleanField.test.ts +0 -206
- package/tests/client/components/fields/DateField.test.ts +0 -210
- package/tests/client/components/fields/EnumField.test.ts +0 -246
- package/tests/client/components/fields/NumberField.test.ts +0 -240
- package/tests/client/components/fields/ObjectField.test.ts +0 -157
- package/tests/client/components/fields/SchemaField.test.ts +0 -190
- package/tests/client/components/fields/StringField.test.ts +0 -223
- package/tests/client/components/sidebar/AdminSidebar.test.ts +0 -285
- package/tests/client/components/sidebar/AdminSidebarSort.test.ts +0 -135
- package/tests/client/components/sidebar/sort-mock.ts +0 -23
- package/tests/client/js/drafts/fixtures.ts +0 -22
- package/tests/client/js/drafts/merge.test.ts +0 -282
- package/tests/client/js/drafts/ops.test.ts +0 -658
- package/tests/client/js/drafts/storage.test.ts +0 -200
- package/tests/client/js/drafts/workers/diff.test.ts +0 -165
- package/tests/client/js/editor/editor.test.ts +0 -616
- package/tests/client/js/editor/link-wrap.test.ts +0 -225
- package/tests/client/js/editor/markdown-shortcuts.test.ts +0 -370
- package/tests/client/js/handlers/admin.test.ts +0 -467
- package/tests/client/js/state/router.test.ts +0 -619
- package/tests/client/js/state/schema.test.ts +0 -266
- package/tests/client/js/state/state.test.ts +0 -328
- package/tests/client/js/storage/adapter.test.ts +0 -115
- package/tests/client/js/storage/client.test.ts +0 -250
- package/tests/client/js/storage/db.test.ts +0 -59
- package/tests/client/js/storage/fsa.test.ts +0 -284
- package/tests/client/js/storage/github.test.ts +0 -349
- package/tests/client/js/storage/mock-port.ts +0 -95
- package/tests/client/js/storage/storage.test.ts +0 -77
- package/tests/client/js/storage/workers/frontmatter.test.ts +0 -479
- package/tests/client/js/storage/workers/storage.test.ts +0 -299
- package/tests/client/js/storage/workers/toml-parser.test.ts +0 -169
- package/tests/client/js/storage/workers/yaml-parser.test.ts +0 -168
- package/tests/client/js/utils/file-types.test.ts +0 -268
- package/tests/client/js/utils/frontmatter.test.ts +0 -87
- package/tests/client/js/utils/schema-utils.test.ts +0 -318
- package/tests/client/js/utils/slug.test.ts +0 -58
- package/tests/client/js/utils/sort.test.ts +0 -276
- package/tests/client/js/utils/stable-stringify.test.ts +0 -68
- package/tests/client/js/utils/url-utils.test.ts +0 -70
- package/tests/e2e/backend-connection.test.ts +0 -301
- package/tests/e2e/draft-lifecycle.test.ts +0 -388
- package/tests/e2e/editing.test.ts +0 -355
- package/tests/e2e/github-adapter.test.ts +0 -330
- package/tests/e2e/helpers/mock-adapter.ts +0 -166
- package/tests/e2e/helpers/test-app.ts +0 -155
- package/tests/e2e/navigation.test.ts +0 -358
- package/tests/e2e/publishing.test.ts +0 -345
- package/tests/e2e/unsaved-changes.test.ts +0 -317
- package/tests/setup.ts +0 -2
- package/tests/stubs/codemirror.ts +0 -197
- package/tsconfig.json +0 -19
- package/vitest.config.ts +0 -178
- /package/{src → dist}/client/Admin.svelte +0 -0
- /package/{src → dist}/client/components/BackendPicker.svelte +0 -0
- /package/{src → dist}/client/components/DraftChip.svelte +0 -0
- /package/{src → dist}/client/components/MetadataForm.svelte +0 -0
- /package/{src → dist}/client/components/ThemeToggle.svelte +0 -0
- /package/{src → dist}/client/components/dialogs/DeleteDraftDialog.svelte +0 -0
- /package/{src → dist}/client/components/dialogs/FilenameDialog.svelte +0 -0
- /package/{src → dist}/client/components/editor/EditorPane.svelte +0 -0
- /package/{src → dist}/client/components/editor/EditorTabs.svelte +0 -0
- /package/{src → dist}/client/components/editor/EditorToolbar.svelte +0 -0
- /package/{src → dist}/client/components/editor/FormatSelector.svelte +0 -0
- /package/{src → dist}/client/components/editor/Toolbar.svelte +0 -0
- /package/{src → dist}/client/components/fields/ArrayField.svelte +0 -0
- /package/{src → dist}/client/components/fields/ArrayItem.svelte +0 -0
- /package/{src → dist}/client/components/fields/BooleanField.svelte +0 -0
- /package/{src → dist}/client/components/fields/DateField.svelte +0 -0
- /package/{src → dist}/client/components/fields/EnumField.svelte +0 -0
- /package/{src → dist}/client/components/fields/FieldWrapper.svelte +0 -0
- /package/{src → dist}/client/components/fields/NumberField.svelte +0 -0
- /package/{src → dist}/client/components/fields/ObjectField.svelte +0 -0
- /package/{src → dist}/client/components/fields/SchemaField.svelte +0 -0
- /package/{src → dist}/client/components/fields/StringField.svelte +0 -0
- /package/{src → dist}/client/components/sidebar/AdminSidebar.svelte +0 -0
- /package/{src → dist}/client/components/sidebar/AdminSidebarSort.svelte +0 -0
- /package/{src → dist}/client/css/a11y.css +0 -0
- /package/{src → dist}/client/css/btn.css +0 -0
- /package/{src → dist}/client/css/dialog.css +0 -0
- /package/{src → dist}/client/css/field-input.css +0 -0
- /package/{src → dist}/client/css/reset.css +0 -0
- /package/{src → dist}/client/css/theme.css +0 -0
- /package/{src/client/index.ts → dist/client/index.js} +0 -0
- /package/{src → dist}/virtual.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Nebula CMS
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/nebula-cms) [](https://github.com/Snugug/nebula-cms/actions/workflows/ci.yml)
|
|
4
|
+
|
|
3
5
|
A streamlined, Git-based Content Management System built specifically for [Astro](https://astro.build/). Nebula CMS provides a beautiful, unified editing interface for your Markdown, MDX, JSON, YAML, TOML, and Markdoc files, driven directly by your existing Astro [Content Collections](https://docs.astro.build/en/guides/content-collections/).
|
|
4
6
|
|
|
5
7
|
## Features
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { AstroIntegration, AstroIntegrationLogger } from 'astro';
|
|
2
|
+
import type { NebulaCMSConfig } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Astro integration that exposes CMS configuration and content collection JSON schemas to client-side JavaScript via virtual modules, dev middleware, and build-time file copy.
|
|
5
|
+
* @param {NebulaCMSConfig} config - Optional configuration object
|
|
6
|
+
* @return {AstroIntegration} The configured Astro integration object
|
|
7
|
+
*/
|
|
8
|
+
export default function NebulaCMS(config?: NebulaCMSConfig): AstroIntegration;
|
|
9
|
+
/**
|
|
10
|
+
* Vite plugin that serves collection schemas and CMS config via virtual modules.
|
|
11
|
+
* @internal Not part of the public API — exported for testing only
|
|
12
|
+
* @param {AstroIntegrationLogger} logger - Astro integration logger for warnings
|
|
13
|
+
* @param {string} root - Project root directory
|
|
14
|
+
* @param {Required<NebulaCMSConfig>} config - Normalized CMS configuration (both paths absolute, no trailing slash)
|
|
15
|
+
* @return {object} A Vite plugin object with configureServer, resolveId, and load hooks
|
|
16
|
+
*/
|
|
17
|
+
export declare function nebulaVitePlugin(logger: AstroIntegrationLogger, root: string, config: Required<NebulaCMSConfig>): {
|
|
18
|
+
name: string;
|
|
19
|
+
/**
|
|
20
|
+
* Registers dev middleware: serves schema files from .astro/collections/
|
|
21
|
+
* and rewrites SPA sub-routes under basePath to the basePath page.
|
|
22
|
+
* @param {{ middlewares: { use: Function } }} server - The Vite dev server
|
|
23
|
+
* @return {void}
|
|
24
|
+
*/
|
|
25
|
+
configureServer(server: {
|
|
26
|
+
middlewares: {
|
|
27
|
+
use: Function;
|
|
28
|
+
};
|
|
29
|
+
}): void;
|
|
30
|
+
/**
|
|
31
|
+
* Resolves virtual:nebula/* imports to Vite-internal IDs.
|
|
32
|
+
* @param {string} id - The module ID being resolved
|
|
33
|
+
* @return {string | undefined} The resolved internal ID, or undefined if not handled
|
|
34
|
+
*/
|
|
35
|
+
resolveId(id: string): string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Generates virtual module source code for config and collections.
|
|
38
|
+
* @param {string} id - The resolved module ID to load
|
|
39
|
+
* @return {string | undefined} Generated module source code, or undefined if not handled
|
|
40
|
+
*/
|
|
41
|
+
load(id: string): string | undefined;
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/astro/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAmDnD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,MAAM,GAAE,eAAoB,GAC3B,gBAAgB,CA6ElB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,sBAAsB,EAC9B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC;;IAK/B;;;;;OAKG;4BACqB;QAAE,WAAW,EAAE;YAAE,GAAG,EAAE,QAAQ,CAAA;SAAE,CAAA;KAAE;IA0E1D;;;;OAIG;kBACW,MAAM;IAKpB;;;;OAIG;aACM,MAAM;EA6BlB"}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Astro integration entry point for Nebula CMS.
|
|
3
|
+
* Exposes content collection JSON schemas and CMS configuration to
|
|
4
|
+
* client-side JavaScript via virtual modules, dev middleware, and
|
|
5
|
+
* build-time file copy.
|
|
6
|
+
*/
|
|
7
|
+
import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, } from 'node:fs';
|
|
8
|
+
import { resolve } from 'node:path';
|
|
9
|
+
import { fileURLToPath } from 'node:url';
|
|
10
|
+
// Vite virtual module IDs
|
|
11
|
+
const CONFIG_VIRTUAL_ID = 'virtual:nebula/config';
|
|
12
|
+
const CONFIG_RESOLVED_ID = '\0' + CONFIG_VIRTUAL_ID;
|
|
13
|
+
const COLLECTIONS_VIRTUAL_ID = 'virtual:nebula/collections';
|
|
14
|
+
const COLLECTIONS_RESOLVED_ID = '\0' + COLLECTIONS_VIRTUAL_ID;
|
|
15
|
+
/**
|
|
16
|
+
* Normalizes a path config value to an absolute path using the URL API.
|
|
17
|
+
* Handles leading-slash prepending, consecutive-slash collapsing,
|
|
18
|
+
* trailing-slash stripping, and rejects paths with characters that
|
|
19
|
+
* require percent-encoding (e.g. spaces, angle brackets).
|
|
20
|
+
* @param {string} label - Config field name for error messages (e.g. 'basePath')
|
|
21
|
+
* @param {string} value - The raw config value
|
|
22
|
+
* @return {string} The normalized absolute path
|
|
23
|
+
*/
|
|
24
|
+
function normalizePath(label, value) {
|
|
25
|
+
/*
|
|
26
|
+
* Reject protocol-relative inputs ('//admin') — the URL API interprets
|
|
27
|
+
* these as hostnames, silently producing pathname '/' instead of '/admin'.
|
|
28
|
+
*/
|
|
29
|
+
if (value.startsWith('//')) {
|
|
30
|
+
throw new Error(`Invalid ${label} "${value}". Path must not start with "//".`);
|
|
31
|
+
}
|
|
32
|
+
/*
|
|
33
|
+
* URL constructor with a dummy base handles both relative ('admin') and
|
|
34
|
+
* absolute ('/admin') inputs identically. Collapse consecutive slashes
|
|
35
|
+
* manually since the URL API preserves them in pathnames.
|
|
36
|
+
*/
|
|
37
|
+
const collapsed = new URL(value, 'http://x').pathname.replace(/\/\/+/g, '/');
|
|
38
|
+
// Strip trailing slash unless root
|
|
39
|
+
const normalized = collapsed.length > 1 && collapsed.endsWith('/')
|
|
40
|
+
? collapsed.slice(0, -1)
|
|
41
|
+
: collapsed;
|
|
42
|
+
/*
|
|
43
|
+
* The URL API percent-encodes special characters rather than rejecting them
|
|
44
|
+
* (e.g. '/admin/<script>' → '/admin/%3Cscript%3E'). Comparing the decoded
|
|
45
|
+
* form to the normalized result catches any input that required encoding.
|
|
46
|
+
*/
|
|
47
|
+
if (decodeURIComponent(normalized) !== normalized) {
|
|
48
|
+
throw new Error(`Invalid ${label} "${value}". Path contains characters that require URL encoding.`);
|
|
49
|
+
}
|
|
50
|
+
return normalized;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Astro integration that exposes CMS configuration and content collection JSON schemas to client-side JavaScript via virtual modules, dev middleware, and build-time file copy.
|
|
54
|
+
* @param {NebulaCMSConfig} config - Optional configuration object
|
|
55
|
+
* @return {AstroIntegration} The configured Astro integration object
|
|
56
|
+
*/
|
|
57
|
+
export default function NebulaCMS(config = {}) {
|
|
58
|
+
if (config.basePath === '') {
|
|
59
|
+
throw new Error('Invalid basePath "". Provide a path like "/admin" or "/".');
|
|
60
|
+
}
|
|
61
|
+
if (config.collectionsPath === '') {
|
|
62
|
+
throw new Error('Invalid collectionsPath "". Provide a path like "/collections".');
|
|
63
|
+
}
|
|
64
|
+
const basePath = normalizePath('basePath', config.basePath ?? '/admin');
|
|
65
|
+
const collectionsPath = normalizePath('collectionsPath', config.collectionsPath ?? '/collections');
|
|
66
|
+
if (collectionsPath === '/') {
|
|
67
|
+
throw new Error('Invalid collectionsPath "/". Collections require a path prefix.');
|
|
68
|
+
}
|
|
69
|
+
// Normalized config passed to the Vite plugin
|
|
70
|
+
const normalizedConfig = { basePath, collectionsPath };
|
|
71
|
+
return {
|
|
72
|
+
name: 'nebula-cms',
|
|
73
|
+
hooks: {
|
|
74
|
+
'astro:config:setup': ({ updateConfig, logger }) => {
|
|
75
|
+
updateConfig({
|
|
76
|
+
vite: {
|
|
77
|
+
plugins: [
|
|
78
|
+
nebulaVitePlugin(logger, process.cwd(), normalizedConfig),
|
|
79
|
+
],
|
|
80
|
+
/*
|
|
81
|
+
* Workers use dynamic imports (e.g. storage worker lazy-loads
|
|
82
|
+
* adapters), which require code splitting. The default 'iife'
|
|
83
|
+
* format does not support code splitting, so use ES modules.
|
|
84
|
+
*/
|
|
85
|
+
worker: { format: 'es' },
|
|
86
|
+
/*
|
|
87
|
+
* smol-toml is only imported inside the TOML parser sub-worker,
|
|
88
|
+
* never on the main thread. Without this, Vite discovers it late
|
|
89
|
+
* and re-optimizes mid-session, causing the worker to request a
|
|
90
|
+
* stale dep hash (504 Outdated Optimize Dep).
|
|
91
|
+
*/
|
|
92
|
+
optimizeDeps: {
|
|
93
|
+
include: ['smol-toml'],
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
},
|
|
98
|
+
// Copy schema files into the build output after Astro finishes.
|
|
99
|
+
'astro:build:done': ({ dir, logger }) => {
|
|
100
|
+
const source = resolve(process.cwd(), '.astro/collections');
|
|
101
|
+
if (!existsSync(source)) {
|
|
102
|
+
logger.warn('`.astro/collections` not found — schema files will not be in the build output.');
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const outDir = fileURLToPath(dir);
|
|
106
|
+
// Strip leading slash for filesystem path resolution
|
|
107
|
+
const target = resolve(outDir, collectionsPath.slice(1));
|
|
108
|
+
mkdirSync(target, { recursive: true });
|
|
109
|
+
const files = readdirSync(source).filter((f) => f.endsWith('.schema.json'));
|
|
110
|
+
for (const f of files) {
|
|
111
|
+
copyFileSync(resolve(source, f), resolve(target, f));
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Vite plugin that serves collection schemas and CMS config via virtual modules.
|
|
119
|
+
* @internal Not part of the public API — exported for testing only
|
|
120
|
+
* @param {AstroIntegrationLogger} logger - Astro integration logger for warnings
|
|
121
|
+
* @param {string} root - Project root directory
|
|
122
|
+
* @param {Required<NebulaCMSConfig>} config - Normalized CMS configuration (both paths absolute, no trailing slash)
|
|
123
|
+
* @return {object} A Vite plugin object with configureServer, resolveId, and load hooks
|
|
124
|
+
*/
|
|
125
|
+
export function nebulaVitePlugin(logger, root, config) {
|
|
126
|
+
return {
|
|
127
|
+
name: 'vite-plugin-nebula-cms',
|
|
128
|
+
/**
|
|
129
|
+
* Registers dev middleware: serves schema files from .astro/collections/
|
|
130
|
+
* and rewrites SPA sub-routes under basePath to the basePath page.
|
|
131
|
+
* @param {{ middlewares: { use: Function } }} server - The Vite dev server
|
|
132
|
+
* @return {void}
|
|
133
|
+
*/
|
|
134
|
+
configureServer(server) {
|
|
135
|
+
const prefix = config.collectionsPath + '/';
|
|
136
|
+
const collectionsDir = resolve(root, '.astro/collections');
|
|
137
|
+
// Serve collection schema JSON files
|
|
138
|
+
server.middlewares.use((req, res, next) => {
|
|
139
|
+
// Extract pathname, stripping query strings and fragments
|
|
140
|
+
const url = new URL(req.url ?? '', 'http://x').pathname;
|
|
141
|
+
if (!url.startsWith(prefix) || !url.endsWith('.schema.json')) {
|
|
142
|
+
return next();
|
|
143
|
+
}
|
|
144
|
+
const filename = url.slice(prefix.length);
|
|
145
|
+
const filePath = resolve(collectionsDir, filename);
|
|
146
|
+
// Reject path traversal attempts (e.g. /../../../etc/passwd.schema.json)
|
|
147
|
+
if (!filePath.startsWith(collectionsDir + '/'))
|
|
148
|
+
return next();
|
|
149
|
+
try {
|
|
150
|
+
res.setHeader('Content-Type', 'application/json');
|
|
151
|
+
res.end(readFileSync(filePath, 'utf-8'));
|
|
152
|
+
}
|
|
153
|
+
catch (err) {
|
|
154
|
+
// File not found — fall through to Vite's default handler
|
|
155
|
+
if (err instanceof Error &&
|
|
156
|
+
err.code === 'ENOENT') {
|
|
157
|
+
return next();
|
|
158
|
+
}
|
|
159
|
+
// Re-throw permission errors, I/O errors, etc. so they surface
|
|
160
|
+
throw err;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
// SPA fallback: rewrite HTML requests under basePath to basePath
|
|
164
|
+
server.middlewares.use((req, _res, next) => {
|
|
165
|
+
const rawURL = req.url ?? '';
|
|
166
|
+
const accept = req.headers?.accept ?? '';
|
|
167
|
+
// Only rewrite document requests
|
|
168
|
+
if (!accept.includes('text/html'))
|
|
169
|
+
return next();
|
|
170
|
+
const parsed = new URL(rawURL, 'http://x');
|
|
171
|
+
/*
|
|
172
|
+
* Check segment boundary: /admin/foo rewrites, /administrator does not.
|
|
173
|
+
* Root basePath '/' needs special handling — every path is a sub-path
|
|
174
|
+
* except '/' itself, mirroring router.svelte.ts isUnderBasePath.
|
|
175
|
+
*/
|
|
176
|
+
const isSubPath = config.basePath === '/'
|
|
177
|
+
? parsed.pathname !== '/' && parsed.pathname.startsWith('/')
|
|
178
|
+
: parsed.pathname !== config.basePath &&
|
|
179
|
+
parsed.pathname.startsWith(config.basePath + '/');
|
|
180
|
+
if (isSubPath) {
|
|
181
|
+
// Preserve query string and hash for deep-linking and OAuth callbacks
|
|
182
|
+
req.url = config.basePath + parsed.search + parsed.hash;
|
|
183
|
+
}
|
|
184
|
+
return next();
|
|
185
|
+
});
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
* Resolves virtual:nebula/* imports to Vite-internal IDs.
|
|
189
|
+
* @param {string} id - The module ID being resolved
|
|
190
|
+
* @return {string | undefined} The resolved internal ID, or undefined if not handled
|
|
191
|
+
*/
|
|
192
|
+
resolveId(id) {
|
|
193
|
+
if (id === CONFIG_VIRTUAL_ID)
|
|
194
|
+
return CONFIG_RESOLVED_ID;
|
|
195
|
+
if (id === COLLECTIONS_VIRTUAL_ID)
|
|
196
|
+
return COLLECTIONS_RESOLVED_ID;
|
|
197
|
+
},
|
|
198
|
+
/**
|
|
199
|
+
* Generates virtual module source code for config and collections.
|
|
200
|
+
* @param {string} id - The resolved module ID to load
|
|
201
|
+
* @return {string | undefined} Generated module source code, or undefined if not handled
|
|
202
|
+
*/
|
|
203
|
+
load(id) {
|
|
204
|
+
if (id === CONFIG_RESOLVED_ID) {
|
|
205
|
+
return `export default ${JSON.stringify(config)};`;
|
|
206
|
+
}
|
|
207
|
+
if (id !== COLLECTIONS_RESOLVED_ID)
|
|
208
|
+
return;
|
|
209
|
+
const collectionsDir = resolve(root, '.astro/collections');
|
|
210
|
+
// Guard: return empty object if directory doesn't exist
|
|
211
|
+
if (!existsSync(collectionsDir)) {
|
|
212
|
+
logger.warn('`.astro/collections` not found — virtual:nebula/collections will be empty.');
|
|
213
|
+
return 'export default {};';
|
|
214
|
+
}
|
|
215
|
+
const files = readdirSync(collectionsDir).filter((f) => f.endsWith('.schema.json'));
|
|
216
|
+
const entries = files.map((f) => {
|
|
217
|
+
const name = f.replace('.schema.json', '');
|
|
218
|
+
return ` ${JSON.stringify(name)}: ${JSON.stringify(config.collectionsPath + '/' + f)}`;
|
|
219
|
+
});
|
|
220
|
+
return `export default {\n${entries.join(',\n')}\n};`;
|
|
221
|
+
},
|
|
222
|
+
};
|
|
223
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './css/reset.css';
|
|
2
|
+
import './css/icons.css';
|
|
3
|
+
import './css/theme.css';
|
|
4
|
+
import './css/btn.css';
|
|
5
|
+
import './css/field-input.css';
|
|
6
|
+
import './css/dialog.css';
|
|
7
|
+
import './css/a11y.css';
|
|
8
|
+
declare const Admin: import("svelte").Component<Record<string, never>, {}, "">;
|
|
9
|
+
type Admin = ReturnType<typeof Admin>;
|
|
10
|
+
export default Admin;
|
|
11
|
+
//# sourceMappingURL=Admin.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Admin.svelte.d.ts","sourceRoot":"","sources":["../../src/client/Admin.svelte.ts"],"names":[],"mappings":"AAuCA,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,eAAe,CAAC;AACvB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gBAAgB,CAAC;AAiNxB,QAAA,MAAM,KAAK,2DAAwC,CAAC;AACpD,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AACtC,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackendPicker.svelte.d.ts","sourceRoot":"","sources":["../../../src/client/components/BackendPicker.svelte.ts"],"names":[],"mappings":"AAoHA,QAAA,MAAM,aAAa,2DAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A small colored badge for indicating draft or outdated status in the sidebar.
|
|
3
|
+
*/
|
|
4
|
+
interface Props {
|
|
5
|
+
variant: 'draft' | 'outdated';
|
|
6
|
+
}
|
|
7
|
+
declare const DraftChip: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type DraftChip = ReturnType<typeof DraftChip>;
|
|
9
|
+
export default DraftChip;
|
|
10
|
+
//# sourceMappingURL=DraftChip.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DraftChip.svelte.d.ts","sourceRoot":"","sources":["../../../src/client/components/DraftChip.svelte.ts"],"names":[],"mappings":"AAGE;;GAEG;AACH,UAAU,KAAK;IAEb,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC;CAC/B;AAeH,QAAA,MAAM,SAAS,2CAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SchemaNode } from '../js/utils/schema-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the MetadataForm component, which renders the set of schema fields assigned to a given editor tab (or all fields when no tab is specified).
|
|
4
|
+
*/
|
|
5
|
+
interface Props {
|
|
6
|
+
schema: SchemaNode;
|
|
7
|
+
tab?: string | null;
|
|
8
|
+
}
|
|
9
|
+
declare const MetadataForm: import("svelte").Component<Props, {}, "">;
|
|
10
|
+
type MetadataForm = ReturnType<typeof MetadataForm>;
|
|
11
|
+
export default MetadataForm;
|
|
12
|
+
//# sourceMappingURL=MetadataForm.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetadataForm.svelte.d.ts","sourceRoot":"","sources":["../../../src/client/components/MetadataForm.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAUzD;;GAEG;AACH,UAAU,KAAK;IAEb,MAAM,EAAE,UAAU,CAAC;IAEnB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAiCH,QAAA,MAAM,YAAY,2CAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const ThemeToggle: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type ThemeToggle = InstanceType<typeof ThemeToggle>;
|
|
18
|
+
export default ThemeToggle;
|
|
19
|
+
//# sourceMappingURL=ThemeToggle.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeToggle.svelte.d.ts","sourceRoot":"","sources":["../../../src/client/components/ThemeToggle.svelte.ts"],"names":[],"mappings":"AAmBA,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IACtG,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAKD,QAAA,MAAM,WAAW;;kBAA+E,CAAC;AAC/E,KAAK,WAAW,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Confirmation dialog for deleting a draft, using native <dialog> with modal backdrop.
|
|
3
|
+
*/
|
|
4
|
+
interface Props {
|
|
5
|
+
onConfirm: () => void;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const DeleteDraftDialog: import("svelte").Component<Props, {}, "">;
|
|
9
|
+
type DeleteDraftDialog = ReturnType<typeof DeleteDraftDialog>;
|
|
10
|
+
export default DeleteDraftDialog;
|
|
11
|
+
//# sourceMappingURL=DeleteDraftDialog.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteDraftDialog.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/dialogs/DeleteDraftDialog.svelte.ts"],"names":[],"mappings":"AAGE;;GAEG;AACH,UAAU,KAAK;IAEb,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AA4BH,QAAA,MAAM,iBAAiB,2CAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for the FilenameDialog, a native <dialog> that prompts the user to set a filename before publishing.
|
|
3
|
+
*/
|
|
4
|
+
interface Props {
|
|
5
|
+
title: string;
|
|
6
|
+
existingFilenames: string[];
|
|
7
|
+
onConfirm: (filename: string) => void;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const FilenameDialog: import("svelte").Component<Props, {}, "">;
|
|
11
|
+
type FilenameDialog = ReturnType<typeof FilenameDialog>;
|
|
12
|
+
export default FilenameDialog;
|
|
13
|
+
//# sourceMappingURL=FilenameDialog.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilenameDialog.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/dialogs/FilenameDialog.svelte.ts"],"names":[],"mappings":"AAME;;GAEG;AACH,UAAU,KAAK;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAE5B,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAoEH,QAAA,MAAM,cAAc,2CAAwC,CAAC;AAC7D,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AACxD,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorPane.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/editor/EditorPane.svelte.ts"],"names":[],"mappings":"AAwLA,QAAA,MAAM,UAAU,2DAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SchemaNode } from '../../js/utils/schema-utils';
|
|
2
|
+
interface Props {
|
|
3
|
+
schema: SchemaNode | null;
|
|
4
|
+
}
|
|
5
|
+
declare const EditorTabs: import("svelte").Component<Props, {}, "">;
|
|
6
|
+
type EditorTabs = ReturnType<typeof EditorTabs>;
|
|
7
|
+
export default EditorTabs;
|
|
8
|
+
//# sourceMappingURL=EditorTabs.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorTabs.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/editor/EditorTabs.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAY5D,UAAU,KAAK;IAEb,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;CAC3B;AA2CH,QAAA,MAAM,UAAU,2CAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorToolbar.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/editor/EditorToolbar.svelte.ts"],"names":[],"mappings":"AAmFA,QAAA,MAAM,aAAa,2DAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormatSelector.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/editor/FormatSelector.svelte.ts"],"names":[],"mappings":"AAgDA,QAAA,MAAM,cAAc,2DAAwC,CAAC;AAC7D,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AACxD,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const Toolbar: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type Toolbar = InstanceType<typeof Toolbar>;
|
|
18
|
+
export default Toolbar;
|
|
19
|
+
//# sourceMappingURL=Toolbar.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolbar.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/editor/Toolbar.svelte.ts"],"names":[],"mappings":"AAiBA,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IACtG,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAKD,QAAA,MAAM,OAAO;;kBAA+E,CAAC;AAC3E,KAAK,OAAO,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC;AAC9C,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SchemaNode } from '../../js/utils/schema-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the ArrayField component, which renders a JSON Schema array field with add, remove, reorder, and drag-and-drop controls.
|
|
4
|
+
*/
|
|
5
|
+
interface Props {
|
|
6
|
+
name: string;
|
|
7
|
+
schema: SchemaNode;
|
|
8
|
+
value: unknown;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
onchange: (value: unknown) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const ArrayField: import("svelte").Component<Props, {}, "">;
|
|
13
|
+
type ArrayField = ReturnType<typeof ArrayField>;
|
|
14
|
+
export default ArrayField;
|
|
15
|
+
//# sourceMappingURL=ArrayField.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayField.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/fields/ArrayField.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAS5D;;GAEG;AACH,UAAU,KAAK;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,UAAU,CAAC;IAEnB,KAAK,EAAE,OAAO,CAAC;IAEf,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC;AAgPH,QAAA,MAAM,UAAU,2CAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { SchemaNode } from '../../js/utils/schema-utils';
|
|
2
|
+
interface Props {
|
|
3
|
+
name: string;
|
|
4
|
+
index: number;
|
|
5
|
+
item: unknown;
|
|
6
|
+
itemSchema: SchemaNode;
|
|
7
|
+
isObject: boolean;
|
|
8
|
+
collapsed: boolean;
|
|
9
|
+
dragging: boolean;
|
|
10
|
+
dropTarget: boolean;
|
|
11
|
+
isFirst: boolean;
|
|
12
|
+
isLast: boolean;
|
|
13
|
+
canRemove: boolean;
|
|
14
|
+
onupdate: (index: number, value: unknown) => void;
|
|
15
|
+
onremove: (index: number) => void;
|
|
16
|
+
onmoveup: (index: number) => void;
|
|
17
|
+
onmovedown: (index: number) => void;
|
|
18
|
+
ontogglecollapse: (index: number) => void;
|
|
19
|
+
ondragstart: (e: DragEvent) => void;
|
|
20
|
+
ondragover: (e: DragEvent) => void;
|
|
21
|
+
ondragleave: (e: DragEvent) => void;
|
|
22
|
+
ondrop: (e: DragEvent) => void;
|
|
23
|
+
ondragend: (e: DragEvent) => void;
|
|
24
|
+
}
|
|
25
|
+
declare const ArrayItem: import("svelte").Component<Props, {}, "">;
|
|
26
|
+
type ArrayItem = ReturnType<typeof ArrayItem>;
|
|
27
|
+
export default ArrayItem;
|
|
28
|
+
//# sourceMappingURL=ArrayItem.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayItem.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/fields/ArrayItem.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK5D,UAAU,KAAK;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,OAAO,CAAC;IAEd,UAAU,EAAE,UAAU,CAAC;IAEvB,QAAQ,EAAE,OAAO,CAAC;IAElB,SAAS,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,OAAO,CAAC;IAElB,UAAU,EAAE,OAAO,CAAC;IAEpB,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,EAAE,OAAO,CAAC;IAEhB,SAAS,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAElD,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAElC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAElC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpC,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,WAAW,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IAEpC,UAAU,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IAEnC,WAAW,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IAEpC,MAAM,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IAE/B,SAAS,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;CACnC;AA0FH,QAAA,MAAM,SAAS,2CAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SchemaNode } from '../../js/utils/schema-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the BooleanField component, which renders a labeled checkbox for a JSON Schema boolean property.
|
|
4
|
+
*/
|
|
5
|
+
interface Props {
|
|
6
|
+
name: string;
|
|
7
|
+
schema: SchemaNode;
|
|
8
|
+
value: unknown;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
onchange: (value: boolean | null) => void;
|
|
11
|
+
inline?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const BooleanField: import("svelte").Component<Props, {}, "">;
|
|
14
|
+
type BooleanField = ReturnType<typeof BooleanField>;
|
|
15
|
+
export default BooleanField;
|
|
16
|
+
//# sourceMappingURL=BooleanField.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BooleanField.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/fields/BooleanField.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAS5D;;GAEG;AACH,UAAU,KAAK;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,UAAU,CAAC;IAEnB,KAAK,EAAE,OAAO,CAAC;IAEf,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAC;IAE1C,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAoDH,QAAA,MAAM,YAAY,2CAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SchemaNode } from '../../js/utils/schema-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the DateField component, which renders a date input for a JSON Schema string property with format "date-time".
|
|
4
|
+
*/
|
|
5
|
+
interface Props {
|
|
6
|
+
name: string;
|
|
7
|
+
schema: SchemaNode;
|
|
8
|
+
value: unknown;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
onchange: (value: string | null) => void;
|
|
11
|
+
inline?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const DateField: import("svelte").Component<Props, {}, "">;
|
|
14
|
+
type DateField = ReturnType<typeof DateField>;
|
|
15
|
+
export default DateField;
|
|
16
|
+
//# sourceMappingURL=DateField.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateField.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/fields/DateField.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK5D;;GAEG;AACH,UAAU,KAAK;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,UAAU,CAAC;IAEnB,KAAK,EAAE,OAAO,CAAC;IAEf,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAEzC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AA8DH,QAAA,MAAM,SAAS,2CAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SchemaNode } from '../../js/utils/schema-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the EnumField component, which renders a select dropdown for a JSON Schema enum property.
|
|
4
|
+
*/
|
|
5
|
+
interface Props {
|
|
6
|
+
name: string;
|
|
7
|
+
schema: SchemaNode;
|
|
8
|
+
value: unknown;
|
|
9
|
+
options: unknown[];
|
|
10
|
+
required?: boolean;
|
|
11
|
+
onchange: (value: string | null) => void;
|
|
12
|
+
inline?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const EnumField: import("svelte").Component<Props, {}, "">;
|
|
15
|
+
type EnumField = ReturnType<typeof EnumField>;
|
|
16
|
+
export default EnumField;
|
|
17
|
+
//# sourceMappingURL=EnumField.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnumField.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/fields/EnumField.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK5D;;GAEG;AACH,UAAU,KAAK;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,UAAU,CAAC;IAEnB,KAAK,EAAE,OAAO,CAAC;IAEf,OAAO,EAAE,OAAO,EAAE,CAAC;IAEnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAEzC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAqDH,QAAA,MAAM,SAAS,2CAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SchemaNode } from '../../js/utils/schema-utils';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
/**
|
|
4
|
+
* Shared wrapper for all form field components. Provides the label, required marker, deprecated dimming, description, and constraint text so individual field components only supply the input element via a Svelte snippet.
|
|
5
|
+
*/
|
|
6
|
+
interface Props {
|
|
7
|
+
name: string;
|
|
8
|
+
schema: SchemaNode;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
children: Snippet;
|
|
11
|
+
constraintText?: string;
|
|
12
|
+
hideLabel?: boolean;
|
|
13
|
+
inline?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const FieldWrapper: import("svelte").Component<Props, {}, "">;
|
|
16
|
+
type FieldWrapper = ReturnType<typeof FieldWrapper>;
|
|
17
|
+
export default FieldWrapper;
|
|
18
|
+
//# sourceMappingURL=FieldWrapper.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldWrapper.svelte.d.ts","sourceRoot":"","sources":["../../../../src/client/components/fields/FieldWrapper.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAGpC;;GAEG;AACH,UAAU,KAAK;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,UAAU,CAAC;IAEnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,OAAO,CAAC;IAElB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAiDH,QAAA,MAAM,YAAY,2CAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SchemaNode } from '../../js/utils/schema-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the NumberField component, which renders a numeric input for a JSON Schema number or integer property.
|
|
4
|
+
*/
|
|
5
|
+
interface Props {
|
|
6
|
+
name: string;
|
|
7
|
+
schema: SchemaNode;
|
|
8
|
+
value: unknown;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
onchange: (value: number | null) => void;
|
|
11
|
+
inline?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const NumberField: import("svelte").Component<Props, {}, "">;
|
|
14
|
+
type NumberField = ReturnType<typeof NumberField>;
|
|
15
|
+
export default NumberField;
|
|
16
|
+
//# sourceMappingURL=NumberField.svelte.d.ts.map
|