@jingyi0605/codingns4dsh 0.2.1-beta.11 → 0.2.1-beta.13

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 (542) hide show
  1. package/README.en.md +7 -5
  2. package/README.md +9 -5
  3. package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +1 -1
  4. package/data/build/dist/bootstrap/index.d.ts +1 -1
  5. package/data/build/dist/client/account-bar.d.ts.map +1 -1
  6. package/data/build/dist/client/account-bar.js +24 -70
  7. package/data/build/dist/client/account-bar.js.map +1 -1
  8. package/data/build/dist/client/adapter-catalog-watch.d.ts +1 -1
  9. package/data/build/dist/client/adapter-catalog-watch.d.ts.map +1 -1
  10. package/data/build/dist/client/adapter-catalog-watch.js +2 -2
  11. package/data/build/dist/client/adapter-catalog-watch.js.map +1 -1
  12. package/data/build/dist/client/bundle.js +35978 -21117
  13. package/data/build/dist/client/bundle.js.map +1 -1
  14. package/data/build/dist/client/cli-management-dialog.d.ts +21 -0
  15. package/data/build/dist/client/cli-management-dialog.d.ts.map +1 -0
  16. package/data/build/dist/client/cli-management-dialog.js +215 -0
  17. package/data/build/dist/client/cli-management-dialog.js.map +1 -0
  18. package/data/build/dist/client/cli-management-terminal.d.ts +9 -0
  19. package/data/build/dist/client/cli-management-terminal.d.ts.map +1 -0
  20. package/data/build/dist/client/cli-management-terminal.js +30 -0
  21. package/data/build/dist/client/cli-management-terminal.js.map +1 -0
  22. package/data/build/dist/client/cli-settings-dialog.d.ts +9 -0
  23. package/data/build/dist/client/cli-settings-dialog.d.ts.map +1 -0
  24. package/data/build/dist/client/cli-settings-dialog.js +45 -0
  25. package/data/build/dist/client/cli-settings-dialog.js.map +1 -0
  26. package/data/build/dist/client/cli-settings-rpc.js +1 -1
  27. package/data/build/dist/client/cli-settings-rpc.js.map +1 -1
  28. package/data/build/dist/client/cli-slots.d.ts +7 -2
  29. package/data/build/dist/client/cli-slots.d.ts.map +1 -1
  30. package/data/build/dist/client/cli-slots.js +44 -12
  31. package/data/build/dist/client/cli-slots.js.map +1 -1
  32. package/data/build/dist/client/client.assistant-configuration-view.js +5 -5
  33. package/data/build/dist/client/client.assistant-configuration-view.js.map +1 -1
  34. package/data/build/dist/client/client.editor-engine.js +4 -1
  35. package/data/build/dist/client/client.editor-engine.js.map +1 -1
  36. package/data/build/dist/client/client.moss-voice-output.js +0 -166
  37. package/data/build/dist/client/client.moss-voice-output.js.map +1 -1
  38. package/data/build/dist/client/client.native-workspace-store.js +4 -4
  39. package/data/build/dist/client/client.native-workspace-store.js.map +1 -1
  40. package/data/build/dist/client/client.primitives-adapter.js +53 -0
  41. package/data/build/dist/client/client.primitives-adapter.js.map +1 -1
  42. package/data/build/dist/client/client.react-dom.js +166 -0
  43. package/data/build/dist/client/client.react-dom.js.map +1 -1
  44. package/data/build/dist/client/client.session-translation.js +25 -1
  45. package/data/build/dist/client/client.session-translation.js.map +1 -1
  46. package/data/build/dist/client/client.transport.js +503 -42
  47. package/data/build/dist/client/client.transport.js.map +1 -1
  48. package/data/build/dist/client/conversation-translation-settings.d.ts +11 -0
  49. package/data/build/dist/client/conversation-translation-settings.d.ts.map +1 -0
  50. package/data/build/dist/client/conversation-translation-settings.js +54 -0
  51. package/data/build/dist/client/conversation-translation-settings.js.map +1 -0
  52. package/data/build/dist/client/desktop-assistant.js +967 -479
  53. package/data/build/dist/client/editor-engine.d.ts +1 -1
  54. package/data/build/dist/client/editor-engine.d.ts.map +1 -1
  55. package/data/build/dist/client/editor-engine.js +4 -1
  56. package/data/build/dist/client/editor-engine.js.map +1 -1
  57. package/data/build/dist/client/features/cli-adapters.d.ts +3 -1
  58. package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -1
  59. package/data/build/dist/client/features/cli-adapters.js +182 -106
  60. package/data/build/dist/client/features/cli-adapters.js.map +1 -1
  61. package/data/build/dist/client/features/file-management.d.ts.map +1 -1
  62. package/data/build/dist/client/features/file-management.js +2 -0
  63. package/data/build/dist/client/features/file-management.js.map +1 -1
  64. package/data/build/dist/client/features/index.d.ts.map +1 -1
  65. package/data/build/dist/client/features/index.js +2 -0
  66. package/data/build/dist/client/features/index.js.map +1 -1
  67. package/data/build/dist/client/features/peer-host.d.ts.map +1 -1
  68. package/data/build/dist/client/features/peer-host.js +3 -0
  69. package/data/build/dist/client/features/peer-host.js.map +1 -1
  70. package/data/build/dist/client/features/quick-apps.d.ts +3 -0
  71. package/data/build/dist/client/features/quick-apps.d.ts.map +1 -0
  72. package/data/build/dist/client/features/quick-apps.js +14 -0
  73. package/data/build/dist/client/features/quick-apps.js.map +1 -0
  74. package/data/build/dist/client/features/session-translation.d.ts.map +1 -1
  75. package/data/build/dist/client/features/session-translation.js +7 -1
  76. package/data/build/dist/client/features/session-translation.js.map +1 -1
  77. package/data/build/dist/client/html-workspace-files.d.ts +4 -0
  78. package/data/build/dist/client/html-workspace-files.d.ts.map +1 -0
  79. package/data/build/dist/client/html-workspace-files.js +114 -0
  80. package/data/build/dist/client/html-workspace-files.js.map +1 -0
  81. package/data/build/dist/client/locale.d.ts.map +1 -1
  82. package/data/build/dist/client/locale.js +6 -0
  83. package/data/build/dist/client/locale.js.map +1 -1
  84. package/data/build/dist/client/locales/cliManagement.d.ts +3 -0
  85. package/data/build/dist/client/locales/cliManagement.d.ts.map +1 -0
  86. package/data/build/dist/client/locales/cliManagement.js +139 -0
  87. package/data/build/dist/client/locales/cliManagement.js.map +1 -0
  88. package/data/build/dist/client/locales/fileWorkspace.d.ts.map +1 -1
  89. package/data/build/dist/client/locales/fileWorkspace.js +4 -0
  90. package/data/build/dist/client/locales/fileWorkspace.js.map +1 -1
  91. package/data/build/dist/client/locales/panels.d.ts.map +1 -1
  92. package/data/build/dist/client/locales/panels.js +46 -0
  93. package/data/build/dist/client/locales/panels.js.map +1 -1
  94. package/data/build/dist/client/locales/quickApps.d.ts +130 -0
  95. package/data/build/dist/client/locales/quickApps.d.ts.map +1 -0
  96. package/data/build/dist/client/locales/quickApps.js +150 -0
  97. package/data/build/dist/client/locales/quickApps.js.map +1 -0
  98. package/data/build/dist/client/native-model-translation-menu.d.ts.map +1 -1
  99. package/data/build/dist/client/native-model-translation-menu.js +3 -1
  100. package/data/build/dist/client/native-model-translation-menu.js.map +1 -1
  101. package/data/build/dist/client/quick-apps/client.d.ts +29 -0
  102. package/data/build/dist/client/quick-apps/client.d.ts.map +1 -0
  103. package/data/build/dist/client/quick-apps/client.js +68 -0
  104. package/data/build/dist/client/quick-apps/client.js.map +1 -0
  105. package/data/build/dist/client/quick-apps/document.d.ts +26 -0
  106. package/data/build/dist/client/quick-apps/document.d.ts.map +1 -0
  107. package/data/build/dist/client/quick-apps/document.js +110 -0
  108. package/data/build/dist/client/quick-apps/document.js.map +1 -0
  109. package/data/build/dist/client/quick-apps/file-picker.d.ts +14 -0
  110. package/data/build/dist/client/quick-apps/file-picker.d.ts.map +1 -0
  111. package/data/build/dist/client/quick-apps/file-picker.js +51 -0
  112. package/data/build/dist/client/quick-apps/file-picker.js.map +1 -0
  113. package/data/build/dist/client/quick-apps/launcher.d.ts +7 -0
  114. package/data/build/dist/client/quick-apps/launcher.d.ts.map +1 -0
  115. package/data/build/dist/client/quick-apps/launcher.js +252 -0
  116. package/data/build/dist/client/quick-apps/launcher.js.map +1 -0
  117. package/data/build/dist/client/quick-apps/presentation.d.ts +16 -0
  118. package/data/build/dist/client/quick-apps/presentation.d.ts.map +1 -0
  119. package/data/build/dist/client/quick-apps/presentation.js +31 -0
  120. package/data/build/dist/client/quick-apps/presentation.js.map +1 -0
  121. package/data/build/dist/client/quick-apps/reorder-animation.d.ts +6 -0
  122. package/data/build/dist/client/quick-apps/reorder-animation.d.ts.map +1 -0
  123. package/data/build/dist/client/quick-apps/reorder-animation.js +50 -0
  124. package/data/build/dist/client/quick-apps/reorder-animation.js.map +1 -0
  125. package/data/build/dist/client/quick-apps/reorder.d.ts +26 -0
  126. package/data/build/dist/client/quick-apps/reorder.d.ts.map +1 -0
  127. package/data/build/dist/client/quick-apps/reorder.js +128 -0
  128. package/data/build/dist/client/quick-apps/reorder.js.map +1 -0
  129. package/data/build/dist/client/quick-apps/styles.d.ts +3 -0
  130. package/data/build/dist/client/quick-apps/styles.d.ts.map +1 -0
  131. package/data/build/dist/client/quick-apps/styles.js +143 -0
  132. package/data/build/dist/client/quick-apps/styles.js.map +1 -0
  133. package/data/build/dist/client/quick-apps/ui.d.ts +20 -0
  134. package/data/build/dist/client/quick-apps/ui.d.ts.map +1 -0
  135. package/data/build/dist/client/quick-apps/ui.js +21 -0
  136. package/data/build/dist/client/quick-apps/ui.js.map +1 -0
  137. package/data/build/dist/client/quick-apps/viewer.d.ts +16 -0
  138. package/data/build/dist/client/quick-apps/viewer.d.ts.map +1 -0
  139. package/data/build/dist/client/quick-apps/viewer.js +155 -0
  140. package/data/build/dist/client/quick-apps/viewer.js.map +1 -0
  141. package/data/build/dist/client/quick-apps/workspace-picker.d.ts +19 -0
  142. package/data/build/dist/client/quick-apps/workspace-picker.d.ts.map +1 -0
  143. package/data/build/dist/client/quick-apps/workspace-picker.js +30 -0
  144. package/data/build/dist/client/quick-apps/workspace-picker.js.map +1 -0
  145. package/data/build/dist/client/session-translation-chat.d.ts +10 -4
  146. package/data/build/dist/client/session-translation-chat.d.ts.map +1 -1
  147. package/data/build/dist/client/session-translation-chat.js +154 -52
  148. package/data/build/dist/client/session-translation-chat.js.map +1 -1
  149. package/data/build/dist/client/session-translation-pending-dom.d.ts +1 -1
  150. package/data/build/dist/client/session-translation-pending-dom.d.ts.map +1 -1
  151. package/data/build/dist/client/session-translation-pending-dom.js +4 -4
  152. package/data/build/dist/client/session-translation-pending-dom.js.map +1 -1
  153. package/data/build/dist/client/session-translation-retry.d.ts +16 -0
  154. package/data/build/dist/client/session-translation-retry.d.ts.map +1 -0
  155. package/data/build/dist/client/session-translation-retry.js +66 -0
  156. package/data/build/dist/client/session-translation-retry.js.map +1 -0
  157. package/data/build/dist/client/session-translation-rules.d.ts +13 -0
  158. package/data/build/dist/client/session-translation-rules.d.ts.map +1 -0
  159. package/data/build/dist/client/session-translation-rules.js +58 -0
  160. package/data/build/dist/client/session-translation-rules.js.map +1 -0
  161. package/data/build/dist/client/sidebar-footer-style.d.ts +13 -0
  162. package/data/build/dist/client/sidebar-footer-style.d.ts.map +1 -0
  163. package/data/build/dist/client/sidebar-footer-style.js +54 -0
  164. package/data/build/dist/client/sidebar-footer-style.js.map +1 -0
  165. package/data/build/dist/client/style.css +276 -276
  166. package/data/build/dist/client/terminal/model.d.ts.map +1 -1
  167. package/data/build/dist/client/terminal/model.js +2 -1
  168. package/data/build/dist/client/terminal/model.js.map +1 -1
  169. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts +4 -0
  170. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts.map +1 -0
  171. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js +8 -0
  172. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js.map +1 -0
  173. package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.d.ts.map +1 -1
  174. package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js +4 -13
  175. package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js.map +1 -1
  176. package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js +1 -1
  177. package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js.map +1 -1
  178. package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts +19 -0
  179. package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts.map +1 -0
  180. package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js +39 -0
  181. package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js.map +1 -0
  182. package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +18 -0
  183. package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts.map +1 -1
  184. package/data/build/dist/dsh-capabilities/client/primitives-adapter.js +21 -0
  185. package/data/build/dist/dsh-capabilities/client/primitives-adapter.js.map +1 -1
  186. package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.d.ts +18 -0
  187. package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.d.ts.map +1 -0
  188. package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.js +11 -0
  189. package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.js.map +1 -0
  190. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts +8 -0
  191. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts.map +1 -0
  192. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js +100 -0
  193. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js.map +1 -0
  194. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts +3 -0
  195. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts.map +1 -0
  196. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js +22 -0
  197. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js.map +1 -0
  198. package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts +2 -0
  199. package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts.map +1 -1
  200. package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js +28 -0
  201. package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js.map +1 -1
  202. package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts +10 -0
  203. package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts.map +1 -0
  204. package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js +34 -0
  205. package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js.map +1 -0
  206. package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.d.ts +21 -0
  207. package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.d.ts.map +1 -0
  208. package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.js +11 -0
  209. package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.js.map +1 -0
  210. package/data/build/dist/dsh-capabilities/host/quick-app-credentials.d.ts +11 -0
  211. package/data/build/dist/dsh-capabilities/host/quick-app-credentials.d.ts.map +1 -0
  212. package/data/build/dist/dsh-capabilities/host/quick-app-credentials.js +97 -0
  213. package/data/build/dist/dsh-capabilities/host/quick-app-credentials.js.map +1 -0
  214. package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.d.ts +36 -0
  215. package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.d.ts.map +1 -0
  216. package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.js +164 -0
  217. package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.js.map +1 -0
  218. package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.d.ts +44 -0
  219. package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.d.ts.map +1 -0
  220. package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.js +240 -0
  221. package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.js.map +1 -0
  222. package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.d.ts +37 -0
  223. package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.d.ts.map +1 -0
  224. package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.js +35 -0
  225. package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.js.map +1 -0
  226. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.d.ts +13 -0
  227. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.d.ts.map +1 -0
  228. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.js +30 -0
  229. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.js.map +1 -0
  230. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.d.ts +21 -0
  231. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.d.ts.map +1 -0
  232. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.js +132 -0
  233. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.js.map +1 -0
  234. package/data/build/dist/dsh-capabilities/host/quick-app-transport.d.ts +10 -0
  235. package/data/build/dist/dsh-capabilities/host/quick-app-transport.d.ts.map +1 -0
  236. package/data/build/dist/dsh-capabilities/host/quick-app-transport.js +33 -0
  237. package/data/build/dist/dsh-capabilities/host/quick-app-transport.js.map +1 -0
  238. package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts +17 -0
  239. package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts.map +1 -0
  240. package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js +37 -0
  241. package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js.map +1 -0
  242. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts +17 -0
  243. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts.map +1 -0
  244. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js +45 -0
  245. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js.map +1 -0
  246. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts +7 -0
  247. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts.map +1 -0
  248. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js +18 -0
  249. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js.map +1 -0
  250. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts +28 -0
  251. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts.map +1 -0
  252. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js +31 -0
  253. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js.map +1 -0
  254. package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.d.ts +13 -0
  255. package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.d.ts.map +1 -0
  256. package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.js +24 -0
  257. package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.js.map +1 -0
  258. package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -1
  259. package/data/build/dist/dsh-capabilities/matrix.js +19 -5
  260. package/data/build/dist/dsh-capabilities/matrix.js.map +1 -1
  261. package/data/build/dist/dsh-capabilities/routes.d.ts +1 -0
  262. package/data/build/dist/dsh-capabilities/routes.d.ts.map +1 -1
  263. package/data/build/dist/dsh-capabilities/routes.js +41 -5
  264. package/data/build/dist/dsh-capabilities/routes.js.map +1 -1
  265. package/data/build/dist/dsh-capabilities/types.d.ts +1 -1
  266. package/data/build/dist/dsh-capabilities/types.d.ts.map +1 -1
  267. package/data/build/dist/dsh-capabilities/types.js.map +1 -1
  268. package/data/build/dist/host/cli-adapters/antigravity-driver.js +1 -1
  269. package/data/build/dist/host/cli-adapters/antigravity-driver.js.map +1 -1
  270. package/data/build/dist/host/cli-adapters/attachment-utils.d.ts +4 -3
  271. package/data/build/dist/host/cli-adapters/attachment-utils.d.ts.map +1 -1
  272. package/data/build/dist/host/cli-adapters/attachment-utils.js +9 -8
  273. package/data/build/dist/host/cli-adapters/attachment-utils.js.map +1 -1
  274. package/data/build/dist/host/cli-adapters/binary-detection.d.ts.map +1 -1
  275. package/data/build/dist/host/cli-adapters/binary-detection.js +7 -3
  276. package/data/build/dist/host/cli-adapters/binary-detection.js.map +1 -1
  277. package/data/build/dist/host/cli-adapters/claude-driver.d.ts +1 -0
  278. package/data/build/dist/host/cli-adapters/claude-driver.d.ts.map +1 -1
  279. package/data/build/dist/host/cli-adapters/claude-driver.js +180 -21
  280. package/data/build/dist/host/cli-adapters/claude-driver.js.map +1 -1
  281. package/data/build/dist/host/cli-adapters/codex-driver.d.ts +18 -0
  282. package/data/build/dist/host/cli-adapters/codex-driver.d.ts.map +1 -1
  283. package/data/build/dist/host/cli-adapters/codex-driver.js +97 -5
  284. package/data/build/dist/host/cli-adapters/codex-driver.js.map +1 -1
  285. package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts +91 -0
  286. package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts.map +1 -0
  287. package/data/build/dist/host/cli-adapters/codex-performance-projection.js +8 -0
  288. package/data/build/dist/host/cli-adapters/codex-performance-projection.js.map +1 -0
  289. package/data/build/dist/host/cli-adapters/codex-performance.d.ts +16 -0
  290. package/data/build/dist/host/cli-adapters/codex-performance.d.ts.map +1 -0
  291. package/data/build/dist/host/cli-adapters/codex-performance.js +81 -0
  292. package/data/build/dist/host/cli-adapters/codex-performance.js.map +1 -0
  293. package/data/build/dist/host/cli-adapters/command-code-driver.js +1 -1
  294. package/data/build/dist/host/cli-adapters/command-code-driver.js.map +1 -1
  295. package/data/build/dist/host/cli-adapters/driver.d.ts +2 -0
  296. package/data/build/dist/host/cli-adapters/driver.d.ts.map +1 -1
  297. package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts +2 -0
  298. package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts.map +1 -1
  299. package/data/build/dist/host/cli-adapters/dsh-message-projector.js +28 -7
  300. package/data/build/dist/host/cli-adapters/dsh-message-projector.js.map +1 -1
  301. package/data/build/dist/host/cli-adapters/feature.d.ts +2 -0
  302. package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -1
  303. package/data/build/dist/host/cli-adapters/feature.js +186 -71
  304. package/data/build/dist/host/cli-adapters/feature.js.map +1 -1
  305. package/data/build/dist/host/cli-adapters/gemini-driver.js +1 -1
  306. package/data/build/dist/host/cli-adapters/gemini-driver.js.map +1 -1
  307. package/data/build/dist/host/cli-adapters/grok-driver.d.ts +3 -0
  308. package/data/build/dist/host/cli-adapters/grok-driver.d.ts.map +1 -1
  309. package/data/build/dist/host/cli-adapters/grok-driver.js +277 -53
  310. package/data/build/dist/host/cli-adapters/grok-driver.js.map +1 -1
  311. package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts +123 -0
  312. package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts.map +1 -0
  313. package/data/build/dist/host/cli-adapters/grok-performance-projection.js +47 -0
  314. package/data/build/dist/host/cli-adapters/grok-performance-projection.js.map +1 -0
  315. package/data/build/dist/host/cli-adapters/grok-usage.d.ts +45 -0
  316. package/data/build/dist/host/cli-adapters/grok-usage.d.ts.map +1 -0
  317. package/data/build/dist/host/cli-adapters/grok-usage.js +197 -0
  318. package/data/build/dist/host/cli-adapters/grok-usage.js.map +1 -0
  319. package/data/build/dist/host/cli-adapters/kimi-driver.js +2 -2
  320. package/data/build/dist/host/cli-adapters/kimi-driver.js.map +1 -1
  321. package/data/build/dist/host/cli-adapters/management-installation.d.ts +5 -0
  322. package/data/build/dist/host/cli-adapters/management-installation.d.ts.map +1 -0
  323. package/data/build/dist/host/cli-adapters/management-installation.js +131 -0
  324. package/data/build/dist/host/cli-adapters/management-installation.js.map +1 -0
  325. package/data/build/dist/host/cli-adapters/management-methods.d.ts +32 -0
  326. package/data/build/dist/host/cli-adapters/management-methods.d.ts.map +1 -0
  327. package/data/build/dist/host/cli-adapters/management-methods.js +135 -0
  328. package/data/build/dist/host/cli-adapters/management-methods.js.map +1 -0
  329. package/data/build/dist/host/cli-adapters/management-process.d.ts +7 -0
  330. package/data/build/dist/host/cli-adapters/management-process.d.ts.map +1 -0
  331. package/data/build/dist/host/cli-adapters/management-process.js +51 -0
  332. package/data/build/dist/host/cli-adapters/management-process.js.map +1 -0
  333. package/data/build/dist/host/cli-adapters/management.d.ts +32 -0
  334. package/data/build/dist/host/cli-adapters/management.d.ts.map +1 -0
  335. package/data/build/dist/host/cli-adapters/management.js +172 -0
  336. package/data/build/dist/host/cli-adapters/management.js.map +1 -0
  337. package/data/build/dist/host/cli-adapters/mcode-driver.js +1 -1
  338. package/data/build/dist/host/cli-adapters/mcode-driver.js.map +1 -1
  339. package/data/build/dist/host/cli-adapters/model-catalog.d.ts +1 -0
  340. package/data/build/dist/host/cli-adapters/model-catalog.d.ts.map +1 -1
  341. package/data/build/dist/host/cli-adapters/model-catalog.js +62 -0
  342. package/data/build/dist/host/cli-adapters/model-catalog.js.map +1 -1
  343. package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts.map +1 -1
  344. package/data/build/dist/host/cli-adapters/native-team-subagent.js +2 -1
  345. package/data/build/dist/host/cli-adapters/native-team-subagent.js.map +1 -1
  346. package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +22 -0
  347. package/data/build/dist/host/cli-adapters/opencode-driver.d.ts.map +1 -1
  348. package/data/build/dist/host/cli-adapters/opencode-driver.js +105 -17
  349. package/data/build/dist/host/cli-adapters/opencode-driver.js.map +1 -1
  350. package/data/build/dist/host/cli-adapters/pi-driver.js +1 -1
  351. package/data/build/dist/host/cli-adapters/pi-driver.js.map +1 -1
  352. package/data/build/dist/host/cli-adapters/process-utils.d.ts +2 -0
  353. package/data/build/dist/host/cli-adapters/process-utils.d.ts.map +1 -1
  354. package/data/build/dist/host/cli-adapters/process-utils.js +16 -11
  355. package/data/build/dist/host/cli-adapters/process-utils.js.map +1 -1
  356. package/data/build/dist/host/cli-adapters/registry.d.ts +3 -0
  357. package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -1
  358. package/data/build/dist/host/cli-adapters/registry.js +56 -21
  359. package/data/build/dist/host/cli-adapters/registry.js.map +1 -1
  360. package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts +74 -0
  361. package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts.map +1 -0
  362. package/data/build/dist/host/cli-adapters/session-performance-projection.js +83 -0
  363. package/data/build/dist/host/cli-adapters/session-performance-projection.js.map +1 -0
  364. package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts +3 -1
  365. package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts.map +1 -1
  366. package/data/build/dist/host/cli-adapters/stream-normalizer.js +2 -0
  367. package/data/build/dist/host/cli-adapters/stream-normalizer.js.map +1 -1
  368. package/data/build/dist/host/cli-adapters/update-check.d.ts +34 -0
  369. package/data/build/dist/host/cli-adapters/update-check.d.ts.map +1 -0
  370. package/data/build/dist/host/cli-adapters/update-check.js +263 -0
  371. package/data/build/dist/host/cli-adapters/update-check.js.map +1 -0
  372. package/data/build/dist/host/cli-adapters/zcode-driver.js +1 -1
  373. package/data/build/dist/host/cli-adapters/zcode-driver.js.map +1 -1
  374. package/data/build/dist/host/features/file-management.d.ts.map +1 -1
  375. package/data/build/dist/host/features/file-management.js +8 -0
  376. package/data/build/dist/host/features/file-management.js.map +1 -1
  377. package/data/build/dist/host/features/global-voice-rpc.d.ts.map +1 -1
  378. package/data/build/dist/host/features/global-voice-rpc.js +2 -3
  379. package/data/build/dist/host/features/global-voice-rpc.js.map +1 -1
  380. package/data/build/dist/host/features/index.d.ts.map +1 -1
  381. package/data/build/dist/host/features/index.js +2 -0
  382. package/data/build/dist/host/features/index.js.map +1 -1
  383. package/data/build/dist/host/features/lan-access-dsh.js +1 -1
  384. package/data/build/dist/host/features/lan-access-dsh.js.map +1 -1
  385. package/data/build/dist/host/features/peer-host.d.ts.map +1 -1
  386. package/data/build/dist/host/features/peer-host.js +13 -6
  387. package/data/build/dist/host/features/peer-host.js.map +1 -1
  388. package/data/build/dist/host/features/quick-apps.d.ts +4 -0
  389. package/data/build/dist/host/features/quick-apps.d.ts.map +1 -0
  390. package/data/build/dist/host/features/quick-apps.js +158 -0
  391. package/data/build/dist/host/features/quick-apps.js.map +1 -0
  392. package/data/build/dist/host/features/session-prompt-translation.d.ts +10 -0
  393. package/data/build/dist/host/features/session-prompt-translation.d.ts.map +1 -0
  394. package/data/build/dist/host/features/session-prompt-translation.js +198 -0
  395. package/data/build/dist/host/features/session-prompt-translation.js.map +1 -0
  396. package/data/build/dist/host/features/session-translation-protection.d.ts +12 -1
  397. package/data/build/dist/host/features/session-translation-protection.d.ts.map +1 -1
  398. package/data/build/dist/host/features/session-translation-protection.js +44 -5
  399. package/data/build/dist/host/features/session-translation-protection.js.map +1 -1
  400. package/data/build/dist/host/features/session-translation-recovery.d.ts +21 -0
  401. package/data/build/dist/host/features/session-translation-recovery.d.ts.map +1 -0
  402. package/data/build/dist/host/features/session-translation-recovery.js +125 -0
  403. package/data/build/dist/host/features/session-translation-recovery.js.map +1 -0
  404. package/data/build/dist/host/features/session-translation-service.d.ts +8 -2
  405. package/data/build/dist/host/features/session-translation-service.d.ts.map +1 -1
  406. package/data/build/dist/host/features/session-translation-service.js +69 -19
  407. package/data/build/dist/host/features/session-translation-service.js.map +1 -1
  408. package/data/build/dist/host/features/session-translation.d.ts.map +1 -1
  409. package/data/build/dist/host/features/session-translation.js +4 -1
  410. package/data/build/dist/host/features/session-translation.js.map +1 -1
  411. package/data/build/dist/host/features/types.d.ts +10 -0
  412. package/data/build/dist/host/features/types.d.ts.map +1 -1
  413. package/data/build/dist/host/html-workspace-files.d.ts +3 -0
  414. package/data/build/dist/host/html-workspace-files.d.ts.map +1 -0
  415. package/data/build/dist/host/html-workspace-files.js +135 -0
  416. package/data/build/dist/host/html-workspace-files.js.map +1 -0
  417. package/data/build/dist/host/index.d.ts.map +1 -1
  418. package/data/build/dist/host/index.js +27 -2
  419. package/data/build/dist/host/index.js.map +1 -1
  420. package/data/build/dist/host/lan-access-dsh.d.ts +5 -1
  421. package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -1
  422. package/data/build/dist/host/lan-access-dsh.js +43 -2
  423. package/data/build/dist/host/lan-access-dsh.js.map +1 -1
  424. package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.d.ts +2 -2
  425. package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.d.ts.map +1 -1
  426. package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.js +10 -9
  427. package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.js.map +1 -1
  428. package/data/build/dist/host/modules/peer-host/peer-host-native-streams.d.ts +3 -3
  429. package/data/build/dist/host/modules/peer-host/peer-host-native-streams.d.ts.map +1 -1
  430. package/data/build/dist/host/modules/peer-host/peer-host-native-streams.js +26 -14
  431. package/data/build/dist/host/modules/peer-host/peer-host-native-streams.js.map +1 -1
  432. package/data/build/dist/host/modules/peer-host/quick-app-gateway.d.ts +5 -0
  433. package/data/build/dist/host/modules/peer-host/quick-app-gateway.d.ts.map +1 -0
  434. package/data/build/dist/host/modules/peer-host/quick-app-gateway.js +27 -0
  435. package/data/build/dist/host/modules/peer-host/quick-app-gateway.js.map +1 -0
  436. package/data/build/dist/host/modules/quick-apps/browse.d.ts +5 -0
  437. package/data/build/dist/host/modules/quick-apps/browse.d.ts.map +1 -0
  438. package/data/build/dist/host/modules/quick-apps/browse.js +37 -0
  439. package/data/build/dist/host/modules/quick-apps/browse.js.map +1 -0
  440. package/data/build/dist/host/modules/quick-apps/code-revision.d.ts +4 -0
  441. package/data/build/dist/host/modules/quick-apps/code-revision.d.ts.map +1 -0
  442. package/data/build/dist/host/modules/quick-apps/code-revision.js +39 -0
  443. package/data/build/dist/host/modules/quick-apps/code-revision.js.map +1 -0
  444. package/data/build/dist/host/modules/quick-apps/documents.d.ts +14 -0
  445. package/data/build/dist/host/modules/quick-apps/documents.d.ts.map +1 -0
  446. package/data/build/dist/host/modules/quick-apps/documents.js +87 -0
  447. package/data/build/dist/host/modules/quick-apps/documents.js.map +1 -0
  448. package/data/build/dist/host/modules/quick-apps/errors.d.ts +8 -0
  449. package/data/build/dist/host/modules/quick-apps/errors.d.ts.map +1 -0
  450. package/data/build/dist/host/modules/quick-apps/errors.js +15 -0
  451. package/data/build/dist/host/modules/quick-apps/errors.js.map +1 -0
  452. package/data/build/dist/host/modules/quick-apps/file-api.d.ts +30 -0
  453. package/data/build/dist/host/modules/quick-apps/file-api.d.ts.map +1 -0
  454. package/data/build/dist/host/modules/quick-apps/file-api.js +149 -0
  455. package/data/build/dist/host/modules/quick-apps/file-api.js.map +1 -0
  456. package/data/build/dist/host/modules/quick-apps/launches.d.ts +35 -0
  457. package/data/build/dist/host/modules/quick-apps/launches.d.ts.map +1 -0
  458. package/data/build/dist/host/modules/quick-apps/launches.js +80 -0
  459. package/data/build/dist/host/modules/quick-apps/launches.js.map +1 -0
  460. package/data/build/dist/host/modules/quick-apps/paths.d.ts +14 -0
  461. package/data/build/dist/host/modules/quick-apps/paths.d.ts.map +1 -0
  462. package/data/build/dist/host/modules/quick-apps/paths.js +72 -0
  463. package/data/build/dist/host/modules/quick-apps/paths.js.map +1 -0
  464. package/data/build/dist/host/modules/quick-apps/registry.d.ts +30 -0
  465. package/data/build/dist/host/modules/quick-apps/registry.d.ts.map +1 -0
  466. package/data/build/dist/host/modules/quick-apps/registry.js +186 -0
  467. package/data/build/dist/host/modules/quick-apps/registry.js.map +1 -0
  468. package/data/build/dist/host/modules/quick-apps/remote.d.ts +38 -0
  469. package/data/build/dist/host/modules/quick-apps/remote.d.ts.map +1 -0
  470. package/data/build/dist/host/modules/quick-apps/remote.js +237 -0
  471. package/data/build/dist/host/modules/quick-apps/remote.js.map +1 -0
  472. package/data/build/dist/host/modules/quick-apps/service.d.ts +27 -0
  473. package/data/build/dist/host/modules/quick-apps/service.d.ts.map +1 -0
  474. package/data/build/dist/host/modules/quick-apps/service.js +170 -0
  475. package/data/build/dist/host/modules/quick-apps/service.js.map +1 -0
  476. package/data/build/dist/host/modules/quick-apps/static-handler.d.ts +8 -0
  477. package/data/build/dist/host/modules/quick-apps/static-handler.d.ts.map +1 -0
  478. package/data/build/dist/host/modules/quick-apps/static-handler.js +181 -0
  479. package/data/build/dist/host/modules/quick-apps/static-handler.js.map +1 -0
  480. package/data/build/dist/host/native-session-bridge.d.ts +7 -1
  481. package/data/build/dist/host/native-session-bridge.d.ts.map +1 -1
  482. package/data/build/dist/host/native-session-bridge.js +8 -13
  483. package/data/build/dist/host/native-session-bridge.js.map +1 -1
  484. package/data/build/dist/host/rpc.d.ts.map +1 -1
  485. package/data/build/dist/host/rpc.js +21 -10
  486. package/data/build/dist/host/rpc.js.map +1 -1
  487. package/data/build/dist/host/settings.d.ts.map +1 -1
  488. package/data/build/dist/host/settings.js +18 -1
  489. package/data/build/dist/host/settings.js.map +1 -1
  490. package/data/build/dist/host/workspace-file-mutations.d.ts +2 -0
  491. package/data/build/dist/host/workspace-file-mutations.d.ts.map +1 -0
  492. package/data/build/dist/host/workspace-file-mutations.js +15 -0
  493. package/data/build/dist/host/workspace-file-mutations.js.map +1 -0
  494. package/data/build/dist/shared/attachment-prompts.d.ts +11 -0
  495. package/data/build/dist/shared/attachment-prompts.d.ts.map +1 -0
  496. package/data/build/dist/shared/attachment-prompts.js +17 -0
  497. package/data/build/dist/shared/attachment-prompts.js.map +1 -0
  498. package/data/build/dist/shared/codex-performance.d.ts +3 -0
  499. package/data/build/dist/shared/codex-performance.d.ts.map +1 -0
  500. package/data/build/dist/shared/codex-performance.js +2 -0
  501. package/data/build/dist/shared/codex-performance.js.map +1 -0
  502. package/data/build/dist/shared/contracts/cli-adapter.d.ts +33 -1
  503. package/data/build/dist/shared/contracts/cli-adapter.d.ts.map +1 -1
  504. package/data/build/dist/shared/contracts/cli-management.d.ts +29 -0
  505. package/data/build/dist/shared/contracts/cli-management.d.ts.map +1 -0
  506. package/data/build/dist/shared/contracts/cli-management.js +2 -0
  507. package/data/build/dist/shared/contracts/cli-management.js.map +1 -0
  508. package/data/build/dist/shared/contracts/config.d.ts +2 -0
  509. package/data/build/dist/shared/contracts/config.d.ts.map +1 -1
  510. package/data/build/dist/shared/contracts/config.js.map +1 -1
  511. package/data/build/dist/shared/contracts/errors.d.ts +2 -2
  512. package/data/build/dist/shared/contracts/quick-apps.d.ts +68 -0
  513. package/data/build/dist/shared/contracts/quick-apps.d.ts.map +1 -0
  514. package/data/build/dist/shared/contracts/quick-apps.js +4 -0
  515. package/data/build/dist/shared/contracts/quick-apps.js.map +1 -0
  516. package/data/build/dist/shared/contracts/session-translation.d.ts +20 -2
  517. package/data/build/dist/shared/contracts/session-translation.d.ts.map +1 -1
  518. package/data/build/dist/shared/contracts/session-translation.js +24 -0
  519. package/data/build/dist/shared/contracts/session-translation.js.map +1 -1
  520. package/data/build/dist/shared/contracts/version.d.ts +4 -4
  521. package/data/build/dist/shared/contracts/version.js +3 -3
  522. package/data/build/dist/shared/peer-host-http-routes.d.ts +4 -0
  523. package/data/build/dist/shared/peer-host-http-routes.d.ts.map +1 -1
  524. package/data/build/dist/shared/peer-host-http-routes.js +4 -0
  525. package/data/build/dist/shared/peer-host-http-routes.js.map +1 -1
  526. package/data/build/dist/shared/quick-app-proxy-path.d.ts +6 -0
  527. package/data/build/dist/shared/quick-app-proxy-path.d.ts.map +1 -0
  528. package/data/build/dist/shared/quick-app-proxy-path.js +18 -0
  529. package/data/build/dist/shared/quick-app-proxy-path.js.map +1 -0
  530. package/data/build/dist/shared/quick-apps-bootstrap-locale.d.ts +7 -0
  531. package/data/build/dist/shared/quick-apps-bootstrap-locale.d.ts.map +1 -0
  532. package/data/build/dist/shared/quick-apps-bootstrap-locale.js +10 -0
  533. package/data/build/dist/shared/quick-apps-bootstrap-locale.js.map +1 -0
  534. package/data/build/dist/shared/request-performance.d.ts +15 -0
  535. package/data/build/dist/shared/request-performance.d.ts.map +1 -0
  536. package/data/build/dist/shared/request-performance.js +3 -0
  537. package/data/build/dist/shared/request-performance.js.map +1 -0
  538. package/package.json +35 -34
  539. package/profile/README.md +2 -2
  540. package/profile/package.json +3 -3
  541. package/profile/version.json +3 -3
  542. package/version.json +3 -3
@@ -0,0 +1,50 @@
1
+ /** Animate grid moves on the outer shortcut, independently of the tile's jiggle. */
2
+ export function createQuickAppReorderAnimation() {
3
+ let positions = new Map();
4
+ const animations = new Map();
5
+ const dispose = () => {
6
+ for (const animation of animations.values())
7
+ animation.cancel();
8
+ animations.clear();
9
+ positions.clear();
10
+ };
11
+ return {
12
+ dispose,
13
+ update(root) {
14
+ const reducedMotion = root.ownerDocument.defaultView?.matchMedia('(prefers-reduced-motion: reduce)').matches === true;
15
+ const next = new Map();
16
+ for (const node of root.querySelectorAll(':scope > [data-quick-app-id]')) {
17
+ const position = { left: node.offsetLeft, top: node.offsetTop };
18
+ next.set(node, position);
19
+ const previous = positions.get(node);
20
+ if (reducedMotion) {
21
+ animations.get(node)?.cancel();
22
+ animations.delete(node);
23
+ continue;
24
+ }
25
+ if (!previous || typeof node.animate !== 'function' || previous.left === position.left && previous.top === position.top)
26
+ continue;
27
+ const visual = node.getBoundingClientRect();
28
+ animations.get(node)?.cancel();
29
+ const layout = node.getBoundingClientRect();
30
+ const x = previous.left - position.left + visual.left - layout.left;
31
+ const y = previous.top - position.top + visual.top - layout.top;
32
+ if (x === 0 && y === 0) {
33
+ animations.delete(node);
34
+ continue;
35
+ }
36
+ const animation = node.animate([{ transform: `translate(${x}px, ${y}px)` }, { transform: 'translate(0, 0)' }], { duration: 220, easing: 'cubic-bezier(0.2, 0.8, 0.2, 1)' });
37
+ animations.set(node, animation);
38
+ void animation.finished.then(() => { if (animations.get(node) === animation)
39
+ animations.delete(node); }, () => undefined);
40
+ }
41
+ for (const [node, animation] of animations)
42
+ if (!next.has(node)) {
43
+ animation.cancel();
44
+ animations.delete(node);
45
+ }
46
+ positions = next;
47
+ },
48
+ };
49
+ }
50
+ //# sourceMappingURL=reorder-animation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reorder-animation.js","sourceRoot":"","sources":["../../../../../src/client/quick-apps/reorder-animation.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,MAAM,UAAU,8BAA8B;IAC5C,IAAI,SAAS,GAAG,IAAI,GAAG,EAA8C,CAAA;IACrE,MAAM,UAAU,GAAG,IAAI,GAAG,EAA0B,CAAA;IACpD,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,KAAK,MAAM,SAAS,IAAI,UAAU,CAAC,MAAM,EAAE;YAAE,SAAS,CAAC,MAAM,EAAE,CAAA;QAC/D,UAAU,CAAC,KAAK,EAAE,CAAA;QAClB,SAAS,CAAC,KAAK,EAAE,CAAA;IACnB,CAAC,CAAA;IACD,OAAO;QACL,OAAO;QACP,MAAM,CAAC,IAAiB;YACtB,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,U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,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;oBAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBAAC,SAAQ;gBAAC,CAAC;gBAC7D,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC,EAC3G,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,gCAAgC,EAAE,CAAC,CAAA;gBAC9D,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;gBAC/B,KAAK,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,SAAS;oBAAE,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;YAC1H,CAAC;YACD,KAAK,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,UAAU;gBAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;oBAAC,SAAS,CAAC,MAAM,EAAE,CAAC;oBAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;gBAAC,CAAC;YAChH,SAAS,GAAG,IAAI,CAAA;QAClB,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { KeyboardEvent, MouseEvent, PointerEvent } from 'react';
2
+ /** Keep pointer previews local; only a completed drop persists the new order. */
3
+ export declare function useQuickAppReorder<T extends {
4
+ id: string;
5
+ }>({ apps, enabled, onReorder }: {
6
+ apps: readonly T[];
7
+ enabled: boolean;
8
+ onReorder: (apps: readonly T[]) => void;
9
+ }): {
10
+ apps: readonly T[];
11
+ gridProps: {
12
+ ref: import("react").RefObject<HTMLDivElement>;
13
+ onPointerMove: (event: PointerEvent<HTMLDivElement>) => void;
14
+ onPointerUp: (event: PointerEvent<HTMLDivElement>) => void;
15
+ onPointerCancel: (event: PointerEvent<HTMLDivElement>) => void;
16
+ onLostPointerCapture: (event: PointerEvent<HTMLDivElement>) => void;
17
+ onKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
18
+ onClickCapture: (event: MouseEvent<HTMLDivElement>) => void;
19
+ };
20
+ tileProps: (id: string) => {
21
+ 'data-dragging': boolean;
22
+ onPointerDown: (event: PointerEvent<HTMLButtonElement>) => void;
23
+ onKeyDown: (event: KeyboardEvent<HTMLButtonElement>) => void;
24
+ };
25
+ };
26
+ //# sourceMappingURL=reorder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reorder.d.ts","sourceRoot":"","sources":["../../../../../src/client/quick-apps/reorder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAmBpE,iFAAiF;AACjF,wBAAgB,kBAAkB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE;IACzF,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,KAAK,IAAI,CAAA;CAC9E;;;;+BAqC6B,YAAY,CAAC,cAAc,CAAC;6BAsBjC,YAAY,CAAC,cAAc,CAAC;iCAoBtB,YAAY,CAAC,cAAc,CAAC;sCACvB,YAAY,CAAC,cAAc,CAAC;2BAGvC,aAAa,CAAC,cAAc,CAAC;gCAGxB,UAAU,CAAC,cAAc,CAAC;;oBAIpC,MAAM;;+BAEG,YAAY,CAAC,iBAAiB,CAAC;2BACnC,aAAa,CAAC,iBAAiB,CAAC;;EAGxD"}
@@ -0,0 +1,128 @@
1
+ import { useEffect, useLayoutEffect, useRef, useState } from 'react';
2
+ import { createQuickAppReorderAnimation } from './reorder-animation.js';
3
+ function move(items, from, to) {
4
+ const next = [...items];
5
+ next.splice(to, 0, next.splice(from, 1)[0]);
6
+ return next;
7
+ }
8
+ /** Keep pointer previews local; only a completed drop persists the new order. */
9
+ export function useQuickAppReorder({ apps, enabled, onReorder }) {
10
+ const grid = useRef(null);
11
+ const drag = useRef(null);
12
+ const suppressClick = useRef(false);
13
+ const [preview, setPreview] = useState(null);
14
+ const [animation] = useState(createQuickAppReorderAnimation);
15
+ const displayed = preview?.order ?? apps;
16
+ const orderKey = JSON.stringify(displayed.map(app => app.id));
17
+ useLayoutEffect(() => { if (grid.current)
18
+ animation.update(grid.current); }, [animation, orderKey, enabled]);
19
+ useEffect(() => () => animation.dispose(), [animation]);
20
+ const release = () => {
21
+ const current = drag.current;
22
+ drag.current = null;
23
+ if (current?.capture.hasPointerCapture(current.pointerId))
24
+ current.capture.releasePointerCapture(current.pointerId);
25
+ };
26
+ const cancel = () => { release(); setPreview(null); };
27
+ useEffect(() => { cancel(); return release; }, [apps, enabled]);
28
+ const targetAt = (event) => {
29
+ const root = grid.current;
30
+ if (!root)
31
+ return undefined;
32
+ const bounds = root.getBoundingClientRect();
33
+ if (event.clientX < bounds.left || event.clientX > bounds.right || event.clientY < bounds.top || event.clientY > bounds.bottom)
34
+ return undefined;
35
+ const x = event.clientX - bounds.left + root.scrollLeft;
36
+ const y = event.clientY - bounds.top + root.scrollTop;
37
+ // Hit-test layout slots, not animated tiles passing under a stationary pointer.
38
+ return [...root.querySelectorAll(':scope > [data-quick-app-id]')].find(node => x >= node.offsetLeft && x <= node.offsetLeft + node.offsetWidth && y >= node.offsetTop && y <= node.offsetTop + node.offsetHeight)?.dataset.quickAppId;
39
+ };
40
+ const start = (event, id) => {
41
+ suppressClick.current = false;
42
+ if (!enabled || apps.length < 2 || event.button !== 0 || !event.isPrimary || drag.current)
43
+ return;
44
+ // Capture on the tile first so an ordinary tap still produces its normal click.
45
+ event.currentTarget.setPointerCapture(event.pointerId);
46
+ drag.current = { pointerId: event.pointerId, id, startX: event.clientX, startY: event.clientY,
47
+ active: false, capture: event.currentTarget, order: apps };
48
+ };
49
+ const movePointer = (event) => {
50
+ const current = drag.current;
51
+ const root = grid.current;
52
+ if (!enabled || !current || current.pointerId !== event.pointerId || !root)
53
+ return;
54
+ if (!current.active) {
55
+ if (Math.hypot(event.clientX - current.startX, event.clientY - current.startY) < 6)
56
+ return;
57
+ current.active = true;
58
+ suppressClick.current = true;
59
+ // The grid stays mounted when the dragged tile changes position.
60
+ root.setPointerCapture(event.pointerId);
61
+ current.capture = root;
62
+ }
63
+ event.preventDefault();
64
+ const bounds = root.getBoundingClientRect();
65
+ if (event.clientY < bounds.top + 24)
66
+ root.scrollTop -= 12;
67
+ else if (event.clientY > bounds.bottom - 24)
68
+ root.scrollTop += 12;
69
+ const target = targetAt(event);
70
+ const from = current.order.findIndex(app => app.id === current.id);
71
+ const to = current.order.findIndex(app => app.id === target);
72
+ if (from >= 0 && to >= 0 && from !== to)
73
+ current.order = move(current.order, from, to);
74
+ setPreview({ id: current.id, order: current.order });
75
+ };
76
+ const finish = (event) => {
77
+ const current = drag.current;
78
+ if (!current || current.pointerId !== event.pointerId)
79
+ return;
80
+ const droppedInside = targetAt(event) !== undefined;
81
+ cancel();
82
+ if (enabled && current.active && droppedInside && current.order.some((app, index) => app.id !== apps[index]?.id))
83
+ onReorder(current.order);
84
+ };
85
+ const keyboardMove = (event, id) => {
86
+ if (!enabled || drag.current || !event.altKey || !['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown'].includes(event.key))
87
+ return;
88
+ event.preventDefault();
89
+ const from = apps.findIndex(app => app.id === id);
90
+ const to = from + (event.key === 'ArrowLeft' || event.key === 'ArrowUp' ? -1 : 1);
91
+ if (from >= 0 && to >= 0 && to < apps.length)
92
+ onReorder(move(apps, from, to));
93
+ };
94
+ return {
95
+ apps: displayed,
96
+ gridProps: {
97
+ ref: grid,
98
+ onPointerMove: movePointer,
99
+ onPointerUp: finish,
100
+ onPointerCancel: (event) => { if (drag.current?.pointerId === event.pointerId)
101
+ cancel(); },
102
+ onLostPointerCapture: (event) => {
103
+ if (drag.current?.pointerId === event.pointerId && event.target === drag.current.capture)
104
+ cancel();
105
+ },
106
+ onKeyDown: (event) => {
107
+ if (event.key === 'Escape' && drag.current) {
108
+ event.preventDefault();
109
+ event.stopPropagation();
110
+ cancel();
111
+ }
112
+ },
113
+ onClickCapture: (event) => {
114
+ if (suppressClick.current && event.detail !== 0) {
115
+ event.preventDefault();
116
+ event.stopPropagation();
117
+ suppressClick.current = false;
118
+ }
119
+ },
120
+ },
121
+ tileProps: (id) => ({
122
+ 'data-dragging': preview?.id === id,
123
+ onPointerDown: (event) => start(event, id),
124
+ onKeyDown: (event) => keyboardMove(event, id),
125
+ }),
126
+ };
127
+ }
128
+ //# sourceMappingURL=reorder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reorder.js","sourceRoot":"","sources":["../../../../../src/client/quick-apps/reorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAA;AAYvE,SAAS,IAAI,CAAI,KAAmB,EAAE,IAAY,EAAE,EAAU;IAC5D,MAAM,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,CAAA;IACvB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAA;IAC5C,OAAO,IAAI,CAAA;AACb,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,kBAAkB,CAA2B,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAEtF;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E,MAAM,EAAE,CAAA,CAAC,CAAC;YACvH,oBAAoB,EAAE,CAAC,KAAmC,EAAE,EAAE;gBAC5D,IAAI,IAAI,CAAC,OAAO,EAAE,SAAS,KAAK,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC,OAAO,CAAC,OAAO;oBAAE,MAAM,EAAE,CAAA;YACpG,CAAC;YACD,SAAS,EAAE,CAAC,KAAoC,EAAE,EAAE;gBAClD,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;oBAAC,KAAK,CAAC,cAAc,EAAE,CAAC;oBAAC,KAAK,CAAC,eAAe,EAAE,CAAC;oBAAC,MAAM,EAAE,CAAA;gBAAC,CAAC;YAC3G,CAAC;YACD,cAAc,EAAE,CAAC,KAAiC,EAAE,EAAE;gBACpD,IAAI,aAAa,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAAC,KAAK,CAAC,cAAc,EAAE,CAAC;oBAAC,KAAK,CAAC,eAAe,EAAE,CAAC;oBAAC,aAAa,CAAC,OAAO,GAAG,KAAK,CAAA;gBAAC,CAAC;YACrI,CAAC;SACF;QACD,SAAS,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,CAAC;YAC1B,eAAe,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE;YACnC,aAAa,EAAE,CAAC,KAAsC,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC;YAC3E,SAAS,EAAE,CAAC,KAAuC,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE,EAAE,CAAC;SAChF,CAAC;KACH,CAAA;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Parent ModalAtoms/shortcut-rail layout, scoped to this plugin and mapped to DSH theme tokens. */
2
+ export declare const quickAppsCss: string;
3
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/client/quick-apps/styles.ts"],"names":[],"mappings":"AAGA,oGAAoG;AACpG,eAAO,MAAM,YAAY,QA0IxB,CAAA"}
@@ -0,0 +1,143 @@
1
+ import { dshThemeColor as color } from '../theme.js';
2
+ import { uiFontSize } from '../font-scale.js';
3
+ /** Parent ModalAtoms/shortcut-rail layout, scoped to this plugin and mapped to DSH theme tokens. */
4
+ export const quickAppsCss = `
5
+ .codingns-quick-app-rail{width:100%;min-width:0;margin:0 0 6px;color:${color.labelPrimary};font-size:${uiFontSize(12)}}
6
+ .codingns-quick-app-rail .qa-rail-header{display:flex;align-items:center;gap:6px;min-height:32px;margin-bottom:4px}
7
+ .codingns-quick-app-rail[data-collapsed=true] .qa-rail-header{margin-bottom:0}
8
+ .codingns-quick-app-rail h2{margin:0;font-size:${uiFontSize(12)};font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
9
+ .codingns-quick-app-rail .qa-count{color:${color.labelSecondary};font-size:${uiFontSize(11)}}
10
+ .codingns-quick-app-rail .qa-controls{display:flex;gap:2px;margin-left:auto;margin-right:var(--codingns-quick-app-controls-end,0px)}
11
+ .codingns-quick-app-rail .qa-control{display:inline-flex;align-items:center;justify-content:center;background:transparent;color:${color.labelSecondary};cursor:pointer;box-shadow:none;transition:background 140ms ease,color 140ms ease}
12
+ .codingns-quick-app-rail .qa-control svg{width:16px;height:16px;flex:none}
13
+ .codingns-quick-app-rail .qa-control:hover:not(:disabled),.codingns-quick-app-rail .qa-tile:hover:not(:disabled){background:${color.hoverBackground}}
14
+ .codingns-quick-app-rail .qa-control:hover:not(:disabled){color:${color.labelPrimary}}
15
+ .codingns-quick-app-rail button:disabled{opacity:.5;cursor:not-allowed}
16
+ .codingns-quick-app-rail button:focus-visible{outline:2px solid ${color.accent};outline-offset:-2px}
17
+ .codingns-quick-app-rail .qa-grid{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding-top:4px;max-height:min(35dvh,240px);overflow:auto;overscroll-behavior:contain}
18
+ .codingns-quick-app-rail .qa-shortcut{position:relative;min-width:0}
19
+ .codingns-quick-app-rail .qa-tile{display:flex;flex-direction:column;align-items:center;gap:3px;width:100%;min-width:0;min-height:54px;padding:2px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer}
20
+ .codingns-quick-app-rail .qa-tile[data-editing=true]{outline:1px dashed ${color.border};outline-offset:-1px;cursor:grab;touch-action:none;user-select:none;-webkit-touch-callout:none}
21
+ .codingns-quick-app-rail .qa-tile[data-dragging=true]{cursor:grabbing;background:${color.hoverBackground};outline:2px solid ${color.accent};opacity:.7}
22
+ .codingns-quick-app-rail .qa-tile[data-editing=true]{animation:qa-tile-shake .28s ease-in-out infinite alternate;transform-origin:50% 60%}
23
+ .codingns-quick-app-rail .qa-tile[data-dragging=true]{animation-play-state:paused}
24
+ .codingns-quick-app-rail .qa-shortcut:nth-child(even) .qa-tile[data-editing=true]{animation-delay:-.14s}
25
+ .codingns-quick-app-rail .qa-remove{position:absolute;top:0;right:max(0px,calc(50% - 24px));display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:2px;border:1px solid ${color.cardBackground};border-radius:50%;background:${color.error};color:#fff;cursor:pointer}
26
+ .codingns-quick-app-rail .qa-remove svg{width:12px;height:12px;flex:none}
27
+ .codingns-quick-app-rail .qa-remove:hover:not(:disabled){filter:brightness(1.15)}
28
+ @keyframes qa-tile-shake{from{transform:rotate(-2deg)}to{transform:rotate(2deg)}}
29
+ @media(prefers-reduced-motion:reduce){.codingns-quick-app-rail .qa-tile[data-editing=true]{animation:none}}
30
+ .codingns-quick-app-rail .qa-tile[data-unavailable=true]:not([data-editing=true]){opacity:.6}
31
+ .codingns-quick-app-rail .qa-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;border-radius:9px;font-size:${uiFontSize(12)};font-weight:700}
32
+ .codingns-quick-app-rail .qa-tile strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:${uiFontSize(10)};font-weight:600;line-height:1.4;max-width:100%}
33
+ .codingns-quick-app-rail .qa-unavailable{position:absolute;right:-2px;bottom:-2px;border-radius:50%;width:12px;height:12px;line-height:12px;font-size:10px;background:${color.pageBackground};color:${color.error}}
34
+ .codingns-quick-app-rail .qa-rail-notice{margin:4px 0 8px;font-size:${uiFontSize(11)};line-height:1.5;color:${color.labelSecondary};overflow-wrap:anywhere;max-height:72px;overflow:auto}
35
+ .codingns-quick-app-rail .qa-rail-notice[role=alert]{color:${color.error}}
36
+ .codingns-quick-app-rail[data-wide=false]{width:36px}
37
+ .codingns-quick-app-rail[data-wide=false] .qa-controls{flex-direction:column;margin:0 var(--codingns-quick-app-controls-end,2px) 0 auto}
38
+ .codingns-quick-app-rail[data-wide=false] .qa-grid{grid-template-columns:minmax(0,1fr)}
39
+ .codingns-quick-app-rail[data-wide=false] .qa-tile{min-height:36px;justify-content:center}
40
+ .codingns-quick-app-rail[data-wide=false] .qa-tile strong{display:none}
41
+ .codingns-quick-app-rail[data-wide=false] .qa-rail-notice{text-align:center}
42
+ .codingns-quick-app-dialog{width:520px;max-width:100%;max-height:100%;color:${color.labelPrimary};font-size:${uiFontSize(14)};border-radius:var(--dsw-radius-panel,12px);background:${color.menuBackground}}
43
+ .codingns-quick-app-dialog .qa-content{min-height:0;flex:1}
44
+ .codingns-quick-app-dialog .qa-content>div:has(>.qa-body){min-height:0;flex:1;overflow:hidden;margin-top:8px}
45
+ .codingns-quick-app-dialog .qa-body{display:flex;flex-direction:column;gap:16px;min-height:0;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere;padding:2px}
46
+ .codingns-quick-app-dialog .qa-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;width:100%}
47
+ .codingns-quick-app-dialog .qa-button{min-height:34px;height:auto;padding:7px 12px;border:0;border-radius:8px;background:transparent;color:${color.labelPrimary};font-size:${uiFontSize(13)};font-weight:500;line-height:1.4;box-shadow:none}
48
+ .codingns-quick-app-dialog .qa-button:hover:not(:disabled){background:${color.hoverBackground}}
49
+ .codingns-quick-app-dialog .qa-button.qa-danger{color:${color.error}}
50
+ .codingns-quick-app-dialog .qa-button.qa-primary{background:${color.primaryBackground};color:${color.primaryForeground}}
51
+ .codingns-quick-app-dialog .qa-button.qa-primary:hover:not(:disabled){background:${color.primaryHoverBackground}}
52
+ .codingns-quick-app-dialog button:disabled{opacity:.5;cursor:not-allowed}
53
+ .codingns-quick-app-dialog :is(button,select):focus-visible{outline:2px solid ${color.accent};outline-offset:-2px}
54
+ .codingns-quick-app-dialog .qa-help{margin:0;color:${color.labelSecondary};font-size:${uiFontSize(12)};line-height:1.6}
55
+ .codingns-quick-app-dialog .qa-notice{margin:0;color:${color.success};font-size:${uiFontSize(13)};line-height:1.5}
56
+ .codingns-quick-app-dialog .qa-notice[role=alert]{color:${color.error}}
57
+ .codingns-quick-app-dialog .qa-form{display:flex;flex-direction:column;gap:18px;min-width:0}
58
+ .codingns-quick-app-dialog .qa-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:${uiFontSize(12)};font-weight:500}
59
+ /* DSH Input paints its wrapper; the inner input must remain undecorated. */
60
+ .codingns-quick-app-dialog :is(.qa-input,.qa-select,.qa-file-input){box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:40px;border:0;border-radius:8px;background:${color.surfaceSubtle};color:${color.labelPrimary};font:inherit;font-size:${uiFontSize(13)};font-weight:400}
61
+ .codingns-quick-app-dialog :is(.qa-input,.qa-select){padding:0 11px}
62
+ .codingns-quick-app-dialog .qa-input input{width:100%;min-width:0;padding:0;border:0;border-radius:0;outline:none;background:transparent;color:inherit;font:inherit;box-shadow:none}
63
+ .codingns-quick-app-dialog :is(.qa-input,.qa-file-input):focus-within{outline:2px solid ${color.accent};outline-offset:-2px}
64
+ .codingns-quick-app-dialog :is(.qa-input,.qa-file-input):has(input:disabled){opacity:.5}
65
+ .codingns-quick-app-dialog .qa-field .qa-help{font-weight:400}
66
+ .codingns-quick-app-dialog .qa-file-input{display:flex;align-items:center;gap:4px;padding-right:4px}
67
+ .codingns-quick-app-dialog .qa-file-input .qa-input{flex:1;width:0;background:transparent;outline:none;opacity:1}
68
+ .codingns-quick-app-dialog .qa-file-input .qa-browse{flex:none;min-height:32px;padding:6px 9px;white-space:nowrap;color:${color.accent}}
69
+ .codingns-quick-app-dialog .qa-workspace-picker{display:block;width:100%;min-width:0}
70
+ .codingns-quick-app-dialog .qa-workspace-trigger{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:9px 11px;text-align:left;border:0;border-radius:8px;background:${color.surfaceSubtle};color:${color.labelPrimary};font:inherit;cursor:pointer}
71
+ .codingns-quick-app-dialog .qa-workspace-trigger:hover:not(:disabled){background:${color.hoverBackground}}
72
+ .codingns-quick-app-dialog .qa-workspace-trigger>svg{flex:none}
73
+ :is(.codingns-quick-app-dialog,.codingns-quick-app-workspaces) .qa-workspace-label{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0;overflow:hidden}
74
+ :is(.codingns-quick-app-dialog,.codingns-quick-app-workspaces) .qa-workspace-name{font-size:${uiFontSize(13)};font-weight:500}
75
+ :is(.codingns-quick-app-dialog,.codingns-quick-app-workspaces) .qa-workspace-label small{color:${color.labelSecondary};font-size:${uiFontSize(11)};font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
76
+ .codingns-quick-app-workspaces{z-index:10002;width:min(440px,calc(100vw - 24px));max-width:calc(100vw - 24px);background:${color.menuBackground};color:${color.labelPrimary};border:1px solid ${color.menuBorder};border-radius:var(--dsw-radius-lg,12px);box-shadow:${color.prominentShadow}}
77
+ .codingns-quick-app-dialog.qa-file-picker{width:600px;height:min(560px,85dvh)}
78
+ .codingns-quick-app-dialog.qa-file-picker .qa-body{flex:1;gap:12px}
79
+ .codingns-quick-app-dialog .qa-file-location{display:flex;align-items:center;gap:10px}
80
+ .codingns-quick-app-dialog .qa-file-location>svg{flex:none;color:${color.labelSecondary}}
81
+ .codingns-quick-app-dialog .qa-file-toolbar{display:flex;align-items:center;gap:4px;min-width:0;padding:3px;border-radius:8px;background:${color.surfaceSubtle}}
82
+ .codingns-quick-app-dialog .qa-file-tool{display:flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:${color.labelSecondary};cursor:pointer}
83
+ .codingns-quick-app-dialog .qa-file-breadcrumbs{display:flex;flex:1;min-width:0;overflow:auto;align-items:center;gap:2px}
84
+ .codingns-quick-app-dialog .qa-file-crumb{display:flex;align-items:center;gap:2px;flex:none;color:${color.labelSecondary}}
85
+ .codingns-quick-app-dialog .qa-file-breadcrumbs button{flex:none;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;border-radius:5px;background:transparent;color:${color.labelSecondary};padding:6px;font:inherit;font-size:${uiFontSize(12)};cursor:pointer}
86
+ .codingns-quick-app-dialog .qa-file-breadcrumbs button[aria-current]{color:${color.labelPrimary};font-weight:500}
87
+ .codingns-quick-app-dialog :is(.qa-file-tool,.qa-file-breadcrumbs button):hover:not(:disabled){background:${color.hoverBackground}}
88
+ .codingns-quick-app-dialog .qa-file-list{flex:1;min-height:100px;overflow:auto;padding:2px}
89
+ .codingns-quick-app-dialog .qa-file-empty{padding:32px 16px;text-align:center}
90
+ .codingns-quick-app-dialog .qa-file-row{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:7px;background:transparent;color:inherit;text-align:left;font:inherit;font-size:${uiFontSize(13)};cursor:pointer}
91
+ .codingns-quick-app-dialog .qa-file-row svg{flex:none}
92
+ .codingns-quick-app-dialog .qa-file-row span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
93
+ .codingns-quick-app-dialog .qa-file-row:hover{background:${color.hoverBackground}}
94
+ .codingns-quick-app-dialog .qa-file-row[aria-pressed=true]{background:color-mix(in srgb,${color.accent} 12%,transparent);color:${color.accent}}
95
+ .codingns-quick-app-dialog .qa-selected-file{margin:0;min-height:20px;font-size:${uiFontSize(12)};color:${color.labelSecondary};overflow-wrap:anywhere}
96
+ .codingns-quick-app-dialog .qa-field-error{font-size:${uiFontSize(12)};font-weight:400;color:${color.error}}
97
+ .codingns-quick-app-dialog .qa-management{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;border:0;min-width:0}
98
+ .codingns-quick-app-dialog .qa-management .qa-actions{justify-content:flex-start}
99
+ .codingns-quick-app-dialog .qa-management:disabled{opacity:.5}
100
+ /* Native TextPreview/Browser panel geometry; public PathLabel, Tooltip and glyphs retain their own styles. */
101
+ .codingns-quick-app-dialog.qa-viewer{width:80vw;height:85dvh;max-height:100%;gap:0;padding:0;border-radius:var(--dsw-radius-panel,12px)}
102
+ .codingns-quick-app-dialog.qa-viewer.qa-maximized{width:100%;height:100%;border-radius:0}
103
+ [role=presentation]:has(>.qa-viewer.qa-maximized){padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
104
+ .codingns-quick-app-dialog.qa-view-confirm{height:auto;max-height:75dvh}
105
+ .codingns-quick-app-dialog .qa-view-surface{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;color:${color.labelPrimary};background:${color.pageBackground}}
106
+ .codingns-quick-app-dialog :is(.qa-view-titlebar,.qa-view-toolbar){display:flex;flex:none;align-items:center;gap:4px;box-sizing:border-box;height:38px;padding:0 6px 0 16px;border-bottom:.5px solid ${color.menuBorder}}
107
+ .codingns-quick-app-dialog .qa-view-titlebar{gap:8px}
108
+ .codingns-quick-app-dialog .qa-view-titlebar h2{flex:1;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:${uiFontSize(13)};font-weight:500}
109
+ .codingns-quick-app-dialog .qa-view-titlebar>svg{flex:none}
110
+ .codingns-quick-app-dialog .qa-view-tool{display:inline-flex;flex:none;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:var(--dsw-radius-sm,6px);background:transparent;color:${color.labelSecondary};cursor:pointer}
111
+ .codingns-quick-app-dialog .qa-view-tool svg{width:15px;height:15px}
112
+ .codingns-quick-app-dialog .qa-view-tool:hover:not(:disabled){color:${color.labelPrimary};background:${color.hoverBackground}}
113
+ .codingns-quick-app-dialog .qa-view-tool:disabled{color:var(--dsw-alias-label-quaternary,GrayText);cursor:default}
114
+ .codingns-quick-app-dialog .qa-view-path{margin-right:12px;font-size:${uiFontSize(12)}}
115
+ .codingns-quick-app-dialog .qa-view-mode{flex:none;border:0;border-radius:var(--dsw-radius-sm,6px);padding:5px 8px;color:${color.labelSecondary};background:transparent;font:inherit;font-size:${uiFontSize(12)};cursor:pointer}
116
+ .codingns-quick-app-dialog .qa-view-mode:hover{background:${color.hoverBackground}}
117
+ .codingns-quick-app-dialog .qa-document-dirty{color:${color.labelSecondary};font-size:9px}
118
+ .codingns-quick-app-dialog .qa-document-markdown{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:12px 18px;overflow-wrap:anywhere}
119
+ .codingns-quick-app-dialog .qa-document-markdown img{max-width:100%}
120
+ .codingns-quick-app-dialog .qa-document-editor{flex:1;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
121
+ .codingns-quick-app-dialog .qa-editor-host{flex:1;min-height:0;overflow:hidden}
122
+ .codingns-quick-app-dialog .qa-editor-host .cm-editor{min-height:0;font-size:var(--dsh-content-font-size-secondary,${uiFontSize(13)})}
123
+ .codingns-quick-app-dialog .qa-view-progress{flex:none;height:2px;background:${color.accent};opacity:.7}
124
+ .codingns-quick-app-dialog .qa-view-status{flex:none;margin:0;padding:6px 12px;color:${color.labelSecondary};font-size:${uiFontSize(12)}}
125
+ .codingns-quick-app-dialog .qa-view-html .qa-view-toolbar{padding:5px 6px}
126
+ .codingns-quick-app-dialog .qa-view-address{flex:1;min-width:0;height:28px;box-sizing:border-box;padding:0 9px;border:.5px solid ${color.border};border-radius:var(--dsw-radius-sm,6px);background:${color.cardBackground};color:${color.labelPrimary};font:inherit;font-size:${uiFontSize(12)}}
127
+ .codingns-quick-app-dialog .qa-view-text-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;white-space:pre;--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2)}
128
+ .codingns-quick-app-dialog .qa-view-text-body[data-wrap=true]{white-space:pre-wrap;overflow-wrap:anywhere}
129
+ .codingns-quick-app-dialog .qa-view-text-body pre{box-sizing:border-box;min-width:100%;min-height:100%;margin:0;padding:8px 18px;font-family:var(--dsw-font-mono,${color.codeFont});font-size:var(--dsh-content-font-size-secondary,${uiFontSize(13)});line-height:1.6;white-space:inherit}
130
+ .codingns-quick-app-dialog .qa-view-frame{flex:1;min-height:0;width:100%;border:0;background:${color.pageBackground}}
131
+ .codingns-quick-app-dialog .qa-view-error{flex:none;margin:0;padding:6px 12px;color:${color.error};background:color-mix(in srgb,${color.error} 8%,transparent);font-size:${uiFontSize(12)};line-height:1.5;overflow-wrap:anywhere}
132
+ @media(pointer:coarse){.codingns-quick-app-dialog :is(.qa-view-titlebar,.qa-view-toolbar){height:44px}.codingns-quick-app-dialog .qa-view-tool{width:40px;height:40px}}
133
+ @media(max-width:640px){
134
+ [role=presentation]:has(>.codingns-quick-app-dialog){align-items:flex-end;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px)}
135
+ .codingns-quick-app-dialog{width:100%;height:auto;max-height:100%;border-radius:16px 16px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}
136
+ .codingns-quick-app-dialog.qa-file-picker{width:100%;height:75dvh}
137
+ .codingns-quick-app-dialog.qa-viewer{width:100%;height:100%;border-radius:0;padding-bottom:env(safe-area-inset-bottom,0px)}
138
+ .codingns-quick-app-dialog .qa-button{min-height:40px}
139
+ .codingns-quick-app-dialog .qa-actions>button{flex:1}
140
+ .codingns-quick-app-dialog .qa-file-input .qa-browse{min-height:36px}
141
+ }
142
+ `;
143
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/client/quick-apps/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,KAAK,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,oGAAoG;AACpG,MAAM,CAAC,MAAM,YAAY,GAAG;uEAC2C,KAAK,CAAC,YAAY,cAAc,UAAU,CAAC,EAAE,CAAC;;;iDAGpE,UAAU,CAAC,EAAE,CAAC;2CACpB,KAAK,CAAC,cAAc,cAAc,UAAU,CAAC,EAAE,CAAC;;kIAEuC,KAAK,CAAC,cAAc;;8HAExB,KAAK,CAAC,eAAe;kEACjF,KAAK,CAAC,YAAY;;kEAElB,KAAK,CAAC,MAAM;;;;0EAIJ,KAAK,CAAC,MAAM;mFACH,KAAK,CAAC,eAAe,sBAAsB,KAAK,CAAC,MAAM;;;;yMAI+D,KAAK,CAAC,cAAc,iCAAiC,KAAK,CAAC,KAAK;;;;;;iLAMxF,UAAU,CAAC,EAAE,CAAC;+GAChF,UAAU,CAAC,EAAE,CAAC;wKAC2C,KAAK,CAAC,cAAc,UAAU,KAAK,CAAC,KAAK;sEAC3I,UAAU,CAAC,EAAE,CAAC,0BAA0B,KAAK,CAAC,cAAc;6DACrE,KAAK,CAAC,KAAK;;;;;;;8EAOM,KAAK,CAAC,YAAY,cAAc,UAAU,CAAC,EAAE,CAAC,0DAA0D,KAAK,CAAC,cAAc;;;;;6IAK7D,KAAK,CAAC,YAAY,cAAc,UAAU,CAAC,EAAE,CAAC;wEACnH,KAAK,CAAC,eAAe;wDACrC,KAAK,CAAC,KAAK;8DACL,KAAK,CAAC,iBAAiB,UAAU,KAAK,CAAC,iBAAiB;mFACnC,KAAK,CAAC,sBAAsB;;gFAE/B,KAAK,CAAC,MAAM;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UAAU,CAAC,EAAE,CAAC;2HACsC,KAAK,CAAC,cAAc,kDAAkD,UAAU,CAAC,EAAE,CAAC;4DACnJ,KAAK,CAAC,eAAe;sDAC3B,KAAK,CAAC,cAAc;;;;;qHAK2C,UAAU,CAAC,EAAE,CAAC;+EACpD,KAAK,CAAC,MAAM;uFACJ,KAAK,CAAC,cAAc,cAAc,UAAU,CAAC,EAAE,CAAC;;mIAEJ,KAAK,CAAC,MAAM,sDAAsD,KAAK,CAAC,cAAc,UAAU,KAAK,CAAC,YAAY,2BAA2B,UAAU,CAAC,EAAE,CAAC;;;mKAG3H,KAAK,CAAC,QAAQ,qDAAqD,UAAU,CAAC,EAAE,CAAC;+FACrJ,KAAK,CAAC,cAAc;sFAC7B,KAAK,CAAC,KAAK,iCAAiC,KAAK,CAAC,KAAK,8BAA8B,UAAU,CAAC,EAAE,CAAC;;;;;;;;;;;CAWxL,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { type ComponentProps, type ReactElement, type ReactNode } from 'react';
2
+ import { DshButton } from '../../dsh-capabilities/client/primitives-adapter.js';
3
+ /** Content atoms follow CodingNS ModalAtoms; DSH retains the portal and focus lifecycle. */
4
+ export declare function QuickAppField({ id, label, help, error, children }: {
5
+ id: string;
6
+ label: string;
7
+ help?: string | undefined;
8
+ error?: string | undefined;
9
+ children?: ReactNode;
10
+ }): ReactElement;
11
+ export declare function QuickAppActions({ children }: {
12
+ children?: ReactNode;
13
+ }): ReactElement;
14
+ export declare function QuickAppButton({ children, danger, variant, className, ...props }: ComponentProps<typeof DshButton> & {
15
+ danger?: boolean;
16
+ }): ReactElement;
17
+ export declare function QuickAppControlIcon({ icon }: {
18
+ icon: 'add' | 'edit' | 'done' | 'retry' | 'collapse' | 'expand' | 'remove';
19
+ }): ReactElement;
20
+ //# sourceMappingURL=ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../../../src/client/quick-apps/ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAClG,OAAO,EAAE,SAAS,EAA4B,MAAM,qDAAqD,CAAA;AAEzG,4FAA4F;AAC5F,wBAAgB,aAAa,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAG5L;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAEpF;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,MAAc,EAAE,OAAiB,EAAE,SAAc,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,YAAY,CAG/K;AAED,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAA;CAAE,GAAG,YAAY,CAK1I"}
@@ -0,0 +1,21 @@
1
+ import { createElement as h } from 'react';
2
+ import { DshButton, resolveTerminalArrowIcon } from '../../dsh-capabilities/client/primitives-adapter.js';
3
+ /** Content atoms follow CodingNS ModalAtoms; DSH retains the portal and focus lifecycle. */
4
+ export function QuickAppField({ id, label, help, error, children }) {
5
+ return h('div', { className: 'qa-field' }, h('label', { htmlFor: id }, label), children, error ? h('span', { id: `${id}-help`, className: 'qa-field-error', role: 'alert' }, error) : help ? h('span', { id: `${id}-help`, className: 'qa-help' }, help) : null);
6
+ }
7
+ export function QuickAppActions({ children }) {
8
+ return h('div', { className: 'qa-actions' }, children);
9
+ }
10
+ export function QuickAppButton({ children, danger = false, variant = 'ghost', className = '', ...props }) {
11
+ return h(DshButton, { ...props, type: props.type ?? 'button', variant,
12
+ className: `qa-button${danger ? ' qa-danger' : ''}${variant === 'primary' ? ' qa-primary' : ''} ${className}`.trim() }, children);
13
+ }
14
+ export function QuickAppControlIcon({ icon }) {
15
+ if (icon === 'collapse' || icon === 'expand')
16
+ return h(resolveTerminalArrowIcon(icon === 'collapse' ? 'down' : 'up'), { size: 16 });
17
+ const path = { add: 'M12 5v14M5 12h14', edit: 'm16 3 5 5-12 12H4v-5L16 3ZM13 6l5 5', done: 'm5 12 4 4L19 6', retry: 'M20 7v5h-5M20 12a8 8 0 1 0-2 5',
18
+ collapse: 'm6 9 6 6 6-6', expand: 'm6 15 6-6 6 6', remove: 'm7 7 10 10M7 17 17 7' }[icon];
19
+ return h('svg', { viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 1.6, strokeLinecap: 'round', strokeLinejoin: 'round', 'aria-hidden': true }, h('path', { d: path }));
20
+ }
21
+ //# sourceMappingURL=ui.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui.js","sourceRoot":"","sources":["../../../../../src/client/quick-apps/ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,CAAC,EAA0D,MAAM,OAAO,CAAA;AAClG,OAAO,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAA;AAEzG,4FAA4F;AAC5F,MAAM,UAAU,aAAa,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAA8G;IAC5K,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,CAAC,CA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KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAA;IACnI,MAAM,IAAI,GAAG,EAAE,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE,qCAAqC,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,gCAAgC;QAClJ,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC,IAAI,CAAC,CAAA;IAC3F,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;AACjM,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { QuickApp } from '../../shared/contracts/quick-apps.js';
3
+ import type { CodingNsTranslator } from '../locale.js';
4
+ import type { QuickAppsClient, QuickAppView } from './client.js';
5
+ /** Native renderers and editor with Quick Apps ownership, save preconditions and lifetime. */
6
+ export declare function QuickAppViewer({ app, view, client, busy, error, t, onClose, onReload }: {
7
+ app: QuickApp;
8
+ view: QuickAppView;
9
+ client?: QuickAppsClient;
10
+ busy: boolean;
11
+ error?: string | undefined;
12
+ t: CodingNsTranslator;
13
+ onClose(): void;
14
+ onReload(): void;
15
+ }): ReactElement;
16
+ //# sourceMappingURL=viewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewer.d.ts","sourceRoot":"","sources":["../../../../../src/client/quick-apps/viewer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,KAAK,YAAY,EAAE,MAAM,OAAO,CAAA;AAC1F,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,sCAAsC,CAAA;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAOhE,8FAA8F;AAC9F,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE;IACvF,GAAG,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,YAAY,CAAC;IAAC,MAAM,CAAC,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,CAAC,EAAE,kBAAkB,CAAA;IAC7H,OAAO,IAAI,IAAI,CAAC;IAAC,QAAQ,IAAI,IAAI,CAAA;CAClC,GAAG,YAAY,CAqHf"}