rimelight-components 2.0.94 → 2.0.96

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.
Files changed (58) hide show
  1. package/dist/module.d.mts +0 -1
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +9 -18
  4. package/dist/runtime/components/blocks/BlockEditRenderer.d.vue.ts +1 -1
  5. package/dist/runtime/components/blocks/BlockEditRenderer.vue.d.ts +1 -1
  6. package/dist/runtime/components/blocks/BlockEditor.d.vue.ts +1 -1
  7. package/dist/runtime/components/blocks/BlockEditor.vue.d.ts +1 -1
  8. package/dist/runtime/components/blocks/BlockViewRenderer.d.vue.ts +1 -1
  9. package/dist/runtime/components/blocks/BlockViewRenderer.vue.d.ts +1 -1
  10. package/dist/runtime/components/blocks/TOC.d.vue.ts +1 -1
  11. package/dist/runtime/components/blocks/TOC.vue.d.ts +1 -1
  12. package/dist/runtime/components/blocks/TextRenderer.d.vue.ts +1 -1
  13. package/dist/runtime/components/blocks/TextRenderer.vue.d.ts +1 -1
  14. package/dist/runtime/components/blocks/editor/CalloutBlockEditor.d.vue.ts +1 -1
  15. package/dist/runtime/components/blocks/editor/CalloutBlockEditor.vue.d.ts +1 -1
  16. package/dist/runtime/components/blocks/editor/CardBlockEditor.d.vue.ts +1 -1
  17. package/dist/runtime/components/blocks/editor/CardBlockEditor.vue.d.ts +1 -1
  18. package/dist/runtime/components/blocks/editor/ImageBlockEditor.d.vue.ts +1 -1
  19. package/dist/runtime/components/blocks/editor/ImageBlockEditor.vue.d.ts +1 -1
  20. package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.d.vue.ts +1 -1
  21. package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.vue.d.ts +1 -1
  22. package/dist/runtime/components/blocks/editor/SectionBlockEditor.d.vue.ts +1 -1
  23. package/dist/runtime/components/blocks/editor/SectionBlockEditor.vue.d.ts +1 -1
  24. package/dist/runtime/components/blocks/editor/TestBlockEditor.d.vue.ts +1 -1
  25. package/dist/runtime/components/blocks/editor/TestBlockEditor.vue.d.ts +1 -1
  26. package/dist/runtime/components/blocks/renderer/CalloutBlockRenderer.d.vue.ts +1 -1
  27. package/dist/runtime/components/blocks/renderer/CalloutBlockRenderer.vue.d.ts +1 -1
  28. package/dist/runtime/components/blocks/renderer/CardBlockRenderer.d.vue.ts +1 -1
  29. package/dist/runtime/components/blocks/renderer/CardBlockRenderer.vue.d.ts +1 -1
  30. package/dist/runtime/components/blocks/renderer/ImageBlockRenderer.d.vue.ts +1 -1
  31. package/dist/runtime/components/blocks/renderer/ImageBlockRenderer.vue.d.ts +1 -1
  32. package/dist/runtime/components/blocks/renderer/ParagraphBlockRenderer.d.vue.ts +1 -1
  33. package/dist/runtime/components/blocks/renderer/ParagraphBlockRenderer.vue.d.ts +1 -1
  34. package/dist/runtime/components/blocks/renderer/SectionBlockRenderer.d.vue.ts +1 -1
  35. package/dist/runtime/components/blocks/renderer/SectionBlockRenderer.vue.d.ts +1 -1
  36. package/dist/runtime/components/blocks/renderer/TestBlockRenderer.d.vue.ts +1 -1
  37. package/dist/runtime/components/blocks/renderer/TestBlockRenderer.vue.d.ts +1 -1
  38. package/dist/runtime/components/page/PageEditor.d.vue.ts +9 -9
  39. package/dist/runtime/components/page/PageEditor.vue +1 -0
  40. package/dist/runtime/components/page/PageEditor.vue.d.ts +9 -9
  41. package/dist/runtime/components/page/PagePropertiesEditor.d.vue.ts +5 -5
  42. package/dist/runtime/components/page/PagePropertiesEditor.vue +3 -1
  43. package/dist/runtime/components/page/PagePropertiesEditor.vue.d.ts +5 -5
  44. package/dist/runtime/components/page/PagePropertiesRenderer.d.vue.ts +1 -1
  45. package/dist/runtime/components/page/PagePropertiesRenderer.vue.d.ts +1 -1
  46. package/dist/runtime/composables/index.d.ts +3 -3
  47. package/dist/runtime/composables/useBlockEditor.d.ts +131 -131
  48. package/dist/runtime/composables/useBlockEditor.js +0 -17
  49. package/dist/runtime/composables/usePageEditor.d.ts +1 -1
  50. package/dist/runtime/internal/blockMapper.d.ts +1 -1
  51. package/dist/runtime/types/index.d.ts +3 -3
  52. package/dist/runtime/types/pages.d.ts +2 -2
  53. package/dist/runtime/utils/index.d.ts +3 -3
  54. package/dist/runtime/utils/page.d.ts +1 -1
  55. package/dist/runtime/utils/page.js +1 -1
  56. package/dist/runtime/utils/richTextHelpers.d.ts +1 -1
  57. package/dist/types.d.mts +0 -2
  58. package/package.json +15 -8
package/dist/module.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- export * from '../dist/runtime/types/index.js';
3
2
 
4
3
  interface CalloutOptions {
5
4
  icon: string;
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.0.94",
3
+ "version": "2.0.96",
4
4
  "docs": "https://rimelight.com/tools/rimelight-components",
5
5
  "configKey": "rimelightComponents",
6
6
  "compatibility": {
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import { readdirSync } from 'node:fs';
4
4
  import { basename } from 'node:path';
5
5
 
6
6
  const name = "rimelight-components";
7
- const version = "2.0.94";
7
+ const version = "2.0.96";
8
8
  const homepage = "https://rimelight.com/tools/rimelight-components";
9
9
 
10
10
  const defaultOptions = {
@@ -137,19 +137,21 @@ const module$1 = defineNuxtModule().with({
137
137
  moduleDependencies(_nuxt) {
138
138
  const dependencies = {
139
139
  "@nuxt/image": {
140
- version: ">=1.0.0",
140
+ version: ">=2.0.0",
141
141
  optional: false,
142
142
  overrides: {},
143
143
  defaults: {}
144
144
  },
145
145
  "@nuxtjs/i18n": {
146
- version: ">=10.1.1",
146
+ version: ">=10.2.1",
147
147
  optional: false,
148
148
  overrides: {},
149
- defaults: {}
149
+ defaults: {
150
+ defaultLocale: "en"
151
+ }
150
152
  },
151
153
  "@nuxt/ui": {
152
- version: ">=4.0.0",
154
+ version: ">=4.2.0",
153
155
  optional: false,
154
156
  overrides: {},
155
157
  defaults: {
@@ -169,18 +171,6 @@ const module$1 = defineNuxtModule().with({
169
171
  ]
170
172
  }
171
173
  }
172
- },
173
- "@vueuse/nuxt": {
174
- version: ">=13.9.0",
175
- optional: false,
176
- overrides: {},
177
- defaults: {}
178
- },
179
- "motion-v/nuxt": {
180
- version: ">=1.7.2",
181
- optional: false,
182
- overrides: {},
183
- defaults: {}
184
174
  }
185
175
  };
186
176
  return dependencies;
@@ -197,7 +187,6 @@ const module$1 = defineNuxtModule().with({
197
187
  nuxt.options.appConfig.rimelightComponents || {},
198
188
  options
199
189
  );
200
- nuxt.options.build.transpile.push("@nuxt/ui");
201
190
  addComponentsDir({
202
191
  path: resolve("./runtime/components/"),
203
192
  pathPrefix: false,
@@ -206,7 +195,9 @@ const module$1 = defineNuxtModule().with({
206
195
  global: true
207
196
  });
208
197
  addImportsDir(resolve("./runtime/composables"));
198
+ addImportsDir(resolve("./runtime/types"));
209
199
  addImportsDir(resolve("./runtime/utils"));
200
+ addServerImportsDir(resolve("./runtime/types"));
210
201
  addServerImportsDir(resolve("./runtime/utils"));
211
202
  const blockRendererFiles = readdirSync(
212
203
  resolve("./runtime/components/blocks/renderer")
@@ -1,4 +1,4 @@
1
- import type { Block } from "../../types";
1
+ import type { Block } from "../../types/index.js";
2
2
  type __VLS_Props = {
3
3
  blocks: Block[];
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { Block } from "../../types";
1
+ import type { Block } from "../../types/index.js";
2
2
  type __VLS_Props = {
3
3
  blocks: Block[];
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { Block } from "../../types";
1
+ import type { Block } from "../../types/index.js";
2
2
  export interface BlockEditorProps {
3
3
  historyLimit?: number;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { Block } from "../../types";
1
+ import type { Block } from "../../types/index.js";
2
2
  export interface BlockEditorProps {
3
3
  historyLimit?: number;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { Block } from "../../types";
1
+ import type { Block } from "../../types/index.js";
2
2
  type __VLS_Props = {
3
3
  blocks: Block[];
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { Block } from "../../types";
1
+ import type { Block } from "../../types/index.js";
2
2
  type __VLS_Props = {
3
3
  blocks: Block[];
4
4
  };
@@ -1,4 +1,4 @@
1
- import { type Block, type HeadingLevel } from "../../types";
1
+ import { type Block, type HeadingLevel } from "../../types/index.js";
2
2
  export interface TOCItem {
3
3
  id: string;
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { type Block, type HeadingLevel } from "../../types";
1
+ import { type Block, type HeadingLevel } from "../../types/index.js";
2
2
  export interface TOCItem {
3
3
  id: string;
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { type RichTextContent } from "../../types";
1
+ import { type RichTextContent } from "../../types/index.js";
2
2
  type __VLS_Props = {
3
3
  content: RichTextContent;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { type RichTextContent } from "../../types";
1
+ import { type RichTextContent } from "../../types/index.js";
2
2
  type __VLS_Props = {
3
3
  content: RichTextContent;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { CalloutBlockProps } from "../../../types";
1
+ import type { CalloutBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<CalloutBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CalloutBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { CalloutBlockProps } from "../../../types";
1
+ import type { CalloutBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<CalloutBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CalloutBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { CardBlockProps } from "../../../types";
1
+ import type { CardBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<CardBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { CardBlockProps } from "../../../types";
1
+ import type { CardBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<CardBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { ImageBlockProps } from "../../../types";
1
+ import type { ImageBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<ImageBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:src": (value: string | null) => any;
4
4
  "update:alt": (value: string) => any;
@@ -1,4 +1,4 @@
1
- import type { ImageBlockProps } from "../../../types";
1
+ import type { ImageBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<ImageBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:src": (value: string | null) => any;
4
4
  "update:alt": (value: string) => any;
@@ -1,4 +1,4 @@
1
- import type { ParagraphBlockProps } from "../../../types";
1
+ import type { ParagraphBlockProps } from "../../../types/index.js";
2
2
  type __VLS_Props = ParagraphBlockProps & {
3
3
  id: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { ParagraphBlockProps } from "../../../types";
1
+ import type { ParagraphBlockProps } from "../../../types/index.js";
2
2
  type __VLS_Props = ParagraphBlockProps & {
3
3
  id: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { SectionBlockProps } from "../../../types";
1
+ import type { SectionBlockProps } from "../../../types/index.js";
2
2
  type __VLS_Props = SectionBlockProps & {
3
3
  id: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { SectionBlockProps } from "../../../types";
1
+ import type { SectionBlockProps } from "../../../types/index.js";
2
2
  type __VLS_Props = SectionBlockProps & {
3
3
  id: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { TestBlockProps } from "../../../types";
1
+ import type { TestBlockProps } from "../../../types/index.js";
2
2
  type __VLS_Props = TestBlockProps & {
3
3
  id: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { TestBlockProps } from "../../../types";
1
+ import type { TestBlockProps } from "../../../types/index.js";
2
2
  type __VLS_Props = TestBlockProps & {
3
3
  id: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { CalloutBlockProps } from "../../../types";
1
+ import type { CalloutBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<CalloutBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CalloutBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { CalloutBlockProps } from "../../../types";
1
+ import type { CalloutBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<CalloutBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CalloutBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { CardBlockProps } from "../../../types";
1
+ import type { CardBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<CardBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { CardBlockProps } from "../../../types";
1
+ import type { CardBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<CardBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { ImageBlockProps } from "../../../types";
1
+ import type { ImageBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<ImageBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { ImageBlockProps } from "../../../types";
1
+ import type { ImageBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<ImageBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { ParagraphBlockProps } from "../../../types";
1
+ import type { ParagraphBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<ParagraphBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ParagraphBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { ParagraphBlockProps } from "../../../types";
1
+ import type { ParagraphBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<ParagraphBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ParagraphBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { SectionBlockProps } from "../../../types";
1
+ import type { SectionBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<SectionBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SectionBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { SectionBlockProps } from "../../../types";
1
+ import type { SectionBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<SectionBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SectionBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { TestBlockProps } from "../../../types";
1
+ import type { TestBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<TestBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TestBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { TestBlockProps } from "../../../types";
1
+ import type { TestBlockProps } from "../../../types/index.js";
2
2
  declare const __VLS_export: import("vue").DefineComponent<TestBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TestBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  declare const _default: typeof __VLS_export;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { Page } from "../../types";
1
+ import type { Page } from "../../types/index.js";
2
2
  interface Props {
3
3
  isSaving: boolean;
4
4
  }
@@ -15,22 +15,22 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
15
15
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
16
  "update:modelValue": (value: {
17
17
  type: "Default";
18
- properties: import("../../types").BasePageProperties;
19
- } & import("../../types").BasePage) => any;
18
+ properties: import("../../types/index.js").BasePageProperties;
19
+ } & import("../../types/index.js").BasePage) => any;
20
20
  } & {
21
21
  save: (value: {
22
22
  type: "Default";
23
- properties: import("../../types").BasePageProperties;
24
- } & import("../../types").BasePage) => any;
23
+ properties: import("../../types/index.js").BasePageProperties;
24
+ } & import("../../types/index.js").BasePage) => any;
25
25
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
26
26
  onSave?: ((value: {
27
27
  type: "Default";
28
- properties: import("../../types").BasePageProperties;
29
- } & import("../../types").BasePage) => any) | undefined;
28
+ properties: import("../../types/index.js").BasePageProperties;
29
+ } & import("../../types/index.js").BasePage) => any) | undefined;
30
30
  "onUpdate:modelValue"?: ((value: {
31
31
  type: "Default";
32
- properties: import("../../types").BasePageProperties;
33
- } & import("../../types").BasePage) => any) | undefined;
32
+ properties: import("../../types/index.js").BasePageProperties;
33
+ } & import("../../types/index.js").BasePage) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  export default _default;
@@ -75,6 +75,7 @@ const editorPanelClass = computed(() => ({
75
75
  <div class="mt-24 grid gap-xl" :class="showPreview ? 'grid-cols-2' : 'grid-cols-1'">
76
76
  <UPage :class="editorPanelClass">
77
77
  <template #default>
78
+ <UPageHeader />
78
79
  <RCBlockEditor
79
80
  ref="editor"
80
81
  v-model="page.blocks"
@@ -1,4 +1,4 @@
1
- import type { Page } from "../../types";
1
+ import type { Page } from "../../types/index.js";
2
2
  interface Props {
3
3
  isSaving: boolean;
4
4
  }
@@ -15,22 +15,22 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
15
15
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
16
  "update:modelValue": (value: {
17
17
  type: "Default";
18
- properties: import("../../types").BasePageProperties;
19
- } & import("../../types").BasePage) => any;
18
+ properties: import("../../types/index.js").BasePageProperties;
19
+ } & import("../../types/index.js").BasePage) => any;
20
20
  } & {
21
21
  save: (value: {
22
22
  type: "Default";
23
- properties: import("../../types").BasePageProperties;
24
- } & import("../../types").BasePage) => any;
23
+ properties: import("../../types/index.js").BasePageProperties;
24
+ } & import("../../types/index.js").BasePage) => any;
25
25
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
26
26
  onSave?: ((value: {
27
27
  type: "Default";
28
- properties: import("../../types").BasePageProperties;
29
- } & import("../../types").BasePage) => any) | undefined;
28
+ properties: import("../../types/index.js").BasePageProperties;
29
+ } & import("../../types/index.js").BasePage) => any) | undefined;
30
30
  "onUpdate:modelValue"?: ((value: {
31
31
  type: "Default";
32
- properties: import("../../types").BasePageProperties;
33
- } & import("../../types").BasePage) => any) | undefined;
32
+ properties: import("../../types/index.js").BasePageProperties;
33
+ } & import("../../types/index.js").BasePage) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  export default _default;
@@ -1,17 +1,17 @@
1
- import { type Page } from '../../types';
1
+ import { type Page } from '../../types/index.js';
2
2
  type __VLS_ModelProps = {
3
3
  modelValue: Page;
4
4
  };
5
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  "update:modelValue": (value: {
7
7
  type: "Default";
8
- properties: import("../../types").BasePageProperties;
9
- } & import("../../types").BasePage) => any;
8
+ properties: import("../../types/index.js").BasePageProperties;
9
+ } & import("../../types/index.js").BasePage) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
11
11
  "onUpdate:modelValue"?: ((value: {
12
12
  type: "Default";
13
- properties: import("../../types").BasePageProperties;
14
- } & import("../../types").BasePage) => any) | undefined;
13
+ properties: import("../../types/index.js").BasePageProperties;
14
+ } & import("../../types/index.js").BasePage) => any) | undefined;
15
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  declare const _default: typeof __VLS_export;
17
17
  export default _default;
@@ -104,10 +104,12 @@ const getSortedFields = (fields) => {
104
104
  <span>ID:</span>
105
105
  <span>{{ page.id }}</span>
106
106
  </div>
107
+ <ClientOnly>
107
108
  <div class="flex justify-between">
108
109
  <span>Last Updated:</span>
109
- <span>{{ new Date(page.updatedAt).toLocaleString() }}</span>
110
+ <span>{{ page.updated_at }}</span>
110
111
  </div>
112
+ </ClientOnly>
111
113
  </div>
112
114
  </div>
113
115
  </template>
@@ -1,17 +1,17 @@
1
- import { type Page } from '../../types';
1
+ import { type Page } from '../../types/index.js';
2
2
  type __VLS_ModelProps = {
3
3
  modelValue: Page;
4
4
  };
5
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  "update:modelValue": (value: {
7
7
  type: "Default";
8
- properties: import("../../types").BasePageProperties;
9
- } & import("../../types").BasePage) => any;
8
+ properties: import("../../types/index.js").BasePageProperties;
9
+ } & import("../../types/index.js").BasePage) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
11
11
  "onUpdate:modelValue"?: ((value: {
12
12
  type: "Default";
13
- properties: import("../../types").BasePageProperties;
14
- } & import("../../types").BasePage) => any) | undefined;
13
+ properties: import("../../types/index.js").BasePageProperties;
14
+ } & import("../../types/index.js").BasePage) => any) | undefined;
15
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  declare const _default: typeof __VLS_export;
17
17
  export default _default;
@@ -1,4 +1,4 @@
1
- import { type Page } from '../../types';
1
+ import { type Page } from '../../types/index.js';
2
2
  type __VLS_Props = {
3
3
  modelValue: Page;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { type Page } from '../../types';
1
+ import { type Page } from '../../types/index.js';
2
2
  type __VLS_Props = {
3
3
  modelValue: Page;
4
4
  };
@@ -1,3 +1,3 @@
1
- export * from "./useDateRange";
2
- export * from "./usePageEditor";
3
- export * from "./useBlockEditor";
1
+ export * from "./useDateRange.js";
2
+ export * from "./usePageEditor.js";
3
+ export * from "./useBlockEditor.js";