@wakastellar/ui 3.3.3 → 3.5.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.
Files changed (140) hide show
  1. package/dist/badge-BbwO7QeZ.js +1 -0
  2. package/dist/badge-BfiocODp.mjs +23 -0
  3. package/dist/charts.cjs.js +1 -1
  4. package/dist/charts.es.js +1 -1
  5. package/dist/chunk-14q5BKub.js +1 -0
  6. package/dist/{chunk-BH6uBOac.mjs → chunk-Cr9pTUWm.mjs} +5 -5
  7. package/dist/cn-DEtaFQsA.js +1 -0
  8. package/dist/cn-DUn6aSIQ.mjs +24 -0
  9. package/dist/doc.cjs.js +2 -2
  10. package/dist/doc.es.js +19 -19
  11. package/dist/editor.cjs.js +48 -0
  12. package/dist/editor.d.ts +1 -0
  13. package/dist/editor.es.js +6551 -0
  14. package/dist/{exceljs.min-DG9M8IZ1.mjs → exceljs.min-DL1XYDll.mjs} +1 -1
  15. package/dist/{exceljs.min-BuefmDRS.js → exceljs.min-qeIfSCbF.js} +1 -1
  16. package/dist/export.cjs.js +1 -1
  17. package/dist/export.es.js +1 -1
  18. package/dist/index.cjs.js +150 -150
  19. package/dist/index.es.js +26782 -27591
  20. package/dist/input-BfaSAGVw.js +1 -0
  21. package/dist/input-DVr_Qkl8.mjs +14 -0
  22. package/dist/rich-text.cjs.js +1 -1
  23. package/dist/rich-text.es.js +1 -1
  24. package/dist/security-CyBpuklN.mjs +122 -0
  25. package/dist/security-bFWwDrlg.js +1 -0
  26. package/dist/separator-NrkltulH.js +1 -0
  27. package/dist/separator-ibN2mycs.mjs +51 -0
  28. package/dist/src/components/editor/blocks/index.d.ts +51 -0
  29. package/dist/src/components/editor/blocks/waka-acceptance-criteria-block.d.ts +60 -0
  30. package/dist/src/components/editor/blocks/waka-ai-assist-block.d.ts +58 -0
  31. package/dist/src/components/editor/blocks/waka-api-endpoint-block.d.ts +63 -0
  32. package/dist/src/components/editor/blocks/waka-code-playground-block.d.ts +61 -0
  33. package/dist/src/components/editor/blocks/waka-comment-thread-block.d.ts +85 -0
  34. package/dist/src/components/editor/blocks/waka-diagram-block.d.ts +52 -0
  35. package/dist/src/components/editor/blocks/waka-embed-block.d.ts +58 -0
  36. package/dist/src/components/editor/blocks/waka-slash-menu-block.d.ts +67 -0
  37. package/dist/src/components/editor/blocks/waka-user-story-block.d.ts +79 -0
  38. package/dist/src/components/editor/blocks/waka-version-diff-block.d.ts +73 -0
  39. package/dist/src/components/editor/index.d.ts +66 -0
  40. package/dist/src/components/editor/waka-ai-writer.d.ts +80 -0
  41. package/dist/src/components/editor/waka-collaborative-editor.d.ts +93 -0
  42. package/dist/src/components/editor/waka-diff-viewer.d.ts +71 -0
  43. package/dist/src/components/editor/waka-dnd-editor.d.ts +64 -0
  44. package/dist/src/components/editor/waka-document-editor.d.ts +92 -0
  45. package/dist/src/components/editor/waka-editor-elements.d.ts +79 -0
  46. package/dist/src/components/editor/waka-editor-leaves.d.ts +39 -0
  47. package/dist/src/components/editor/waka-editor-plugins.d.ts +41 -0
  48. package/dist/src/components/editor/waka-editor-toolbar.d.ts +20 -0
  49. package/dist/src/components/editor/waka-editor.d.ts +59 -0
  50. package/dist/src/components/editor/waka-floating-toolbar.d.ts +47 -0
  51. package/dist/src/components/editor/waka-markdown-editor.d.ts +60 -0
  52. package/dist/src/components/editor/waka-mention-editor.d.ts +125 -0
  53. package/dist/src/components/editor/waka-slash-menu.d.ts +70 -0
  54. package/dist/src/components/editor/waka-spec-editor.d.ts +88 -0
  55. package/dist/src/components/index.d.ts +1 -15
  56. package/dist/src/editor.d.ts +26 -0
  57. package/dist/textarea-CdQWggYG.js +1 -0
  58. package/dist/textarea-DJDXJ3nd.mjs +23 -0
  59. package/dist/types-C2St0wOW.js +1 -0
  60. package/dist/{types-B6GVaSIP.mjs → types-JnqoLyuv.mjs} +214 -211
  61. package/dist/{useDataTableImport-BPvfo--2.mjs → useDataTableImport-BWUFesPi.mjs} +3 -3
  62. package/dist/{useDataTableImport-Cm_pCKnO.js → useDataTableImport-T7ddpN5k.js} +3 -3
  63. package/dist/waka-doc-renderer-CTxC7Trf.js +3 -0
  64. package/dist/{waka-doc-renderer-BkIvas3z.mjs → waka-doc-renderer-Cw-Xnyen.mjs} +264 -281
  65. package/dist/waka-editor-plugins-DR6tpsUC.mjs +135 -0
  66. package/dist/waka-editor-plugins-sGSh9hn2.js +1 -0
  67. package/dist/waka-rich-text-editor-BlIdtknG.js +1 -0
  68. package/dist/waka-rich-text-editor-D1uA3zbB.js +1 -0
  69. package/dist/waka-rich-text-editor-DgSWiXMW.mjs +342 -0
  70. package/dist/waka-rich-text-editor-DndVJuDw.mjs +2 -0
  71. package/package.json +87 -2
  72. package/src/blocks/footer/index.tsx +1 -6
  73. package/src/blocks/login/index.tsx +1 -7
  74. package/src/blocks/profile/index.tsx +3 -5
  75. package/src/components/editor/blocks/index.ts +182 -0
  76. package/src/components/editor/blocks/waka-acceptance-criteria-block.tsx +326 -0
  77. package/src/components/editor/blocks/waka-ai-assist-block.tsx +284 -0
  78. package/src/components/editor/blocks/waka-api-endpoint-block.tsx +382 -0
  79. package/src/components/editor/blocks/waka-code-playground-block.tsx +331 -0
  80. package/src/components/editor/blocks/waka-comment-thread-block.tsx +448 -0
  81. package/src/components/editor/blocks/waka-diagram-block.tsx +293 -0
  82. package/src/components/editor/blocks/waka-embed-block.tsx +416 -0
  83. package/src/components/editor/blocks/waka-slash-menu-block.tsx +432 -0
  84. package/src/components/editor/blocks/waka-user-story-block.tsx +295 -0
  85. package/src/components/editor/blocks/waka-version-diff-block.tsx +426 -0
  86. package/src/components/editor/index.ts +279 -0
  87. package/src/components/editor/waka-ai-writer.tsx +434 -0
  88. package/src/components/editor/waka-collaborative-editor.tsx +426 -0
  89. package/src/components/editor/waka-diff-viewer.tsx +352 -0
  90. package/src/components/editor/waka-dnd-editor.tsx +284 -0
  91. package/src/components/editor/waka-document-editor.tsx +502 -0
  92. package/src/components/editor/waka-editor-elements.tsx +312 -0
  93. package/src/components/editor/waka-editor-leaves.tsx +101 -0
  94. package/src/components/editor/waka-editor-plugins.ts +207 -0
  95. package/src/components/editor/waka-editor-toolbar.tsx +358 -0
  96. package/src/components/editor/waka-editor.tsx +431 -0
  97. package/src/components/editor/waka-floating-toolbar.tsx +268 -0
  98. package/src/components/editor/waka-markdown-editor.tsx +395 -0
  99. package/src/components/editor/waka-mention-editor.tsx +459 -0
  100. package/src/components/editor/waka-slash-menu.tsx +392 -0
  101. package/src/components/editor/waka-spec-editor.tsx +657 -0
  102. package/src/components/index.ts +1 -18
  103. package/dist/chunk-BDDJmn7V.js +0 -1
  104. package/dist/cn-DnPbmOCy.js +0 -1
  105. package/dist/cn-DpLcAzrf.mjs +0 -22
  106. package/dist/separator-BDReXBvI.mjs +0 -59
  107. package/dist/separator-BKjNl9sI.js +0 -1
  108. package/dist/src/components/waka-actor-badge/index.d.ts +0 -8
  109. package/dist/src/components/waka-actors-list/index.d.ts +0 -18
  110. package/dist/src/components/waka-ai-assistant-button/index.d.ts +0 -8
  111. package/dist/src/components/waka-document-flyover/index.d.ts +0 -10
  112. package/dist/src/components/waka-document-preview-popup/index.d.ts +0 -26
  113. package/dist/src/components/waka-hour-balance-badge/index.d.ts +0 -8
  114. package/dist/src/components/waka-hour-consumption-table/index.d.ts +0 -15
  115. package/dist/src/components/waka-hour-pack-dialog/index.d.ts +0 -8
  116. package/dist/src/components/waka-project-stats-header/index.d.ts +0 -15
  117. package/dist/src/components/waka-step-comment-bubble/index.d.ts +0 -13
  118. package/dist/src/components/waka-step-comment-panel/index.d.ts +0 -20
  119. package/dist/src/components/waka-step-permission-matrix/index.d.ts +0 -12
  120. package/dist/src/components/waka-time-entry-dialog/index.d.ts +0 -16
  121. package/dist/src/components/waka-time-tracking-flyover/index.d.ts +0 -11
  122. package/dist/types-BH9cQRqZ.js +0 -1
  123. package/dist/waka-doc-renderer-BZ2-SqyT.js +0 -3
  124. package/dist/waka-rich-text-editor-BJGlQgpq.js +0 -1
  125. package/dist/waka-rich-text-editor-BJzzxeP1.mjs +0 -361
  126. package/dist/waka-rich-text-editor-wnXLwvUo.js +0 -1
  127. package/src/components/waka-actor-badge/index.tsx +0 -34
  128. package/src/components/waka-actors-list/index.tsx +0 -125
  129. package/src/components/waka-ai-assistant-button/index.tsx +0 -31
  130. package/src/components/waka-document-flyover/index.tsx +0 -36
  131. package/src/components/waka-document-preview-popup/index.tsx +0 -103
  132. package/src/components/waka-hour-balance-badge/index.tsx +0 -43
  133. package/src/components/waka-hour-consumption-table/index.tsx +0 -72
  134. package/src/components/waka-hour-pack-dialog/index.tsx +0 -72
  135. package/src/components/waka-project-stats-header/index.tsx +0 -69
  136. package/src/components/waka-step-comment-bubble/index.tsx +0 -71
  137. package/src/components/waka-step-comment-panel/index.tsx +0 -106
  138. package/src/components/waka-step-permission-matrix/index.tsx +0 -65
  139. package/src/components/waka-time-entry-dialog/index.tsx +0 -131
  140. package/src/components/waka-time-tracking-flyover/index.tsx +0 -41
@@ -0,0 +1,279 @@
1
+ /**
2
+ * WakaEditor — Plate.js rich text editor components for @wakastellar/ui
3
+ *
4
+ * Usage:
5
+ * ```ts
6
+ * import { WakaEditor } from "@wakastellar/ui/editor"
7
+ * import { WakaAIWriter } from "@wakastellar/ui/editor"
8
+ * import { WakaDocumentEditor } from "@wakastellar/ui/editor"
9
+ * ```
10
+ *
11
+ * Core peer dependencies (always required):
12
+ * - platejs (>=52.0.0)
13
+ * - @platejs/basic-nodes (>=52.0.0)
14
+ * - @platejs/table (>=52.0.0)
15
+ * - @platejs/layout (>=52.0.0)
16
+ * - @platejs/callout (>=52.0.0)
17
+ *
18
+ * Optional peer dependencies (install based on components/features used):
19
+ * - @platejs/link — links
20
+ * - @platejs/media — images, videos
21
+ * - @platejs/mention — @mentions (WakaMentionEditor)
22
+ * - @platejs/dnd — drag & drop (WakaDnDEditor)
23
+ * - @platejs/toc — table of contents
24
+ * - @platejs/indent — indentation
25
+ * - @platejs/markdown — markdown import/export (WakaMarkdownEditor)
26
+ * - @platejs/selection — block selection
27
+ * - @platejs/ai — AI features (WakaAIWriter)
28
+ * - @platejs/combobox — slash commands (WakaSlashMenu)
29
+ * - @platejs/floating — floating toolbar (WakaFloatingToolbar)
30
+ * - @platejs/diff — document diff (WakaDiffViewer)
31
+ * - @platejs/emoji — emoji picker
32
+ * - @platejs/resizable — resizable elements
33
+ * - @platejs/yjs — collaborative editing (WakaCollaborativeEditor)
34
+ */
35
+
36
+ // ─── Base editor ─────────────────────────────────────────────────────────────
37
+
38
+ export { WakaEditor } from "./waka-editor"
39
+ export type { WakaEditorProps, SlateNode } from "./waka-editor"
40
+
41
+ // ─── Fixed toolbar ───────────────────────────────────────────────────────────
42
+
43
+ export { WakaEditorToolbar, DEFAULT_TOOLBAR_GROUPS } from "./waka-editor-toolbar"
44
+ export type {
45
+ WakaEditorToolbarProps,
46
+ ToolbarAction,
47
+ ToolbarGroup,
48
+ } from "./waka-editor-toolbar"
49
+
50
+ // ─── Floating toolbar ────────────────────────────────────────────────────────
51
+
52
+ export { WakaFloatingToolbar, DEFAULT_FLOATING_BUTTONS } from "./waka-floating-toolbar"
53
+ export type {
54
+ WakaFloatingToolbarProps,
55
+ FloatingToolbarButton,
56
+ } from "./waka-floating-toolbar"
57
+
58
+ // ─── Slash menu ──────────────────────────────────────────────────────────────
59
+
60
+ export { WakaSlashMenu, DEFAULT_SLASH_COMMANDS, createSlashCommandPlugins } from "./waka-slash-menu"
61
+ export type {
62
+ WakaSlashMenuProps,
63
+ SlashCommand,
64
+ } from "./waka-slash-menu"
65
+
66
+ // ─── AI Writer ───────────────────────────────────────────────────────────────
67
+
68
+ export { WakaAIWriter, DEFAULT_AI_ACTIONS } from "./waka-ai-writer"
69
+ export type {
70
+ WakaAIWriterProps,
71
+ AIAction,
72
+ } from "./waka-ai-writer"
73
+
74
+ // ─── Document editor ─────────────────────────────────────────────────────────
75
+
76
+ export { WakaDocumentEditor } from "./waka-document-editor"
77
+ export type {
78
+ WakaDocumentEditorProps,
79
+ TocEntry,
80
+ } from "./waka-document-editor"
81
+
82
+ // ─── Markdown editor ─────────────────────────────────────────────────────────
83
+
84
+ export { WakaMarkdownEditor } from "./waka-markdown-editor"
85
+ export type {
86
+ WakaMarkdownEditorProps,
87
+ MarkdownEditorMode,
88
+ } from "./waka-markdown-editor"
89
+
90
+ // ─── Spec editor ─────────────────────────────────────────────────────────────
91
+
92
+ export { WakaSpecEditor, DEFAULT_SPEC_TEMPLATES } from "./waka-spec-editor"
93
+ export type {
94
+ WakaSpecEditorProps,
95
+ SpecBlockTemplate,
96
+ } from "./waka-spec-editor"
97
+
98
+ // ─── DnD editor ──────────────────────────────────────────────────────────────
99
+
100
+ export { WakaDnDEditor } from "./waka-dnd-editor"
101
+ export type { WakaDnDEditorProps } from "./waka-dnd-editor"
102
+
103
+ // ─── Collaborative editor ────────────────────────────────────────────────────
104
+
105
+ export { WakaCollaborativeEditor } from "./waka-collaborative-editor"
106
+ export type {
107
+ WakaCollaborativeEditorProps,
108
+ CollaborationUser,
109
+ CollaborationProviderConfig,
110
+ } from "./waka-collaborative-editor"
111
+
112
+ // ─── Diff viewer ─────────────────────────────────────────────────────────────
113
+
114
+ export { WakaDiffViewer } from "./waka-diff-viewer"
115
+ export type {
116
+ WakaDiffViewerProps,
117
+ DiffStats,
118
+ } from "./waka-diff-viewer"
119
+
120
+ // ─── Mention editor ──────────────────────────────────────────────────────────
121
+
122
+ export { WakaMentionEditor, MentionSuggestions } from "./waka-mention-editor"
123
+ export type {
124
+ WakaMentionEditorProps,
125
+ MentionableUser,
126
+ InsertedMention,
127
+ } from "./waka-mention-editor"
128
+
129
+ // ─── Elements (for custom rendering or extension) ────────────────────────────
130
+
131
+ export {
132
+ TableElement,
133
+ TableRowElement,
134
+ TableCellElement,
135
+ TableCellHeaderElement,
136
+ ColumnGroupElement,
137
+ ColumnElement,
138
+ CalloutElement,
139
+ H1Element,
140
+ H2Element,
141
+ H3Element,
142
+ H4Element,
143
+ H5Element,
144
+ H6Element,
145
+ BlockquoteElement,
146
+ ParagraphElement,
147
+ LinkElement,
148
+ MentionElement,
149
+ SeparatorElement,
150
+ } from "./waka-editor-elements"
151
+ export type { PlateElementProps } from "./waka-editor-elements"
152
+
153
+ // ─── Leaves (for custom rendering or extension) ──────────────────────────────
154
+
155
+ export {
156
+ BoldLeaf,
157
+ ItalicLeaf,
158
+ UnderlineLeaf,
159
+ StrikethroughLeaf,
160
+ CodeLeaf,
161
+ HighlightLeaf,
162
+ SuperscriptLeaf,
163
+ SubscriptLeaf,
164
+ } from "./waka-editor-leaves"
165
+ export type { PlateLeafProps } from "./waka-editor-leaves"
166
+
167
+ // ─── Plugin utilities ────────────────────────────────────────────────────────
168
+
169
+ export {
170
+ loadCorePlugins,
171
+ loadLinkPlugin,
172
+ loadMediaPlugins,
173
+ loadMentionPlugins,
174
+ loadDndPlugin,
175
+ loadTocPlugin,
176
+ loadIndentPlugin,
177
+ loadMarkdownPlugin,
178
+ loadSelectionPlugin,
179
+ loadAIPlugins,
180
+ loadEmojiPlugin,
181
+ loadFloatingPlugin,
182
+ loadDiffPlugin,
183
+ loadComboboxPlugins,
184
+ getPresetLoaders,
185
+ } from "./waka-editor-plugins"
186
+ export type { WakaEditorPreset } from "./waka-editor-plugins"
187
+
188
+ // ─── Custom WakaStart Blocks ────────────────────────────────────────────────
189
+
190
+ export {
191
+ // Block components
192
+ WakaUserStoryBlock,
193
+ WakaAcceptanceCriteriaBlock,
194
+ WakaApiEndpointBlock,
195
+ WakaDiagramBlock,
196
+ WakaAiAssistBlock,
197
+ WakaVersionDiffBlock,
198
+ WakaEmbedBlock,
199
+ WakaCodePlaygroundBlock,
200
+ WakaCommentThreadBlock,
201
+ WakaSlashMenuBlock,
202
+ // Node factories
203
+ createUserStoryNodes,
204
+ createAcceptanceCriteriaNodes,
205
+ createApiEndpointNodes,
206
+ createDiagramNodes,
207
+ createAiAssistNodes,
208
+ createVersionDiffNodes,
209
+ createEmbedNodes,
210
+ createCodePlaygroundNodes,
211
+ createCommentThreadNodes,
212
+ // Plugin factories
213
+ createUserStoryPlugin,
214
+ createAcceptanceCriteriaPlugin,
215
+ createApiEndpointPlugin,
216
+ createDiagramPlugin,
217
+ createAiAssistPlugin,
218
+ createVersionDiffPlugin,
219
+ createEmbedPlugin,
220
+ createCodePlaygroundPlugin,
221
+ createCommentThreadPlugin,
222
+ // Slash menu helpers
223
+ getAllWakaSlashCommands,
224
+ createWakaSlashPlugins,
225
+ WAKA_BLOCK_COMMANDS,
226
+ // Load all at once
227
+ loadAllWakaBlockPlugins,
228
+ // Block type constants
229
+ USER_STORY_BLOCK_TYPE,
230
+ ACCEPTANCE_CRITERIA_BLOCK_TYPE,
231
+ API_ENDPOINT_BLOCK_TYPE,
232
+ DIAGRAM_BLOCK_TYPE,
233
+ AI_ASSIST_BLOCK_TYPE,
234
+ VERSION_DIFF_BLOCK_TYPE,
235
+ EMBED_BLOCK_TYPE,
236
+ CODE_PLAYGROUND_BLOCK_TYPE,
237
+ COMMENT_THREAD_BLOCK_TYPE,
238
+ // URL utilities
239
+ detectEmbedProvider,
240
+ resolveEmbedUrl,
241
+ } from "./blocks"
242
+
243
+ export type {
244
+ // Block element types
245
+ UserStoryElement,
246
+ AcceptanceCriterion,
247
+ AcceptanceCriteriaElement,
248
+ HttpMethod,
249
+ ApiParam,
250
+ ApiResponse,
251
+ ApiEndpointElement,
252
+ DiagramSyntax,
253
+ DiagramElement,
254
+ AiAssistStatus,
255
+ AiAssistElement,
256
+ DiffLine,
257
+ DiffHunk,
258
+ VersionDiffElement,
259
+ EmbedProvider,
260
+ EmbedElement,
261
+ PlaygroundLanguage,
262
+ ExecutionStatus,
263
+ CodePlaygroundElement,
264
+ ThreadComment,
265
+ ThreadStatus,
266
+ CommentThreadElement,
267
+ // Block props types
268
+ WakaUserStoryBlockProps,
269
+ WakaAcceptanceCriteriaBlockProps,
270
+ WakaApiEndpointBlockProps,
271
+ WakaDiagramBlockProps,
272
+ WakaAiAssistBlockProps,
273
+ WakaVersionDiffBlockProps,
274
+ WakaEmbedBlockProps,
275
+ WakaCodePlaygroundBlockProps,
276
+ WakaCommentThreadBlockProps,
277
+ WakaSlashBlockCommand,
278
+ WakaSlashMenuBlockProps,
279
+ } from "./blocks"