@qirtaas/core 0.0.1 → 0.2.0
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 +9 -1
- package/dist/client.d.ts +21 -4
- package/dist/index.d.ts +2 -0
- package/dist/mount/listDocuments.d.ts +12 -0
- package/dist/mount/sharing.d.ts +17 -0
- package/dist/qirtaas.js +5802 -5723
- package/dist/qirtaas.umd.js +118 -82
- package/dist/services/documents.d.ts +9 -0
- package/package.json +36 -5
|
@@ -11,10 +11,19 @@ export interface UpdateResult extends QirtaasDocument {
|
|
|
11
11
|
/** Image ids referenced in content that the server refused to link. */
|
|
12
12
|
rejected_image_ids: string[];
|
|
13
13
|
}
|
|
14
|
+
/** List-item shape: a document without its content. */
|
|
15
|
+
export type DocumentSummary = Omit<QirtaasDocument, "content">;
|
|
16
|
+
export declare function listDocuments(): Promise<DocumentSummary[]>;
|
|
14
17
|
export declare function getDocument(id: string): Promise<QirtaasDocument>;
|
|
15
18
|
export declare function createDocument(content?: Json): Promise<QirtaasDocument>;
|
|
16
19
|
export declare function updateDocument(id: string, content: Json): Promise<UpdateResult>;
|
|
17
20
|
export declare function deleteDocument(id: string): Promise<void>;
|
|
21
|
+
export interface ShareInfo {
|
|
22
|
+
is_shared: boolean;
|
|
23
|
+
share_token: string | null;
|
|
24
|
+
}
|
|
25
|
+
export declare function getShareInfo(id: string): Promise<ShareInfo>;
|
|
26
|
+
export declare function setSharing(id: string, isShared: boolean): Promise<ShareInfo>;
|
|
18
27
|
export interface SharedDocument {
|
|
19
28
|
id: string;
|
|
20
29
|
title: string;
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qirtaas/core",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Embeddable rich-text editor SDK for Islamic writings. Framework-agnostic mount API and CDN/UMD bundle.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Alrimaal",
|
|
7
|
-
"homepage": "https://github.com/alrimaal/qirtaas#readme",
|
|
7
|
+
"homepage": "https://github.com/alrimaal/qirtaas-js#readme",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/alrimaal/qirtaas.git",
|
|
10
|
+
"url": "git+https://github.com/alrimaal/qirtaas-js.git",
|
|
11
11
|
"directory": "packages/core"
|
|
12
12
|
},
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/alrimaal/qirtaas/issues"
|
|
14
|
+
"url": "https://github.com/alrimaal/qirtaas-js/issues"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"editor",
|
|
@@ -52,8 +52,39 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
+
"@primeuix/styled": "^0.7.4",
|
|
56
|
+
"@primeuix/themes": "^2.0.3",
|
|
57
|
+
"@sentry/vue": "^10.47.0",
|
|
55
58
|
"@tailwindcss/postcss": "^4.2.2",
|
|
59
|
+
"@tiptap/core": "^3.20.4",
|
|
60
|
+
"@tiptap/extension-details": "^3.22.2",
|
|
61
|
+
"@tiptap/extension-emoji": "^3.20.5",
|
|
62
|
+
"@tiptap/extension-file-handler": "^3.23.1",
|
|
63
|
+
"@tiptap/extension-highlight": "^3.20.4",
|
|
64
|
+
"@tiptap/extension-link": "^3.20.4",
|
|
65
|
+
"@tiptap/extension-placeholder": "^3.20.4",
|
|
66
|
+
"@tiptap/extension-table": "^3.22.3",
|
|
67
|
+
"@tiptap/extension-text-align": "^3.20.4",
|
|
68
|
+
"@tiptap/extension-underline": "^3.20.4",
|
|
69
|
+
"@tiptap/pm": "^3.20.4",
|
|
70
|
+
"@tiptap/starter-kit": "^3.20.4",
|
|
71
|
+
"@tiptap/suggestion": "^3.20.4",
|
|
72
|
+
"@tiptap/vue-3": "^3.20.4",
|
|
73
|
+
"@vitejs/plugin-vue": "^6.0.4",
|
|
74
|
+
"@vue/language-core": "^3.2.5",
|
|
75
|
+
"axios": "^1.13.6",
|
|
76
|
+
"dompurify": "^3.3.3",
|
|
77
|
+
"lucide-vue-next": "^1.0.0",
|
|
78
|
+
"moveable": "^0.53.0",
|
|
56
79
|
"postcss-prefix-selector": "^2.1.1",
|
|
57
|
-
"
|
|
80
|
+
"primeicons": "^7.0.0",
|
|
81
|
+
"primevue": "^4.5.4",
|
|
82
|
+
"tippy.js": "^6.3.7",
|
|
83
|
+
"tiptap-text-direction": "^0.4.0",
|
|
84
|
+
"typescript": "~5.9.3",
|
|
85
|
+
"vite": "^7.3.1",
|
|
86
|
+
"vite-plugin-dts": "^5.0.3",
|
|
87
|
+
"vue": "^3.5.29",
|
|
88
|
+
"vue-i18n": "^11.3.0"
|
|
58
89
|
}
|
|
59
90
|
}
|