@alauda/doom 1.10.12 → 1.12.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 (155) hide show
  1. package/assets/alert.svg +1 -0
  2. package/assets/angle-down.svg +1 -0
  3. package/assets/assistant.svg +1 -0
  4. package/assets/close.svg +1 -0
  5. package/assets/logout.svg +1 -0
  6. package/assets/new-chat.svg +1 -0
  7. package/assets/question-circle.svg +1 -0
  8. package/assets/send.svg +1 -0
  9. package/lib/cli/export.js +1 -1
  10. package/lib/cli/load-config.js +11 -6
  11. package/lib/global/Intelligence/AIAssistant/Chat/ChatRefDocs/index.d.ts +5 -0
  12. package/lib/global/Intelligence/AIAssistant/Chat/ChatRefDocs/index.js +16 -0
  13. package/lib/global/Intelligence/AIAssistant/Chat/ThinkingProcess/index.d.ts +4 -0
  14. package/lib/global/Intelligence/AIAssistant/Chat/ThinkingProcess/index.js +6 -0
  15. package/lib/global/Intelligence/AIAssistant/Chat/index.d.ts +7 -0
  16. package/lib/global/Intelligence/AIAssistant/Chat/index.js +8 -0
  17. package/lib/global/Intelligence/AIAssistant/Preamble/ApiErrorAlert/index.d.ts +5 -0
  18. package/lib/global/Intelligence/AIAssistant/Preamble/ApiErrorAlert/index.js +22 -0
  19. package/lib/global/Intelligence/AIAssistant/Preamble/Button/index.d.ts +8 -0
  20. package/lib/global/Intelligence/AIAssistant/Preamble/Button/index.js +5 -0
  21. package/lib/global/Intelligence/AIAssistant/Preamble/CaptchaInput/index.d.ts +10 -0
  22. package/lib/global/Intelligence/AIAssistant/Preamble/CaptchaInput/index.js +14 -0
  23. package/lib/global/Intelligence/AIAssistant/Preamble/FocusInput/index.d.ts +6 -0
  24. package/lib/global/Intelligence/AIAssistant/Preamble/FocusInput/index.js +19 -0
  25. package/lib/global/Intelligence/AIAssistant/Preamble/FormItem/index.d.ts +16 -0
  26. package/lib/global/Intelligence/AIAssistant/Preamble/FormItem/index.js +27 -0
  27. package/lib/global/Intelligence/AIAssistant/Preamble/Input/index.d.ts +7 -0
  28. package/lib/global/Intelligence/AIAssistant/Preamble/Input/index.js +5 -0
  29. package/lib/global/Intelligence/AIAssistant/Preamble/LoginForm/index.d.ts +3 -0
  30. package/lib/global/Intelligence/AIAssistant/Preamble/LoginForm/index.js +88 -0
  31. package/lib/global/Intelligence/AIAssistant/Preamble/LoginForm/types.d.ts +18 -0
  32. package/lib/global/Intelligence/AIAssistant/Preamble/LoginForm/utils.d.ts +3 -0
  33. package/lib/global/Intelligence/AIAssistant/Preamble/LoginForm/utils.js +7 -0
  34. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/Radio.d.ts +7 -0
  35. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/Radio.js +11 -0
  36. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/RadioGroup.d.ts +11 -0
  37. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/RadioGroup.js +21 -0
  38. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/context.d.ts +7 -0
  39. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/context.js +2 -0
  40. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/index.d.ts +2 -0
  41. package/lib/global/Intelligence/AIAssistant/Preamble/Radio/index.js +2 -0
  42. package/lib/global/Intelligence/AIAssistant/Preamble/index.d.ts +4 -0
  43. package/lib/global/Intelligence/AIAssistant/Preamble/index.js +10 -0
  44. package/lib/global/Intelligence/AIAssistant/Preamble/types.d.ts +9 -0
  45. package/lib/global/Intelligence/AIAssistant/Preamble/types.js +1 -0
  46. package/lib/global/Intelligence/AIAssistant/ResizableUserInput/index.d.ts +8 -0
  47. package/lib/global/Intelligence/AIAssistant/ResizableUserInput/index.js +54 -0
  48. package/lib/global/Intelligence/AIAssistant/Thinking.d.ts +1 -0
  49. package/lib/global/Intelligence/AIAssistant/Thinking.js +15 -0
  50. package/lib/global/Intelligence/AIAssistant/index.d.ts +6 -0
  51. package/lib/global/Intelligence/AIAssistant/index.js +122 -0
  52. package/lib/global/Intelligence/AIAssistant/types.d.ts +14 -0
  53. package/lib/global/Intelligence/AIAssistant/types.js +1 -0
  54. package/lib/global/Intelligence/AIAssistant/utils.d.ts +8 -0
  55. package/lib/global/Intelligence/AIAssistant/utils.js +29 -0
  56. package/lib/global/Intelligence/constants.d.ts +6 -0
  57. package/lib/global/Intelligence/constants.js +21 -0
  58. package/lib/global/Intelligence/context.d.ts +18 -0
  59. package/lib/global/Intelligence/context.js +31 -0
  60. package/lib/global/Intelligence/index.d.ts +2 -0
  61. package/lib/global/Intelligence/index.js +33 -0
  62. package/lib/global/Intelligence/types.d.ts +32 -0
  63. package/lib/global/Intelligence/types.js +6 -0
  64. package/lib/global/Intelligence/utils.d.ts +3 -0
  65. package/lib/global/Intelligence/utils.js +32 -0
  66. package/lib/global/VersionsNav/NavMenuSingleItem.js +2 -2
  67. package/lib/plugins/index.d.ts +0 -1
  68. package/lib/plugins/index.js +0 -1
  69. package/lib/runtime/components/OpenAPIPath.js +2 -3
  70. package/lib/runtime/components/Overview.js +3 -6
  71. package/lib/runtime/components/_utils.d.ts +1 -1
  72. package/lib/runtime/components/_utils.js +2 -4
  73. package/lib/runtime/hooks/index.d.ts +5 -3
  74. package/lib/runtime/hooks/index.js +5 -3
  75. package/lib/runtime/hooks/useInterval.d.ts +1 -0
  76. package/lib/runtime/hooks/useInterval.js +19 -0
  77. package/lib/runtime/hooks/useMemoizedFn.d.ts +1 -0
  78. package/lib/runtime/hooks/useMemoizedFn.js +12 -0
  79. package/lib/runtime/hooks/useTranslation.d.ts +1 -1
  80. package/lib/runtime/translation.d.ts +148 -0
  81. package/lib/runtime/translation.js +111 -0
  82. package/package.json +32 -30
  83. package/styles/ai-assistant.module.scss +61 -0
  84. package/styles/chat-ref-docs.module.scss +50 -0
  85. package/styles/chat.module.scss +72 -0
  86. package/styles/global.scss +2 -0
  87. package/styles/intelligence.module.scss +26 -0
  88. package/styles/intelligence.scss +168 -0
  89. package/styles/preamble.module.scss +27 -0
  90. package/styles/resizable-user-input.module.scss +60 -0
  91. package/LICENSE +0 -21
  92. package/README.md +0 -29
  93. package/lib/cli/export-pdf-core/generatePdf.d.ts +0 -25
  94. package/lib/cli/export-pdf-core/generatePdf.js +0 -91
  95. package/lib/cli/export-pdf-core/index.d.ts +0 -3
  96. package/lib/cli/export-pdf-core/index.js +0 -3
  97. package/lib/cli/export-pdf-core/types.d.ts +0 -15
  98. package/lib/cli/export-pdf-core/utils/convertPathToPosix.d.ts +0 -8
  99. package/lib/cli/export-pdf-core/utils/convertPathToPosix.js +0 -26
  100. package/lib/cli/export-pdf-core/utils/getUrlLink.d.ts +0 -4
  101. package/lib/cli/export-pdf-core/utils/getUrlLink.js +0 -7
  102. package/lib/cli/export-pdf-core/utils/index.d.ts +0 -3
  103. package/lib/cli/export-pdf-core/utils/index.js +0 -3
  104. package/lib/cli/export-pdf-core/utils/mergePDF.d.ts +0 -26
  105. package/lib/cli/export-pdf-core/utils/mergePDF.js +0 -137
  106. package/lib/cli/html-export-pdf/core/index.d.ts +0 -3
  107. package/lib/cli/html-export-pdf/core/index.js +0 -3
  108. package/lib/cli/html-export-pdf/core/outline.d.ts +0 -47
  109. package/lib/cli/html-export-pdf/core/outline.js +0 -217
  110. package/lib/cli/html-export-pdf/core/postprocesser.d.ts +0 -14
  111. package/lib/cli/html-export-pdf/core/postprocesser.js +0 -36
  112. package/lib/cli/html-export-pdf/core/printer.d.ts +0 -59
  113. package/lib/cli/html-export-pdf/core/printer.js +0 -235
  114. package/lib/cli/html-export-pdf/index.d.ts +0 -2
  115. package/lib/cli/html-export-pdf/index.js +0 -2
  116. package/lib/cli/html-export-pdf/utils/cliProgress.d.ts +0 -13
  117. package/lib/cli/html-export-pdf/utils/cliProgress.js +0 -80
  118. package/lib/cli/html-export-pdf/utils/fs.d.ts +0 -5
  119. package/lib/cli/html-export-pdf/utils/fs.js +0 -18
  120. package/lib/cli/html-export-pdf/utils/getAbsFileName.d.ts +0 -1
  121. package/lib/cli/html-export-pdf/utils/getAbsFileName.js +0 -4
  122. package/lib/cli/html-export-pdf/utils/getDirname.d.ts +0 -1
  123. package/lib/cli/html-export-pdf/utils/getDirname.js +0 -5
  124. package/lib/cli/html-export-pdf/utils/index.d.ts +0 -7
  125. package/lib/cli/html-export-pdf/utils/index.js +0 -7
  126. package/lib/cli/html-export-pdf/utils/isValidUrl.d.ts +0 -1
  127. package/lib/cli/html-export-pdf/utils/isValidUrl.js +0 -3
  128. package/lib/cli/html-export-pdf/utils/optionsCustomProcessing.d.ts +0 -2
  129. package/lib/cli/html-export-pdf/utils/optionsCustomProcessing.js +0 -6
  130. package/lib/cli/html-export-pdf/utils/replaceExt.d.ts +0 -1
  131. package/lib/cli/html-export-pdf/utils/replaceExt.js +0 -19
  132. package/lib/cli/merge-pdfs/formatDate.d.ts +0 -1
  133. package/lib/cli/merge-pdfs/formatDate.js +0 -23
  134. package/lib/cli/merge-pdfs/index.d.ts +0 -8
  135. package/lib/cli/merge-pdfs/index.js +0 -62
  136. package/lib/plugins/sitemap/index.d.ts +0 -16
  137. package/lib/plugins/sitemap/index.js +0 -51
  138. package/pyodide/README.md +0 -90
  139. package/pyodide/console.html +0 -259
  140. package/pyodide/ffi.d.ts +0 -1118
  141. package/pyodide/micropip-0.8.0-py3-none-any.whl +0 -0
  142. package/pyodide/package.json +0 -59
  143. package/pyodide/packaging-24.2-py3-none-any.whl +0 -0
  144. package/pyodide/pyodide-lock.json +0 -1
  145. package/pyodide/pyodide.asm.js +0 -17
  146. package/pyodide/pyodide.asm.wasm +0 -0
  147. package/pyodide/pyodide.d.ts +0 -1627
  148. package/pyodide/pyodide.js +0 -6
  149. package/pyodide/pyodide.js.map +0 -1
  150. package/pyodide/pyodide.mjs +0 -4
  151. package/pyodide/pyodide.mjs.map +0 -1
  152. package/pyodide/pypdf-3.8.1-py3-none-any.whl +0 -0
  153. package/pyodide/python_stdlib.zip +0 -0
  154. package/pyodide/repodata.json +0 -1
  155. /package/lib/{cli/export-pdf-core → global/Intelligence/AIAssistant/Preamble/LoginForm}/types.js +0 -0
@@ -17,6 +17,43 @@ declare const en: {
17
17
  download_pdf: string;
18
18
  toc: string;
19
19
  view_docs_as_pdf: string;
20
+ ai_assistant: string;
21
+ close: string;
22
+ exclamation: string;
23
+ semicolon: string;
24
+ period: string;
25
+ colon: string;
26
+ user_login: string;
27
+ user_login_tip: string;
28
+ customer_portal_global: string;
29
+ customer_portal_china: string;
30
+ user_login_region_china_tip: string;
31
+ user_login_region_global_tip: string;
32
+ account_id: string;
33
+ username: string;
34
+ password: string;
35
+ captcha: string;
36
+ login: string;
37
+ current_field: string;
38
+ field_required: string;
39
+ ERR_INTERNET_DISCONNECTED: string;
40
+ AccountDisabledError: string;
41
+ CaptchaError: string;
42
+ LoginError: string;
43
+ NetworkError: string;
44
+ TenantError: string;
45
+ TenantNotFoundError: string;
46
+ logout: string;
47
+ hi_there: string;
48
+ ai_assistant_tip: string;
49
+ ai_assistant_placeholder: string;
50
+ max_chars_exceeded_tip: string;
51
+ thinking: string;
52
+ thinking_process: string;
53
+ referenced_doc_links: string;
54
+ view_more_related_docs: string;
55
+ view_less_related_docs: string;
56
+ new_chat: string;
20
57
  };
21
58
  export type Translation = typeof en;
22
59
  export declare const TRANSLATIONS: {
@@ -39,6 +76,43 @@ export declare const TRANSLATIONS: {
39
76
  download_pdf: string;
40
77
  toc: string;
41
78
  view_docs_as_pdf: string;
79
+ ai_assistant: string;
80
+ close: string;
81
+ exclamation: string;
82
+ semicolon: string;
83
+ period: string;
84
+ colon: string;
85
+ user_login: string;
86
+ user_login_tip: string;
87
+ customer_portal_global: string;
88
+ customer_portal_china: string;
89
+ user_login_region_china_tip: string;
90
+ user_login_region_global_tip: string;
91
+ account_id: string;
92
+ username: string;
93
+ password: string;
94
+ captcha: string;
95
+ login: string;
96
+ current_field: string;
97
+ field_required: string;
98
+ ERR_INTERNET_DISCONNECTED: string;
99
+ AccountDisabledError: string;
100
+ CaptchaError: string;
101
+ LoginError: string;
102
+ NetworkError: string;
103
+ TenantError: string;
104
+ TenantNotFoundError: string;
105
+ logout: string;
106
+ hi_there: string;
107
+ ai_assistant_tip: string;
108
+ ai_assistant_placeholder: string;
109
+ max_chars_exceeded_tip: string;
110
+ thinking: string;
111
+ thinking_process: string;
112
+ referenced_doc_links: string;
113
+ view_more_related_docs: string;
114
+ view_less_related_docs: string;
115
+ new_chat: string;
42
116
  };
43
117
  zh: {
44
118
  collapse_all: string;
@@ -59,6 +133,43 @@ export declare const TRANSLATIONS: {
59
133
  download_pdf: string;
60
134
  toc: string;
61
135
  view_docs_as_pdf: string;
136
+ ai_assistant: string;
137
+ close: string;
138
+ exclamation: string;
139
+ semicolon: string;
140
+ period: string;
141
+ colon: string;
142
+ user_login: string;
143
+ user_login_tip: string;
144
+ customer_portal_global: string;
145
+ customer_portal_china: string;
146
+ user_login_region_china_tip: string;
147
+ user_login_region_global_tip: string;
148
+ account_id: string;
149
+ username: string;
150
+ password: string;
151
+ captcha: string;
152
+ login: string;
153
+ current_field: string;
154
+ field_required: string;
155
+ ERR_INTERNET_DISCONNECTED: string;
156
+ AccountDisabledError: string;
157
+ CaptchaError: string;
158
+ LoginError: string;
159
+ NetworkError: string;
160
+ TenantError: string;
161
+ TenantNotFoundError: string;
162
+ logout: string;
163
+ hi_there: string;
164
+ ai_assistant_tip: string;
165
+ ai_assistant_placeholder: string;
166
+ max_chars_exceeded_tip: string;
167
+ thinking: string;
168
+ thinking_process: string;
169
+ referenced_doc_links: string;
170
+ view_more_related_docs: string;
171
+ view_less_related_docs: string;
172
+ new_chat: string;
62
173
  };
63
174
  ru: {
64
175
  collapse_all: string;
@@ -79,6 +190,43 @@ export declare const TRANSLATIONS: {
79
190
  download_pdf: string;
80
191
  toc: string;
81
192
  view_docs_as_pdf: string;
193
+ ai_assistant: string;
194
+ close: string;
195
+ exclamation: string;
196
+ semicolon: string;
197
+ period: string;
198
+ colon: string;
199
+ user_login: string;
200
+ user_login_tip: string;
201
+ customer_portal_global: string;
202
+ customer_portal_china: string;
203
+ user_login_region_china_tip: string;
204
+ user_login_region_global_tip: string;
205
+ account_id: string;
206
+ username: string;
207
+ password: string;
208
+ captcha: string;
209
+ login: string;
210
+ current_field: string;
211
+ field_required: string;
212
+ ERR_INTERNET_DISCONNECTED: string;
213
+ AccountDisabledError: string;
214
+ CaptchaError: string;
215
+ LoginError: string;
216
+ NetworkError: string;
217
+ TenantError: string;
218
+ TenantNotFoundError: string;
219
+ logout: string;
220
+ hi_there: string;
221
+ ai_assistant_tip: string;
222
+ ai_assistant_placeholder: string;
223
+ max_chars_exceeded_tip: string;
224
+ thinking: string;
225
+ thinking_process: string;
226
+ referenced_doc_links: string;
227
+ view_more_related_docs: string;
228
+ view_less_related_docs: string;
229
+ new_chat: string;
82
230
  };
83
231
  };
84
232
  export {};
@@ -17,6 +17,43 @@ const en = {
17
17
  download_pdf: 'Download PDF',
18
18
  toc: 'TOC',
19
19
  view_docs_as_pdf: 'View full docs as PDF',
20
+ ai_assistant: 'AI Assistant',
21
+ close: 'Close',
22
+ exclamation: '! ',
23
+ semicolon: '; ',
24
+ period: '. ',
25
+ colon: ': ',
26
+ user_login: 'User login',
27
+ user_login_tip: 'Use the same credentials as for the "Customer Portal" site.',
28
+ customer_portal_global: 'Customer Portal Global',
29
+ customer_portal_china: 'Customer Portal China',
30
+ user_login_region_china_tip: 'If you are a customer in the Chinese Mainland, select Customer Portal China;',
31
+ user_login_region_global_tip: 'if you are a customer outside the Chinese Mainland, select Customer Portal Global.',
32
+ account_id: 'Account ID',
33
+ username: 'Username',
34
+ password: 'Password',
35
+ captcha: 'Verification Code',
36
+ login: 'Login',
37
+ current_field: 'The current field ',
38
+ field_required: ' is required',
39
+ ERR_INTERNET_DISCONNECTED: 'Please check your network connection and try again',
40
+ AccountDisabledError: 'Account disabled, please contact administrator or service manager',
41
+ CaptchaError: 'Verification code incorrect, please enter again',
42
+ LoginError: 'Username or password incorrect, please enter again',
43
+ NetworkError: 'Network error, please try again later',
44
+ TenantError: 'Account error, please enter again or contact your service manager',
45
+ TenantNotFoundError: 'Login failed, tenant does not exist',
46
+ logout: 'Logout',
47
+ hi_there: 'Hi there!',
48
+ ai_assistant_tip: "I'm your AI assistant, ready to help with any questions about this documentation!",
49
+ ai_assistant_placeholder: 'Type questions here; press Shift-Enter for new line.',
50
+ max_chars_exceeded_tip: 'Maximum 2000 characters allowed.',
51
+ thinking: 'Thinking',
52
+ thinking_process: 'Thinking process',
53
+ referenced_doc_links: 'Referenced doc links',
54
+ view_more_related_docs: 'View more related docs',
55
+ view_less_related_docs: 'View less related docs',
56
+ new_chat: 'New Chat',
20
57
  };
21
58
  const zh = {
22
59
  collapse_all: '全部收起',
@@ -37,6 +74,43 @@ const zh = {
37
74
  download_pdf: '下载 PDF',
38
75
  toc: '目录',
39
76
  view_docs_as_pdf: '以 PDF 格式查看完整文档',
77
+ ai_assistant: 'AI 助手',
78
+ close: '关闭',
79
+ exclamation: '!',
80
+ semicolon: ';',
81
+ period: '。',
82
+ colon: ':',
83
+ user_login: '用户登录',
84
+ user_login_tip: '使用与“客户门户”站点相同的凭据。',
85
+ customer_portal_global: '客户门户全球',
86
+ customer_portal_china: '客户门户中国',
87
+ user_login_region_china_tip: '如果您是中国大陆的客户,请选择客户门户中国;',
88
+ user_login_region_global_tip: '如果您是中国大陆以外的客户,请选择客户门户全球。',
89
+ account_id: '账号 ID',
90
+ username: '用户名',
91
+ password: '密码',
92
+ captcha: '验证码',
93
+ login: '登录',
94
+ current_field: '当前字段',
95
+ field_required: '不能为空',
96
+ ERR_INTERNET_DISCONNECTED: '网络中断,请检查网络状态再重试',
97
+ AccountDisabledError: '账号已禁用,请联系管理员或服务经理',
98
+ CaptchaError: '验证码错误,请重新输入',
99
+ LoginError: '用户名或密码错误,请重新输入',
100
+ NetworkError: '网络错误,请稍后重试',
101
+ TenantError: '账号错误,请重新输入或联系服务经理',
102
+ TenantNotFoundError: '登录失败,租户不存在',
103
+ logout: '登出',
104
+ hi_there: '你好!',
105
+ ai_assistant_tip: '我是您的 AI 助手,随时准备回答有关此文档的任何问题!',
106
+ ai_assistant_placeholder: '在此输入问题;按 Shift-Enter 换行。',
107
+ max_chars_exceeded_tip: '最多允许 2000 个字符。',
108
+ thinking: '思考中',
109
+ thinking_process: '思考过程',
110
+ referenced_doc_links: '引用的文档链接',
111
+ view_more_related_docs: '查看更多相关文档',
112
+ view_less_related_docs: '查看更少相关文档',
113
+ new_chat: '新会话',
40
114
  };
41
115
  const ru = {
42
116
  collapse_all: 'Свернуть всё',
@@ -57,5 +131,42 @@ const ru = {
57
131
  download_pdf: 'Скачать PDF',
58
132
  toc: 'Содержание',
59
133
  view_docs_as_pdf: 'Просмотреть полную документацию в формате PDF',
134
+ ai_assistant: 'AI Ассистент',
135
+ close: 'Закрыть',
136
+ exclamation: '! ',
137
+ semicolon: '; ',
138
+ period: '. ',
139
+ colon: ': ',
140
+ user_login: 'Вход пользователя',
141
+ user_login_tip: 'Используйте те же учетные данные, что и для сайта "Портал клиентов".',
142
+ customer_portal_global: 'Портал клиентов Глобальный',
143
+ customer_portal_china: 'Портал клиентов Китай',
144
+ user_login_region_china_tip: 'Если вы клиент в материковом Китае, выберите Портал клиентов Китай;',
145
+ user_login_region_global_tip: 'если вы клиент за пределами материкового Китая, выберите Портал клиентов Глобальный.',
146
+ account_id: 'Идентификатор аккаунта',
147
+ username: 'Имя пользователя',
148
+ password: 'Пароль',
149
+ captcha: 'Код подтверждения',
150
+ login: 'Войти',
151
+ current_field: 'Текущее поле ',
152
+ field_required: ' является обязательным',
153
+ ERR_INTERNET_DISCONNECTED: 'Пожалуйста, проверьте подключение к сети и повторите попытку',
154
+ AccountDisabledError: 'Аккаунт отключен, пожалуйста, свяжитесь с администратором или менеджером по обслуживанию',
155
+ CaptchaError: 'Неверный код подтверждения. Пожалуйста, введите снова',
156
+ LoginError: 'Неверное имя пользователя или пароль, пожалуйста, введите снова',
157
+ NetworkError: 'Сетевая ошибка, пожалуйста, попробуйте позже',
158
+ TenantError: 'Ошибка аккаунта, пожалуйста, введите снова или свяжитесь с вашим менеджером по обслуживанию',
159
+ TenantNotFoundError: 'Ошибка входа, арендатор не найден',
160
+ logout: 'Выйти',
161
+ hi_there: 'Привет!',
162
+ ai_assistant_tip: 'Я ваш AI помощник, готов помочь с любыми вопросами по этой документации!',
163
+ ai_assistant_placeholder: 'Введите вопросы здесь; нажмите Shift-Enter для новой строки.',
164
+ max_chars_exceeded_tip: 'Максимум 2000 символов.',
165
+ thinking: 'Думаю',
166
+ thinking_process: 'Процесс мышления',
167
+ referenced_doc_links: 'Ссылки на упомянутые документы',
168
+ view_more_related_docs: 'Посмотреть больше связанных документов',
169
+ view_less_related_docs: 'Посмотреть меньше связанных документов',
170
+ new_chat: 'Новый чат',
60
171
  };
61
172
  export const TRANSLATIONS = { en, zh, ru };
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "1.10.12",
3
+ "version": "1.12.0",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
- "repository": "git+https://github.com/alauda/doom.git",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/alauda/doom.git",
9
+ "directory": "packages/doom"
10
+ },
7
11
  "homepage": "https://github.com/alauda/doom#readme",
8
12
  "license": "MIT",
9
13
  "engines": {
@@ -11,21 +15,21 @@
11
15
  },
12
16
  "bin": "lib/cli/index.js",
13
17
  "exports": {
14
- "./package.json": "./package.json",
18
+ "./assets/*": "./assets/*",
15
19
  "./config": "./lib/config.js",
16
20
  "./cspell": "./lib/cspell.js",
17
21
  "./eslint": "./lib/eslint.js",
18
22
  "./runtime": "./lib/runtime/index.js",
23
+ "./styles/*": "./styles/*",
19
24
  "./theme": "./lib/theme.js",
20
- "./types": "./lib/types.js"
25
+ "./types": "./lib/types.js",
26
+ "./package.json": "./package.json"
21
27
  },
22
28
  "files": [
23
29
  "assets",
24
30
  "global.d.ts",
25
31
  "lib",
26
- "pyodide",
27
- "styles",
28
- "!lib/*.tsbuildinfo"
32
+ "styles"
29
33
  ],
30
34
  "keywords": [
31
35
  "document",
@@ -36,47 +40,48 @@
36
40
  "rspress-plugins"
37
41
  ],
38
42
  "dependencies": {
43
+ "@alauda/doom-export": "^0.1.0",
39
44
  "@cspell/eslint-plugin": "^8.19.4 || ^9.2.0",
40
- "@eslint-react/eslint-plugin": "^1.52.5",
41
- "@inquirer/prompts": "^7.8.3",
45
+ "@eslint-react/eslint-plugin": "^1.52.6",
46
+ "@inquirer/prompts": "^7.8.4",
42
47
  "@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
43
- "@playwright/browser-chromium": "^1.54.2",
48
+ "@playwright/browser-chromium": "^1.55.0",
44
49
  "@rsbuild/plugin-react": "^1.3.5",
45
- "@rsbuild/plugin-sass": "^1.3.5",
50
+ "@rsbuild/plugin-sass": "^1.4.0",
46
51
  "@rsbuild/plugin-svgr": "^1.2.2",
47
52
  "@rsbuild/plugin-yaml": "^1.0.3",
48
- "@rspress/core": "2.0.0-beta.27",
49
- "@rspress/plugin-algolia": "2.0.0-beta.27",
50
- "@rspress/plugin-llms": "2.0.0-beta.27",
51
- "@rspress/shared": "2.0.0-beta.27",
52
- "@shikijs/transformers": "^3.9.2",
53
+ "@rspress/core": "2.0.0-beta.28",
54
+ "@rspress/plugin-algolia": "2.0.0-beta.28",
55
+ "@rspress/plugin-llms": "2.0.0-beta.28",
56
+ "@rspress/plugin-sitemap": "2.0.0-beta.28",
57
+ "@rspress/shared": "2.0.0-beta.28",
58
+ "@shikijs/transformers": "^3.12.0",
53
59
  "@total-typescript/ts-reset": "^0.6.1",
60
+ "ab64": "^0.1.6",
54
61
  "chokidar": "^4.0.3",
55
- "cli-progress": "^3.12.0",
56
62
  "clsx": "^2.1.1",
57
63
  "commander": "^13.1.0 || ^14.0.0",
58
64
  "ejs": "^3.1.10",
59
65
  "es-toolkit": "^1.39.10",
60
- "eslint": "^9.33.0",
66
+ "eslint": "^9.34.0",
61
67
  "eslint-plugin-mdx": "^3.6.2",
62
68
  "globals": "^16.3.0",
63
69
  "html-tag-names": "^2.1.0",
70
+ "jsencrypt": "^3.5.4",
64
71
  "md-attr-parser": "^1.3.0",
65
72
  "mdast-util-mdx": "^3.0.0",
66
73
  "mdast-util-mdx-jsx": "^3.2.0",
67
74
  "mdast-util-phrasing": "^4.1.0",
68
75
  "mdast-util-to-markdown": "^2.1.2",
69
76
  "mdast-util-to-string": "^4.0.0",
70
- "mermaid": "^11.9.0",
71
- "openai": "^5.12.2",
77
+ "mermaid": "^11.10.1",
78
+ "openai": "^5.16.0",
72
79
  "openapi-types": "^12.1.3",
73
80
  "p-ratelimit": "^1.0.1",
74
- "pdf-lib": "^1.17.1",
75
- "pdf-merger-js": "^5.1.2",
76
81
  "picomatch": "^4.0.3",
77
- "playwright": "^1.54.2",
78
82
  "pluralize": "^8.0.0",
79
83
  "react-markdown": "^10.1.0",
84
+ "react-tooltip": "^5.29.1",
80
85
  "rehype-raw": "^7.0.0",
81
86
  "rehype-sanitize": "^6.0.0",
82
87
  "remark-directive": "^4.0.0",
@@ -91,23 +96,20 @@
91
96
  "remark-mdx": "^3.1.0",
92
97
  "remark-message-control": "^8.0.0",
93
98
  "remark-stringify": "^11.0.0",
94
- "shiki": "^3.9.2",
99
+ "shiki": "^3.12.0",
95
100
  "simple-git": "^3.28.0",
96
101
  "string-width": "^7.2.0",
97
102
  "swagger2openapi": "^7.0.8",
98
103
  "tinyglobby": "^0.2.14",
99
104
  "type-fest": "^4.41.0",
100
105
  "typescript": "^5.9.2",
101
- "typescript-eslint": "^8.39.1",
106
+ "typescript-eslint": "^8.41.0",
102
107
  "unified": "^11.0.5",
103
108
  "unified-lint-rule": "^3.0.1",
104
109
  "unist-util-position": "^5.0.0",
105
110
  "unist-util-visit-parents": "^6.0.1",
106
111
  "x-fetch": "^0.2.6",
107
112
  "yaml": "^2.8.1",
108
- "yoctocolors": "^2.1.1"
109
- },
110
- "publishConfig": {
111
- "registry": "https://registry.npmjs.org"
113
+ "yoctocolors": "^2.1.2"
112
114
  }
113
- }
115
+ }
@@ -0,0 +1,61 @@
1
+ .container {
2
+ display: none;
3
+ flex-direction: column;
4
+ position: fixed;
5
+ right: 1rem;
6
+ bottom: 1rem;
7
+ z-index: 10;
8
+ background-color: var(--rp-c-bg);
9
+ width: calc(min(100vw, 440px));
10
+ height: calc(min(100vh, 700px));
11
+ padding: 16px;
12
+ box-shadow: 0px 0px 8px 0px var(--rp-c-divider);
13
+ border-radius: 8px;
14
+
15
+ &.open {
16
+ display: flex;
17
+ }
18
+ }
19
+
20
+ .header {
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: space-between;
24
+ font-weight: 600;
25
+ padding-bottom: 16px;
26
+ }
27
+
28
+ .title {
29
+ display: inline-flex;
30
+ align-items: center;
31
+ }
32
+
33
+ .username {
34
+ margin-left: 8px;
35
+ font-size: 12px;
36
+ font-weight: normal;
37
+ color: var(--rp-c-text-2);
38
+ }
39
+
40
+ .logout {
41
+ cursor: pointer;
42
+ margin-left: 8px;
43
+ color: var(--rp-c-text-2);
44
+ outline: none;
45
+ }
46
+
47
+ .icons {
48
+ display: inline-flex;
49
+ align-items: center;
50
+ }
51
+
52
+ .new-chat {
53
+ margin-right: 18px;
54
+ cursor: pointer;
55
+ }
56
+
57
+ .close {
58
+ cursor: pointer;
59
+ color: var(--rp-c-text-2);
60
+ outline: none;
61
+ }
@@ -0,0 +1,50 @@
1
+ .container {
2
+ padding: 12px;
3
+ background-color: #f2f8fe;
4
+ border-radius: 8px;
5
+ font-size: 12px;
6
+ line-height: calc(16 / 12);
7
+
8
+ + * {
9
+ margin-top: 1rem;
10
+ }
11
+ }
12
+
13
+ .header {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: space-between;
17
+ }
18
+
19
+ .title {
20
+ flex: 1;
21
+ }
22
+
23
+ .action {
24
+ display: inline-flex;
25
+ align-items: center;
26
+ cursor: pointer;
27
+ color: var(--rp-c-link);
28
+ }
29
+
30
+ .icon {
31
+ margin-left: 4px;
32
+ transition: transform 0.2s ease-in-out;
33
+
34
+ &.expanded {
35
+ transform: rotate(180deg);
36
+ }
37
+ }
38
+
39
+ .docs {
40
+ &,
41
+ .doc + .doc {
42
+ margin-top: 8px;
43
+ }
44
+ }
45
+
46
+ .doc {
47
+ overflow: hidden;
48
+ white-space: nowrap;
49
+ text-overflow: ellipsis;
50
+ }
@@ -0,0 +1,72 @@
1
+ .container {
2
+ flex: 1;
3
+ overflow-y: auto;
4
+ margin: 0 -12px 16px;
5
+ padding: 0 12px;
6
+ scroll-behavior: smooth;
7
+ }
8
+
9
+ .chat {
10
+ & + & {
11
+ margin-top: 24px;
12
+ }
13
+ }
14
+
15
+ .content {
16
+ border-radius: 8px;
17
+ font-size: 14px;
18
+ width: calc(100% - 36px);
19
+
20
+ h2 {
21
+ margin-bottom: 0;
22
+ padding-top: 0;
23
+ border: 0;
24
+ }
25
+
26
+ &,
27
+ p {
28
+ line-height: calc(20 / 14);
29
+ }
30
+
31
+ > :global:not(.chat-ref-docs) {
32
+ + {
33
+ h3,
34
+ h4,
35
+ h5,
36
+ h6 {
37
+ margin-top: 0;
38
+ }
39
+ }
40
+
41
+ &:first-child {
42
+ margin-top: 0;
43
+ padding-top: 0;
44
+ border-top: 0;
45
+ }
46
+
47
+ &:last-child {
48
+ margin-bottom: 0;
49
+ padding-bottom: 0;
50
+ border-bottom: 0;
51
+ }
52
+ }
53
+ }
54
+
55
+ .assistant {
56
+ display: flex;
57
+
58
+ .content {
59
+ margin-left: 12px;
60
+ }
61
+ }
62
+
63
+ .icon {
64
+ margin-top: 12px;
65
+ flex-shrink: 0;
66
+ }
67
+
68
+ .user .content {
69
+ margin-left: 36px;
70
+ padding: 12px;
71
+ background-color: var(--rp-c-bg-mute);
72
+ }
@@ -162,3 +162,5 @@ td {
162
162
  content: counters(section, '.') '. ';
163
163
  }
164
164
  }
165
+
166
+ @import 'intelligence.scss';
@@ -0,0 +1,26 @@
1
+ :global html:root {
2
+ --rt-color-dark: #191d24;
3
+ --rt-color-white: rgba(255, 255, 245, 0.93);
4
+
5
+ --rt-opacity: 1;
6
+
7
+ &.dark {
8
+ --rt-color-dark: #fff;
9
+ --rt-color-white: #213547;
10
+ }
11
+ }
12
+
13
+ .entry {
14
+ position: fixed;
15
+ bottom: 15%;
16
+ right: 0;
17
+ display: inline-flex;
18
+ align-items: center;
19
+ background-color: var(--rp-c-bg);
20
+ height: 40px;
21
+ border-top-left-radius: 100px;
22
+ border-bottom-left-radius: 100px;
23
+ box-shadow: 0px 0px 12px 0px var(--rp-c-divider);
24
+ padding-left: 10px;
25
+ padding-right: 8px;
26
+ }