@allbluecn/shared 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.
Files changed (95) hide show
  1. package/package.json +117 -0
  2. package/src/constants/perf.ts +21 -0
  3. package/src/i18n/client.ts +32 -0
  4. package/src/i18n/config.ts +104 -0
  5. package/src/i18n/detect.ts +43 -0
  6. package/src/i18n/locales/en/agents.json +134 -0
  7. package/src/i18n/locales/en/apps.json +6 -0
  8. package/src/i18n/locales/en/auth.json +88 -0
  9. package/src/i18n/locales/en/billing.json +78 -0
  10. package/src/i18n/locales/en/chat.json +194 -0
  11. package/src/i18n/locales/en/common.json +203 -0
  12. package/src/i18n/locales/en/dashboard.json +38 -0
  13. package/src/i18n/locales/en/design.json +70 -0
  14. package/src/i18n/locales/en/desktop.json +35 -0
  15. package/src/i18n/locales/en/display.json +37 -0
  16. package/src/i18n/locales/en/editor.json +304 -0
  17. package/src/i18n/locales/en/enterprise.json +1 -0
  18. package/src/i18n/locales/en/invite.json +11 -0
  19. package/src/i18n/locales/en/knowledge.json +451 -0
  20. package/src/i18n/locales/en/mindmap.json +28 -0
  21. package/src/i18n/locales/en/prd.json +43 -0
  22. package/src/i18n/locales/en/projects.json +133 -0
  23. package/src/i18n/locales/en/settings.json +375 -0
  24. package/src/i18n/locales/en/share.json +20 -0
  25. package/src/i18n/locales/en/story.json +785 -0
  26. package/src/i18n/locales/en/tags.json +42 -0
  27. package/src/i18n/locales/en/workspace.json +90 -0
  28. package/src/i18n/locales/zh/agents.json +134 -0
  29. package/src/i18n/locales/zh/apps.json +6 -0
  30. package/src/i18n/locales/zh/auth.json +88 -0
  31. package/src/i18n/locales/zh/billing.json +78 -0
  32. package/src/i18n/locales/zh/chat.json +194 -0
  33. package/src/i18n/locales/zh/common.json +203 -0
  34. package/src/i18n/locales/zh/dashboard.json +38 -0
  35. package/src/i18n/locales/zh/design.json +70 -0
  36. package/src/i18n/locales/zh/desktop.json +35 -0
  37. package/src/i18n/locales/zh/display.json +37 -0
  38. package/src/i18n/locales/zh/editor.json +304 -0
  39. package/src/i18n/locales/zh/enterprise.json +1 -0
  40. package/src/i18n/locales/zh/invite.json +11 -0
  41. package/src/i18n/locales/zh/knowledge.json +451 -0
  42. package/src/i18n/locales/zh/mindmap.json +28 -0
  43. package/src/i18n/locales/zh/prd.json +43 -0
  44. package/src/i18n/locales/zh/projects.json +133 -0
  45. package/src/i18n/locales/zh/settings.json +375 -0
  46. package/src/i18n/locales/zh/share.json +20 -0
  47. package/src/i18n/locales/zh/story.json +785 -0
  48. package/src/i18n/locales/zh/tags.json +42 -0
  49. package/src/i18n/locales/zh/workspace.json +90 -0
  50. package/src/i18n/server.ts +18 -0
  51. package/src/i18n/types.ts +5 -0
  52. package/src/index.ts +90 -0
  53. package/src/infrastructure/ai/adapter.ts +59 -0
  54. package/src/infrastructure/ai/cli-detector.ts +64 -0
  55. package/src/infrastructure/ip-location.ts +76 -0
  56. package/src/infrastructure/references/engine.ts +104 -0
  57. package/src/infrastructure/ua-parser.ts +107 -0
  58. package/src/interfaces/ai.ts +38 -0
  59. package/src/interfaces/avatar.ts +22 -0
  60. package/src/interfaces/module.ts +60 -0
  61. package/src/interfaces/references.ts +44 -0
  62. package/src/interfaces/transport.ts +26 -0
  63. package/src/lib/annotation-template.ts +33 -0
  64. package/src/lib/comment-utils.ts +47 -0
  65. package/src/lib/datetime.ts +115 -0
  66. package/src/lib/desktop-detect.ts +27 -0
  67. package/src/lib/outline-utils.ts +57 -0
  68. package/src/lib/pacer.ts +96 -0
  69. package/src/lib/prd/stack-layout.ts +53 -0
  70. package/src/lib/prd-tree-utils.ts +94 -0
  71. package/src/lib/prototype-registry.ts +24 -0
  72. package/src/lib/query-client-seam.ts +14 -0
  73. package/src/lib/share-events.ts +78 -0
  74. package/src/lib/sidebar-utils.ts +21 -0
  75. package/src/lib/stores/prd-canvas-store.ts +69 -0
  76. package/src/lib/tag-colors.ts +35 -0
  77. package/src/lib/time-format.ts +50 -0
  78. package/src/modules/ai-providers/constants.ts +79 -0
  79. package/src/modules/ai-providers/index.ts +21 -0
  80. package/src/modules/ai-providers/seed-data.ts +222 -0
  81. package/src/modules/ai-providers/types.ts +95 -0
  82. package/src/modules/billing/feature-registry.ts +63 -0
  83. package/src/modules/billing/plan-features-schema.ts +11 -0
  84. package/src/modules/billing/resource-registry.ts +80 -0
  85. package/src/modules/definitions/plugin.module.ts +38 -0
  86. package/src/modules/definitions/prd.module.ts +45 -0
  87. package/src/modules/definitions/prototype.module.ts +38 -0
  88. package/src/modules/dependencies/index.ts +186 -0
  89. package/src/modules/register-defaults.ts +27 -0
  90. package/src/modules/registry.ts +53 -0
  91. package/src/server-seam.ts +51 -0
  92. package/src/types/outline.ts +26 -0
  93. package/src/types/prd.ts +90 -0
  94. package/src/types/prototype.ts +12 -0
  95. package/src/virtual.d.ts +4 -0
@@ -0,0 +1,304 @@
1
+ {
2
+ "ai-assistant": "Ai Assistant",
3
+ "ai-is-generating": "Ai Is Generating",
4
+ "ai-annotation": "Ai Annotation",
5
+ "ai-annotation-fill-failed": "Ai Annotation Fill Failed",
6
+ "ai-annotation-fill-error": "Ai Annotation Fill Error",
7
+ "it-support": "It Support",
8
+ "it-project-manager": "It Project Manager",
9
+ "element-not-in-editor-root": "Element Not In Editor Root",
10
+ "element-and-editorroot-required": "Element And Editorroot Required",
11
+ "level-1": "Level 1",
12
+ "heading-1": "Heading 1",
13
+ "level-3": "Level 3",
14
+ "heading-3": "Heading 3",
15
+ "upload": "Upload",
16
+ "insert-row-above": "Insert Row Above",
17
+ "superscript": "Superscript",
18
+ "move-up": "Move Up",
19
+ "underline": "Underline",
20
+ "insert-row-below": "Insert Row Below",
21
+ "subscript": "Subscript",
22
+ "move-down": "Move Down",
23
+ "download-image": "Download Image",
24
+ "justify-align": "Justify Align",
25
+ "chinese": "Chinese",
26
+ "main-section-heading": "Main Section Heading",
27
+ "level-2": "Level 2",
28
+ "heading-2": "Heading 2",
29
+ "heading-5": "Heading 5",
30
+ "product-manager": "Product Manager",
31
+ "product-designer": "Product Designer",
32
+ "hr-specialist": "Hr Specialist",
33
+ "continue-writing": "Continue Writing",
34
+ "code": "Code",
35
+ "code-block": "Code Block",
36
+ "task": "Task",
37
+ "task-list": "Task List",
38
+ "russian": "Russian",
39
+ "informative": "Informative",
40
+ "fix-spelling-grammar": "Fix Spelling Grammar",
41
+ "stop": "Stop",
42
+ "stop-generating": "Stop Generating",
43
+ "child-friendly": "Child Friendly",
44
+ "guest": "Guest",
45
+ "heading-6": "Heading 6",
46
+ "excited": "Excited",
47
+ "writing": "Writing",
48
+ "decrease-indent": "Decrease Indent",
49
+ "divider": "Divider",
50
+ "column-move-up": "Column Move Up",
51
+ "column-move-down": "Column Move Down",
52
+ "column-sort-asc": "Column Sort Asc",
53
+ "column-move-right": "Column Move Right",
54
+ "column-move-left": "Column Move Left",
55
+ "column-actions": "Column Actions",
56
+ "list": "List",
57
+ "column-sort-desc": "Column Sort Desc",
58
+ "liu-qiang": "刘强",
59
+ "liu-yang": "刘洋",
60
+ "just-now": "Just Now",
61
+ "minutesAgo": "{{count}} minutes ago",
62
+ "hoursAgo": "{{count}} hours ago",
63
+ "daysAgo": "{{count}} days ago",
64
+ "creative": "Creative",
65
+ "delete": "Delete",
66
+ "delete-column": "Delete Column",
67
+ "strikethrough": "Strikethrough",
68
+ "delete-row": "Delete Row",
69
+ "bold": "Bold",
70
+ "loading": "Loading",
71
+ "card-view": "Card View",
72
+ "indonesian": "Indonesian",
73
+ "friendly": "Friendly",
74
+ "send": "Send",
75
+ "cancel": "Cancel",
76
+ "narrative": "Narrative",
77
+ "colloquial": "Colloquial",
78
+ "insert-column-right": "Insert Column Right",
79
+ "right-align": "Right Align",
80
+ "merge-cells": "Merge Cells",
81
+ "describe-need-to-ai": "Describe Need To Ai",
82
+ "tell-ai-more-changes": "Tell Ai More Changes",
83
+ "business": "Business",
84
+ "heading-4": "Heading 4",
85
+ "image": "Image",
86
+ "image-right-align": "Image Right Align",
87
+ "image-center-align": "Image Center Align",
88
+ "image-left-align": "Image Left Align",
89
+ "image-caption": "Image Caption",
90
+ "turkish": "Turkish",
91
+ "open-in-new-tab": "Open In New Tab",
92
+ "open-in-new-window": "Open In New Window",
93
+ "increase-indent": "Increase Indent",
94
+ "copy-column": "Copy Column",
95
+ "copy-to-clipboard": "Copy To Clipboard",
96
+ "copy-node": "Copy Node",
97
+ "copy-row": "Copy Row",
98
+ "copy-anchor-link": "Copy Anchor Link",
99
+ "sub-section-heading": "Sub Section Heading",
100
+ "academic": "Academic",
101
+ "objective": "Objective",
102
+ "alignment": "Alignment",
103
+ "center-align": "Center Align",
104
+ "insert-column-left": "Insert Column Left",
105
+ "left-align": "Left Align",
106
+ "marketing-assistant": "Marketing Assistant",
107
+ "marketing-manager": "Marketing Manager",
108
+ "syntax-highlighted-code-block": "Syntax Highlighted Code Block",
109
+ "zoomable-image-with-caption": "Zoomable Image With Caption",
110
+ "graphic-designer": "Graphic Designer",
111
+ "humorous": "Humorous",
112
+ "app": "App",
113
+ "apply-link": "Apply Link",
114
+ "bottom-align": "Bottom Align",
115
+ "start-writing": "Start Writing",
116
+ "quote": "Quote",
117
+ "reference-other-doc": "Reference Other Doc",
118
+ "blockquote": "Blockquote",
119
+ "reference-doc": "Reference Doc",
120
+ "zhang-wei": "张伟",
121
+ "zhang-kai": "张凯",
122
+ "zhang-dawei": "张大伟",
123
+ "zhang-lei": "张磊",
124
+ "todo": "Todo",
125
+ "todo-list": "Todo List",
126
+ "german": "German",
127
+ "mind-map": "Mind Map",
128
+ "summarize": "Summarize",
129
+ "italian": "Italian",
130
+ "emotional": "Emotional",
131
+ "expand": "Expand",
132
+ "expand-text": "Expand Text",
133
+ "split-cells": "Split Cells",
134
+ "hold-to-drag": "Hold To Drag",
135
+ "mention": "Mention",
136
+ "mention-user-or-item": "Mention User Or Item",
137
+ "insert": "Insert",
138
+ "insert-editable-mind-map": "Insert Editable Mind Map",
139
+ "insert-block": "Insert Block",
140
+ "insert-local-file": "Insert Local File",
141
+ "insert-toc": "Insert Toc",
142
+ "insert-emoji": "Insert Emoji",
143
+ "insert-table": "Insert Table",
144
+ "search-emoji": "Search Emoji",
145
+ "undo": "Undo",
146
+ "improve-writing": "Improve Writing",
147
+ "text": "Text",
148
+ "text-color": "Text Color",
149
+ "text-color-options": "Text Color Options",
150
+ "text-highlight": "Text Highlight",
151
+ "doc-not-found": "Doc Not Found",
152
+ "italic": "Italic",
153
+ "unordered": "Unordered",
154
+ "unordered-list": "Unordered List",
155
+ "unordered-bullet-list": "Unordered Bullet List",
156
+ "japanese": "Japanese",
157
+ "show-heading": "Show Heading",
158
+ "normal-paragraph": "Normal Paragraph",
159
+ "smart": "Smart",
160
+ "no-content": "No Content",
161
+ "more-options": "More Options",
162
+ "last-updated": "Last Updated",
163
+ "recently-used-colors": "Recently Used Colors",
164
+ "ordered": "Ordered",
165
+ "ordered-list": "Ordered List",
166
+ "ordered-numbered-list": "Ordered Numbered List",
167
+ "persuasive": "Persuasive",
168
+ "unknown-component": "Unknown Component",
169
+ "li-jun": "李军",
170
+ "li-na": "李娜",
171
+ "li-jianguo": "李建国",
172
+ "li-siqi": "李思琪",
173
+ "heading-view": "Heading View",
174
+ "style": "Style",
175
+ "brown": "Brown",
176
+ "brown-bg": "Brown Bg",
177
+ "orange": "Orange",
178
+ "orange-bg": "Orange Bg",
179
+ "formal": "Formal",
180
+ "paragraph": "Paragraph",
181
+ "horizontal-divider": "Horizontal Divider",
182
+ "laws-regulations": "Laws Regulations",
183
+ "french": "French",
184
+ "annotate": "Annotate",
185
+ "light": "Light",
186
+ "dark": "Dark",
187
+ "add": "Add",
188
+ "add-image": "Add Image",
189
+ "add-or-delete-column": "Add Or Delete Column",
190
+ "add-or-delete-row": "Add Or Delete Row",
191
+ "add-mention": "Add Mention",
192
+ "add-summary": "Add Summary",
193
+ "add-emoji": "Add Emoji",
194
+ "clear-all-content": "Clear All Content",
195
+ "clear-content": "Clear Content",
196
+ "clear-column-content": "Clear Column Content",
197
+ "clear-row-content": "Clear Row Content",
198
+ "gray": "Gray",
199
+ "gray-bg": "Gray Bg",
200
+ "click-to-show-options": "Click To Show Options",
201
+ "wang-ting": "王婷",
202
+ "wang-ming": "王明",
203
+ "wang-xiaoyan": "王晓燕",
204
+ "wang-hao": "王浩",
205
+ "wang-fang": "王芳",
206
+ "generate": "Generate",
207
+ "table-of-contents": "Table Of Contents",
208
+ "remove-link": "Remove Link",
209
+ "remove-highlight": "Remove Highlight",
210
+ "smiley": "Smiley",
211
+ "simplify-text": "Simplify Text",
212
+ "simplify-language": "Simplify Language",
213
+ "pink": "Pink",
214
+ "pink-bg": "Pink Bg",
215
+ "paste-link": "Paste Link",
216
+ "purple": "Purple",
217
+ "purple-bg": "Purple Bg",
218
+ "red": "Red",
219
+ "red-bg": "Red Bg",
220
+ "component-id": "Component Id",
221
+ "drawing": "Drawing",
222
+ "continue": "Continue",
223
+ "green": "Green",
224
+ "green-bg": "Green Bg",
225
+ "numbered": "Numbered",
226
+ "edit": "Edit",
227
+ "abbreviate": "Abbreviate",
228
+ "abbreviate-text": "Abbreviate Text",
229
+ "website-bookmark": "Website Bookmark",
230
+ "translate": "Translate",
231
+ "background-color": "Background Color",
232
+ "confident": "Confident",
233
+ "custom-knowledge-base": "Custom Knowledge Base",
234
+ "english": "English",
235
+ "dutch": "Dutch",
236
+ "portuguese": "Portuguese",
237
+ "blue": "Blue",
238
+ "blue-bg": "Blue Bg",
239
+ "row-move-up": "Row Move Up",
240
+ "row-move-down": "Row Move Down",
241
+ "industry-compliance": "Industry Compliance",
242
+ "inline-code": "Inline Code",
243
+ "row-sort-asc": "Row Sort Asc",
244
+ "row-move-right": "Row Move Right",
245
+ "row-move-left": "Row Move Left",
246
+ "row-actions": "Row Actions",
247
+ "row-sort-desc": "Row Sort Desc",
248
+ "complete-sentence": "Complete Sentence",
249
+ "header-column": "Header Column",
250
+ "header-row": "Header Row",
251
+ "emoji": "Emoji",
252
+ "emoji-style": "Emoji Style",
253
+ "table": "Table",
254
+ "table-cell-options": "Table Cell Options",
255
+ "spanish": "Spanish",
256
+ "let-ai-generate": "Let Ai Generate",
257
+ "dictionary-entry": "Dictionary Entry",
258
+ "poetic": "Poetic",
259
+ "tone": "Tone",
260
+ "tone-adjust-options": "Tone Adjust Options",
261
+ "language": "Language",
262
+ "write-new-paragraph": "Write New Paragraph",
263
+ "please-retry": "Please Retry",
264
+ "adjust-tone": "Adjust Tone",
265
+ "finance-head": "Finance Head",
266
+ "zhao-min": "赵敏",
267
+ "zhao-xiaomeng": "赵晓萌",
268
+ "vietnamese": "Vietnamese",
269
+ "convert-to": "Convert To",
270
+ "fit-width": "Fit Width",
271
+ "select": "Select",
272
+ "redo": "Redo",
273
+ "re-upload": "Re Upload",
274
+ "reset-format": "Reset Format",
275
+ "retry": "Retry",
276
+ "link": "Link",
277
+ "link-edit": "Link Edit",
278
+ "sales-rep": "Sales Rep",
279
+ "sales-manager": "Sales Manager",
280
+ "ask-ai": "Ask Ai",
281
+ "ask-ai-assistant": "Ask Ai Assistant",
282
+ "arabic": "Arabic",
283
+ "chen-li": "陈丽",
284
+ "chen-xue": "陈雪",
285
+ "chen-jing": "陈静",
286
+ "casual": "Casual",
287
+ "korean": "Korean",
288
+ "top-level-heading": "Top Level Heading",
289
+ "top-align": "Top Align",
290
+ "color": "Color",
291
+ "highlight": "Highlight",
292
+ "highlight-text": "Highlight Text",
293
+ "highlight-color": "Highlight Color",
294
+ "yellow": "Yellow",
295
+ "yellow-bg": "Yellow Bg",
296
+ "table-select": "Select {{x}}x{{y}} table",
297
+ "theme-switch-to": "Switch to {{mode}} mode",
298
+ "default": "Default",
299
+ "default-bg": "Default Bg",
300
+ "inspirational": "Inspirational",
301
+ "continue-from-above": "Context above: {{snippet}}\n\nContinue from the end of the above text. Only write one sentence, do not repeat the above.",
302
+ "convert-to-current": "Convert to (current: {{type}})",
303
+ "text-color-label": "Text color: {{color}}"
304
+ }
@@ -0,0 +1 @@
1
+ {"title":"Enterprise"}
@@ -0,0 +1,11 @@
1
+ {
2
+ "title": "{{owner}} invites you to join their team",
3
+ "seatType": "Seat type",
4
+ "member": "Member",
5
+ "guest": "Guest",
6
+ "accept": "Accept invitation",
7
+ "accepted": "Joined the team",
8
+ "expired": "This invitation has expired",
9
+ "invalid": "This invitation is no longer valid",
10
+ "notFound": "Invitation not found"
11
+ }