@salilvnair/dui 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/dist/assets/DuiShowcase-C2jk2ySV.js +74705 -0
  2. package/dist/assets/DuiShowcase-CZLjKDpL.css +1 -0
  3. package/dist/assets/abap-DLDM7-KI.js +1 -0
  4. package/dist/assets/apex-DNDY2TF8.js +1 -0
  5. package/dist/assets/azcli-Y6nb8tq_.js +1 -0
  6. package/dist/assets/bat-BwHxbl9M.js +1 -0
  7. package/dist/assets/bicep-CFznDFnq.js +2 -0
  8. package/dist/assets/cameligo-Bf6VGUru.js +1 -0
  9. package/dist/assets/clojure-Dnu-v4kV.js +1 -0
  10. package/dist/assets/codicon-ngg6Pgfi.ttf +0 -0
  11. package/dist/assets/coffee-Bd8akH9Z.js +1 -0
  12. package/dist/assets/cpp-BbWJElDN.js +1 -0
  13. package/dist/assets/csharp-Co3qMtFm.js +1 -0
  14. package/dist/assets/csp-D-4FJmMZ.js +1 -0
  15. package/dist/assets/css-DdJfP1eB.js +3 -0
  16. package/dist/assets/css.worker-B4z49cGk.js +93 -0
  17. package/dist/assets/cssMode-CZYOZ1AO.js +1 -0
  18. package/dist/assets/cypher-cTPe9QuQ.js +1 -0
  19. package/dist/assets/dart-BOtBlQCF.js +1 -0
  20. package/dist/assets/dockerfile-BG73LgW2.js +1 -0
  21. package/dist/assets/ecl-BEgZUVRK.js +1 -0
  22. package/dist/assets/elixir-BkW5O-1t.js +1 -0
  23. package/dist/assets/flow9-BeJ5waoc.js +1 -0
  24. package/dist/assets/freemarker2-CGSa1nHJ.js +3 -0
  25. package/dist/assets/fsharp-PahG7c26.js +1 -0
  26. package/dist/assets/go-acbASCJo.js +1 -0
  27. package/dist/assets/graphql-BxJiqAUM.js +1 -0
  28. package/dist/assets/handlebars-mB8dxbcs.js +1 -0
  29. package/dist/assets/hcl-DtV1sZF8.js +1 -0
  30. package/dist/assets/html-l7YRKuHI.js +1 -0
  31. package/dist/assets/html.worker-DtiGdgqp.js +470 -0
  32. package/dist/assets/htmlMode-CuoiFE2t.js +1 -0
  33. package/dist/assets/index-B12PznEF.js +50 -0
  34. package/dist/assets/index-B_5G6LrJ.css +10 -0
  35. package/dist/assets/ini-Kd9XrMLS.js +1 -0
  36. package/dist/assets/java-CXBNlu9o.js +1 -0
  37. package/dist/assets/javascript-9UYwmKgx.js +1 -0
  38. package/dist/assets/json.worker-leyajbqV.js +58 -0
  39. package/dist/assets/jsonMode-6uegdfHj.js +7 -0
  40. package/dist/assets/julia-cl7-CwDS.js +1 -0
  41. package/dist/assets/kotlin-s7OhZKlX.js +1 -0
  42. package/dist/assets/less-9HpZscsL.js +2 -0
  43. package/dist/assets/lexon-OrD6JF1K.js +1 -0
  44. package/dist/assets/liquid-C8P3CEDc.js +1 -0
  45. package/dist/assets/lspLanguageFeatures-Ju8ugRgx.js +4 -0
  46. package/dist/assets/lua-Cyyb5UIc.js +1 -0
  47. package/dist/assets/m3-B8OfTtLu.js +1 -0
  48. package/dist/assets/markdown-BFxVWTOG.js +1 -0
  49. package/dist/assets/mdx-D4_p5PzA.js +1 -0
  50. package/dist/assets/mips-CiqrrVzr.js +1 -0
  51. package/dist/assets/monaco-editor-CN2OOCze.js +908 -0
  52. package/dist/assets/monaco-editor-qiF_U8vl.css +1 -0
  53. package/dist/assets/msdax-DmeGPVcC.js +1 -0
  54. package/dist/assets/mysql-C_tMU-Nz.js +1 -0
  55. package/dist/assets/objective-c-BDtDVThU.js +1 -0
  56. package/dist/assets/pascal-vHIfCaH5.js +1 -0
  57. package/dist/assets/pascaligo-DtZ0uQbO.js +1 -0
  58. package/dist/assets/perl-Ub6l9XKa.js +1 -0
  59. package/dist/assets/pgsql-BlNEE0v7.js +1 -0
  60. package/dist/assets/php-BBUBE1dy.js +1 -0
  61. package/dist/assets/pla-DSh2-awV.js +1 -0
  62. package/dist/assets/postiats-CocnycG-.js +1 -0
  63. package/dist/assets/powerquery-tScXyioY.js +1 -0
  64. package/dist/assets/powershell-COWaemsV.js +1 -0
  65. package/dist/assets/protobuf-Brw8urJB.js +2 -0
  66. package/dist/assets/pug-8SOpv6rk.js +1 -0
  67. package/dist/assets/python-BDvE0baC.js +1 -0
  68. package/dist/assets/qsharp-Bw9ernYp.js +1 -0
  69. package/dist/assets/r-j7ic8hl3.js +1 -0
  70. package/dist/assets/razor-3AZt1jFw.js +1 -0
  71. package/dist/assets/redis-Bu5POkcn.js +1 -0
  72. package/dist/assets/redshift-Bs9aos_-.js +1 -0
  73. package/dist/assets/restructuredtext-CqXO7rUv.js +1 -0
  74. package/dist/assets/ruby-zBfavPgS.js +1 -0
  75. package/dist/assets/rust-BzKRNQWT.js +1 -0
  76. package/dist/assets/sb-BBc9UKZt.js +1 -0
  77. package/dist/assets/scala-D9hQfWCl.js +1 -0
  78. package/dist/assets/scheme-BPhDTwHR.js +1 -0
  79. package/dist/assets/scss-CBJaRo0y.js +3 -0
  80. package/dist/assets/shell-DiJ1NA_G.js +1 -0
  81. package/dist/assets/solidity-Db0IVjzk.js +1 -0
  82. package/dist/assets/sophia-CnS9iZB_.js +1 -0
  83. package/dist/assets/sparql-CJmd_6j2.js +1 -0
  84. package/dist/assets/sql-ClhHkBeG.js +1 -0
  85. package/dist/assets/st-CHwy0fLd.js +1 -0
  86. package/dist/assets/swift-Bqt4WxQ4.js +3 -0
  87. package/dist/assets/systemverilog-Bs9z6M-B.js +1 -0
  88. package/dist/assets/tcl-Dm6ycUr_.js +1 -0
  89. package/dist/assets/ts.worker-59MjiAqk.js +67731 -0
  90. package/dist/assets/tsMode-2fAJOXuF.js +11 -0
  91. package/dist/assets/twig-Csy3S7wG.js +1 -0
  92. package/dist/assets/typescript-Bv1W4NlY.js +1 -0
  93. package/dist/assets/typespec-Btyra-wh.js +1 -0
  94. package/dist/assets/vb-Db0cS2oM.js +1 -0
  95. package/dist/assets/wgsl-BTesnYfV.js +298 -0
  96. package/dist/assets/xml-CR03X85Q.js +1 -0
  97. package/dist/assets/yaml-Qi3RsNvX.js +1 -0
  98. package/dist/chunks/{EditorView.shell-BGH2VhWM.js → EditorView.shell-DWGMOgiy.js} +215 -165
  99. package/dist/chunks/EditorView.shell-DWGMOgiy.js.map +1 -0
  100. package/dist/chunks/daakia-icons-BpwUOdSO.js +4665 -0
  101. package/dist/chunks/daakia-icons-BpwUOdSO.js.map +1 -0
  102. package/dist/chunks/vis-runtime-DkpA8K_T.js +32 -0
  103. package/dist/chunks/vis-runtime-DkpA8K_T.js.map +1 -0
  104. package/dist/icons/daakia-icons.d.ts +366 -0
  105. package/dist/index.html +15 -0
  106. package/dist/index.js +24569 -13515
  107. package/dist/index.js.map +1 -1
  108. package/dist/lib/components/button/AIButtonView.d.ts +1 -1
  109. package/dist/lib/components/button/BookmarkButtonView.d.ts +10 -0
  110. package/dist/lib/components/button/FabView.d.ts +20 -0
  111. package/dist/lib/components/button/FollowButtonView.d.ts +10 -0
  112. package/dist/lib/components/button/HoldToConfirmView.d.ts +14 -0
  113. package/dist/lib/components/button/IconButtonView.d.ts +1 -1
  114. package/dist/lib/components/button/LikeButtonView.d.ts +11 -0
  115. package/dist/lib/components/button/MorphingIconButtonView.d.ts +14 -0
  116. package/dist/lib/components/button/ThemeToggleView.d.ts +12 -0
  117. package/dist/lib/components/button/VoteWidgetView.d.ts +13 -0
  118. package/dist/lib/components/chips/ChipView.d.ts +5 -2
  119. package/dist/lib/components/chips/CommandChipView.d.ts +28 -0
  120. package/dist/lib/components/display/AIStreamingTextView.d.ts +16 -0
  121. package/dist/lib/components/display/ActivityFeedView.d.ts +19 -0
  122. package/dist/lib/components/display/ApiKeyRowView.d.ts +12 -0
  123. package/dist/lib/components/display/ArticleCardView.d.ts +16 -0
  124. package/dist/lib/components/display/AudioPlayerView.d.ts +10 -0
  125. package/dist/lib/components/display/AudioWaveformView.d.ts +15 -0
  126. package/dist/lib/components/display/AuditLogRowView.d.ts +14 -0
  127. package/dist/lib/components/display/AvatarGroupView.d.ts +17 -0
  128. package/dist/lib/components/display/AvatarView.d.ts +15 -0
  129. package/dist/lib/components/display/BannerView.d.ts +17 -0
  130. package/dist/lib/components/display/BarcodeView.d.ts +11 -0
  131. package/dist/lib/components/display/BreathingLoaderView.d.ts +11 -0
  132. package/dist/lib/components/display/CalloutView.d.ts +10 -0
  133. package/dist/lib/components/display/CarouselView.d.ts +12 -0
  134. package/dist/lib/components/display/ChangelogEntryView.d.ts +16 -0
  135. package/dist/lib/components/display/CodeBlockView.d.ts +15 -1
  136. package/dist/lib/components/display/ColumnVisibilityMenuView.d.ts +26 -0
  137. package/dist/lib/components/display/CommandOrbView.d.ts +15 -0
  138. package/dist/lib/components/display/CommentThreadView.d.ts +20 -0
  139. package/dist/lib/components/display/ComparisonSliderView.d.ts +12 -0
  140. package/dist/lib/components/display/ConfettiBurstView.d.ts +17 -0
  141. package/dist/lib/components/display/ConnectionPulseLineView.d.ts +14 -0
  142. package/dist/lib/components/display/ConstellationLoaderView.d.ts +14 -0
  143. package/dist/lib/components/display/ContactCardView.d.ts +19 -0
  144. package/dist/lib/components/display/CookieConsentBannerView.d.ts +14 -0
  145. package/dist/lib/components/display/CountUpNumberView.d.ts +16 -0
  146. package/dist/lib/components/display/CountdownRingView.d.ts +19 -0
  147. package/dist/lib/components/display/DataGridToolbarView.d.ts +20 -0
  148. package/dist/lib/components/display/DataTableView.d.ts +2 -1
  149. package/dist/lib/components/display/DescriptionsView.d.ts +19 -0
  150. package/dist/lib/components/display/DiffMorphView.d.ts +13 -0
  151. package/dist/lib/components/display/DragHandleView.d.ts +10 -0
  152. package/dist/lib/components/display/EditableCellView.d.ts +13 -0
  153. package/dist/lib/components/display/EmptyInboxView.d.ts +11 -0
  154. package/dist/lib/components/display/EnvironmentBadgeView.d.ts +13 -0
  155. package/dist/lib/components/display/FeatureSpotlightBadgeView.d.ts +11 -0
  156. package/dist/lib/components/display/FileIconView.d.ts +11 -0
  157. package/dist/lib/components/display/FileListView.d.ts +20 -0
  158. package/dist/lib/components/display/FilterBarView.d.ts +17 -0
  159. package/dist/lib/components/display/GaugeView.d.ts +12 -0
  160. package/dist/lib/components/display/GlowBorderView.d.ts +11 -0
  161. package/dist/lib/components/display/GradientTextView.d.ts +13 -0
  162. package/dist/lib/components/display/HeatmapCalendarView.d.ts +14 -0
  163. package/dist/lib/components/display/HoloCardView.d.ts +10 -0
  164. package/dist/lib/components/display/HudView.d.ts +36 -4
  165. package/dist/lib/components/display/ImageCropperView.d.ts +19 -0
  166. package/dist/lib/components/display/ImageGalleryView.d.ts +15 -0
  167. package/dist/lib/components/display/ImageZoomView.d.ts +10 -0
  168. package/dist/lib/components/display/InfoView.d.ts +23 -0
  169. package/dist/lib/components/display/InspectorPanelView.d.ts +29 -0
  170. package/dist/lib/components/display/IntegrationCardView.d.ts +16 -0
  171. package/dist/lib/components/display/KanbanBoardView.d.ts +27 -0
  172. package/dist/lib/components/display/KbdView.d.ts +11 -0
  173. package/dist/lib/components/display/KeyValueListView.d.ts +14 -0
  174. package/dist/lib/components/display/LatencyPulseView.d.ts +16 -0
  175. package/dist/lib/components/display/LicenseBadgeView.d.ts +11 -0
  176. package/dist/lib/components/display/ListView.d.ts +19 -0
  177. package/dist/lib/components/display/LiveCursorPresenceView.d.ts +19 -0
  178. package/dist/lib/components/display/LoaderView.d.ts +12 -1
  179. package/dist/lib/components/display/MagneticButtonView.d.ts +14 -0
  180. package/dist/lib/components/display/MaintenanceBannerView.d.ts +12 -0
  181. package/dist/lib/components/display/MessageBannerView.d.ts +13 -0
  182. package/dist/lib/components/display/MessageBubbleView.d.ts +14 -0
  183. package/dist/lib/components/display/NetworkGraphView.d.ts +59 -0
  184. package/dist/lib/components/display/NetworkGraphView.fallback.d.ts +11 -0
  185. package/dist/lib/components/display/NetworkGraphView.vis.d.ts +2 -0
  186. package/dist/lib/components/display/NetworkWeatherView.d.ts +12 -0
  187. package/dist/lib/components/display/NotificationBadgeView.d.ts +17 -0
  188. package/dist/lib/components/display/ParticleBackgroundView.d.ts +12 -0
  189. package/dist/lib/components/display/PathRevealView.d.ts +16 -0
  190. package/dist/lib/components/display/PdfViewerView.d.ts +11 -0
  191. package/dist/lib/components/display/PermissionMatrixView.d.ts +15 -0
  192. package/dist/lib/components/display/PresenceDotView.d.ts +12 -0
  193. package/dist/lib/components/display/PricingCardView.d.ts +16 -0
  194. package/dist/lib/components/display/ProgressBarView.d.ts +15 -0
  195. package/dist/lib/components/display/ProgressRingView.d.ts +13 -0
  196. package/dist/lib/components/display/PulseDotView.d.ts +10 -0
  197. package/dist/lib/components/display/QRCodeView.d.ts +11 -0
  198. package/dist/lib/components/display/QuoteBlockView.d.ts +14 -0
  199. package/dist/lib/components/display/RateLimitMeterView.d.ts +12 -0
  200. package/dist/lib/components/display/RatingBreakdownView.d.ts +12 -0
  201. package/dist/lib/components/display/RequestFlowView.d.ts +23 -0
  202. package/dist/lib/components/display/ResultView.d.ts +14 -0
  203. package/dist/lib/components/display/RevealOnScrollView.d.ts +14 -0
  204. package/dist/lib/components/display/SchemaBlueprintView.d.ts +23 -0
  205. package/dist/lib/components/display/SegmentedProgressBarView.d.ts +17 -0
  206. package/dist/lib/components/display/ShareSheetView.d.ts +19 -0
  207. package/dist/lib/components/display/SignaturePadView.d.ts +10 -0
  208. package/dist/lib/components/display/SkeletonView.d.ts +14 -0
  209. package/dist/lib/components/display/SnackbarView.d.ts +18 -0
  210. package/dist/lib/components/display/SortableHeaderView.d.ts +14 -0
  211. package/dist/lib/components/display/SparklineView.d.ts +14 -0
  212. package/dist/lib/components/display/StackedSwipeCardView.d.ts +14 -0
  213. package/dist/lib/components/display/StatTrendCardView.d.ts +16 -0
  214. package/dist/lib/components/display/StatisticView.d.ts +18 -0
  215. package/dist/lib/components/display/StatsCardView.d.ts +5 -1
  216. package/dist/lib/components/display/StatusPageRowView.d.ts +13 -0
  217. package/dist/lib/components/display/StickyTableHeaderView.d.ts +21 -0
  218. package/dist/lib/components/display/TablePaginationView.d.ts +16 -0
  219. package/dist/lib/components/display/TagCloudView.d.ts +17 -0
  220. package/dist/lib/components/display/TeamMemberRowView.d.ts +13 -0
  221. package/dist/lib/components/display/TerminalBlockView.d.ts +8 -0
  222. package/dist/lib/components/display/TestimonialCardView.d.ts +13 -0
  223. package/dist/lib/components/display/TiltCardView.d.ts +12 -0
  224. package/dist/lib/components/display/TimelineView.d.ts +20 -0
  225. package/dist/lib/components/display/TrialCountdownBannerView.d.ts +12 -0
  226. package/dist/lib/components/display/TypewriterTextView.d.ts +16 -0
  227. package/dist/lib/components/display/TypingIndicatorView.d.ts +11 -0
  228. package/dist/lib/components/display/UndoRedoTimelineView.d.ts +19 -0
  229. package/dist/lib/components/display/UsageMeterView.d.ts +17 -0
  230. package/dist/lib/components/display/VersionBadgeView.d.ts +13 -0
  231. package/dist/lib/components/display/VideoPlayerView.d.ts +10 -0
  232. package/dist/lib/components/display/VirtualizedListView.d.ts +13 -0
  233. package/dist/lib/components/display/WebhookStatusView.d.ts +15 -0
  234. package/dist/lib/components/input/AvatarUploadView.d.ts +14 -0
  235. package/dist/lib/components/input/CalendarView.d.ts +25 -0
  236. package/dist/lib/components/input/CascaderView.d.ts +23 -0
  237. package/dist/lib/components/input/ChatInputView.d.ts +17 -0
  238. package/dist/lib/components/input/ChecklistView.d.ts +17 -0
  239. package/dist/lib/components/input/ColorPickerView.d.ts +14 -0
  240. package/dist/lib/components/input/ComboBoxView.d.ts +23 -0
  241. package/dist/lib/components/input/DateInputView.d.ts +17 -0
  242. package/dist/lib/components/input/DateRangePickerView.d.ts +26 -0
  243. package/dist/lib/components/input/DateTimeInputView.d.ts +30 -0
  244. package/dist/lib/components/input/DialKnobInputView.d.ts +17 -0
  245. package/dist/lib/components/input/EditorView.d.ts +1 -1
  246. package/dist/lib/components/input/EmojiPickerView.d.ts +14 -0
  247. package/dist/lib/components/input/FeedbackWidgetView.d.ts +16 -0
  248. package/dist/lib/components/input/FileDropzoneView.d.ts +23 -0
  249. package/dist/lib/components/input/FloatingLabelInputView.d.ts +17 -0
  250. package/dist/lib/components/input/GhostTypingPlaceholderView.d.ts +19 -0
  251. package/dist/lib/components/input/HiddenKeyValueItemView.d.ts +1 -1
  252. package/dist/lib/components/input/IconPickerView.d.ts +14 -0
  253. package/dist/lib/components/input/InlineEditTextView.d.ts +30 -0
  254. package/dist/lib/components/input/InviteInputView.d.ts +15 -0
  255. package/dist/lib/components/input/MaskedInputView.d.ts +21 -0
  256. package/dist/lib/components/input/MentionInputView.d.ts +21 -0
  257. package/dist/lib/components/input/MergedInputView.d.ts +1 -0
  258. package/dist/lib/components/input/NpsSurveyView.d.ts +16 -0
  259. package/dist/lib/components/input/OtpInputView.d.ts +17 -0
  260. package/dist/lib/components/input/PhoneInputView.d.ts +25 -0
  261. package/dist/lib/components/input/PickerView.d.ts +38 -0
  262. package/dist/lib/components/input/PriorityPickerView.d.ts +13 -0
  263. package/dist/lib/components/input/RadioCardView.d.ts +22 -0
  264. package/dist/lib/components/input/RadioGroupView.d.ts +21 -0
  265. package/dist/lib/components/input/RangeSliderView.d.ts +18 -0
  266. package/dist/lib/components/input/RatingView.d.ts +16 -0
  267. package/dist/lib/components/input/RichTextToolbarView.d.ts +13 -0
  268. package/dist/lib/components/input/RoleSelectView.d.ts +21 -0
  269. package/dist/lib/components/input/SegmentedControlView.d.ts +15 -8
  270. package/dist/lib/components/input/ShortcutRecorderView.d.ts +15 -0
  271. package/dist/lib/components/input/SpectrumSliderView.d.ts +16 -0
  272. package/dist/lib/components/input/StepperInputView.d.ts +16 -0
  273. package/dist/lib/components/input/SwitchGroupView.d.ts +21 -0
  274. package/dist/lib/components/input/TabView.d.ts +10 -0
  275. package/dist/lib/components/input/TimeTravelSliderView.d.ts +21 -0
  276. package/dist/lib/components/input/TimeWheelView.d.ts +21 -0
  277. package/dist/lib/components/input/TransferListView.d.ts +21 -0
  278. package/dist/lib/components/input/TreeSelectView.d.ts +19 -0
  279. package/dist/lib/components/input/WizardStepperView.d.ts +19 -0
  280. package/dist/lib/components/layout/AccordionGroupView.d.ts +18 -0
  281. package/dist/lib/components/layout/AffixView.d.ts +11 -0
  282. package/dist/lib/components/layout/AnchorView.d.ts +18 -0
  283. package/dist/lib/components/layout/AspectRatioView.d.ts +12 -0
  284. package/dist/lib/components/layout/BackToTopView.d.ts +10 -0
  285. package/dist/lib/components/layout/BreadcrumbView.d.ts +14 -0
  286. package/dist/lib/components/layout/DockView.d.ts +17 -0
  287. package/dist/lib/components/layout/FaqAccordionView.d.ts +16 -0
  288. package/dist/lib/components/layout/HeroView.d.ts +15 -0
  289. package/dist/lib/components/layout/LevelView.d.ts +13 -0
  290. package/dist/lib/components/layout/MasonryGridView.d.ts +11 -0
  291. package/dist/lib/components/layout/MediaObjectView.d.ts +12 -0
  292. package/dist/lib/components/layout/NavbarView.d.ts +19 -0
  293. package/dist/lib/components/layout/OnboardingChecklistView.d.ts +19 -0
  294. package/dist/lib/components/layout/PaginationView.d.ts +12 -0
  295. package/dist/lib/components/layout/PanelListView.d.ts +28 -0
  296. package/dist/lib/components/layout/ScrollAreaView.d.ts +11 -0
  297. package/dist/lib/components/layout/SettingsRowView.d.ts +12 -0
  298. package/dist/lib/components/layout/SettingsSectionView.d.ts +12 -0
  299. package/dist/lib/components/layout/SideNavView.d.ts +3 -1
  300. package/dist/lib/components/layout/StickyHeaderView.d.ts +11 -0
  301. package/dist/lib/components/layout/TileGridView.d.ts +21 -0
  302. package/dist/lib/components/layout/WatermarkView.d.ts +16 -0
  303. package/dist/lib/components/modal/ActionSheetView.d.ts +19 -0
  304. package/dist/lib/components/modal/AlertDialogView.d.ts +15 -0
  305. package/dist/lib/components/modal/BottomSheetView.d.ts +14 -0
  306. package/dist/lib/components/modal/CommandPaletteView.d.ts +21 -0
  307. package/dist/lib/components/modal/DrawerView.d.ts +15 -0
  308. package/dist/lib/components/modal/ModalView.d.ts +11 -2
  309. package/dist/lib/components/modal/NotificationCenterView.d.ts +20 -0
  310. package/dist/lib/components/modal/PopoverView.d.ts +20 -0
  311. package/dist/lib/components/modal/SpotlightTourView.d.ts +18 -0
  312. package/dist/lib/components/modal/StackedToastDeckView.d.ts +17 -0
  313. package/dist/lib/components/modal/TooltipView.d.ts +28 -0
  314. package/dist/lib/components/rearrange/RearrangeView.d.ts +3 -3
  315. package/dist/lib/components/rearrange/SortableView.d.ts +33 -0
  316. package/dist/lib/components/tabs/TabBarView.d.ts +29 -1
  317. package/dist/lib/core/AvatarBase.d.ts +21 -0
  318. package/dist/lib/core/DateBase.d.ts +23 -0
  319. package/dist/lib/core/DuiTokens.d.ts +10 -0
  320. package/dist/lib/core/FeedbackBase.d.ts +27 -0
  321. package/dist/lib/core/LayoutBase.d.ts +21 -0
  322. package/dist/lib/core/MediaBase.d.ts +20 -0
  323. package/dist/lib/index.d.ts +392 -1
  324. package/dist/lib/vis-runtime.d.ts +19 -0
  325. package/dist/monaco-setup.js +348 -343
  326. package/dist/monaco-setup.js.map +1 -1
  327. package/dist/style.css +1 -1
  328. package/dist/theme/editor.js +2 -2
  329. package/dist/vis-setup.d.ts +1 -0
  330. package/dist/vis-setup.js +418 -0
  331. package/dist/vis-setup.js.map +1 -0
  332. package/package.json +18 -2
  333. package/dist/chunks/EditorView.shell-BGH2VhWM.js.map +0 -1
  334. package/dist/chunks/daakia-icons-DxWnX_IQ.js +0 -1726
  335. package/dist/chunks/daakia-icons-DxWnX_IQ.js.map +0 -1
@@ -1,146 +1,146 @@
1
- import $, { DiffEditor as ie, loader as ae } from "@monaco-editor/react";
1
+ import K, { DiffEditor as se, loader as le } from "@monaco-editor/react";
2
2
  import * as B from "monaco-editor";
3
- import { k as K, E as V, v as se, w as le, x as ue } from "./chunks/EditorView.shell-BGH2VhWM.js";
4
- import { jsx as L } from "react/jsx-runtime";
5
- import { useState as de, useEffect as R, useRef as D, useCallback as G, useMemo as U } from "react";
6
- import ge from "monaco-editor/esm/vs/editor/editor.worker?worker&inline";
7
- import ce from "monaco-editor/esm/vs/language/json/json.worker?worker&inline";
8
- import fe from "monaco-editor/esm/vs/language/html/html.worker?worker&inline";
9
- import pe from "monaco-editor/esm/vs/language/typescript/ts.worker?worker&inline";
10
- import { javascriptDefaults as P, JsxEmit as J, ModuleResolutionKind as Z, ModuleKind as Y, ScriptTarget as X, typescriptDefaults as Q } from "monaco-editor/esm/vs/language/typescript/monaco.contribution";
11
- function H() {
12
- var e;
13
- const r = ((e = document.body) == null ? void 0 : e.getAttribute("data-vscode-theme-kind")) || document.documentElement.getAttribute("data-vscode-theme-kind");
14
- return r ? r === "vscode-light" ? "light" : "dark" : document.documentElement.getAttribute("data-theme") || "dark";
3
+ import { q as U, E as V, A as ue, B as de, F as ge } from "./chunks/EditorView.shell-DWGMOgiy.js";
4
+ import { jsx as A } from "react/jsx-runtime";
5
+ import { useState as ce, useEffect as M, useRef as R, useCallback as H, useMemo as J } from "react";
6
+ import fe from "monaco-editor/esm/vs/editor/editor.worker?worker&inline";
7
+ import pe from "monaco-editor/esm/vs/language/json/json.worker?worker&inline";
8
+ import me from "monaco-editor/esm/vs/language/html/html.worker?worker&inline";
9
+ import ke from "monaco-editor/esm/vs/language/typescript/ts.worker?worker&inline";
10
+ import { javascriptDefaults as P, JsxEmit as Z, ModuleResolutionKind as Y, ModuleKind as X, ScriptTarget as Q, typescriptDefaults as ee } from "monaco-editor/esm/vs/language/typescript/monaco.contribution";
11
+ function z() {
12
+ var t;
13
+ const i = ((t = document.body) == null ? void 0 : t.getAttribute("data-vscode-theme-kind")) || document.documentElement.getAttribute("data-vscode-theme-kind");
14
+ return i ? i === "vscode-light" ? "light" : "dark" : document.documentElement.getAttribute("data-theme") || "dark";
15
15
  }
16
16
  function q() {
17
- const [r, e] = de(H);
18
- return R(() => {
19
- const l = () => e(H()), g = new MutationObserver(l);
17
+ const [i, t] = ce(z);
18
+ return M(() => {
19
+ const l = () => t(z()), g = new MutationObserver(l);
20
20
  g.observe(document.documentElement, { attributes: !0, attributeFilter: ["data-theme", "data-vscode-theme-kind"] });
21
21
  const c = new MutationObserver(l);
22
22
  return document.body && c.observe(document.body, { attributes: !0, attributeFilter: ["data-vscode-theme-kind"] }), () => {
23
23
  g.disconnect(), c.disconnect();
24
24
  };
25
- }, []), r;
25
+ }, []), i;
26
26
  }
27
- const me = "";
28
- function ke(r, e, l) {
27
+ const he = "";
28
+ function be(i, t, l) {
29
29
  return [];
30
30
  }
31
- function he(r) {
31
+ function ye(i) {
32
32
  const {
33
- breakpoints: e,
33
+ breakpoints: t,
34
34
  disabledBreakpoints: l,
35
35
  conditionalBreakpointLines: g,
36
36
  pausedLine: c,
37
- onToggleBreakpoint: f,
38
- onGlyphContextMenu: t
39
- } = r, b = D(null), T = D(null), k = D([]), w = D([]), C = D([]), v = D([]), o = G((n) => {
40
- const i = b.current;
41
- if (!i) return !0;
42
- const u = i.getModel();
37
+ onToggleBreakpoint: m,
38
+ onGlyphContextMenu: v
39
+ } = i, e = R(null), E = R(null), k = R([]), C = R([]), b = R([]), y = R([]), o = H((n) => {
40
+ const r = e.current;
41
+ if (!r) return !0;
42
+ const u = r.getModel();
43
43
  return !u || n > u.getLineCount() ? !1 : !!u.getLineContent(n).trim();
44
44
  }, []);
45
- return R(() => {
46
- const n = b.current, i = T.current;
47
- if (!n || !i) return;
45
+ return M(() => {
46
+ const n = e.current, r = E.current;
47
+ if (!n || !r) return;
48
48
  const u = [];
49
- if (e)
50
- for (const a of e) {
49
+ if (t)
50
+ for (const a of t) {
51
51
  if (c && a === c) continue;
52
- const m = l == null ? void 0 : l.includes(a), p = g == null ? void 0 : g.includes(a);
52
+ const p = l == null ? void 0 : l.includes(a), f = g == null ? void 0 : g.includes(a);
53
53
  let d = "daakia-bp-glyph";
54
- m ? d = "daakia-bp-glyph--disabled" : p && (d = "daakia-bp-glyph--conditional"), u.push({
55
- range: new i.Range(a, 1, a, 1),
54
+ p ? d = "daakia-bp-glyph--disabled" : f && (d = "daakia-bp-glyph--conditional"), u.push({
55
+ range: new r.Range(a, 1, a, 1),
56
56
  options: {
57
57
  isWholeLine: !0,
58
- className: m ? "" : "daakia-bp-line",
59
- stickiness: i.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
58
+ className: p ? "" : "daakia-bp-line",
59
+ stickiness: r.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
60
60
  glyphMarginClassName: d,
61
61
  glyphMarginHoverMessage: {
62
- value: p ? "Conditional Breakpoint" : m ? "Disabled Breakpoint" : "Breakpoint"
62
+ value: f ? "Conditional Breakpoint" : p ? "Disabled Breakpoint" : "Breakpoint"
63
63
  }
64
64
  }
65
65
  });
66
66
  }
67
67
  k.current = n.deltaDecorations(k.current, u);
68
- }, [e, l, g, c]), R(() => {
69
- const n = b.current, i = T.current;
70
- if (!(!n || !i))
68
+ }, [t, l, g, c]), M(() => {
69
+ const n = e.current, r = E.current;
70
+ if (!(!n || !r))
71
71
  if (c) {
72
- const a = (e == null ? void 0 : e.includes(c)) ? "daakia-paused-line__arrow daakia-paused-line__arrow--with-bp" : "daakia-paused-line__arrow";
73
- w.current = n.deltaDecorations(w.current, [{
74
- range: new i.Range(c, 1, c, 1),
72
+ const a = (t == null ? void 0 : t.includes(c)) ? "daakia-paused-line__arrow daakia-paused-line__arrow--with-bp" : "daakia-paused-line__arrow";
73
+ C.current = n.deltaDecorations(C.current, [{
74
+ range: new r.Range(c, 1, c, 1),
75
75
  options: {
76
76
  isWholeLine: !0,
77
77
  className: "daakia-paused-line",
78
78
  glyphMarginClassName: a,
79
- stickiness: i.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
79
+ stickiness: r.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
80
80
  }
81
81
  }]), n.revealLineInCenter(c);
82
82
  } else
83
- w.current = n.deltaDecorations(w.current, []);
84
- }, [c, e]), R(() => () => {
85
- v.current.forEach((n) => {
86
- var i;
87
- return (i = n == null ? void 0 : n.dispose) == null ? void 0 : i.call(n);
88
- }), v.current = [];
89
- }, []), { attach: G((n, i) => {
90
- b.current = n, T.current = i;
83
+ C.current = n.deltaDecorations(C.current, []);
84
+ }, [c, t]), M(() => () => {
85
+ y.current.forEach((n) => {
86
+ var r;
87
+ return (r = n == null ? void 0 : n.dispose) == null ? void 0 : r.call(n);
88
+ }), y.current = [];
89
+ }, []), { attach: H((n, r) => {
90
+ e.current = n, E.current = r;
91
91
  const u = n.getDomNode();
92
92
  if (u) {
93
93
  const a = u.querySelector(".margin");
94
94
  a && a.setAttribute("data-daakia-bp-gutter", "");
95
95
  }
96
- if (f) {
97
- const a = n.onMouseDown((m) => {
98
- var p;
99
- if (m.event.leftButton && m.target.type === i.editor.MouseTargetType.GUTTER_GLYPH_MARGIN) {
100
- const d = (p = m.target.position) == null ? void 0 : p.lineNumber;
101
- d && o(d) && f(d);
96
+ if (m) {
97
+ const a = n.onMouseDown((p) => {
98
+ var f;
99
+ if (p.event.leftButton && p.target.type === r.editor.MouseTargetType.GUTTER_GLYPH_MARGIN) {
100
+ const d = (f = p.target.position) == null ? void 0 : f.lineNumber;
101
+ d && o(d) && m(d);
102
102
  }
103
103
  });
104
- v.current.push(a);
104
+ y.current.push(a);
105
105
  }
106
- if (t) {
106
+ if (v) {
107
107
  let a = null;
108
- const m = n.onMouseDown((d) => {
108
+ const p = n.onMouseDown((d) => {
109
109
  var h;
110
- if (d.event.rightButton && (d.target.type === i.editor.MouseTargetType.GUTTER_GLYPH_MARGIN || d.target.type === i.editor.MouseTargetType.GUTTER_LINE_NUMBERS || d.target.type === i.editor.MouseTargetType.GUTTER_LINE_DECORATIONS)) {
111
- const x = (h = d.target.position) == null ? void 0 : h.lineNumber;
112
- x && o(x) && (a = { line: x, x: d.event.posx, y: d.event.posy });
110
+ if (d.event.rightButton && (d.target.type === r.editor.MouseTargetType.GUTTER_GLYPH_MARGIN || d.target.type === r.editor.MouseTargetType.GUTTER_LINE_NUMBERS || d.target.type === r.editor.MouseTargetType.GUTTER_LINE_DECORATIONS)) {
111
+ const N = (h = d.target.position) == null ? void 0 : h.lineNumber;
112
+ N && o(N) && (a = { line: N, x: d.event.posx, y: d.event.posy });
113
113
  }
114
114
  });
115
- v.current.push(m);
116
- const p = n.getDomNode();
117
- if (p) {
115
+ y.current.push(p);
116
+ const f = n.getDomNode();
117
+ if (f) {
118
118
  const d = (h) => {
119
- a ? (h.preventDefault(), h.stopPropagation(), t(a.line, { x: a.x, y: a.y }), a = null) : h.target.closest("[data-daakia-bp-gutter]") && (h.preventDefault(), h.stopPropagation());
119
+ a ? (h.preventDefault(), h.stopPropagation(), v(a.line, { x: a.x, y: a.y }), a = null) : h.target.closest("[data-daakia-bp-gutter]") && (h.preventDefault(), h.stopPropagation());
120
120
  };
121
- p.addEventListener("contextmenu", d, !0), v.current.push({ dispose: () => p.removeEventListener("contextmenu", d, !0) });
121
+ f.addEventListener("contextmenu", d, !0), y.current.push({ dispose: () => f.removeEventListener("contextmenu", d, !0) });
122
122
  }
123
123
  }
124
- if (f) {
125
- const a = n.onMouseMove((p) => {
124
+ if (m) {
125
+ const a = n.onMouseMove((f) => {
126
126
  var d;
127
- if (p.target.type === i.editor.MouseTargetType.GUTTER_GLYPH_MARGIN) {
128
- const h = (d = p.target.position) == null ? void 0 : d.lineNumber;
127
+ if (f.target.type === r.editor.MouseTargetType.GUTTER_GLYPH_MARGIN) {
128
+ const h = (d = f.target.position) == null ? void 0 : d.lineNumber;
129
129
  if (h && o(h)) {
130
- const x = n.getModel();
131
- if (x) {
132
- const M = x.getLineDecorations(h);
133
- if (!(M == null ? void 0 : M.some(
134
- (E) => {
135
- var y, I, A, F;
136
- return ((I = (y = E.options) == null ? void 0 : y.glyphMarginClassName) == null ? void 0 : I.startsWith("daakia-bp-glyph")) && !((F = (A = E.options) == null ? void 0 : A.glyphMarginClassName) != null && F.includes("hover"));
130
+ const N = n.getModel();
131
+ if (N) {
132
+ const L = N.getLineDecorations(h);
133
+ if (!(L == null ? void 0 : L.some(
134
+ (S) => {
135
+ var T, w, I, F;
136
+ return ((w = (T = S.options) == null ? void 0 : T.glyphMarginClassName) == null ? void 0 : w.startsWith("daakia-bp-glyph")) && !((F = (I = S.options) == null ? void 0 : I.glyphMarginClassName) != null && F.includes("hover"));
137
137
  }
138
138
  ))) {
139
- C.current = n.deltaDecorations(C.current, [{
140
- range: new i.Range(h, 1, h, 1),
139
+ b.current = n.deltaDecorations(b.current, [{
140
+ range: new r.Range(h, 1, h, 1),
141
141
  options: {
142
142
  isWholeLine: !1,
143
- stickiness: i.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
143
+ stickiness: r.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
144
144
  glyphMarginClassName: "daakia-bp-glyph--hover",
145
145
  glyphMarginHoverMessage: { value: "Left-click to add a breakpoint" }
146
146
  }
@@ -150,37 +150,37 @@ function he(r) {
150
150
  }
151
151
  }
152
152
  }
153
- C.current.length && (C.current = n.deltaDecorations(C.current, []));
153
+ b.current.length && (b.current = n.deltaDecorations(b.current, []));
154
154
  });
155
- v.current.push(a);
156
- const m = n.onMouseLeave(() => {
157
- C.current.length && (C.current = n.deltaDecorations(C.current, []));
155
+ y.current.push(a);
156
+ const p = n.onMouseLeave(() => {
157
+ b.current.length && (b.current = n.deltaDecorations(b.current, []));
158
158
  });
159
- v.current.push(m);
159
+ y.current.push(p);
160
160
  }
161
- if (e) {
161
+ if (t) {
162
162
  const a = [];
163
- for (const m of e) {
164
- const p = l == null ? void 0 : l.includes(m), d = g == null ? void 0 : g.includes(m);
163
+ for (const p of t) {
164
+ const f = l == null ? void 0 : l.includes(p), d = g == null ? void 0 : g.includes(p);
165
165
  let h = "daakia-bp-glyph";
166
- p ? h = "daakia-bp-glyph--disabled" : d && (h = "daakia-bp-glyph--conditional"), a.push({
167
- range: new i.Range(m, 1, m, 1),
166
+ f ? h = "daakia-bp-glyph--disabled" : d && (h = "daakia-bp-glyph--conditional"), a.push({
167
+ range: new r.Range(p, 1, p, 1),
168
168
  options: {
169
169
  isWholeLine: !0,
170
- className: p ? "" : "daakia-bp-line",
171
- stickiness: i.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
170
+ className: f ? "" : "daakia-bp-line",
171
+ stickiness: r.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
172
172
  glyphMarginClassName: h,
173
173
  glyphMarginHoverMessage: {
174
- value: d ? "Conditional Breakpoint" : p ? "Disabled Breakpoint" : "Breakpoint"
174
+ value: d ? "Conditional Breakpoint" : f ? "Disabled Breakpoint" : "Breakpoint"
175
175
  }
176
176
  }
177
177
  });
178
178
  }
179
179
  k.current = n.deltaDecorations(k.current, a);
180
180
  }
181
- }, [f, t, o, e, l, g]) };
181
+ }, [m, v, o, t, l, g]) };
182
182
  }
183
- const ee = {
183
+ const te = {
184
184
  navigateLine: null,
185
185
  setNavigateLine: () => {
186
186
  },
@@ -188,12 +188,12 @@ const ee = {
188
188
  status: "idle",
189
189
  variables: []
190
190
  };
191
- function _(r) {
192
- return r(ee);
191
+ function _(i) {
192
+ return i(te);
193
193
  }
194
- _.getState = () => ee;
195
- let z = !1;
196
- const te = {
194
+ _.getState = () => te;
195
+ let $ = !1;
196
+ const ne = {
197
197
  javascript: ".js",
198
198
  typescript: ".ts",
199
199
  json: ".json",
@@ -205,284 +205,283 @@ const te = {
205
205
  yaml: ".yaml",
206
206
  sql: ".sql",
207
207
  markdown: ".md",
208
- plaintext: ".txt"
208
+ plaintext: ".txt",
209
+ proto: ".proto"
209
210
  };
210
- function be(r) {
211
+ function Ce(i) {
211
212
  let l = 0, g = "";
212
- const c = r.replace(/>\s*</g, "><").split(new RegExp("(?<=>)(?=<)"));
213
- for (const f of c) {
214
- const t = /^<\//.test(f), b = /\/>$/.test(f) || /^<!/.test(f) || /^<\?/.test(f);
215
- t && (l = Math.max(0, l - 1)), g += " ".repeat(l) + f.trim() + `
216
- `, !t && !b && /^<[^/!?]/.test(f) && l++;
213
+ const c = i.replace(/>\s*</g, "><").split(new RegExp("(?<=>)(?=<)"));
214
+ for (const m of c) {
215
+ const v = /^<\//.test(m), e = /\/>$/.test(m) || /^<!/.test(m) || /^<\?/.test(m);
216
+ v && (l = Math.max(0, l - 1)), g += " ".repeat(l) + m.trim() + `
217
+ `, !v && !e && /^<[^/!?]/.test(m) && l++;
217
218
  }
218
219
  return g.trimEnd();
219
220
  }
220
- function ye(r) {
221
- return r.split(`
222
- `).map((e) => e.trimEnd()).join(`
221
+ function ve(i) {
222
+ return i.split(`
223
+ `).map((t) => t.trimEnd()).join(`
223
224
  `).replace(/\n{3,}/g, `
224
225
 
225
226
  `).trim();
226
227
  }
227
- function Ce(r) {
228
- const e = /\b(SELECT|DISTINCT|FROM|WHERE|INNER JOIN|LEFT JOIN|RIGHT JOIN|FULL OUTER JOIN|FULL JOIN|CROSS JOIN|JOIN|ON|AND|OR|NOT|ORDER BY|GROUP BY|HAVING|LIMIT|OFFSET|UNION ALL|UNION|INTERSECT|EXCEPT|INSERT INTO|VALUES|UPDATE|SET|DELETE FROM|CREATE TABLE|DROP TABLE|ALTER TABLE|WITH)\b/gi;
229
- return r.replace(/\s+/g, " ").replace(e, `
228
+ function Ee(i) {
229
+ const t = /\b(SELECT|DISTINCT|FROM|WHERE|INNER JOIN|LEFT JOIN|RIGHT JOIN|FULL OUTER JOIN|FULL JOIN|CROSS JOIN|JOIN|ON|AND|OR|NOT|ORDER BY|GROUP BY|HAVING|LIMIT|OFFSET|UNION ALL|UNION|INTERSECT|EXCEPT|INSERT INTO|VALUES|UPDATE|SET|DELETE FROM|CREATE TABLE|DROP TABLE|ALTER TABLE|WITH)\b/gi;
230
+ return i.replace(/\s+/g, " ").replace(t, `
230
231
  $1`).split(`
231
232
  `).map((l) => l.trim()).filter((l) => l.length > 0).join(`
232
233
  `);
233
234
  }
234
- function Ee({
235
- value: r,
236
- onChange: e,
235
+ function we({
236
+ value: i,
237
+ onChange: t,
237
238
  language: l = "json",
238
239
  height: g = "200px",
239
240
  minHeight: c,
240
- readOnly: f = !1,
241
- placeholder: t,
242
- wordWrap: b = !0,
243
- size: T,
241
+ readOnly: m = !1,
242
+ placeholder: v,
243
+ wordWrap: e = !0,
244
+ size: E,
244
245
  fontSize: k,
245
- className: w = "",
246
- bordered: C = !1,
247
- onEditorMount: v,
246
+ className: C = "",
247
+ bordered: b = !1,
248
+ onEditorMount: y,
248
249
  contextMenuMode: o = "native",
249
250
  contextMenuItems: s,
250
251
  editorOptions: n,
251
- accentColor: i
252
+ accentColor: r
252
253
  }) {
253
- const u = K(T), a = k ?? u.fontSize, m = q(), p = D(null), d = D([]), h = U(
254
- () => `inmemory://daakia/${crypto.randomUUID()}${te[l] || ".txt"}`,
254
+ const u = U(E), a = k ?? u.fontSize, p = q(), f = R(null), d = R([]), h = J(
255
+ () => `inmemory://daakia/${crypto.randomUUID()}${ne[l] || ".txt"}`,
255
256
  [l]
256
- ), x = typeof g == "number" ? `${g}px` : g, M = c ? `max(${x}, ${c}px)` : x;
257
- return R(() => () => {
258
- d.current.forEach((y) => {
257
+ ), N = typeof g == "number" ? `${g}px` : g, L = c ? `max(${N}, ${c}px)` : N;
258
+ M(() => () => {
259
+ d.current.forEach((w) => {
259
260
  var I;
260
- return (I = y == null ? void 0 : y.dispose) == null ? void 0 : I.call(y);
261
+ return (I = w == null ? void 0 : w.dispose) == null ? void 0 : I.call(w);
261
262
  }), d.current = [];
262
- const E = p.current;
263
- if (E) {
264
- const y = E.getModel();
265
- y && y.dispose();
263
+ const T = f.current;
264
+ if (T) {
265
+ const w = T.getModel();
266
+ w && w.dispose();
266
267
  }
267
- }, []), R(() => {
268
- if (!f) return;
269
- const E = p.current;
270
- if (!E) return;
271
- const y = E.getModel();
272
- !y || y.getValue() === r || y.setValue(r);
273
- }, [r, f]), /* @__PURE__ */ L(V, { bordered: C, containerHeight: M, contextMenuMode: o, contextMenuItems: s, accentColor: i, children: /* @__PURE__ */ L(
274
- $,
268
+ }, []);
269
+ const O = (T, w) => {
270
+ f.current = T, d.current = [], re(T, w, { language: l, value: i, placeholder: v, onEditorMount: y, contextMenuMode: o });
271
+ }, S = p === "light" ? "daakia-light" : "daakia-dark";
272
+ return /* @__PURE__ */ A(V, { bordered: b, containerHeight: L, contextMenuMode: o, contextMenuItems: s, accentColor: r, children: /* @__PURE__ */ A(
273
+ K,
275
274
  {
276
275
  height: "100%",
277
276
  language: l,
278
277
  path: h,
279
- value: r,
280
- theme: m === "light" ? "daakia-light" : "daakia-dark",
281
- onChange: (E) => e == null ? void 0 : e(E ?? ""),
282
- onMount: (E, y) => {
283
- p.current = E, d.current = [], oe(E, y, { language: l, value: r, placeholder: t, onEditorMount: v, contextMenuMode: o });
284
- },
285
- options: ne({ readOnly: f, fontSize: a, wordWrap: b, glyphMargin: !1, contextMenuMode: o, editorOptions: n })
278
+ value: i,
279
+ theme: S,
280
+ onChange: (T) => t == null ? void 0 : t(T ?? ""),
281
+ onMount: O,
282
+ options: oe({ readOnly: m, fontSize: a, wordWrap: e, glyphMargin: !1, contextMenuMode: o, editorOptions: n, theme: S })
286
283
  }
287
284
  ) });
288
285
  }
289
- function ve({
290
- value: r,
291
- onChange: e,
286
+ function Te({
287
+ value: i,
288
+ onChange: t,
292
289
  language: l = "json",
293
290
  height: g = "200px",
294
291
  minHeight: c,
295
- readOnly: f = !1,
296
- placeholder: t,
297
- wordWrap: b = !0,
298
- size: T,
292
+ readOnly: m = !1,
293
+ placeholder: v,
294
+ wordWrap: e = !0,
295
+ size: E,
299
296
  fontSize: k,
300
- className: w = "",
301
- bordered: C = !1,
302
- breakpoints: v,
297
+ className: C = "",
298
+ bordered: b = !1,
299
+ breakpoints: y,
303
300
  disabledBreakpoints: o,
304
301
  conditionalBreakpointLines: s,
305
302
  pausedLine: n,
306
- onToggleBreakpoint: i,
303
+ onToggleBreakpoint: r,
307
304
  onGlyphContextMenu: u,
308
305
  onEditorMount: a,
309
- contextMenuMode: m = "native",
310
- contextMenuItems: p,
306
+ contextMenuMode: p = "native",
307
+ contextMenuItems: f,
311
308
  editorOptions: d,
312
309
  accentColor: h
313
310
  }) {
314
- const x = K(T), M = k ?? x.fontSize, W = q(), E = D(null), y = D([]), I = U(
315
- () => `inmemory://daakia/${crypto.randomUUID()}${te[l] || ".txt"}`,
311
+ const N = U(E), L = k ?? N.fontSize, O = q(), S = R(null), T = R([]), w = J(
312
+ () => `inmemory://daakia/${crypto.randomUUID()}${ne[l] || ".txt"}`,
316
313
  [l]
317
- ), A = typeof g == "number" ? `${g}px` : g, F = c ? `max(${A}, ${c}px)` : A, { attach: re } = he({
318
- breakpoints: v,
314
+ ), I = typeof g == "number" ? `${g}px` : g, F = c ? `max(${I}, ${c}px)` : I, { attach: ie } = ye({
315
+ breakpoints: y,
319
316
  disabledBreakpoints: o,
320
317
  conditionalBreakpointLines: s,
321
318
  pausedLine: n,
322
- onToggleBreakpoint: i,
319
+ onToggleBreakpoint: r,
323
320
  onGlyphContextMenu: u
324
- }), O = _((S) => S.navigateLine);
325
- return R(() => () => {
326
- y.current.forEach((N) => {
327
- var j;
328
- return (j = N == null ? void 0 : N.dispose) == null ? void 0 : j.call(N);
329
- }), y.current = [];
330
- const S = E.current;
331
- if (S) {
332
- const N = S.getModel();
333
- N && N.dispose();
321
+ }), W = _((D) => D.navigateLine);
322
+ M(() => () => {
323
+ T.current.forEach((x) => {
324
+ var G;
325
+ return (G = x == null ? void 0 : x.dispose) == null ? void 0 : G.call(x);
326
+ }), T.current = [];
327
+ const D = S.current;
328
+ if (D) {
329
+ const x = D.getModel();
330
+ x && x.dispose();
334
331
  }
335
- }, []), R(() => {
336
- if (!f) return;
337
- const S = E.current;
338
- if (!S) return;
339
- const N = S.getModel();
340
- !N || N.getValue() === r || N.setValue(r);
341
- }, [r, f]), R(() => {
342
- !O || !E.current || !v || (E.current.revealLineInCenter(O), E.current.setPosition({ lineNumber: O, column: 1 }), _.getState().setNavigateLine(null));
343
- }, [O, v]), /* @__PURE__ */ L(V, { bordered: C, containerHeight: F, contextMenuMode: m, contextMenuItems: p, accentColor: h, children: /* @__PURE__ */ L(
344
- $,
332
+ }, []), M(() => {
333
+ !W || !S.current || !y || (S.current.revealLineInCenter(W), S.current.setPosition({ lineNumber: W, column: 1 }), _.getState().setNavigateLine(null));
334
+ }, [W, y]);
335
+ const ae = (D, x) => {
336
+ S.current = D, T.current = [], ie(D, x), re(D, x, { language: l, value: i, placeholder: v, onEditorMount: a, contextMenuMode: p });
337
+ }, j = O === "light" ? "daakia-light" : "daakia-dark";
338
+ return /* @__PURE__ */ A(V, { bordered: b, containerHeight: F, contextMenuMode: p, contextMenuItems: f, accentColor: h, children: /* @__PURE__ */ A(
339
+ K,
345
340
  {
346
341
  height: "100%",
347
342
  language: l,
348
- path: I,
349
- value: r,
350
- theme: W === "light" ? "daakia-light" : "daakia-dark",
351
- onChange: (S) => e == null ? void 0 : e(S ?? ""),
352
- onMount: (S, N) => {
353
- E.current = S, y.current = [], re(S, N), oe(S, N, { language: l, value: r, placeholder: t, onEditorMount: a, contextMenuMode: m });
354
- },
355
- options: ne({ readOnly: f, fontSize: M, wordWrap: b, glyphMargin: !!i, contextMenuMode: m, editorOptions: d })
343
+ path: w,
344
+ value: i,
345
+ theme: j,
346
+ onChange: (D) => t == null ? void 0 : t(D ?? ""),
347
+ onMount: ae,
348
+ options: oe({ readOnly: m, fontSize: L, wordWrap: e, glyphMargin: !!r, contextMenuMode: p, editorOptions: d, theme: j })
356
349
  }
357
350
  ) });
358
351
  }
359
- function we({ debugSupported: r = !1, className: e = "", ...l }) {
360
- return r ? /* @__PURE__ */ L(ve, { className: e, ...l }) : /* @__PURE__ */ L(Ee, { className: e, ...l });
352
+ function Ne({ debugSupported: i = !1, className: t = "", ...l }) {
353
+ return i ? /* @__PURE__ */ A(Te, { className: t, ...l }) : /* @__PURE__ */ A(we, { className: t, ...l });
361
354
  }
362
- function ne({ readOnly: r, fontSize: e, wordWrap: l, glyphMargin: g, contextMenuMode: c = "native", editorOptions: f }) {
363
- var b, T, k, w, C, v, o, s, n, i, u;
364
- const t = f ?? {};
355
+ function oe({ readOnly: i, fontSize: t, wordWrap: l, glyphMargin: g, contextMenuMode: c = "native", editorOptions: m, theme: v }) {
356
+ var E, k, C, b, y, o, s, n, r, u, a;
357
+ const e = m ?? {};
365
358
  return {
359
+ // Baked into construction options (not just the top-level <Editor theme=""> prop)
360
+ // so Monaco applies it before its first paint — @monaco-editor/react creates the
361
+ // editor first and only calls the global setTheme() afterward as a separate step,
362
+ // which is what caused a flash of the default white 'vs' theme on every remount
363
+ // (tab switch, subtab switch, new-tab-then-close) before this fix.
364
+ theme: v,
366
365
  // ── Consumer-overridable defaults ────────────────────────────────────────
367
- lineNumbers: t.lineNumbers ?? "on",
368
- minimap: { enabled: t.minimap ?? !1 },
369
- scrollBeyondLastLine: t.scrollBeyondLastLine ?? !1,
370
- smoothScrolling: t.smoothScrolling ?? !1,
371
- mouseWheelZoom: t.mouseWheelZoom ?? !1,
372
- folding: t.folding ?? !0,
373
- showFoldingControls: t.showFoldingControls ?? "mouseover",
374
- tabSize: t.tabSize ?? 2,
375
- formatOnPaste: t.formatOnPaste ?? !0,
376
- formatOnType: t.formatOnType ?? !0,
377
- autoIndent: t.autoIndent ?? "full",
378
- renderWhitespace: t.renderWhitespace ?? "selection",
379
- matchBrackets: t.matchBrackets ?? "always",
380
- bracketPairColorization: { enabled: t.bracketPairColorization ?? !0 },
381
- colorDecorators: t.colorDecorators ?? !0,
382
- linkedEditing: t.linkedEditing ?? !0,
383
- copyWithSyntaxHighlighting: t.copyWithSyntaxHighlighting ?? !0,
384
- quickSuggestions: t.quickSuggestions ?? !0,
385
- suggestOnTriggerCharacters: t.suggestOnTriggerCharacters ?? !0,
386
- acceptSuggestionOnEnter: t.acceptSuggestionOnEnter ?? "on",
387
- hover: { enabled: t.hover ?? !0 },
388
- parameterHints: { enabled: t.parameterHints ?? !0 },
389
- codeLens: t.codeLens ?? !1,
390
- inlayHints: { enabled: t.inlayHints ?? !1 ? "on" : "off" },
391
- padding: { top: ((b = t.padding) == null ? void 0 : b.top) ?? 8, bottom: ((T = t.padding) == null ? void 0 : T.bottom) ?? 8 },
392
- ...t.cursorStyle && { cursorStyle: t.cursorStyle },
393
- ...t.cursorBlinking && { cursorBlinking: t.cursorBlinking },
394
- ...t.lineHeight && { lineHeight: t.lineHeight },
395
- ...t.letterSpacing && { letterSpacing: t.letterSpacing },
396
- ...t.rulers && { rulers: t.rulers },
397
- ...t.lineDecorationsWidth !== void 0 && { lineDecorationsWidth: t.lineDecorationsWidth },
398
- ...t.lineNumbersMinChars !== void 0 && { lineNumbersMinChars: t.lineNumbersMinChars },
366
+ lineNumbers: e.lineNumbers ?? "on",
367
+ minimap: { enabled: e.minimap ?? !1 },
368
+ scrollBeyondLastLine: e.scrollBeyondLastLine ?? !1,
369
+ smoothScrolling: e.smoothScrolling ?? !1,
370
+ mouseWheelZoom: e.mouseWheelZoom ?? !1,
371
+ folding: e.folding ?? !0,
372
+ showFoldingControls: e.showFoldingControls ?? "mouseover",
373
+ tabSize: e.tabSize ?? 2,
374
+ formatOnPaste: e.formatOnPaste ?? !0,
375
+ formatOnType: e.formatOnType ?? !0,
376
+ autoIndent: e.autoIndent ?? "full",
377
+ renderWhitespace: e.renderWhitespace ?? "selection",
378
+ matchBrackets: e.matchBrackets ?? "always",
379
+ bracketPairColorization: { enabled: e.bracketPairColorization ?? !0 },
380
+ colorDecorators: e.colorDecorators ?? !0,
381
+ linkedEditing: e.linkedEditing ?? !0,
382
+ copyWithSyntaxHighlighting: e.copyWithSyntaxHighlighting ?? !0,
383
+ quickSuggestions: e.quickSuggestions ?? !0,
384
+ suggestOnTriggerCharacters: e.suggestOnTriggerCharacters ?? !0,
385
+ acceptSuggestionOnEnter: e.acceptSuggestionOnEnter ?? "on",
386
+ hover: { enabled: e.hover ?? !0 },
387
+ parameterHints: { enabled: e.parameterHints ?? !0 },
388
+ codeLens: e.codeLens ?? !1,
389
+ inlayHints: { enabled: e.inlayHints ?? !1 ? "on" : "off" },
390
+ padding: { top: ((E = e.padding) == null ? void 0 : E.top) ?? 8, bottom: ((k = e.padding) == null ? void 0 : k.bottom) ?? 8 },
391
+ ...e.cursorStyle && { cursorStyle: e.cursorStyle },
392
+ ...e.cursorBlinking && { cursorBlinking: e.cursorBlinking },
393
+ ...e.lineHeight && { lineHeight: e.lineHeight },
394
+ ...e.letterSpacing && { letterSpacing: e.letterSpacing },
395
+ ...e.rulers && { rulers: e.rulers },
396
+ ...e.lineDecorationsWidth !== void 0 && { lineDecorationsWidth: e.lineDecorationsWidth },
397
+ ...e.lineNumbersMinChars !== void 0 && { lineNumbersMinChars: e.lineNumbersMinChars },
399
398
  // ── Prop-level overrides (top-level EditorView props win over editorOptions) ─
400
- readOnly: r,
401
- fontSize: e,
402
- wordWrap: t.wordWrap ?? (l ? "on" : "off"),
399
+ readOnly: i,
400
+ fontSize: t,
401
+ wordWrap: e.wordWrap ?? (l ? "on" : "off"),
403
402
  // ── DUI structural — never overridable ──────────────────────────────────
404
403
  automaticLayout: !0,
405
404
  glyphMargin: g,
406
- renderLineHighlight: t.renderLineHighlight ?? (g ? "line" : "none"),
405
+ renderLineHighlight: e.renderLineHighlight ?? (g ? "line" : "none"),
407
406
  fixedOverflowWidgets: !0,
408
407
  contextmenu: c === "native",
409
408
  overviewRulerLanes: 0,
410
409
  hideCursorInOverviewRuler: !0,
411
410
  overviewRulerBorder: !1,
412
411
  scrollbar: {
413
- vertical: ((k = t.scrollbar) == null ? void 0 : k.vertical) ?? "auto",
414
- horizontal: ((w = t.scrollbar) == null ? void 0 : w.horizontal) ?? "auto",
415
- verticalScrollbarSize: ((C = t.scrollbar) == null ? void 0 : C.verticalScrollbarSize) ?? 6,
416
- horizontalScrollbarSize: ((v = t.scrollbar) == null ? void 0 : v.horizontalScrollbarSize) ?? 6
412
+ vertical: ((C = e.scrollbar) == null ? void 0 : C.vertical) ?? "auto",
413
+ horizontal: ((b = e.scrollbar) == null ? void 0 : b.horizontal) ?? "auto",
414
+ verticalScrollbarSize: ((y = e.scrollbar) == null ? void 0 : y.verticalScrollbarSize) ?? 6,
415
+ horizontalScrollbarSize: ((o = e.scrollbar) == null ? void 0 : o.horizontalScrollbarSize) ?? 6
417
416
  },
418
- fontFamily: t.fontFamily ?? 'Menlo, Monaco, "Courier New", monospace',
417
+ fontFamily: e.fontFamily ?? 'Menlo, Monaco, "Courier New", monospace',
419
418
  autoClosingBrackets: "always",
420
419
  autoClosingQuotes: "always",
421
420
  autoClosingDelete: "always",
422
421
  autoSurround: "languageDefined",
423
422
  guides: { bracketPairs: !0, indentation: !0 },
424
423
  suggest: {
425
- showKeywords: ((o = t.suggest) == null ? void 0 : o.showKeywords) ?? !0,
426
- showSnippets: ((s = t.suggest) == null ? void 0 : s.showSnippets) ?? !0,
427
- showValues: ((n = t.suggest) == null ? void 0 : n.showValues) ?? !0,
428
- showProperties: ((i = t.suggest) == null ? void 0 : i.showProperties) ?? !0,
429
- ...((u = t.suggest) == null ? void 0 : u.showIcons) !== void 0 && { showIcons: t.suggest.showIcons }
424
+ showKeywords: ((s = e.suggest) == null ? void 0 : s.showKeywords) ?? !0,
425
+ showSnippets: ((n = e.suggest) == null ? void 0 : n.showSnippets) ?? !0,
426
+ showValues: ((r = e.suggest) == null ? void 0 : r.showValues) ?? !0,
427
+ showProperties: ((u = e.suggest) == null ? void 0 : u.showProperties) ?? !0,
428
+ ...((a = e.suggest) == null ? void 0 : a.showIcons) !== void 0 && { showIcons: e.suggest.showIcons }
430
429
  }
431
430
  };
432
431
  }
433
- function oe(r, e, { language: l, value: g, placeholder: c, onEditorMount: f, contextMenuMode: t = "native" }) {
434
- const b = () => r.layout();
435
- b(), requestAnimationFrame(b), setTimeout(b, 50), setTimeout(b, 200);
436
- const T = r.getContainerDomNode().parentElement;
437
- if (T) {
438
- const o = new ResizeObserver(b);
439
- o.observe(T), r.onDidDispose(() => o.disconnect());
432
+ function re(i, t, { language: l, value: g, placeholder: c, onEditorMount: m, contextMenuMode: v = "native" }) {
433
+ const e = () => i.layout();
434
+ e(), requestAnimationFrame(e), setTimeout(e, 50), setTimeout(e, 200);
435
+ const E = i.getContainerDomNode().parentElement;
436
+ if (E) {
437
+ const o = new ResizeObserver(e);
438
+ o.observe(E), i.onDidDispose(() => o.disconnect());
440
439
  }
441
- r.updateOptions({
440
+ i.updateOptions({
442
441
  autoClosingBrackets: "always",
443
442
  autoClosingQuotes: "always",
444
443
  autoClosingDelete: "always",
445
444
  autoSurround: "languageDefined",
446
445
  autoIndent: "full"
447
446
  });
448
- const k = e.KeyMod, w = e.KeyCode;
449
- r.addAction({
447
+ const k = t.KeyMod, C = t.KeyCode;
448
+ i.addAction({
450
449
  id: "daakia.clipboard.copy",
451
450
  label: "Copy",
452
- keybindings: [k.CtrlCmd | w.KeyC],
451
+ keybindings: [k.CtrlCmd | C.KeyC],
453
452
  run: (o) => {
454
- var n, i;
453
+ var n, r;
455
454
  const s = o.getSelection();
456
455
  if (s && !s.isEmpty())
457
456
  navigator.clipboard.writeText(((n = o.getModel()) == null ? void 0 : n.getValueInRange(s)) || "");
458
457
  else {
459
458
  const u = o.getPosition();
460
- u && navigator.clipboard.writeText((((i = o.getModel()) == null ? void 0 : i.getLineContent(u.lineNumber)) || "") + `
459
+ u && navigator.clipboard.writeText((((r = o.getModel()) == null ? void 0 : r.getLineContent(u.lineNumber)) || "") + `
461
460
  `);
462
461
  }
463
462
  }
464
- }), r.addAction({
463
+ }), i.addAction({
465
464
  id: "daakia.clipboard.cut",
466
465
  label: "Cut",
467
- keybindings: [k.CtrlCmd | w.KeyX],
466
+ keybindings: [k.CtrlCmd | C.KeyX],
468
467
  run: (o) => {
469
468
  var n;
470
469
  const s = o.getSelection();
471
470
  if (s && !s.isEmpty())
472
471
  navigator.clipboard.writeText(((n = o.getModel()) == null ? void 0 : n.getValueInRange(s)) || ""), o.executeEdits("cut", [{ range: s, text: "" }]);
473
472
  else {
474
- const i = o.getPosition();
475
- if (i) {
473
+ const r = o.getPosition();
474
+ if (r) {
476
475
  const u = o.getModel();
477
- u && (navigator.clipboard.writeText(u.getLineContent(i.lineNumber) + `
478
- `), o.executeEdits("cut", [{ range: new e.Range(i.lineNumber, 1, i.lineNumber + 1, 1), text: "" }]));
476
+ u && (navigator.clipboard.writeText(u.getLineContent(r.lineNumber) + `
477
+ `), o.executeEdits("cut", [{ range: new t.Range(r.lineNumber, 1, r.lineNumber + 1, 1), text: "" }]));
479
478
  }
480
479
  }
481
480
  }
482
- }), r.addAction({
481
+ }), i.addAction({
483
482
  id: "daakia.clipboard.paste",
484
483
  label: "Paste",
485
- keybindings: [k.CtrlCmd | w.KeyV],
484
+ keybindings: [k.CtrlCmd | C.KeyV],
486
485
  run: async (o) => {
487
486
  try {
488
487
  const s = await navigator.clipboard.readText();
@@ -493,61 +492,61 @@ function oe(r, e, { language: l, value: g, placeholder: c, onEditorMount: f, con
493
492
  } catch {
494
493
  }
495
494
  }
496
- }), r.addAction({
495
+ }), i.addAction({
497
496
  id: "daakia.clipboard.selectAll",
498
497
  label: "Select All",
499
- keybindings: [k.CtrlCmd | w.KeyA],
498
+ keybindings: [k.CtrlCmd | C.KeyA],
500
499
  run: (o) => {
501
500
  const s = o.getModel();
502
501
  s && o.setSelection(s.getFullModelRange());
503
502
  }
504
- }), r.addAction({
503
+ }), i.addAction({
505
504
  id: "daakia.format.document",
506
505
  label: "Format Document",
507
- keybindings: [k.Shift | k.Alt | w.KeyF],
506
+ keybindings: [k.Shift | k.Alt | C.KeyF],
508
507
  contextMenuGroupId: "modification",
509
508
  contextMenuOrder: 1.5,
510
509
  run: async (o) => {
511
- var i;
510
+ var r;
512
511
  const s = o.getModel();
513
512
  if (!s) return;
514
513
  const n = s.getLanguageId();
515
514
  if (n === "xml" || n === "html")
516
515
  try {
517
- const u = s.getValue(), a = be(u);
516
+ const u = s.getValue(), a = Ce(u);
518
517
  a !== u && o.executeEdits("daakia.format", [{ range: s.getFullModelRange(), text: a }]);
519
518
  } catch {
520
519
  }
521
520
  else if (n === "yaml")
522
521
  try {
523
- const u = s.getValue(), a = ye(u);
522
+ const u = s.getValue(), a = ve(u);
524
523
  a !== u && o.executeEdits("daakia.format", [{ range: s.getFullModelRange(), text: a }]);
525
524
  } catch {
526
525
  }
527
526
  else if (n === "sql")
528
527
  try {
529
- const u = s.getValue(), a = Ce(u);
528
+ const u = s.getValue(), a = Ee(u);
530
529
  a !== u && o.executeEdits("daakia.format", [{ range: s.getFullModelRange(), text: a }]);
531
530
  } catch {
532
531
  }
533
532
  else
534
- await ((i = o.getAction("editor.action.formatDocument")) == null ? void 0 : i.run());
533
+ await ((r = o.getAction("editor.action.formatDocument")) == null ? void 0 : r.run());
535
534
  }
536
- }), r.addAction({
535
+ }), i.addAction({
537
536
  id: "daakia.findAndReplace",
538
537
  label: "Find and Replace",
539
- keybindings: [k.CtrlCmd | k.Shift | w.KeyH],
538
+ keybindings: [k.CtrlCmd | k.Shift | C.KeyH],
540
539
  contextMenuGroupId: "navigation",
541
540
  contextMenuOrder: 1.5,
542
541
  run: () => {
543
542
  var o;
544
- return (o = r.getAction("editor.action.startFindReplaceAction")) == null ? void 0 : o.run();
543
+ return (o = i.getAction("editor.action.startFindReplaceAction")) == null ? void 0 : o.run();
545
544
  }
546
545
  });
547
- const C = r.getModel();
548
- if (C) {
549
- const o = C.getLanguageId();
550
- o === "xml" || o === "html" ? (e.languages.setLanguageConfiguration(o, {
546
+ const b = i.getModel();
547
+ if (b) {
548
+ const o = b.getLanguageId();
549
+ o === "xml" || o === "html" ? (t.languages.setLanguageConfiguration(o, {
551
550
  autoClosingPairs: [
552
551
  { open: "{", close: "}" },
553
552
  { open: "[", close: "]" },
@@ -569,34 +568,34 @@ function oe(r, e, { language: l, value: g, placeholder: c, onEditorMount: f, con
569
568
  {
570
569
  beforeText: /<([_:\w][_:\w\-.\d]*)([^/>]*(?!\/)>)\s*$/i,
571
570
  afterText: /^<\/([_:\w][_:\w\-.\d]*)\s*>$/i,
572
- action: { indentAction: e.languages.IndentAction.IndentOutdent }
571
+ action: { indentAction: t.languages.IndentAction.IndentOutdent }
573
572
  },
574
573
  {
575
574
  beforeText: /<([_:\w][_:\w\-.\d]*)([^/>]*(?!\/)>)\s*$/i,
576
- action: { indentAction: e.languages.IndentAction.Indent }
575
+ action: { indentAction: t.languages.IndentAction.Indent }
577
576
  }
578
577
  ],
579
578
  wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g
580
- }), e.languages.registerCompletionItemProvider(o, {
579
+ }), t.languages.registerCompletionItemProvider(o, {
581
580
  triggerCharacters: ["/"],
582
581
  provideCompletionItems: (s, n) => {
583
- const i = s.getValueInRange({
582
+ const r = s.getValueInRange({
584
583
  startLineNumber: 1,
585
584
  startColumn: 1,
586
585
  endLineNumber: n.lineNumber,
587
586
  endColumn: n.column
588
587
  });
589
- if (i.match(/<\/\s*$/)) {
590
- const a = [], m = /<\/?([_:\w][_:\w\-.\d]*)[^>]*\/?>/g;
591
- let p;
592
- for (; (p = m.exec(i.slice(0, -2))) !== null; )
593
- p[0].startsWith("</") ? a.pop() : p[0].endsWith("/>") || a.push(p[1]);
588
+ if (r.match(/<\/\s*$/)) {
589
+ const a = [], p = /<\/?([_:\w][_:\w\-.\d]*)[^>]*\/?>/g;
590
+ let f;
591
+ for (; (f = p.exec(r.slice(0, -2))) !== null; )
592
+ f[0].startsWith("</") ? a.pop() : f[0].endsWith("/>") || a.push(f[1]);
594
593
  const d = a[a.length - 1];
595
594
  if (d)
596
595
  return {
597
596
  suggestions: [{
598
597
  label: `/${d}>`,
599
- kind: e.languages.CompletionItemKind.Keyword,
598
+ kind: t.languages.CompletionItemKind.Keyword,
600
599
  insertText: `${d}>`,
601
600
  range: {
602
601
  startLineNumber: n.lineNumber,
@@ -609,7 +608,7 @@ function oe(r, e, { language: l, value: g, placeholder: c, onEditorMount: f, con
609
608
  }
610
609
  return { suggestions: [] };
611
610
  }
612
- })) : e.languages.setLanguageConfiguration(o, {
611
+ })) : t.languages.setLanguageConfiguration(o, {
613
612
  autoClosingPairs: [
614
613
  { open: "{", close: "}" },
615
614
  { open: "[", close: "]" },
@@ -627,7 +626,7 @@ function oe(r, e, { language: l, value: g, placeholder: c, onEditorMount: f, con
627
626
  ]
628
627
  });
629
628
  }
630
- e.languages.getLanguages().some((o) => o.id === "graphql") || (e.languages.register({ id: "graphql" }), e.languages.setMonarchTokensProvider("graphql", {
629
+ t.languages.getLanguages().some((o) => o.id === "graphql") || (t.languages.register({ id: "graphql" }), t.languages.setMonarchTokensProvider("graphql", {
631
630
  keywords: ["type", "input", "enum", "union", "interface", "scalar", "schema", "query", "mutation", "subscription", "fragment", "on", "extend", "implements", "directive", "repeatable"],
632
631
  typeKeywords: ["String", "Int", "Float", "Boolean", "ID"],
633
632
  operators: ["!", "=", "|", "&", "..."],
@@ -649,7 +648,7 @@ function oe(r, e, { language: l, value: g, placeholder: c, onEditorMount: f, con
649
648
  [/@[a-zA-Z_]\w*/, "annotation"]
650
649
  ]
651
650
  }
652
- })), l === "javascript" && (z || (e.languages.typescript.javascriptDefaults.addExtraLib(me, "dk-globals.d.ts"), z = !0), e.languages.registerCompletionItemProvider("javascript", {
651
+ })), l === "javascript" && ($ || (t.languages.typescript.javascriptDefaults.addExtraLib(he, "dk-globals.d.ts"), $ = !0), t.languages.registerCompletionItemProvider("javascript", {
653
652
  triggerCharacters: ["."],
654
653
  provideCompletionItems: (o, s) => {
655
654
  const n = o.getValueInRange({
@@ -657,48 +656,54 @@ function oe(r, e, { language: l, value: g, placeholder: c, onEditorMount: f, con
657
656
  startColumn: 1,
658
657
  endLineNumber: s.lineNumber,
659
658
  endColumn: s.column
660
- }), i = ke();
661
- if (i.length > 0) return { suggestions: i };
659
+ }), r = be();
660
+ if (r.length > 0) return { suggestions: r };
662
661
  const u = { startLineNumber: s.lineNumber, endLineNumber: s.lineNumber, startColumn: s.column, endColumn: s.column };
663
662
  return /\bconsole\.\s*$/.test(n) ? {
664
663
  suggestions: [
665
- { label: "log", kind: e.languages.CompletionItemKind.Function, insertText: "log(${1})", insertTextRules: e.languages.CompletionItemInsertTextRule.InsertAsSnippet, detail: "Log output", range: u },
666
- { label: "info", kind: e.languages.CompletionItemKind.Function, insertText: "info(${1})", insertTextRules: e.languages.CompletionItemInsertTextRule.InsertAsSnippet, detail: "Info output", range: u },
667
- { label: "warn", kind: e.languages.CompletionItemKind.Function, insertText: "warn(${1})", insertTextRules: e.languages.CompletionItemInsertTextRule.InsertAsSnippet, detail: "Warning output", range: u },
668
- { label: "error", kind: e.languages.CompletionItemKind.Function, insertText: "error(${1})", insertTextRules: e.languages.CompletionItemInsertTextRule.InsertAsSnippet, detail: "Error output", range: u },
669
- { label: "debug", kind: e.languages.CompletionItemKind.Function, insertText: "debug(${1})", insertTextRules: e.languages.CompletionItemInsertTextRule.InsertAsSnippet, detail: "Debug output", range: u }
664
+ { label: "log", kind: t.languages.CompletionItemKind.Function, insertText: "log(${1})", insertTextRules: t.languages.CompletionItemInsertTextRule.InsertAsSnippet, detail: "Log output", range: u },
665
+ { label: "info", kind: t.languages.CompletionItemKind.Function, insertText: "info(${1})", insertTextRules: t.languages.CompletionItemInsertTextRule.InsertAsSnippet, detail: "Info output", range: u },
666
+ { label: "warn", kind: t.languages.CompletionItemKind.Function, insertText: "warn(${1})", insertTextRules: t.languages.CompletionItemInsertTextRule.InsertAsSnippet, detail: "Warning output", range: u },
667
+ { label: "error", kind: t.languages.CompletionItemKind.Function, insertText: "error(${1})", insertTextRules: t.languages.CompletionItemInsertTextRule.InsertAsSnippet, detail: "Error output", range: u },
668
+ { label: "debug", kind: t.languages.CompletionItemKind.Function, insertText: "debug(${1})", insertTextRules: t.languages.CompletionItemInsertTextRule.InsertAsSnippet, detail: "Debug output", range: u }
670
669
  ]
671
670
  } : { suggestions: [] };
672
671
  }
673
- })), !g && c && r.updateOptions({ placeholder: c }), f == null || f(r, e), r.updateOptions({ contextmenu: t === "native" });
672
+ })), !g && c && i.updateOptions({ placeholder: c }), m == null || m(i, t), i.updateOptions({ contextmenu: v === "native" });
674
673
  }
675
- function Te({
676
- original: r,
677
- modified: e,
674
+ function Se({
675
+ original: i,
676
+ modified: t,
678
677
  language: l = "sql",
679
678
  height: g = 300,
680
679
  readOnly: c = !0,
681
- renderSideBySide: f = !0,
682
- wordWrap: t = !1,
683
- fontSize: b = 12,
684
- theme: T,
680
+ renderSideBySide: m = !0,
681
+ wordWrap: v = !1,
682
+ fontSize: e = 12,
683
+ theme: E,
685
684
  onMount: k
686
685
  }) {
687
- const w = q(), C = T ?? (w === "light" ? "vs" : "vs-dark"), v = typeof g == "number" ? `${g}px` : g;
688
- return /* @__PURE__ */ L(
689
- ie,
686
+ const C = q(), b = E ?? (C === "light" ? "vs" : "vs-dark"), y = typeof g == "number" ? `${g}px` : g;
687
+ return /* @__PURE__ */ A(
688
+ se,
690
689
  {
691
- height: v,
690
+ height: y,
692
691
  language: l,
693
- theme: C,
694
- original: r,
695
- modified: e,
692
+ theme: b,
693
+ original: i,
694
+ modified: t,
696
695
  onMount: k,
697
696
  options: {
698
697
  readOnly: c,
699
- renderSideBySide: f,
700
- wordWrap: t ? "on" : "off",
701
- fontSize: b,
698
+ renderSideBySide: m,
699
+ // Monaco silently drops to inline/unified rendering below its own
700
+ // width threshold regardless of renderSideBySide — this diff editor
701
+ // is often mounted inside narrow panels (e.g. Merkle's expanded
702
+ // table row), so pin side-by-side explicitly instead of letting it
703
+ // auto-collapse.
704
+ useInlineViewWhenSpaceIsLimited: !1,
705
+ wordWrap: v ? "on" : "off",
706
+ fontSize: e,
702
707
  automaticLayout: !0,
703
708
  minimap: { enabled: !1 },
704
709
  scrollBeyondLastLine: !1,
@@ -710,8 +715,8 @@ function Te({
710
715
  );
711
716
  }
712
717
  window.MonacoEnvironment = {
713
- getWorker(r, e) {
714
- return e === "json" ? new ce() : e === "html" || e === "handlebars" || e === "razor" ? new fe() : e === "typescript" || e === "javascript" ? new pe() : new ge();
718
+ getWorker(i, t) {
719
+ return t === "json" ? new pe() : t === "html" || t === "handlebars" || t === "razor" ? new me() : t === "typescript" || t === "javascript" ? new ke() : new fe();
715
720
  }
716
721
  };
717
722
  B.editor.defineTheme("daakia-dark", {
@@ -782,33 +787,33 @@ B.editor.defineTheme("daakia-dark", {
782
787
  }
783
788
  });
784
789
  P.setCompilerOptions({
785
- target: X.ESNext,
786
- module: Y.ESNext,
790
+ target: Q.ESNext,
791
+ module: X.ESNext,
787
792
  allowNonTsExtensions: !0,
788
793
  allowJs: !0,
789
794
  checkJs: !0,
790
795
  strict: !1,
791
796
  noEmit: !0,
792
797
  esModuleInterop: !0,
793
- moduleResolution: Z.NodeJs,
794
- jsx: J.React
798
+ moduleResolution: Y.NodeJs,
799
+ jsx: Z.React
795
800
  });
796
801
  P.setDiagnosticsOptions({
797
802
  noSemanticValidation: !1,
798
803
  noSyntaxValidation: !1
799
804
  });
800
805
  P.setEagerModelSync(!0);
801
- Q.setEagerModelSync(!0);
802
- Q.setCompilerOptions({
803
- target: X.ESNext,
804
- module: Y.ESNext,
806
+ ee.setEagerModelSync(!0);
807
+ ee.setCompilerOptions({
808
+ target: Q.ESNext,
809
+ module: X.ESNext,
805
810
  allowNonTsExtensions: !0,
806
811
  allowJs: !0,
807
812
  strict: !1,
808
813
  noEmit: !0,
809
814
  esModuleInterop: !0,
810
- moduleResolution: Z.NodeJs,
811
- jsx: J.React
815
+ moduleResolution: Y.NodeJs,
816
+ jsx: Z.React
812
817
  });
813
818
  B.editor.defineTheme("daakia-light", {
814
819
  base: "vs",
@@ -868,13 +873,13 @@ B.editor.defineTheme("daakia-light", {
868
873
  focusBorder: "#6366f1"
869
874
  }
870
875
  });
871
- ae.config({ monaco: B });
876
+ le.config({ monaco: B });
872
877
  window.monaco = B;
873
- le(we);
874
- ue(Te);
875
- se();
876
- function Fe(r) {
877
- B.editor.setTheme(r === "dark" ? "daakia-dark" : "daakia-light");
878
+ de(Ne);
879
+ ge(Se);
880
+ ue();
881
+ function Fe(i) {
882
+ B.editor.setTheme(i === "dark" ? "daakia-dark" : "daakia-light");
878
883
  }
879
884
  export {
880
885
  Fe as applyMonacoTheme,