@norio-office/rich-text 0.8.0 → 0.8.2

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 (36) hide show
  1. package/LICENSE +5 -19
  2. package/README.md +145 -2394
  3. package/examples/ai/browser/App.vue +106 -0
  4. package/examples/ai/browser/README.md +30 -0
  5. package/examples/ai/browser/ai-proxy.d.mts +3 -0
  6. package/examples/ai/browser/ai-proxy.mjs +89 -0
  7. package/examples/ai/browser/vite.config.ts +3 -2
  8. package/package.json +4 -3
  9. package/skills/README.md +23 -0
  10. package/skills/assets/editor-screenshot.png +0 -0
  11. package/skills/norio-rich-text/SKILL.md +36 -0
  12. package/skills/norio-rich-text/examples/basic-document.json +7 -0
  13. package/skills/norio-rich-text/examples/custom-blocks-document.json +14 -0
  14. package/skills/norio-rich-text/examples/embedded-file-document.json +6 -0
  15. package/skills/norio-rich-text/examples/local-edit.json +10 -0
  16. package/skills/norio-rich-text/examples/media-reference-document.json +8 -0
  17. package/skills/norio-rich-text/examples/resource-map.json +7 -0
  18. package/skills/norio-rich-text/examples/sample-attachment.txt +1 -0
  19. package/skills/norio-rich-text/examples/streamed-document.ndjson +9 -0
  20. package/skills/norio-rich-text/examples/streamed-selection-edit.ndjson +3 -0
  21. package/skills/norio-rich-text/examples/styled-document.json +10 -0
  22. package/skills/norio-rich-text/examples/table-cell-edit.json +10 -0
  23. package/skills/norio-rich-text/references/document-format.md +17 -0
  24. package/skills/norio-rich-text/references/integration.md +46 -0
  25. package/skills/norio-rich-text/references/nordox-format.md +7 -0
  26. package/skills/norio-rich-text/references/operations.md +13 -0
  27. package/skills/norio-rich-text/references/streaming.md +15 -0
  28. package/skills/norio-rich-text/runtime-manifest.json +39 -0
  29. package/skills/norio-rich-text/schemas/document.schema.json +1580 -0
  30. package/skills/norio-rich-text/schemas/nordox-manifest.schema.json +105 -0
  31. package/skills/norio-rich-text/schemas/patch.schema.json +3164 -0
  32. package/skills/norio-rich-text/schemas/stream-event.schema.json +3409 -0
  33. package/skills/norio-rich-text/schemas/tool-inputs.schema.json +6028 -0
  34. package/skills/norio-rich-text/scripts/check-package.mjs +57 -0
  35. package/skills/norio-rich-text/scripts/generate-schemas.mjs +35 -0
  36. 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
+ }