rimelight-components 2.0.61 → 2.0.64

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 (40) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -2
  3. package/dist/runtime/components/blocks/BlockEditRenderer.d.vue.ts +1 -1
  4. package/dist/runtime/components/blocks/BlockEditRenderer.vue.d.ts +1 -1
  5. package/dist/runtime/components/blocks/BlockEditor.d.vue.ts +1 -1
  6. package/dist/runtime/components/blocks/BlockEditor.vue.d.ts +1 -1
  7. package/dist/runtime/components/blocks/BlockViewRenderer.d.vue.ts +1 -1
  8. package/dist/runtime/components/blocks/BlockViewRenderer.vue.d.ts +1 -1
  9. package/dist/runtime/components/blocks/TOC.d.vue.ts +2 -2
  10. package/dist/runtime/components/blocks/TOC.vue.d.ts +2 -2
  11. package/dist/runtime/components/blocks/TextRenderer.d.vue.ts +1 -1
  12. package/dist/runtime/components/blocks/TextRenderer.vue.d.ts +1 -1
  13. package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.d.vue.ts +1 -1
  14. package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.vue.d.ts +1 -1
  15. package/dist/runtime/components/blocks/editor/SectionBlockEditor.d.vue.ts +1 -1
  16. package/dist/runtime/components/blocks/editor/SectionBlockEditor.vue.d.ts +1 -1
  17. package/dist/runtime/components/blocks/editor/TestBlockEditor.d.vue.ts +1 -1
  18. package/dist/runtime/components/blocks/editor/TestBlockEditor.vue.d.ts +1 -1
  19. package/dist/runtime/components/page/PageEditor.d.vue.ts +36 -0
  20. package/dist/runtime/components/page/PageEditor.vue.d.ts +36 -0
  21. package/dist/runtime/components/page/PagePropertiesEditor.d.vue.ts +17 -0
  22. package/dist/runtime/components/page/PagePropertiesEditor.vue.d.ts +17 -0
  23. package/dist/runtime/components/page/PagePropertiesRenderer.d.vue.ts +1 -1
  24. package/dist/runtime/components/page/PagePropertiesRenderer.vue.d.ts +1 -1
  25. package/dist/runtime/composables/index.d.ts +3 -0
  26. package/dist/runtime/composables/index.js +3 -0
  27. package/dist/runtime/composables/useBlockEditor.d.ts +131 -131
  28. package/dist/runtime/composables/usePageEditor.d.ts +1 -1
  29. package/dist/runtime/types/index.d.ts +3 -3
  30. package/dist/runtime/types/pages.d.ts +3 -4
  31. package/dist/runtime/types/schemas.d.ts +0 -6
  32. package/dist/runtime/types/schemas.js +0 -10
  33. package/dist/runtime/utils/blockMapper.d.ts +1 -1
  34. package/dist/runtime/utils/database.d.ts +6 -0
  35. package/dist/runtime/utils/database.js +10 -0
  36. package/dist/runtime/utils/index.d.ts +4 -3
  37. package/dist/runtime/utils/index.js +1 -0
  38. package/dist/runtime/utils/page.d.ts +1 -1
  39. package/dist/runtime/utils/richTextHelpers.d.ts +1 -1
  40. package/package.json +17 -37
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.0.61",
3
+ "version": "2.0.64",
4
4
  "docs": "https://rimelight.com/tools/rimelight-components",
5
5
  "configKey": "rimelightComponents",
6
6
  "compatibility": {
package/dist/module.mjs CHANGED
@@ -2,10 +2,9 @@ import { addTemplate, defineNuxtModule, createResolver, addComponentsDir, addImp
2
2
  import { defu } from 'defu';
3
3
  import { readdirSync } from 'node:fs';
4
4
  import { basename } from 'node:path';
5
- export * from '../dist/runtime/types/index.js';
6
5
 
7
6
  const name = "rimelight-components";
8
- const version = "2.0.61";
7
+ const version = "2.0.64";
9
8
  const homepage = "https://rimelight.com/tools/rimelight-components";
10
9
 
11
10
  const defaultOptions = {
@@ -1,4 +1,4 @@
1
- import type { Block } from "../../types/blocks.js";
1
+ import type { Block } from "../../types/blocks";
2
2
  type __VLS_Props = {
3
3
  blocks: Block[];
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { Block } from "../../types/blocks.js";
1
+ import type { Block } from "../../types/blocks";
2
2
  type __VLS_Props = {
3
3
  blocks: Block[];
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { Block } from "../../types/blocks.js";
1
+ import type { Block } from "../../types/blocks";
2
2
  export interface BlockEditorProps {
3
3
  historyLimit?: number;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { Block } from "../../types/blocks.js";
1
+ import type { Block } from "../../types/blocks";
2
2
  export interface BlockEditorProps {
3
3
  historyLimit?: number;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { Block } from "../../types/blocks.js";
1
+ import type { Block } from "../../types/blocks";
2
2
  type __VLS_Props = {
3
3
  blocks: Block[];
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { Block } from "../../types/blocks.js";
1
+ import type { Block } from "../../types/blocks";
2
2
  type __VLS_Props = {
3
3
  blocks: Block[];
4
4
  };
@@ -1,5 +1,5 @@
1
- import type { Block } from "../../types/blocks.js";
2
- import type { HeadingLevel } from "../../types/blocks.js";
1
+ import type { Block } from "../../types/blocks";
2
+ import type { HeadingLevel } from "../../types/blocks";
3
3
  export interface TOCItem {
4
4
  id: string;
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import type { Block } from "../../types/blocks.js";
2
- import type { HeadingLevel } from "../../types/blocks.js";
1
+ import type { Block } from "../../types/blocks";
2
+ import type { HeadingLevel } from "../../types/blocks";
3
3
  export interface TOCItem {
4
4
  id: string;
5
5
  title: string;
@@ -1,4 +1,4 @@
1
- import { type RichTextContent } from "../../types/blocks.js";
1
+ import { type RichTextContent } from "../../types/blocks";
2
2
  type __VLS_Props = {
3
3
  content: RichTextContent;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { type RichTextContent } from "../../types/blocks.js";
1
+ import { type RichTextContent } from "../../types/blocks";
2
2
  type __VLS_Props = {
3
3
  content: RichTextContent;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { ParagraphBlockProps } from "../../../types/blocks.js";
1
+ import type { ParagraphBlockProps } from "../../../types/blocks";
2
2
  type __VLS_Props = ParagraphBlockProps & {
3
3
  id: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { ParagraphBlockProps } from "../../../types/blocks.js";
1
+ import type { ParagraphBlockProps } from "../../../types/blocks";
2
2
  type __VLS_Props = ParagraphBlockProps & {
3
3
  id: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { SectionBlockProps } from "../../../types/blocks.js";
1
+ import type { SectionBlockProps } from "../../../types/blocks";
2
2
  type __VLS_Props = SectionBlockProps & {
3
3
  id: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { SectionBlockProps } from "../../../types/blocks.js";
1
+ import type { SectionBlockProps } from "../../../types/blocks";
2
2
  type __VLS_Props = SectionBlockProps & {
3
3
  id: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { TestBlockProps } from "../../../types/blocks.js";
1
+ import type { TestBlockProps } from "../../../types/blocks";
2
2
  type __VLS_Props = TestBlockProps & {
3
3
  id: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { TestBlockProps } from "../../../types/blocks.js";
1
+ import type { TestBlockProps } from "../../../types/blocks";
2
2
  type __VLS_Props = TestBlockProps & {
3
3
  id: string;
4
4
  };
@@ -0,0 +1,36 @@
1
+ import type { Page } from "../../types/pages";
2
+ interface Props {
3
+ isSaving: boolean;
4
+ }
5
+ type __VLS_Props = Props;
6
+ type __VLS_ModelProps = {
7
+ modelValue: Page;
8
+ };
9
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
11
+ undo: () => void;
12
+ redo: () => void;
13
+ canUndo: import("vue").ComputedRef<boolean>;
14
+ canRedo: import("vue").ComputedRef<boolean>;
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ "update:modelValue": (value: {
17
+ type: "Default";
18
+ properties: import("../../types").BasePageProperties;
19
+ } & import("../../types").BasePage) => any;
20
+ } & {
21
+ save: (value: {
22
+ type: "Default";
23
+ properties: import("../../types").BasePageProperties;
24
+ } & import("../../types").BasePage) => any;
25
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
26
+ onSave?: ((value: {
27
+ type: "Default";
28
+ properties: import("../../types").BasePageProperties;
29
+ } & import("../../types").BasePage) => any) | undefined;
30
+ "onUpdate:modelValue"?: ((value: {
31
+ type: "Default";
32
+ properties: import("../../types").BasePageProperties;
33
+ } & import("../../types").BasePage) => any) | undefined;
34
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
@@ -0,0 +1,36 @@
1
+ import type { Page } from "../../types/pages";
2
+ interface Props {
3
+ isSaving: boolean;
4
+ }
5
+ type __VLS_Props = Props;
6
+ type __VLS_ModelProps = {
7
+ modelValue: Page;
8
+ };
9
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
11
+ undo: () => void;
12
+ redo: () => void;
13
+ canUndo: import("vue").ComputedRef<boolean>;
14
+ canRedo: import("vue").ComputedRef<boolean>;
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ "update:modelValue": (value: {
17
+ type: "Default";
18
+ properties: import("../../types").BasePageProperties;
19
+ } & import("../../types").BasePage) => any;
20
+ } & {
21
+ save: (value: {
22
+ type: "Default";
23
+ properties: import("../../types").BasePageProperties;
24
+ } & import("../../types").BasePage) => any;
25
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
26
+ onSave?: ((value: {
27
+ type: "Default";
28
+ properties: import("../../types").BasePageProperties;
29
+ } & import("../../types").BasePage) => any) | undefined;
30
+ "onUpdate:modelValue"?: ((value: {
31
+ type: "Default";
32
+ properties: import("../../types").BasePageProperties;
33
+ } & import("../../types").BasePage) => any) | undefined;
34
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { type Page } from '../../types/pages';
2
+ type __VLS_ModelProps = {
3
+ modelValue: Page;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "update:modelValue": (value: {
7
+ type: "Default";
8
+ properties: import("../../types").BasePageProperties;
9
+ } & import("../../types").BasePage) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: {
12
+ type: "Default";
13
+ properties: import("../../types").BasePageProperties;
14
+ } & import("../../types").BasePage) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { type Page } from '../../types/pages';
2
+ type __VLS_ModelProps = {
3
+ modelValue: Page;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "update:modelValue": (value: {
7
+ type: "Default";
8
+ properties: import("../../types").BasePageProperties;
9
+ } & import("../../types").BasePage) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: {
12
+ type: "Default";
13
+ properties: import("../../types").BasePageProperties;
14
+ } & import("../../types").BasePage) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { type Page } from '../../types/pages.js';
1
+ import { type Page } from '../../types/pages';
2
2
  type __VLS_Props = {
3
3
  modelValue: Page;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { type Page } from '../../types/pages.js';
1
+ import { type Page } from '../../types/pages';
2
2
  type __VLS_Props = {
3
3
  modelValue: Page;
4
4
  };
@@ -0,0 +1,3 @@
1
+ export * from "./useDateRange";
2
+ export * from "./usePageEditor";
3
+ export * from "./useBlockEditor";
@@ -0,0 +1,3 @@
1
+ export * from "./useDateRange.js";
2
+ export * from "./usePageEditor.js";
3
+ export * from "./useBlockEditor.js";