@norio-office/rich-text 0.8.0 → 0.8.3
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/LICENSE +5 -19
- package/README.md +102 -2310
- package/dist/ai/index.js +58 -57
- package/dist/collaboration-presence.d.ts +11 -0
- package/dist/components/BlockColorPanel.vue.d.ts +2 -2
- package/dist/components/CollaborationPresence.vue.d.ts +6 -0
- package/dist/components/RichTextEditor.vue.d.ts +10 -2
- package/dist/components/TableThemePanel.vue.d.ts +4 -4
- package/dist/composables/useDocumentName.d.ts +15 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7278 -7011
- package/dist/index.umd.cjs +104 -54
- package/dist/style.css +1 -1
- package/dist/types.d.ts +12 -0
- package/docs/file-header.md +50 -0
- package/docs/usage.md +5 -0
- package/examples/ai/browser/App.vue +106 -0
- package/examples/ai/browser/README.md +30 -0
- package/examples/ai/browser/ai-proxy.d.mts +3 -0
- package/examples/ai/browser/ai-proxy.mjs +89 -0
- package/examples/ai/browser/vite.config.ts +3 -2
- package/package.json +5 -4
- package/skills/README.md +23 -0
- package/skills/assets/editor-screenshot.png +0 -0
- package/skills/norio-rich-text/SKILL.md +36 -0
- package/skills/norio-rich-text/examples/basic-document.json +7 -0
- package/skills/norio-rich-text/examples/custom-blocks-document.json +14 -0
- package/skills/norio-rich-text/examples/embedded-file-document.json +6 -0
- package/skills/norio-rich-text/examples/local-edit.json +10 -0
- package/skills/norio-rich-text/examples/media-reference-document.json +8 -0
- package/skills/norio-rich-text/examples/resource-map.json +7 -0
- package/skills/norio-rich-text/examples/sample-attachment.txt +1 -0
- package/skills/norio-rich-text/examples/streamed-document.ndjson +9 -0
- package/skills/norio-rich-text/examples/streamed-selection-edit.ndjson +3 -0
- package/skills/norio-rich-text/examples/styled-document.json +10 -0
- package/skills/norio-rich-text/examples/table-cell-edit.json +10 -0
- package/skills/norio-rich-text/references/document-format.md +17 -0
- package/skills/norio-rich-text/references/integration.md +46 -0
- package/skills/norio-rich-text/references/nordox-format.md +7 -0
- package/skills/norio-rich-text/references/operations.md +13 -0
- package/skills/norio-rich-text/references/streaming.md +15 -0
- package/skills/norio-rich-text/runtime-manifest.json +39 -0
- package/skills/norio-rich-text/schemas/document.schema.json +1580 -0
- package/skills/norio-rich-text/schemas/nordox-manifest.schema.json +105 -0
- package/skills/norio-rich-text/schemas/patch.schema.json +3164 -0
- package/skills/norio-rich-text/schemas/stream-event.schema.json +3409 -0
- package/skills/norio-rich-text/schemas/tool-inputs.schema.json +6028 -0
- package/skills/norio-rich-text/scripts/check-package.mjs +57 -0
- package/skills/norio-rich-text/scripts/generate-schemas.mjs +35 -0
- package/skills/norio-rich-text/scripts/rich-text.mjs +152 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://norio-office.github.io/rich-text/nordox-manifest.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"format",
|
|
8
|
+
"formatVersion",
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"title",
|
|
11
|
+
"assetPackaging",
|
|
12
|
+
"resources"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"format": {
|
|
16
|
+
"const": "nordox"
|
|
17
|
+
},
|
|
18
|
+
"formatVersion": {
|
|
19
|
+
"const": 1
|
|
20
|
+
},
|
|
21
|
+
"schemaVersion": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1
|
|
24
|
+
},
|
|
25
|
+
"title": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"assetPackaging": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": [
|
|
32
|
+
"images",
|
|
33
|
+
"videos",
|
|
34
|
+
"files"
|
|
35
|
+
],
|
|
36
|
+
"properties": {
|
|
37
|
+
"images": {
|
|
38
|
+
"enum": [
|
|
39
|
+
"embed",
|
|
40
|
+
"reference"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"videos": {
|
|
44
|
+
"enum": [
|
|
45
|
+
"embed",
|
|
46
|
+
"reference"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"files": {
|
|
50
|
+
"enum": [
|
|
51
|
+
"embed",
|
|
52
|
+
"reference"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"resources": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"required": [
|
|
63
|
+
"id",
|
|
64
|
+
"kind",
|
|
65
|
+
"storage"
|
|
66
|
+
],
|
|
67
|
+
"properties": {
|
|
68
|
+
"id": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"pattern": "^[a-zA-Z0-9_-]{1,128}$"
|
|
71
|
+
},
|
|
72
|
+
"kind": {
|
|
73
|
+
"enum": [
|
|
74
|
+
"image",
|
|
75
|
+
"video",
|
|
76
|
+
"file"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"storage": {
|
|
80
|
+
"enum": [
|
|
81
|
+
"embedded",
|
|
82
|
+
"external"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"path": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"source": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"mimeType": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"name": {
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"byteLength": {
|
|
98
|
+
"type": "integer",
|
|
99
|
+
"minimum": 0
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|