rimelight-components 2.0.61 → 2.0.63
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/dist/module.json +1 -1
- package/dist/module.mjs +1 -2
- package/dist/runtime/components/blocks/BlockEditRenderer.d.vue.ts +1 -1
- package/dist/runtime/components/blocks/BlockEditRenderer.vue.d.ts +1 -1
- package/dist/runtime/components/blocks/BlockEditor.d.vue.ts +1 -1
- package/dist/runtime/components/blocks/BlockEditor.vue.d.ts +1 -1
- package/dist/runtime/components/blocks/BlockViewRenderer.d.vue.ts +1 -1
- package/dist/runtime/components/blocks/BlockViewRenderer.vue.d.ts +1 -1
- package/dist/runtime/components/blocks/TOC.d.vue.ts +2 -2
- package/dist/runtime/components/blocks/TOC.vue.d.ts +2 -2
- package/dist/runtime/components/blocks/TextRenderer.d.vue.ts +1 -1
- package/dist/runtime/components/blocks/TextRenderer.vue.d.ts +1 -1
- package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.d.vue.ts +1 -1
- package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.vue.d.ts +1 -1
- package/dist/runtime/components/blocks/editor/SectionBlockEditor.d.vue.ts +1 -1
- package/dist/runtime/components/blocks/editor/SectionBlockEditor.vue.d.ts +1 -1
- package/dist/runtime/components/blocks/editor/TestBlockEditor.d.vue.ts +1 -1
- package/dist/runtime/components/blocks/editor/TestBlockEditor.vue.d.ts +1 -1
- package/dist/runtime/components/page/PageEditor.d.vue.ts +36 -0
- package/dist/runtime/components/page/PageEditor.vue.d.ts +36 -0
- package/dist/runtime/components/page/PagePropertiesEditor.d.vue.ts +17 -0
- package/dist/runtime/components/page/PagePropertiesEditor.vue.d.ts +17 -0
- package/dist/runtime/components/page/PagePropertiesRenderer.d.vue.ts +1 -1
- package/dist/runtime/components/page/PagePropertiesRenderer.vue.d.ts +1 -1
- package/dist/runtime/composables/index.d.ts +3 -0
- package/dist/runtime/composables/index.js +3 -0
- package/dist/runtime/composables/useBlockEditor.d.ts +131 -131
- package/dist/runtime/composables/usePageEditor.d.ts +1 -1
- package/dist/runtime/types/index.d.ts +3 -3
- package/dist/runtime/types/pages.d.ts +3 -4
- package/dist/runtime/types/schemas.d.ts +0 -6
- package/dist/runtime/types/schemas.js +0 -10
- package/dist/runtime/utils/blockMapper.d.ts +1 -1
- package/dist/runtime/utils/database.d.ts +6 -0
- package/dist/runtime/utils/database.js +10 -0
- package/dist/runtime/utils/index.d.ts +4 -3
- package/dist/runtime/utils/index.js +1 -0
- package/dist/runtime/utils/page.d.ts +1 -1
- package/dist/runtime/utils/richTextHelpers.d.ts +1 -1
- package/package.json +26 -21
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./blocks
|
|
2
|
-
export * from "./pages
|
|
3
|
-
export * from "./schemas
|
|
1
|
+
export * from "./blocks";
|
|
2
|
+
export * from "./pages";
|
|
3
|
+
export * from "./schemas";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Image } from "../types
|
|
2
|
-
import { type Block } from "
|
|
1
|
+
import { type Image } from "../types";
|
|
2
|
+
import { type Block } from "../types";
|
|
3
3
|
declare global {
|
|
4
4
|
interface RimelightRegisterPageTypes {
|
|
5
5
|
}
|
|
@@ -40,7 +40,7 @@ export interface RegisterPageTypes extends RimelightRegisterPageTypes {
|
|
|
40
40
|
/**
|
|
41
41
|
* Common fields shared by every page regardless of type.
|
|
42
42
|
*/
|
|
43
|
-
interface BasePage {
|
|
43
|
+
export interface BasePage {
|
|
44
44
|
id: string;
|
|
45
45
|
slug: string;
|
|
46
46
|
image?: Image;
|
|
@@ -62,4 +62,3 @@ export type Page = {
|
|
|
62
62
|
properties: RegisterPageTypes[K];
|
|
63
63
|
} & BasePage;
|
|
64
64
|
}[PageType];
|
|
65
|
-
export {};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const id: import("drizzle-orm").NotNull<import("drizzle-orm").HasDefault<import("drizzle-orm/pg-core").PgUUIDBuilderInitial<"id">>>;
|
|
3
|
-
export declare const timestamps: {
|
|
4
|
-
updated_at: import("drizzle-orm").HasDefault<import("drizzle-orm/pg-core").PgTimestampBuilderInitial<"updated_at">>;
|
|
5
|
-
created_at: import("drizzle-orm").NotNull<import("drizzle-orm").HasDefault<import("drizzle-orm/pg-core").PgTimestampBuilderInitial<"created_at">>>;
|
|
6
|
-
deleted_at: import("drizzle-orm/pg-core").PgTimestampBuilderInitial<"deleted_at">;
|
|
7
|
-
};
|
|
8
2
|
export declare const linkVariantEnum: z.ZodEnum<{
|
|
9
3
|
link: "link";
|
|
10
4
|
solid: "solid";
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import { uuid, timestamp } from "drizzle-orm/pg-core";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
import { sql } from "drizzle-orm";
|
|
4
|
-
export const id = uuid("id").default(sql`uuidv7()`).notNull();
|
|
5
|
-
export const timestamps = {
|
|
6
|
-
updated_at: timestamp("updated_at", {
|
|
7
|
-
withTimezone: true
|
|
8
|
-
}).$onUpdate(() => /* @__PURE__ */ new Date()),
|
|
9
|
-
created_at: timestamp("created_at", { withTimezone: true }).defaultNow().notNull(),
|
|
10
|
-
deleted_at: timestamp("deleted_at", { withTimezone: true })
|
|
11
|
-
};
|
|
12
2
|
export const linkVariantEnum = z.enum(["solid", "outline", "subtle", "soft", "ghost", "link"]);
|
|
13
3
|
export const linkColorEnum = z.enum([
|
|
14
4
|
"primary",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const id: import("drizzle-orm").NotNull<import("drizzle-orm").HasDefault<import("drizzle-orm/pg-core").PgUUIDBuilderInitial<"id">>>;
|
|
2
|
+
export declare const timestamps: {
|
|
3
|
+
updated_at: import("drizzle-orm").HasDefault<import("drizzle-orm/pg-core").PgTimestampBuilderInitial<"updated_at">>;
|
|
4
|
+
created_at: import("drizzle-orm").NotNull<import("drizzle-orm").HasDefault<import("drizzle-orm/pg-core").PgTimestampBuilderInitial<"created_at">>>;
|
|
5
|
+
deleted_at: import("drizzle-orm/pg-core").PgTimestampBuilderInitial<"deleted_at">;
|
|
6
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { uuid, timestamp } from "drizzle-orm/pg-core";
|
|
2
|
+
import { sql } from "drizzle-orm";
|
|
3
|
+
export const id = uuid("id").default(sql`uuidv7()`).notNull();
|
|
4
|
+
export const timestamps = {
|
|
5
|
+
updated_at: timestamp("updated_at", {
|
|
6
|
+
withTimezone: true
|
|
7
|
+
}).$onUpdate(() => /* @__PURE__ */ new Date()),
|
|
8
|
+
created_at: timestamp("created_at", { withTimezone: true }).defaultNow().notNull(),
|
|
9
|
+
deleted_at: timestamp("deleted_at", { withTimezone: true })
|
|
10
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * from "./richTextHelpers
|
|
2
|
-
export * from "./blockMapper
|
|
3
|
-
export * from "./page
|
|
1
|
+
export * from "./richTextHelpers";
|
|
2
|
+
export * from "./blockMapper";
|
|
3
|
+
export * from "./page";
|
|
4
|
+
export * from "./database";
|
|
4
5
|
/**
|
|
5
6
|
* Converts a string into a URL-friendly slug.
|
|
6
7
|
* - Converts to lowercase.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Page, Localized, PageDefinition } from "../types/pages
|
|
1
|
+
import type { Page, Localized, PageDefinition } from "../types/pages";
|
|
2
2
|
export declare const getLocalizedContent: (field: Localized | undefined, currentLocale: string) => string;
|
|
3
3
|
/**
|
|
4
4
|
* Ensures a page strictly adheres to its PageDefinition.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RichTextContent } from "../types/blocks
|
|
1
|
+
import type { RichTextContent } from "../types/blocks";
|
|
2
2
|
/**
|
|
3
3
|
* Helper: Converts RichTextContent array into a plain string for a simple contenteditable area.
|
|
4
4
|
* For complex editors, this would generate full HTML/DOM nodes, preserving links/mentions.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rimelight-components",
|
|
3
3
|
"description": "A component library by Rimelight Entertainment.",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.63",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -22,50 +22,55 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./dist/module.d.mts",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
},
|
|
28
|
-
"./types": {
|
|
29
|
-
"types": "./dist/runtime/types/index.d.ts",
|
|
30
|
-
"import": "./dist/runtime/types/index.js",
|
|
31
|
-
"require": "./dist/runtime/types/index.js"
|
|
25
|
+
"style": "./dist/runtime/index.css",
|
|
26
|
+
"import": "./dist/module.mjs"
|
|
32
27
|
},
|
|
33
28
|
"./runtime/*": "./dist/runtime/*",
|
|
34
29
|
"./components/*": "./dist/runtime/components/*",
|
|
35
|
-
"./composables
|
|
30
|
+
"./composables": {
|
|
31
|
+
"types": "./dist/runtime/composables/index.d.mts",
|
|
32
|
+
"import": "./dist/runtime/composables/index.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./composables/*": {
|
|
35
|
+
"types": "./dist/runtime/composables/*.d.mts",
|
|
36
|
+
"import": "./dist/runtime/composables/*.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./utils": {
|
|
39
|
+
"types": "./dist/runtime/utils/index.d.mts",
|
|
40
|
+
"import": "./dist/runtime/utils/index.mjs"
|
|
41
|
+
},
|
|
36
42
|
"./utils/*": {
|
|
37
43
|
"types": "./dist/runtime/utils/*.d.mts",
|
|
38
|
-
"import": "./dist/runtime/utils/*.
|
|
44
|
+
"import": "./dist/runtime/utils/*.mjs"
|
|
39
45
|
}
|
|
40
46
|
},
|
|
41
|
-
"main": "./dist/module.mjs",
|
|
42
|
-
"types": "./dist/module.d.mts",
|
|
43
|
-
"style": "./dist/runtime/index.css",
|
|
44
47
|
"typesVersions": {
|
|
45
48
|
"*": {
|
|
46
49
|
".": [
|
|
47
50
|
"./dist/module.d.mts"
|
|
48
51
|
],
|
|
49
|
-
"
|
|
50
|
-
"./dist/
|
|
51
|
-
],
|
|
52
|
-
"./runtime/*": [
|
|
53
|
-
"./dist/runtime/index.d.ts"
|
|
52
|
+
"runtime/*": [
|
|
53
|
+
"./dist/runtime/*"
|
|
54
54
|
],
|
|
55
55
|
"components/*": [
|
|
56
56
|
"./dist/runtime/components/*"
|
|
57
57
|
],
|
|
58
|
+
"composables": [
|
|
59
|
+
"./dist/runtime/composables/index.d.mts"
|
|
60
|
+
],
|
|
58
61
|
"composables/*": [
|
|
59
|
-
"./dist/runtime/composables
|
|
62
|
+
"./dist/runtime/composables/*.d.mts"
|
|
60
63
|
],
|
|
61
64
|
"utils": [
|
|
62
|
-
"./dist/runtime/utils/index.d.
|
|
65
|
+
"./dist/runtime/utils/index.d.mts"
|
|
63
66
|
],
|
|
64
67
|
"utils/*": [
|
|
65
|
-
"./dist/runtime/utils/*.d.
|
|
68
|
+
"./dist/runtime/utils/*.d.mts"
|
|
66
69
|
]
|
|
67
70
|
}
|
|
68
71
|
},
|
|
72
|
+
"style": "./dist/runtime/index.css",
|
|
73
|
+
"main": "./dist/module.mjs",
|
|
69
74
|
"files": [
|
|
70
75
|
"dist"
|
|
71
76
|
],
|