@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.
- package/dist/assets/DuiShowcase-C2jk2ySV.js +74705 -0
- package/dist/assets/DuiShowcase-CZLjKDpL.css +1 -0
- package/dist/assets/abap-DLDM7-KI.js +1 -0
- package/dist/assets/apex-DNDY2TF8.js +1 -0
- package/dist/assets/azcli-Y6nb8tq_.js +1 -0
- package/dist/assets/bat-BwHxbl9M.js +1 -0
- package/dist/assets/bicep-CFznDFnq.js +2 -0
- package/dist/assets/cameligo-Bf6VGUru.js +1 -0
- package/dist/assets/clojure-Dnu-v4kV.js +1 -0
- package/dist/assets/codicon-ngg6Pgfi.ttf +0 -0
- package/dist/assets/coffee-Bd8akH9Z.js +1 -0
- package/dist/assets/cpp-BbWJElDN.js +1 -0
- package/dist/assets/csharp-Co3qMtFm.js +1 -0
- package/dist/assets/csp-D-4FJmMZ.js +1 -0
- package/dist/assets/css-DdJfP1eB.js +3 -0
- package/dist/assets/css.worker-B4z49cGk.js +93 -0
- package/dist/assets/cssMode-CZYOZ1AO.js +1 -0
- package/dist/assets/cypher-cTPe9QuQ.js +1 -0
- package/dist/assets/dart-BOtBlQCF.js +1 -0
- package/dist/assets/dockerfile-BG73LgW2.js +1 -0
- package/dist/assets/ecl-BEgZUVRK.js +1 -0
- package/dist/assets/elixir-BkW5O-1t.js +1 -0
- package/dist/assets/flow9-BeJ5waoc.js +1 -0
- package/dist/assets/freemarker2-CGSa1nHJ.js +3 -0
- package/dist/assets/fsharp-PahG7c26.js +1 -0
- package/dist/assets/go-acbASCJo.js +1 -0
- package/dist/assets/graphql-BxJiqAUM.js +1 -0
- package/dist/assets/handlebars-mB8dxbcs.js +1 -0
- package/dist/assets/hcl-DtV1sZF8.js +1 -0
- package/dist/assets/html-l7YRKuHI.js +1 -0
- package/dist/assets/html.worker-DtiGdgqp.js +470 -0
- package/dist/assets/htmlMode-CuoiFE2t.js +1 -0
- package/dist/assets/index-B12PznEF.js +50 -0
- package/dist/assets/index-B_5G6LrJ.css +10 -0
- package/dist/assets/ini-Kd9XrMLS.js +1 -0
- package/dist/assets/java-CXBNlu9o.js +1 -0
- package/dist/assets/javascript-9UYwmKgx.js +1 -0
- package/dist/assets/json.worker-leyajbqV.js +58 -0
- package/dist/assets/jsonMode-6uegdfHj.js +7 -0
- package/dist/assets/julia-cl7-CwDS.js +1 -0
- package/dist/assets/kotlin-s7OhZKlX.js +1 -0
- package/dist/assets/less-9HpZscsL.js +2 -0
- package/dist/assets/lexon-OrD6JF1K.js +1 -0
- package/dist/assets/liquid-C8P3CEDc.js +1 -0
- package/dist/assets/lspLanguageFeatures-Ju8ugRgx.js +4 -0
- package/dist/assets/lua-Cyyb5UIc.js +1 -0
- package/dist/assets/m3-B8OfTtLu.js +1 -0
- package/dist/assets/markdown-BFxVWTOG.js +1 -0
- package/dist/assets/mdx-D4_p5PzA.js +1 -0
- package/dist/assets/mips-CiqrrVzr.js +1 -0
- package/dist/assets/monaco-editor-CN2OOCze.js +908 -0
- package/dist/assets/monaco-editor-qiF_U8vl.css +1 -0
- package/dist/assets/msdax-DmeGPVcC.js +1 -0
- package/dist/assets/mysql-C_tMU-Nz.js +1 -0
- package/dist/assets/objective-c-BDtDVThU.js +1 -0
- package/dist/assets/pascal-vHIfCaH5.js +1 -0
- package/dist/assets/pascaligo-DtZ0uQbO.js +1 -0
- package/dist/assets/perl-Ub6l9XKa.js +1 -0
- package/dist/assets/pgsql-BlNEE0v7.js +1 -0
- package/dist/assets/php-BBUBE1dy.js +1 -0
- package/dist/assets/pla-DSh2-awV.js +1 -0
- package/dist/assets/postiats-CocnycG-.js +1 -0
- package/dist/assets/powerquery-tScXyioY.js +1 -0
- package/dist/assets/powershell-COWaemsV.js +1 -0
- package/dist/assets/protobuf-Brw8urJB.js +2 -0
- package/dist/assets/pug-8SOpv6rk.js +1 -0
- package/dist/assets/python-BDvE0baC.js +1 -0
- package/dist/assets/qsharp-Bw9ernYp.js +1 -0
- package/dist/assets/r-j7ic8hl3.js +1 -0
- package/dist/assets/razor-3AZt1jFw.js +1 -0
- package/dist/assets/redis-Bu5POkcn.js +1 -0
- package/dist/assets/redshift-Bs9aos_-.js +1 -0
- package/dist/assets/restructuredtext-CqXO7rUv.js +1 -0
- package/dist/assets/ruby-zBfavPgS.js +1 -0
- package/dist/assets/rust-BzKRNQWT.js +1 -0
- package/dist/assets/sb-BBc9UKZt.js +1 -0
- package/dist/assets/scala-D9hQfWCl.js +1 -0
- package/dist/assets/scheme-BPhDTwHR.js +1 -0
- package/dist/assets/scss-CBJaRo0y.js +3 -0
- package/dist/assets/shell-DiJ1NA_G.js +1 -0
- package/dist/assets/solidity-Db0IVjzk.js +1 -0
- package/dist/assets/sophia-CnS9iZB_.js +1 -0
- package/dist/assets/sparql-CJmd_6j2.js +1 -0
- package/dist/assets/sql-ClhHkBeG.js +1 -0
- package/dist/assets/st-CHwy0fLd.js +1 -0
- package/dist/assets/swift-Bqt4WxQ4.js +3 -0
- package/dist/assets/systemverilog-Bs9z6M-B.js +1 -0
- package/dist/assets/tcl-Dm6ycUr_.js +1 -0
- package/dist/assets/ts.worker-59MjiAqk.js +67731 -0
- package/dist/assets/tsMode-2fAJOXuF.js +11 -0
- package/dist/assets/twig-Csy3S7wG.js +1 -0
- package/dist/assets/typescript-Bv1W4NlY.js +1 -0
- package/dist/assets/typespec-Btyra-wh.js +1 -0
- package/dist/assets/vb-Db0cS2oM.js +1 -0
- package/dist/assets/wgsl-BTesnYfV.js +298 -0
- package/dist/assets/xml-CR03X85Q.js +1 -0
- package/dist/assets/yaml-Qi3RsNvX.js +1 -0
- package/dist/chunks/{EditorView.shell-BGH2VhWM.js → EditorView.shell-DWGMOgiy.js} +215 -165
- package/dist/chunks/EditorView.shell-DWGMOgiy.js.map +1 -0
- package/dist/chunks/daakia-icons-BpwUOdSO.js +4665 -0
- package/dist/chunks/daakia-icons-BpwUOdSO.js.map +1 -0
- package/dist/chunks/vis-runtime-DkpA8K_T.js +32 -0
- package/dist/chunks/vis-runtime-DkpA8K_T.js.map +1 -0
- package/dist/icons/daakia-icons.d.ts +366 -0
- package/dist/index.html +15 -0
- package/dist/index.js +24569 -13515
- package/dist/index.js.map +1 -1
- package/dist/lib/components/button/AIButtonView.d.ts +1 -1
- package/dist/lib/components/button/BookmarkButtonView.d.ts +10 -0
- package/dist/lib/components/button/FabView.d.ts +20 -0
- package/dist/lib/components/button/FollowButtonView.d.ts +10 -0
- package/dist/lib/components/button/HoldToConfirmView.d.ts +14 -0
- package/dist/lib/components/button/IconButtonView.d.ts +1 -1
- package/dist/lib/components/button/LikeButtonView.d.ts +11 -0
- package/dist/lib/components/button/MorphingIconButtonView.d.ts +14 -0
- package/dist/lib/components/button/ThemeToggleView.d.ts +12 -0
- package/dist/lib/components/button/VoteWidgetView.d.ts +13 -0
- package/dist/lib/components/chips/ChipView.d.ts +5 -2
- package/dist/lib/components/chips/CommandChipView.d.ts +28 -0
- package/dist/lib/components/display/AIStreamingTextView.d.ts +16 -0
- package/dist/lib/components/display/ActivityFeedView.d.ts +19 -0
- package/dist/lib/components/display/ApiKeyRowView.d.ts +12 -0
- package/dist/lib/components/display/ArticleCardView.d.ts +16 -0
- package/dist/lib/components/display/AudioPlayerView.d.ts +10 -0
- package/dist/lib/components/display/AudioWaveformView.d.ts +15 -0
- package/dist/lib/components/display/AuditLogRowView.d.ts +14 -0
- package/dist/lib/components/display/AvatarGroupView.d.ts +17 -0
- package/dist/lib/components/display/AvatarView.d.ts +15 -0
- package/dist/lib/components/display/BannerView.d.ts +17 -0
- package/dist/lib/components/display/BarcodeView.d.ts +11 -0
- package/dist/lib/components/display/BreathingLoaderView.d.ts +11 -0
- package/dist/lib/components/display/CalloutView.d.ts +10 -0
- package/dist/lib/components/display/CarouselView.d.ts +12 -0
- package/dist/lib/components/display/ChangelogEntryView.d.ts +16 -0
- package/dist/lib/components/display/CodeBlockView.d.ts +15 -1
- package/dist/lib/components/display/ColumnVisibilityMenuView.d.ts +26 -0
- package/dist/lib/components/display/CommandOrbView.d.ts +15 -0
- package/dist/lib/components/display/CommentThreadView.d.ts +20 -0
- package/dist/lib/components/display/ComparisonSliderView.d.ts +12 -0
- package/dist/lib/components/display/ConfettiBurstView.d.ts +17 -0
- package/dist/lib/components/display/ConnectionPulseLineView.d.ts +14 -0
- package/dist/lib/components/display/ConstellationLoaderView.d.ts +14 -0
- package/dist/lib/components/display/ContactCardView.d.ts +19 -0
- package/dist/lib/components/display/CookieConsentBannerView.d.ts +14 -0
- package/dist/lib/components/display/CountUpNumberView.d.ts +16 -0
- package/dist/lib/components/display/CountdownRingView.d.ts +19 -0
- package/dist/lib/components/display/DataGridToolbarView.d.ts +20 -0
- package/dist/lib/components/display/DataTableView.d.ts +2 -1
- package/dist/lib/components/display/DescriptionsView.d.ts +19 -0
- package/dist/lib/components/display/DiffMorphView.d.ts +13 -0
- package/dist/lib/components/display/DragHandleView.d.ts +10 -0
- package/dist/lib/components/display/EditableCellView.d.ts +13 -0
- package/dist/lib/components/display/EmptyInboxView.d.ts +11 -0
- package/dist/lib/components/display/EnvironmentBadgeView.d.ts +13 -0
- package/dist/lib/components/display/FeatureSpotlightBadgeView.d.ts +11 -0
- package/dist/lib/components/display/FileIconView.d.ts +11 -0
- package/dist/lib/components/display/FileListView.d.ts +20 -0
- package/dist/lib/components/display/FilterBarView.d.ts +17 -0
- package/dist/lib/components/display/GaugeView.d.ts +12 -0
- package/dist/lib/components/display/GlowBorderView.d.ts +11 -0
- package/dist/lib/components/display/GradientTextView.d.ts +13 -0
- package/dist/lib/components/display/HeatmapCalendarView.d.ts +14 -0
- package/dist/lib/components/display/HoloCardView.d.ts +10 -0
- package/dist/lib/components/display/HudView.d.ts +36 -4
- package/dist/lib/components/display/ImageCropperView.d.ts +19 -0
- package/dist/lib/components/display/ImageGalleryView.d.ts +15 -0
- package/dist/lib/components/display/ImageZoomView.d.ts +10 -0
- package/dist/lib/components/display/InfoView.d.ts +23 -0
- package/dist/lib/components/display/InspectorPanelView.d.ts +29 -0
- package/dist/lib/components/display/IntegrationCardView.d.ts +16 -0
- package/dist/lib/components/display/KanbanBoardView.d.ts +27 -0
- package/dist/lib/components/display/KbdView.d.ts +11 -0
- package/dist/lib/components/display/KeyValueListView.d.ts +14 -0
- package/dist/lib/components/display/LatencyPulseView.d.ts +16 -0
- package/dist/lib/components/display/LicenseBadgeView.d.ts +11 -0
- package/dist/lib/components/display/ListView.d.ts +19 -0
- package/dist/lib/components/display/LiveCursorPresenceView.d.ts +19 -0
- package/dist/lib/components/display/LoaderView.d.ts +12 -1
- package/dist/lib/components/display/MagneticButtonView.d.ts +14 -0
- package/dist/lib/components/display/MaintenanceBannerView.d.ts +12 -0
- package/dist/lib/components/display/MessageBannerView.d.ts +13 -0
- package/dist/lib/components/display/MessageBubbleView.d.ts +14 -0
- package/dist/lib/components/display/NetworkGraphView.d.ts +59 -0
- package/dist/lib/components/display/NetworkGraphView.fallback.d.ts +11 -0
- package/dist/lib/components/display/NetworkGraphView.vis.d.ts +2 -0
- package/dist/lib/components/display/NetworkWeatherView.d.ts +12 -0
- package/dist/lib/components/display/NotificationBadgeView.d.ts +17 -0
- package/dist/lib/components/display/ParticleBackgroundView.d.ts +12 -0
- package/dist/lib/components/display/PathRevealView.d.ts +16 -0
- package/dist/lib/components/display/PdfViewerView.d.ts +11 -0
- package/dist/lib/components/display/PermissionMatrixView.d.ts +15 -0
- package/dist/lib/components/display/PresenceDotView.d.ts +12 -0
- package/dist/lib/components/display/PricingCardView.d.ts +16 -0
- package/dist/lib/components/display/ProgressBarView.d.ts +15 -0
- package/dist/lib/components/display/ProgressRingView.d.ts +13 -0
- package/dist/lib/components/display/PulseDotView.d.ts +10 -0
- package/dist/lib/components/display/QRCodeView.d.ts +11 -0
- package/dist/lib/components/display/QuoteBlockView.d.ts +14 -0
- package/dist/lib/components/display/RateLimitMeterView.d.ts +12 -0
- package/dist/lib/components/display/RatingBreakdownView.d.ts +12 -0
- package/dist/lib/components/display/RequestFlowView.d.ts +23 -0
- package/dist/lib/components/display/ResultView.d.ts +14 -0
- package/dist/lib/components/display/RevealOnScrollView.d.ts +14 -0
- package/dist/lib/components/display/SchemaBlueprintView.d.ts +23 -0
- package/dist/lib/components/display/SegmentedProgressBarView.d.ts +17 -0
- package/dist/lib/components/display/ShareSheetView.d.ts +19 -0
- package/dist/lib/components/display/SignaturePadView.d.ts +10 -0
- package/dist/lib/components/display/SkeletonView.d.ts +14 -0
- package/dist/lib/components/display/SnackbarView.d.ts +18 -0
- package/dist/lib/components/display/SortableHeaderView.d.ts +14 -0
- package/dist/lib/components/display/SparklineView.d.ts +14 -0
- package/dist/lib/components/display/StackedSwipeCardView.d.ts +14 -0
- package/dist/lib/components/display/StatTrendCardView.d.ts +16 -0
- package/dist/lib/components/display/StatisticView.d.ts +18 -0
- package/dist/lib/components/display/StatsCardView.d.ts +5 -1
- package/dist/lib/components/display/StatusPageRowView.d.ts +13 -0
- package/dist/lib/components/display/StickyTableHeaderView.d.ts +21 -0
- package/dist/lib/components/display/TablePaginationView.d.ts +16 -0
- package/dist/lib/components/display/TagCloudView.d.ts +17 -0
- package/dist/lib/components/display/TeamMemberRowView.d.ts +13 -0
- package/dist/lib/components/display/TerminalBlockView.d.ts +8 -0
- package/dist/lib/components/display/TestimonialCardView.d.ts +13 -0
- package/dist/lib/components/display/TiltCardView.d.ts +12 -0
- package/dist/lib/components/display/TimelineView.d.ts +20 -0
- package/dist/lib/components/display/TrialCountdownBannerView.d.ts +12 -0
- package/dist/lib/components/display/TypewriterTextView.d.ts +16 -0
- package/dist/lib/components/display/TypingIndicatorView.d.ts +11 -0
- package/dist/lib/components/display/UndoRedoTimelineView.d.ts +19 -0
- package/dist/lib/components/display/UsageMeterView.d.ts +17 -0
- package/dist/lib/components/display/VersionBadgeView.d.ts +13 -0
- package/dist/lib/components/display/VideoPlayerView.d.ts +10 -0
- package/dist/lib/components/display/VirtualizedListView.d.ts +13 -0
- package/dist/lib/components/display/WebhookStatusView.d.ts +15 -0
- package/dist/lib/components/input/AvatarUploadView.d.ts +14 -0
- package/dist/lib/components/input/CalendarView.d.ts +25 -0
- package/dist/lib/components/input/CascaderView.d.ts +23 -0
- package/dist/lib/components/input/ChatInputView.d.ts +17 -0
- package/dist/lib/components/input/ChecklistView.d.ts +17 -0
- package/dist/lib/components/input/ColorPickerView.d.ts +14 -0
- package/dist/lib/components/input/ComboBoxView.d.ts +23 -0
- package/dist/lib/components/input/DateInputView.d.ts +17 -0
- package/dist/lib/components/input/DateRangePickerView.d.ts +26 -0
- package/dist/lib/components/input/DateTimeInputView.d.ts +30 -0
- package/dist/lib/components/input/DialKnobInputView.d.ts +17 -0
- package/dist/lib/components/input/EditorView.d.ts +1 -1
- package/dist/lib/components/input/EmojiPickerView.d.ts +14 -0
- package/dist/lib/components/input/FeedbackWidgetView.d.ts +16 -0
- package/dist/lib/components/input/FileDropzoneView.d.ts +23 -0
- package/dist/lib/components/input/FloatingLabelInputView.d.ts +17 -0
- package/dist/lib/components/input/GhostTypingPlaceholderView.d.ts +19 -0
- package/dist/lib/components/input/HiddenKeyValueItemView.d.ts +1 -1
- package/dist/lib/components/input/IconPickerView.d.ts +14 -0
- package/dist/lib/components/input/InlineEditTextView.d.ts +30 -0
- package/dist/lib/components/input/InviteInputView.d.ts +15 -0
- package/dist/lib/components/input/MaskedInputView.d.ts +21 -0
- package/dist/lib/components/input/MentionInputView.d.ts +21 -0
- package/dist/lib/components/input/MergedInputView.d.ts +1 -0
- package/dist/lib/components/input/NpsSurveyView.d.ts +16 -0
- package/dist/lib/components/input/OtpInputView.d.ts +17 -0
- package/dist/lib/components/input/PhoneInputView.d.ts +25 -0
- package/dist/lib/components/input/PickerView.d.ts +38 -0
- package/dist/lib/components/input/PriorityPickerView.d.ts +13 -0
- package/dist/lib/components/input/RadioCardView.d.ts +22 -0
- package/dist/lib/components/input/RadioGroupView.d.ts +21 -0
- package/dist/lib/components/input/RangeSliderView.d.ts +18 -0
- package/dist/lib/components/input/RatingView.d.ts +16 -0
- package/dist/lib/components/input/RichTextToolbarView.d.ts +13 -0
- package/dist/lib/components/input/RoleSelectView.d.ts +21 -0
- package/dist/lib/components/input/SegmentedControlView.d.ts +15 -8
- package/dist/lib/components/input/ShortcutRecorderView.d.ts +15 -0
- package/dist/lib/components/input/SpectrumSliderView.d.ts +16 -0
- package/dist/lib/components/input/StepperInputView.d.ts +16 -0
- package/dist/lib/components/input/SwitchGroupView.d.ts +21 -0
- package/dist/lib/components/input/TabView.d.ts +10 -0
- package/dist/lib/components/input/TimeTravelSliderView.d.ts +21 -0
- package/dist/lib/components/input/TimeWheelView.d.ts +21 -0
- package/dist/lib/components/input/TransferListView.d.ts +21 -0
- package/dist/lib/components/input/TreeSelectView.d.ts +19 -0
- package/dist/lib/components/input/WizardStepperView.d.ts +19 -0
- package/dist/lib/components/layout/AccordionGroupView.d.ts +18 -0
- package/dist/lib/components/layout/AffixView.d.ts +11 -0
- package/dist/lib/components/layout/AnchorView.d.ts +18 -0
- package/dist/lib/components/layout/AspectRatioView.d.ts +12 -0
- package/dist/lib/components/layout/BackToTopView.d.ts +10 -0
- package/dist/lib/components/layout/BreadcrumbView.d.ts +14 -0
- package/dist/lib/components/layout/DockView.d.ts +17 -0
- package/dist/lib/components/layout/FaqAccordionView.d.ts +16 -0
- package/dist/lib/components/layout/HeroView.d.ts +15 -0
- package/dist/lib/components/layout/LevelView.d.ts +13 -0
- package/dist/lib/components/layout/MasonryGridView.d.ts +11 -0
- package/dist/lib/components/layout/MediaObjectView.d.ts +12 -0
- package/dist/lib/components/layout/NavbarView.d.ts +19 -0
- package/dist/lib/components/layout/OnboardingChecklistView.d.ts +19 -0
- package/dist/lib/components/layout/PaginationView.d.ts +12 -0
- package/dist/lib/components/layout/PanelListView.d.ts +28 -0
- package/dist/lib/components/layout/ScrollAreaView.d.ts +11 -0
- package/dist/lib/components/layout/SettingsRowView.d.ts +12 -0
- package/dist/lib/components/layout/SettingsSectionView.d.ts +12 -0
- package/dist/lib/components/layout/SideNavView.d.ts +3 -1
- package/dist/lib/components/layout/StickyHeaderView.d.ts +11 -0
- package/dist/lib/components/layout/TileGridView.d.ts +21 -0
- package/dist/lib/components/layout/WatermarkView.d.ts +16 -0
- package/dist/lib/components/modal/ActionSheetView.d.ts +19 -0
- package/dist/lib/components/modal/AlertDialogView.d.ts +15 -0
- package/dist/lib/components/modal/BottomSheetView.d.ts +14 -0
- package/dist/lib/components/modal/CommandPaletteView.d.ts +21 -0
- package/dist/lib/components/modal/DrawerView.d.ts +15 -0
- package/dist/lib/components/modal/ModalView.d.ts +11 -2
- package/dist/lib/components/modal/NotificationCenterView.d.ts +20 -0
- package/dist/lib/components/modal/PopoverView.d.ts +20 -0
- package/dist/lib/components/modal/SpotlightTourView.d.ts +18 -0
- package/dist/lib/components/modal/StackedToastDeckView.d.ts +17 -0
- package/dist/lib/components/modal/TooltipView.d.ts +28 -0
- package/dist/lib/components/rearrange/RearrangeView.d.ts +3 -3
- package/dist/lib/components/rearrange/SortableView.d.ts +33 -0
- package/dist/lib/components/tabs/TabBarView.d.ts +29 -1
- package/dist/lib/core/AvatarBase.d.ts +21 -0
- package/dist/lib/core/DateBase.d.ts +23 -0
- package/dist/lib/core/DuiTokens.d.ts +10 -0
- package/dist/lib/core/FeedbackBase.d.ts +27 -0
- package/dist/lib/core/LayoutBase.d.ts +21 -0
- package/dist/lib/core/MediaBase.d.ts +20 -0
- package/dist/lib/index.d.ts +392 -1
- package/dist/lib/vis-runtime.d.ts +19 -0
- package/dist/monaco-setup.js +348 -343
- package/dist/monaco-setup.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/editor.js +2 -2
- package/dist/vis-setup.d.ts +1 -0
- package/dist/vis-setup.js +418 -0
- package/dist/vis-setup.js.map +1 -0
- package/package.json +18 -2
- package/dist/chunks/EditorView.shell-BGH2VhWM.js.map +0 -1
- package/dist/chunks/daakia-icons-DxWnX_IQ.js +0 -1726
- package/dist/chunks/daakia-icons-DxWnX_IQ.js.map +0 -1
package/dist/monaco-setup.js
CHANGED
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
import
|
|
1
|
+
import K, { DiffEditor as se, loader as le } from "@monaco-editor/react";
|
|
2
2
|
import * as B from "monaco-editor";
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { useState as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { javascriptDefaults as P, JsxEmit as
|
|
11
|
-
function
|
|
12
|
-
var
|
|
13
|
-
const
|
|
14
|
-
return
|
|
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 [
|
|
18
|
-
return
|
|
19
|
-
const 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
|
-
}, []),
|
|
25
|
+
}, []), i;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
function
|
|
27
|
+
const he = "";
|
|
28
|
+
function be(i, t, l) {
|
|
29
29
|
return [];
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function ye(i) {
|
|
32
32
|
const {
|
|
33
|
-
breakpoints:
|
|
33
|
+
breakpoints: t,
|
|
34
34
|
disabledBreakpoints: l,
|
|
35
35
|
conditionalBreakpointLines: g,
|
|
36
36
|
pausedLine: c,
|
|
37
|
-
onToggleBreakpoint:
|
|
38
|
-
onGlyphContextMenu:
|
|
39
|
-
} =
|
|
40
|
-
const
|
|
41
|
-
if (!
|
|
42
|
-
const u =
|
|
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
|
|
46
|
-
const n =
|
|
47
|
-
if (!n || !
|
|
45
|
+
return M(() => {
|
|
46
|
+
const n = e.current, r = E.current;
|
|
47
|
+
if (!n || !r) return;
|
|
48
48
|
const u = [];
|
|
49
|
-
if (
|
|
50
|
-
for (const a of
|
|
49
|
+
if (t)
|
|
50
|
+
for (const a of t) {
|
|
51
51
|
if (c && a === c) continue;
|
|
52
|
-
const
|
|
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
|
-
|
|
55
|
-
range: new
|
|
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:
|
|
59
|
-
stickiness:
|
|
58
|
+
className: p ? "" : "daakia-bp-line",
|
|
59
|
+
stickiness: r.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
|
|
60
60
|
glyphMarginClassName: d,
|
|
61
61
|
glyphMarginHoverMessage: {
|
|
62
|
-
value:
|
|
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
|
-
}, [
|
|
69
|
-
const n =
|
|
70
|
-
if (!(!n || !
|
|
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 = (
|
|
73
|
-
|
|
74
|
-
range: new
|
|
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:
|
|
79
|
+
stickiness: r.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
|
|
80
80
|
}
|
|
81
81
|
}]), n.revealLineInCenter(c);
|
|
82
82
|
} else
|
|
83
|
-
|
|
84
|
-
}, [c,
|
|
85
|
-
|
|
86
|
-
var
|
|
87
|
-
return (
|
|
88
|
-
}),
|
|
89
|
-
}, []), { attach:
|
|
90
|
-
|
|
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 (
|
|
97
|
-
const a = n.onMouseDown((
|
|
98
|
-
var
|
|
99
|
-
if (
|
|
100
|
-
const d = (
|
|
101
|
-
d && o(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
|
-
|
|
104
|
+
y.current.push(a);
|
|
105
105
|
}
|
|
106
|
-
if (
|
|
106
|
+
if (v) {
|
|
107
107
|
let a = null;
|
|
108
|
-
const
|
|
108
|
+
const p = n.onMouseDown((d) => {
|
|
109
109
|
var h;
|
|
110
|
-
if (d.event.rightButton && (d.target.type ===
|
|
111
|
-
const
|
|
112
|
-
|
|
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
|
-
|
|
116
|
-
const
|
|
117
|
-
if (
|
|
115
|
+
y.current.push(p);
|
|
116
|
+
const f = n.getDomNode();
|
|
117
|
+
if (f) {
|
|
118
118
|
const d = (h) => {
|
|
119
|
-
a ? (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
|
-
|
|
121
|
+
f.addEventListener("contextmenu", d, !0), y.current.push({ dispose: () => f.removeEventListener("contextmenu", d, !0) });
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
if (
|
|
125
|
-
const a = n.onMouseMove((
|
|
124
|
+
if (m) {
|
|
125
|
+
const a = n.onMouseMove((f) => {
|
|
126
126
|
var d;
|
|
127
|
-
if (
|
|
128
|
-
const h = (d =
|
|
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
|
|
131
|
-
if (
|
|
132
|
-
const
|
|
133
|
-
if (!(
|
|
134
|
-
(
|
|
135
|
-
var
|
|
136
|
-
return ((
|
|
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
|
-
|
|
140
|
-
range: new
|
|
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:
|
|
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
|
-
|
|
153
|
+
b.current.length && (b.current = n.deltaDecorations(b.current, []));
|
|
154
154
|
});
|
|
155
|
-
|
|
156
|
-
const
|
|
157
|
-
|
|
155
|
+
y.current.push(a);
|
|
156
|
+
const p = n.onMouseLeave(() => {
|
|
157
|
+
b.current.length && (b.current = n.deltaDecorations(b.current, []));
|
|
158
158
|
});
|
|
159
|
-
|
|
159
|
+
y.current.push(p);
|
|
160
160
|
}
|
|
161
|
-
if (
|
|
161
|
+
if (t) {
|
|
162
162
|
const a = [];
|
|
163
|
-
for (const
|
|
164
|
-
const
|
|
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
|
-
|
|
167
|
-
range: new
|
|
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:
|
|
171
|
-
stickiness:
|
|
170
|
+
className: f ? "" : "daakia-bp-line",
|
|
171
|
+
stickiness: r.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
|
|
172
172
|
glyphMarginClassName: h,
|
|
173
173
|
glyphMarginHoverMessage: {
|
|
174
|
-
value: d ? "Conditional 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
|
-
}, [
|
|
181
|
+
}, [m, v, o, t, l, g]) };
|
|
182
182
|
}
|
|
183
|
-
const
|
|
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 _(
|
|
192
|
-
return
|
|
191
|
+
function _(i) {
|
|
192
|
+
return i(te);
|
|
193
193
|
}
|
|
194
|
-
_.getState = () =>
|
|
195
|
-
let
|
|
196
|
-
const
|
|
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
|
|
211
|
+
function Ce(i) {
|
|
211
212
|
let l = 0, g = "";
|
|
212
|
-
const c =
|
|
213
|
-
for (const
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
`, !
|
|
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
|
|
221
|
-
return
|
|
222
|
-
`).map((
|
|
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
|
|
228
|
-
const
|
|
229
|
-
return
|
|
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
|
|
235
|
-
value:
|
|
236
|
-
onChange:
|
|
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:
|
|
241
|
-
placeholder:
|
|
242
|
-
wordWrap:
|
|
243
|
-
size:
|
|
241
|
+
readOnly: m = !1,
|
|
242
|
+
placeholder: v,
|
|
243
|
+
wordWrap: e = !0,
|
|
244
|
+
size: E,
|
|
244
245
|
fontSize: k,
|
|
245
|
-
className:
|
|
246
|
-
bordered:
|
|
247
|
-
onEditorMount:
|
|
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:
|
|
252
|
+
accentColor: r
|
|
252
253
|
}) {
|
|
253
|
-
const u =
|
|
254
|
-
() => `inmemory://daakia/${crypto.randomUUID()}${
|
|
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
|
-
),
|
|
257
|
-
|
|
258
|
-
d.current.forEach((
|
|
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 =
|
|
261
|
+
return (I = w == null ? void 0 : w.dispose) == null ? void 0 : I.call(w);
|
|
261
262
|
}), d.current = [];
|
|
262
|
-
const
|
|
263
|
-
if (
|
|
264
|
-
const
|
|
265
|
-
|
|
263
|
+
const T = f.current;
|
|
264
|
+
if (T) {
|
|
265
|
+
const w = T.getModel();
|
|
266
|
+
w && w.dispose();
|
|
266
267
|
}
|
|
267
|
-
}, [])
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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:
|
|
280
|
-
theme:
|
|
281
|
-
onChange: (
|
|
282
|
-
onMount:
|
|
283
|
-
|
|
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
|
|
290
|
-
value:
|
|
291
|
-
onChange:
|
|
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:
|
|
296
|
-
placeholder:
|
|
297
|
-
wordWrap:
|
|
298
|
-
size:
|
|
292
|
+
readOnly: m = !1,
|
|
293
|
+
placeholder: v,
|
|
294
|
+
wordWrap: e = !0,
|
|
295
|
+
size: E,
|
|
299
296
|
fontSize: k,
|
|
300
|
-
className:
|
|
301
|
-
bordered:
|
|
302
|
-
breakpoints:
|
|
297
|
+
className: C = "",
|
|
298
|
+
bordered: b = !1,
|
|
299
|
+
breakpoints: y,
|
|
303
300
|
disabledBreakpoints: o,
|
|
304
301
|
conditionalBreakpointLines: s,
|
|
305
302
|
pausedLine: n,
|
|
306
|
-
onToggleBreakpoint:
|
|
303
|
+
onToggleBreakpoint: r,
|
|
307
304
|
onGlyphContextMenu: u,
|
|
308
305
|
onEditorMount: a,
|
|
309
|
-
contextMenuMode:
|
|
310
|
-
contextMenuItems:
|
|
306
|
+
contextMenuMode: p = "native",
|
|
307
|
+
contextMenuItems: f,
|
|
311
308
|
editorOptions: d,
|
|
312
309
|
accentColor: h
|
|
313
310
|
}) {
|
|
314
|
-
const
|
|
315
|
-
() => `inmemory://daakia/${crypto.randomUUID()}${
|
|
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
|
-
),
|
|
318
|
-
breakpoints:
|
|
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:
|
|
319
|
+
onToggleBreakpoint: r,
|
|
323
320
|
onGlyphContextMenu: u
|
|
324
|
-
}),
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
var
|
|
328
|
-
return (
|
|
329
|
-
}),
|
|
330
|
-
const
|
|
331
|
-
if (
|
|
332
|
-
const
|
|
333
|
-
|
|
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
|
-
}, []),
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
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:
|
|
349
|
-
value:
|
|
350
|
-
theme:
|
|
351
|
-
onChange: (
|
|
352
|
-
onMount:
|
|
353
|
-
|
|
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
|
|
360
|
-
return
|
|
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
|
|
363
|
-
var
|
|
364
|
-
const
|
|
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:
|
|
368
|
-
minimap: { enabled:
|
|
369
|
-
scrollBeyondLastLine:
|
|
370
|
-
smoothScrolling:
|
|
371
|
-
mouseWheelZoom:
|
|
372
|
-
folding:
|
|
373
|
-
showFoldingControls:
|
|
374
|
-
tabSize:
|
|
375
|
-
formatOnPaste:
|
|
376
|
-
formatOnType:
|
|
377
|
-
autoIndent:
|
|
378
|
-
renderWhitespace:
|
|
379
|
-
matchBrackets:
|
|
380
|
-
bracketPairColorization: { enabled:
|
|
381
|
-
colorDecorators:
|
|
382
|
-
linkedEditing:
|
|
383
|
-
copyWithSyntaxHighlighting:
|
|
384
|
-
quickSuggestions:
|
|
385
|
-
suggestOnTriggerCharacters:
|
|
386
|
-
acceptSuggestionOnEnter:
|
|
387
|
-
hover: { enabled:
|
|
388
|
-
parameterHints: { enabled:
|
|
389
|
-
codeLens:
|
|
390
|
-
inlayHints: { enabled:
|
|
391
|
-
padding: { top: ((
|
|
392
|
-
...
|
|
393
|
-
...
|
|
394
|
-
...
|
|
395
|
-
...
|
|
396
|
-
...
|
|
397
|
-
...
|
|
398
|
-
...
|
|
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:
|
|
401
|
-
fontSize:
|
|
402
|
-
wordWrap:
|
|
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:
|
|
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: ((
|
|
414
|
-
horizontal: ((
|
|
415
|
-
verticalScrollbarSize: ((
|
|
416
|
-
horizontalScrollbarSize: ((
|
|
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:
|
|
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: ((
|
|
426
|
-
showSnippets: ((
|
|
427
|
-
showValues: ((
|
|
428
|
-
showProperties: ((
|
|
429
|
-
...((
|
|
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
|
|
434
|
-
const
|
|
435
|
-
|
|
436
|
-
const
|
|
437
|
-
if (
|
|
438
|
-
const o = new ResizeObserver(
|
|
439
|
-
o.observe(
|
|
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
|
-
|
|
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 =
|
|
449
|
-
|
|
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 |
|
|
451
|
+
keybindings: [k.CtrlCmd | C.KeyC],
|
|
453
452
|
run: (o) => {
|
|
454
|
-
var n,
|
|
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((((
|
|
459
|
+
u && navigator.clipboard.writeText((((r = o.getModel()) == null ? void 0 : r.getLineContent(u.lineNumber)) || "") + `
|
|
461
460
|
`);
|
|
462
461
|
}
|
|
463
462
|
}
|
|
464
|
-
}),
|
|
463
|
+
}), i.addAction({
|
|
465
464
|
id: "daakia.clipboard.cut",
|
|
466
465
|
label: "Cut",
|
|
467
|
-
keybindings: [k.CtrlCmd |
|
|
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
|
|
475
|
-
if (
|
|
473
|
+
const r = o.getPosition();
|
|
474
|
+
if (r) {
|
|
476
475
|
const u = o.getModel();
|
|
477
|
-
u && (navigator.clipboard.writeText(u.getLineContent(
|
|
478
|
-
`), o.executeEdits("cut", [{ range: new
|
|
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
|
-
}),
|
|
481
|
+
}), i.addAction({
|
|
483
482
|
id: "daakia.clipboard.paste",
|
|
484
483
|
label: "Paste",
|
|
485
|
-
keybindings: [k.CtrlCmd |
|
|
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
|
-
}),
|
|
495
|
+
}), i.addAction({
|
|
497
496
|
id: "daakia.clipboard.selectAll",
|
|
498
497
|
label: "Select All",
|
|
499
|
-
keybindings: [k.CtrlCmd |
|
|
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
|
-
}),
|
|
503
|
+
}), i.addAction({
|
|
505
504
|
id: "daakia.format.document",
|
|
506
505
|
label: "Format Document",
|
|
507
|
-
keybindings: [k.Shift | k.Alt |
|
|
506
|
+
keybindings: [k.Shift | k.Alt | C.KeyF],
|
|
508
507
|
contextMenuGroupId: "modification",
|
|
509
508
|
contextMenuOrder: 1.5,
|
|
510
509
|
run: async (o) => {
|
|
511
|
-
var
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 ((
|
|
533
|
+
await ((r = o.getAction("editor.action.formatDocument")) == null ? void 0 : r.run());
|
|
535
534
|
}
|
|
536
|
-
}),
|
|
535
|
+
}), i.addAction({
|
|
537
536
|
id: "daakia.findAndReplace",
|
|
538
537
|
label: "Find and Replace",
|
|
539
|
-
keybindings: [k.CtrlCmd | k.Shift |
|
|
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 =
|
|
543
|
+
return (o = i.getAction("editor.action.startFindReplaceAction")) == null ? void 0 : o.run();
|
|
545
544
|
}
|
|
546
545
|
});
|
|
547
|
-
const
|
|
548
|
-
if (
|
|
549
|
-
const o =
|
|
550
|
-
o === "xml" || o === "html" ? (
|
|
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:
|
|
571
|
+
action: { indentAction: t.languages.IndentAction.IndentOutdent }
|
|
573
572
|
},
|
|
574
573
|
{
|
|
575
574
|
beforeText: /<([_:\w][_:\w\-.\d]*)([^/>]*(?!\/)>)\s*$/i,
|
|
576
|
-
action: { indentAction:
|
|
575
|
+
action: { indentAction: t.languages.IndentAction.Indent }
|
|
577
576
|
}
|
|
578
577
|
],
|
|
579
578
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g
|
|
580
|
-
}),
|
|
579
|
+
}), t.languages.registerCompletionItemProvider(o, {
|
|
581
580
|
triggerCharacters: ["/"],
|
|
582
581
|
provideCompletionItems: (s, n) => {
|
|
583
|
-
const
|
|
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 (
|
|
590
|
-
const a = [],
|
|
591
|
-
let
|
|
592
|
-
for (; (
|
|
593
|
-
|
|
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:
|
|
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
|
-
})) :
|
|
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
|
-
|
|
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" && (
|
|
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
|
-
}),
|
|
661
|
-
if (
|
|
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:
|
|
666
|
-
{ label: "info", kind:
|
|
667
|
-
{ label: "warn", kind:
|
|
668
|
-
{ label: "error", kind:
|
|
669
|
-
{ label: "debug", kind:
|
|
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 &&
|
|
672
|
+
})), !g && c && i.updateOptions({ placeholder: c }), m == null || m(i, t), i.updateOptions({ contextmenu: v === "native" });
|
|
674
673
|
}
|
|
675
|
-
function
|
|
676
|
-
original:
|
|
677
|
-
modified:
|
|
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:
|
|
682
|
-
wordWrap:
|
|
683
|
-
fontSize:
|
|
684
|
-
theme:
|
|
680
|
+
renderSideBySide: m = !0,
|
|
681
|
+
wordWrap: v = !1,
|
|
682
|
+
fontSize: e = 12,
|
|
683
|
+
theme: E,
|
|
685
684
|
onMount: k
|
|
686
685
|
}) {
|
|
687
|
-
const
|
|
688
|
-
return /* @__PURE__ */
|
|
689
|
-
|
|
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:
|
|
690
|
+
height: y,
|
|
692
691
|
language: l,
|
|
693
|
-
theme:
|
|
694
|
-
original:
|
|
695
|
-
modified:
|
|
692
|
+
theme: b,
|
|
693
|
+
original: i,
|
|
694
|
+
modified: t,
|
|
696
695
|
onMount: k,
|
|
697
696
|
options: {
|
|
698
697
|
readOnly: c,
|
|
699
|
-
renderSideBySide:
|
|
700
|
-
|
|
701
|
-
|
|
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(
|
|
714
|
-
return
|
|
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:
|
|
786
|
-
module:
|
|
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:
|
|
794
|
-
jsx:
|
|
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
|
-
|
|
802
|
-
|
|
803
|
-
target:
|
|
804
|
-
module:
|
|
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:
|
|
811
|
-
jsx:
|
|
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
|
-
|
|
876
|
+
le.config({ monaco: B });
|
|
872
877
|
window.monaco = B;
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
function Fe(
|
|
877
|
-
B.editor.setTheme(
|
|
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,
|