@rinova/playground 0.1.4 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -6
- package/dist/PlaygroundRoot-Bcq7hG6m.js +4114 -0
- package/dist/bash-DXbFn1Mw.js +2 -0
- package/dist/diff-BbCHXb9k.js +2 -0
- package/dist/html-BheHDAwJ.js +10 -0
- package/dist/index.js +646 -5
- package/dist/less-DcFvX2iI.js +2 -0
- package/dist/light-plus-DuoQWI9Q.js +3 -0
- package/dist/markdown-qYHfSPvL.js +2 -0
- package/dist/marked.esm-CNYX-ybC.js +1796 -0
- package/dist/{App-BzlvncHB.js → plugin-S72dg7Tb.js} +560 -1608
- package/dist/style.css +2880 -9004
- package/dist/tokyo-night-A7e3DMsQ.js +3 -0
- package/dist/types/app/App.vue.d.ts +1 -0
- package/dist/types/app/PlaygroundApiTable.vue.d.ts +16 -0
- package/dist/types/app/PlaygroundEditorPicker.vue.d.ts +3 -0
- package/dist/types/app/PlaygroundModuleApi.vue.d.ts +17 -0
- package/dist/types/app/PlaygroundPage.vue.d.ts +30 -0
- package/dist/types/app/{PlaygroundSourcePanel.vue.d.ts → PlaygroundPageIndex.vue.d.ts} +4 -4
- package/dist/types/app/PlaygroundPluginPanel.vue.d.ts +3 -0
- package/dist/types/app/PlaygroundPluginSlot.vue.d.ts +12 -0
- package/dist/types/app/PlaygroundPluginWrappers.vue.d.ts +25 -0
- package/dist/types/app/PlaygroundRoot.vue.d.ts +4 -0
- package/dist/types/app/{PlaygroundParamsPanel.vue.d.ts → PlaygroundSceneArgs.vue.d.ts} +1 -1
- package/dist/types/app/PlaygroundSceneOutput.vue.d.ts +6 -0
- package/dist/types/app/PlaygroundSceneSection.vue.d.ts +16 -0
- package/dist/types/app/{PlaygroundStage.vue.d.ts → PlaygroundSceneSource.vue.d.ts} +0 -1
- package/dist/types/app/PlaygroundSidebar.vue.d.ts +19 -8
- package/dist/types/app/viewport.d.ts +39 -0
- package/dist/types/code/CodeBlock.vue.d.ts +19 -1
- package/dist/types/code/clipboard.d.ts +2 -0
- package/dist/types/code/find.d.ts +42 -0
- package/dist/types/code/highlighter.d.ts +9 -2
- package/dist/types/code/openInEditor.d.ts +35 -0
- package/dist/types/components/PwApiBrief.vue.d.ts +16 -0
- package/dist/types/components/PwButton.vue.d.ts +2 -2
- package/dist/types/components/PwDemo.vue.d.ts +39 -0
- package/dist/types/components/PwDemoGrid.vue.d.ts +32 -0
- package/dist/types/components/PwInput.vue.d.ts +8 -8
- package/dist/types/components/PwSceneBoundary.vue.d.ts +20 -0
- package/dist/types/components/PwSceneNote.vue.d.ts +19 -0
- package/dist/types/components/PwTooltip.vue.d.ts +3 -0
- package/dist/types/components/prose/PwCallout.vue.d.ts +24 -0
- package/dist/types/components/prose/PwMarkdown.vue.d.ts +11 -0
- package/dist/types/components/prose/PwProse.vue.d.ts +27 -0
- package/dist/types/components/prose/PwStep.vue.d.ts +27 -0
- package/dist/types/components/prose/PwSteps.vue.d.ts +26 -0
- package/dist/types/components/prose/enhance.d.ts +4 -0
- package/dist/types/components/prose/index.d.ts +7 -0
- package/dist/types/components/prose/markdown-scene.d.ts +10 -0
- package/dist/types/components/prose/parse.d.ts +20 -0
- package/dist/types/components/prose/render.d.ts +22 -0
- package/dist/types/components/scene.d.ts +5 -0
- package/dist/types/config.d.ts +43 -5
- package/dist/types/index.d.ts +15 -8
- package/dist/types/module-api.d.ts +55 -0
- package/dist/types/payload/args.d.ts +22 -3
- package/dist/types/payload/context.d.ts +3 -0
- package/dist/types/payload/output.d.ts +18 -3
- package/dist/types/plugin.d.ts +119 -0
- package/dist/types/scene-meta.d.ts +38 -3
- package/dist/types/shims.d.ts +26 -5
- package/dist/types/types.d.ts +107 -15
- package/dist/vue-B_A2yz16.js +30 -0
- package/dist/yaml-CoEYOy4X.js +2 -0
- package/package.json +3 -4
- package/dist/assets/editor.worker-G4Kxf7Y6.js +0 -15827
- package/dist/assets/ts.worker-Dee0cZZb.js +0 -164076
- package/dist/dist-CiAXGmAo.js +0 -151
- package/dist/editor.api-6f2aPN2V.js +0 -126730
- package/dist/editor.worker-VDFPHiZj.js +0 -5
- package/dist/monaco.contribution-jrnupplv.js +0 -220
- package/dist/output-Dx3ubog9.js +0 -51
- package/dist/ts.worker-CpQm_d0w.js +0 -5
- package/dist/tsMode-C6DRwdZC.js +0 -52173
- package/dist/types/app/PlaygroundToolbar.vue.d.ts +0 -22
- package/dist/types/code/CodeEditor.vue.d.ts +0 -18
- package/dist/types/code/monaco.d.ts +0 -6
- package/dist/vitesse-dark-B9O9KI0c.js +0 -3
- package/dist/vitesse-light-Cs2DYTIe.js +0 -3
- package/dist/vue-tjAT-6a9.js +0 -36
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/@shikijs+themes@4.6.0/node_modules/@shikijs/themes/dist/tokyo-night.mjs
|
|
2
|
+
var tokyo_night_default = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.background\":\"#16161e\",\"activityBar.border\":\"#16161e\",\"activityBar.foreground\":\"#787c99\",\"activityBar.inactiveForeground\":\"#3b3e52\",\"activityBarBadge.background\":\"#3d59a1\",\"activityBarBadge.foreground\":\"#fff\",\"activityBarTop.foreground\":\"#787c99\",\"activityBarTop.inactiveForeground\":\"#3b3e52\",\"badge.background\":\"#7e83b230\",\"badge.foreground\":\"#acb0d0\",\"breadcrumb.activeSelectionForeground\":\"#a9b1d6\",\"breadcrumb.background\":\"#16161e\",\"breadcrumb.focusForeground\":\"#a9b1d6\",\"breadcrumb.foreground\":\"#515670\",\"breadcrumbPicker.background\":\"#16161e\",\"button.background\":\"#3d59a1dd\",\"button.foreground\":\"#ffffff\",\"button.hoverBackground\":\"#3d59a1AA\",\"button.secondaryBackground\":\"#3b3e52\",\"charts.blue\":\"#7aa2f7\",\"charts.foreground\":\"#9AA5CE\",\"charts.green\":\"#41a6b5\",\"charts.lines\":\"#16161e\",\"charts.orange\":\"#ff9e64\",\"charts.purple\":\"#9d7cd8\",\"charts.red\":\"#f7768e\",\"charts.yellow\":\"#e0af68\",\"chat.avatarBackground\":\"#3d59a1\",\"chat.avatarForeground\":\"#a9b1d6\",\"chat.requestBorder\":\"#0f0f14\",\"chat.slashCommandBackground\":\"#14141b\",\"chat.slashCommandForeground\":\"#7aa2f7\",\"debugConsole.errorForeground\":\"#bb616b\",\"debugConsole.infoForeground\":\"#787c99\",\"debugConsole.sourceForeground\":\"#787c99\",\"debugConsole.warningForeground\":\"#c49a5a\",\"debugConsoleInputIcon.foreground\":\"#73daca\",\"debugExceptionWidget.background\":\"#101014\",\"debugExceptionWidget.border\":\"#963c47\",\"debugIcon.breakpointDisabledForeground\":\"#414761\",\"debugIcon.breakpointForeground\":\"#db4b4b\",\"debugIcon.breakpointUnverifiedForeground\":\"#c24242\",\"debugTokenExpression.boolean\":\"#ff9e64\",\"debugTokenExpression.error\":\"#bb616b\",\"debugTokenExpression.name\":\"#7dcfff\",\"debugTokenExpression.number\":\"#ff9e64\",\"debugTokenExpression.string\":\"#9ece6a\",\"debugTokenExpression.value\":\"#9aa5ce\",\"debugToolBar.background\":\"#101014\",\"debugView.stateLabelBackground\":\"#14141b\",\"debugView.stateLabelForeground\":\"#787c99\",\"debugView.valueChangedHighlight\":\"#3d59a1aa\",\"descriptionForeground\":\"#515670\",\"diffEditor.diagonalFill\":\"#292e42\",\"diffEditor.insertedLineBackground\":\"#41a6b520\",\"diffEditor.insertedTextBackground\":\"#41a6b520\",\"diffEditor.removedLineBackground\":\"#db4b4b22\",\"diffEditor.removedTextBackground\":\"#db4b4b22\",\"diffEditor.unchangedCodeBackground\":\"#282a3b66\",\"diffEditorGutter.insertedLineBackground\":\"#41a6b525\",\"diffEditorGutter.removedLineBackground\":\"#db4b4b22\",\"diffEditorOverview.insertedForeground\":\"#41a6b525\",\"diffEditorOverview.removedForeground\":\"#db4b4b22\",\"disabledForeground\":\"#545c7e\",\"dropdown.background\":\"#14141b\",\"dropdown.foreground\":\"#787c99\",\"dropdown.listBackground\":\"#14141b\",\"editor.background\":\"#1a1b26\",\"editor.findMatchBackground\":\"#3d59a166\",\"editor.findMatchBorder\":\"#e0af68\",\"editor.findMatchHighlightBackground\":\"#3d59a166\",\"editor.findRangeHighlightBackground\":\"#515c7e33\",\"editor.focusedStackFrameHighlightBackground\":\"#73daca20\",\"editor.foldBackground\":\"#1111174a\",\"editor.foreground\":\"#a9b1d6\",\"editor.inactiveSelectionBackground\":\"#515c7e25\",\"editor.lineHighlightBackground\":\"#1e202e\",\"editor.rangeHighlightBackground\":\"#515c7e20\",\"editor.selectionBackground\":\"#515c7e4d\",\"editor.selectionHighlightBackground\":\"#515c7e44\",\"editor.stackFrameHighlightBackground\":\"#E2BD3A20\",\"editor.wordHighlightBackground\":\"#515c7e44\",\"editor.wordHighlightStrongBackground\":\"#515c7e55\",\"editorBracketHighlight.foreground1\":\"#698cd6\",\"editorBracketHighlight.foreground2\":\"#68b3de\",\"editorBracketHighlight.foreground3\":\"#9a7ecc\",\"editorBracketHighlight.foreground4\":\"#25aac2\",\"editorBracketHighlight.foreground5\":\"#80a856\",\"editorBracketHighlight.foreground6\":\"#c49a5a\",\"editorBracketHighlight.unexpectedBracket.foreground\":\"#db4b4b\",\"editorBracketMatch.background\":\"#16161e\",\"editorBracketMatch.border\":\"#42465d\",\"editorBracketPairGuide.activeBackground1\":\"#698cd6\",\"editorBracketPairGuide.activeBackground2\":\"#68b3de\",\"editorBracketPairGuide.activeBackground3\":\"#9a7ecc\",\"editorBracketPairGuide.activeBackground4\":\"#25aac2\",\"editorBracketPairGuide.activeBackground5\":\"#80a856\",\"editorBracketPairGuide.activeBackground6\":\"#c49a5a\",\"editorCodeLens.foreground\":\"#51597d\",\"editorCursor.foreground\":\"#c0caf5\",\"editorError.foreground\":\"#db4b4b\",\"editorGhostText.foreground\":\"#646e9c\",\"editorGroup.border\":\"#101014\",\"editorGroup.dropBackground\":\"#1e202e\",\"editorGroupHeader.border\":\"#101014\",\"editorGroupHeader.noTabsBackground\":\"#16161e\",\"editorGroupHeader.tabsBackground\":\"#16161e\",\"editorGroupHeader.tabsBorder\":\"#101014\",\"editorGutter.addedBackground\":\"#164846\",\"editorGutter.deletedBackground\":\"#823c41\",\"editorGutter.modifiedBackground\":\"#394b70\",\"editorHint.foreground\":\"#0da0ba\",\"editorHoverWidget.background\":\"#16161e\",\"editorHoverWidget.border\":\"#101014\",\"editorIndentGuide.activeBackground1\":\"#363b54\",\"editorIndentGuide.background1\":\"#232433\",\"editorInfo.foreground\":\"#0da0ba\",\"editorInlayHint.foreground\":\"#646e9c\",\"editorLightBulb.foreground\":\"#e0af68\",\"editorLightBulbAutoFix.foreground\":\"#e0af68\",\"editorLineNumber.activeForeground\":\"#787c99\",\"editorLineNumber.foreground\":\"#363b54\",\"editorLink.activeForeground\":\"#acb0d0\",\"editorMarkerNavigation.background\":\"#16161e\",\"editorOverviewRuler.addedForeground\":\"#164846\",\"editorOverviewRuler.border\":\"#101014\",\"editorOverviewRuler.bracketMatchForeground\":\"#101014\",\"editorOverviewRuler.deletedForeground\":\"#703438\",\"editorOverviewRuler.errorForeground\":\"#db4b4b\",\"editorOverviewRuler.findMatchForeground\":\"#a9b1d644\",\"editorOverviewRuler.infoForeground\":\"#1abc9c\",\"editorOverviewRuler.modifiedForeground\":\"#394b70\",\"editorOverviewRuler.rangeHighlightForeground\":\"#a9b1d644\",\"editorOverviewRuler.selectionHighlightForeground\":\"#a9b1d622\",\"editorOverviewRuler.warningForeground\":\"#e0af68\",\"editorOverviewRuler.wordHighlightForeground\":\"#bb9af755\",\"editorOverviewRuler.wordHighlightStrongForeground\":\"#bb9af766\",\"editorPane.background\":\"#1a1b26\",\"editorRuler.foreground\":\"#101014\",\"editorSuggestWidget.background\":\"#16161e\",\"editorSuggestWidget.border\":\"#101014\",\"editorSuggestWidget.highlightForeground\":\"#6183bb\",\"editorSuggestWidget.selectedBackground\":\"#20222c\",\"editorWarning.foreground\":\"#e0af68\",\"editorWhitespace.foreground\":\"#363b54\",\"editorWidget.background\":\"#16161e\",\"editorWidget.border\":\"#101014\",\"editorWidget.foreground\":\"#787c99\",\"editorWidget.resizeBorder\":\"#545c7e33\",\"errorForeground\":\"#515670\",\"extensionBadge.remoteBackground\":\"#3d59a1\",\"extensionBadge.remoteForeground\":\"#ffffff\",\"extensionButton.prominentBackground\":\"#3d59a1DD\",\"extensionButton.prominentForeground\":\"#ffffff\",\"extensionButton.prominentHoverBackground\":\"#3d59a1AA\",\"focusBorder\":\"#545c7e33\",\"foreground\":\"#787c99\",\"gitDecoration.addedResourceForeground\":\"#449dab\",\"gitDecoration.conflictingResourceForeground\":\"#e0af68cc\",\"gitDecoration.deletedResourceForeground\":\"#914c54\",\"gitDecoration.ignoredResourceForeground\":\"#515670\",\"gitDecoration.modifiedResourceForeground\":\"#6183bb\",\"gitDecoration.renamedResourceForeground\":\"#449dab\",\"gitDecoration.stageDeletedResourceForeground\":\"#914c54\",\"gitDecoration.stageModifiedResourceForeground\":\"#6183bb\",\"gitDecoration.untrackedResourceForeground\":\"#449dab\",\"gitlens.gutterBackgroundColor\":\"#16161e\",\"gitlens.gutterForegroundColor\":\"#787c99\",\"gitlens.gutterUncommittedForegroundColor\":\"#7aa2f7\",\"gitlens.trailingLineForegroundColor\":\"#646e9c\",\"icon.foreground\":\"#787c99\",\"inlineChat.foreground\":\"#a9b1d6\",\"inlineChatDiff.inserted\":\"#41a6b540\",\"inlineChatDiff.removed\":\"#db4b4b42\",\"inlineChatInput.background\":\"#14141b\",\"input.background\":\"#14141b\",\"input.border\":\"#0f0f14\",\"input.foreground\":\"#a9b1d6\",\"input.placeholderForeground\":\"#787c998A\",\"inputOption.activeBackground\":\"#3d59a144\",\"inputOption.activeForeground\":\"#c0caf5\",\"inputValidation.errorBackground\":\"#85353e\",\"inputValidation.errorBorder\":\"#963c47\",\"inputValidation.errorForeground\":\"#bbc2e0\",\"inputValidation.infoBackground\":\"#3d59a15c\",\"inputValidation.infoBorder\":\"#3d59a1\",\"inputValidation.infoForeground\":\"#bbc2e0\",\"inputValidation.warningBackground\":\"#c2985b\",\"inputValidation.warningBorder\":\"#e0af68\",\"inputValidation.warningForeground\":\"#000000\",\"list.activeSelectionBackground\":\"#202330\",\"list.activeSelectionForeground\":\"#a9b1d6\",\"list.deemphasizedForeground\":\"#787c99\",\"list.dropBackground\":\"#1e202e\",\"list.errorForeground\":\"#bb616b\",\"list.focusBackground\":\"#1c1d29\",\"list.focusForeground\":\"#a9b1d6\",\"list.highlightForeground\":\"#668ac4\",\"list.hoverBackground\":\"#13131a\",\"list.hoverForeground\":\"#a9b1d6\",\"list.inactiveSelectionBackground\":\"#1c1d29\",\"list.inactiveSelectionForeground\":\"#a9b1d6\",\"list.invalidItemForeground\":\"#c97018\",\"list.warningForeground\":\"#c49a5a\",\"listFilterWidget.background\":\"#101014\",\"listFilterWidget.noMatchesOutline\":\"#a6333f\",\"listFilterWidget.outline\":\"#3d59a1\",\"menu.background\":\"#16161e\",\"menu.border\":\"#101014\",\"menu.foreground\":\"#787c99\",\"menu.selectionBackground\":\"#1e202e\",\"menu.selectionForeground\":\"#a9b1d6\",\"menu.separatorBackground\":\"#101014\",\"menubar.selectionBackground\":\"#1e202e\",\"menubar.selectionBorder\":\"#1b1e2e\",\"menubar.selectionForeground\":\"#a9b1d6\",\"merge.currentContentBackground\":\"#007a7544\",\"merge.currentHeaderBackground\":\"#41a6b525\",\"merge.incomingContentBackground\":\"#3d59a144\",\"merge.incomingHeaderBackground\":\"#3d59a1aa\",\"mergeEditor.change.background\":\"#41a6b525\",\"mergeEditor.change.word.background\":\"#41a6b540\",\"mergeEditor.conflict.handled.minimapOverViewRuler\":\"#449dab\",\"mergeEditor.conflict.handledFocused.border\":\"#41a6b565\",\"mergeEditor.conflict.handledUnfocused.border\":\"#41a6b525\",\"mergeEditor.conflict.unhandled.minimapOverViewRuler\":\"#e0af68\",\"mergeEditor.conflict.unhandledFocused.border\":\"#e0af68b0\",\"mergeEditor.conflict.unhandledUnfocused.border\":\"#e0af6888\",\"minimapGutter.addedBackground\":\"#1C5957\",\"minimapGutter.deletedBackground\":\"#944449\",\"minimapGutter.modifiedBackground\":\"#425882\",\"multiDiffEditor.border\":\"#1a1b26\",\"multiDiffEditor.headerBackground\":\"#1a1b26\",\"notebook.cellBorderColor\":\"#101014\",\"notebook.cellEditorBackground\":\"#16161e\",\"notebook.cellStatusBarItemHoverBackground\":\"#1c1d29\",\"notebook.editorBackground\":\"#1a1b26\",\"notebook.focusedCellBorder\":\"#29355a\",\"notificationCenterHeader.background\":\"#101014\",\"notificationLink.foreground\":\"#6183bb\",\"notifications.background\":\"#101014\",\"notificationsErrorIcon.foreground\":\"#bb616b\",\"notificationsInfoIcon.foreground\":\"#0da0ba\",\"notificationsWarningIcon.foreground\":\"#bba461\",\"panel.background\":\"#16161e\",\"panel.border\":\"#101014\",\"panelInput.border\":\"#16161e\",\"panelTitle.activeBorder\":\"#16161e\",\"panelTitle.activeForeground\":\"#787c99\",\"panelTitle.inactiveForeground\":\"#42465d\",\"peekView.border\":\"#101014\",\"peekViewEditor.background\":\"#16161e\",\"peekViewEditor.matchHighlightBackground\":\"#3d59a166\",\"peekViewResult.background\":\"#101014\",\"peekViewResult.fileForeground\":\"#787c99\",\"peekViewResult.lineForeground\":\"#a9b1d6\",\"peekViewResult.matchHighlightBackground\":\"#3d59a166\",\"peekViewResult.selectionBackground\":\"#3d59a133\",\"peekViewResult.selectionForeground\":\"#a9b1d6\",\"peekViewTitle.background\":\"#101014\",\"peekViewTitleDescription.foreground\":\"#787c99\",\"peekViewTitleLabel.foreground\":\"#a9b1d6\",\"pickerGroup.border\":\"#101014\",\"pickerGroup.foreground\":\"#a9b1d6\",\"progressBar.background\":\"#3d59a1\",\"sash.hoverBorder\":\"#29355a\",\"scmGraph.foreground1\":\"#ff9e64\",\"scmGraph.foreground2\":\"#e0af68\",\"scmGraph.foreground3\":\"#41a6b5\",\"scmGraph.foreground4\":\"#7aa2f7\",\"scmGraph.foreground5\":\"#bb9af7\",\"scmGraph.historyItemBaseRefColor\":\"#9d7cd8\",\"scmGraph.historyItemHoverAdditionsForeground\":\"#41a6b5\",\"scmGraph.historyItemHoverDefaultLabelForeground\":\"#a9b1d6\",\"scmGraph.historyItemHoverDeletionsForeground\":\"#f7768e\",\"scmGraph.historyItemHoverLabelForeground\":\"#1b1e2e\",\"scmGraph.historyItemRefColor\":\"#506FCA\",\"scmGraph.historyItemRemoteRefColor\":\"#41a6b5\",\"scrollbar.shadow\":\"#00000033\",\"scrollbarSlider.activeBackground\":\"#868bc422\",\"scrollbarSlider.background\":\"#868bc415\",\"scrollbarSlider.hoverBackground\":\"#868bc410\",\"selection.background\":\"#515c7e40\",\"settings.headerForeground\":\"#6183bb\",\"sideBar.background\":\"#16161e\",\"sideBar.border\":\"#101014\",\"sideBar.dropBackground\":\"#1e202e\",\"sideBar.foreground\":\"#787c99\",\"sideBarSectionHeader.background\":\"#16161e\",\"sideBarSectionHeader.border\":\"#101014\",\"sideBarSectionHeader.foreground\":\"#a9b1d6\",\"sideBarTitle.foreground\":\"#787c99\",\"statusBar.background\":\"#16161e\",\"statusBar.border\":\"#101014\",\"statusBar.debuggingBackground\":\"#16161e\",\"statusBar.debuggingForeground\":\"#787c99\",\"statusBar.foreground\":\"#787c99\",\"statusBar.noFolderBackground\":\"#16161e\",\"statusBarItem.activeBackground\":\"#101014\",\"statusBarItem.hoverBackground\":\"#20222c\",\"statusBarItem.prominentBackground\":\"#101014\",\"statusBarItem.prominentHoverBackground\":\"#20222c\",\"tab.activeBackground\":\"#16161e\",\"tab.activeBorder\":\"#3d59a1\",\"tab.activeForeground\":\"#a9b1d6\",\"tab.activeModifiedBorder\":\"#1a1b26\",\"tab.border\":\"#101014\",\"tab.hoverForeground\":\"#a9b1d6\",\"tab.inactiveBackground\":\"#16161e\",\"tab.inactiveForeground\":\"#787c99\",\"tab.inactiveModifiedBorder\":\"#1f202e\",\"tab.lastPinnedBorder\":\"#222333\",\"tab.unfocusedActiveBorder\":\"#1f202e\",\"tab.unfocusedActiveForeground\":\"#a9b1d6\",\"tab.unfocusedHoverForeground\":\"#a9b1d6\",\"tab.unfocusedInactiveForeground\":\"#787c99\",\"terminal.ansiBlack\":\"#363b54\",\"terminal.ansiBlue\":\"#7aa2f7\",\"terminal.ansiBrightBlack\":\"#363b54\",\"terminal.ansiBrightBlue\":\"#7aa2f7\",\"terminal.ansiBrightCyan\":\"#7dcfff\",\"terminal.ansiBrightGreen\":\"#73daca\",\"terminal.ansiBrightMagenta\":\"#bb9af7\",\"terminal.ansiBrightRed\":\"#f7768e\",\"terminal.ansiBrightWhite\":\"#acb0d0\",\"terminal.ansiBrightYellow\":\"#e0af68\",\"terminal.ansiCyan\":\"#7dcfff\",\"terminal.ansiGreen\":\"#73daca\",\"terminal.ansiMagenta\":\"#bb9af7\",\"terminal.ansiRed\":\"#f7768e\",\"terminal.ansiWhite\":\"#787c99\",\"terminal.ansiYellow\":\"#e0af68\",\"terminal.background\":\"#16161e\",\"terminal.foreground\":\"#787c99\",\"terminal.selectionBackground\":\"#515c7e4d\",\"textBlockQuote.background\":\"#16161e\",\"textCodeBlock.background\":\"#16161e\",\"textLink.activeForeground\":\"#7dcfff\",\"textLink.foreground\":\"#6183bb\",\"textPreformat.foreground\":\"#9699a8\",\"textSeparator.foreground\":\"#363b54\",\"titleBar.activeBackground\":\"#16161e\",\"titleBar.activeForeground\":\"#787c99\",\"titleBar.border\":\"#101014\",\"titleBar.inactiveBackground\":\"#16161e\",\"titleBar.inactiveForeground\":\"#787c99\",\"toolbar.activeBackground\":\"#202330\",\"toolbar.hoverBackground\":\"#202330\",\"tree.indentGuidesStroke\":\"#2b2b3b\",\"walkThrough.embeddedEditorBackground\":\"#16161e\",\"widget.shadow\":\"#ffffff00\",\"window.activeBorder\":\"#0d0f17\",\"window.inactiveBorder\":\"#0d0f17\"},\"displayName\":\"Tokyo Night\",\"name\":\"tokyo-night\",\"semanticTokenColors\":{\"*.defaultLibrary\":{\"foreground\":\"#2ac3de\"},\"parameter\":{\"foreground\":\"#d9d4cd\"},\"parameter.declaration\":{\"foreground\":\"#e0af68\"},\"property.declaration\":{\"foreground\":\"#73daca\"},\"property.defaultLibrary\":{\"foreground\":\"#2ac3de\"},\"variable\":{\"foreground\":\"#c0caf5\"},\"variable.declaration\":{\"foreground\":\"#bb9af7\"},\"variable.defaultLibrary\":{\"foreground\":\"#2ac3de\"}},\"tokenColors\":[{\"scope\":[\"comment\",\"meta.var.expr storage.type\",\"keyword.control.flow\",\"keyword.control.return\",\"meta.directive.vue punctuation.separator.key-value.html\",\"meta.directive.vue entity.other.attribute-name.html\",\"tag.decorator.js entity.name.tag.js\",\"tag.decorator.js punctuation.definition.tag.js\",\"storage.modifier\",\"string.quoted.docstring.multi\",\"string.quoted.docstring.multi.python punctuation.definition.string.begin\",\"string.quoted.docstring.multi.python punctuation.definition.string.end\",\"string.quoted.docstring.multi.python constant.character.escape\"],\"settings\":{\"fontStyle\":\"italic\"}},{\"scope\":[\"keyword.control.flow.block-scalar.literal\",\"keyword.control.flow.python\"],\"settings\":{\"fontStyle\":\"\"}},{\"scope\":[\"comment\",\"comment.block.documentation\",\"punctuation.definition.comment\",\"comment.block.documentation punctuation\",\"string.quoted.docstring.multi\",\"string.quoted.docstring.multi.python punctuation.definition.string.begin\",\"string.quoted.docstring.multi.python punctuation.definition.string.end\",\"string.quoted.docstring.multi.python constant.character.escape\"],\"settings\":{\"foreground\":\"#51597d\"}},{\"scope\":[\"keyword.operator.assignment.jsdoc\",\"comment.block.documentation variable\",\"comment.block.documentation storage\",\"comment.block.documentation keyword\",\"comment.block.documentation support\",\"comment.block.documentation markup\",\"comment.block.documentation markup.inline.raw.string.markdown\",\"meta.other.type.phpdoc.php keyword.other.type.php\",\"meta.other.type.phpdoc.php support.other.namespace.php\",\"meta.other.type.phpdoc.php punctuation.separator.inheritance.php\",\"meta.other.type.phpdoc.php support.class\",\"keyword.other.phpdoc.php\",\"log.date\"],\"settings\":{\"foreground\":\"#5a638c\"}},{\"scope\":[\"meta.other.type.phpdoc.php support.class\",\"comment.block.documentation storage.type\",\"comment.block.documentation punctuation.definition.block.tag\",\"comment.block.documentation entity.name.type.instance\"],\"settings\":{\"foreground\":\"#646e9c\"}},{\"scope\":[\"variable.other.constant\",\"punctuation.definition.constant\",\"constant.language\",\"constant.numeric\",\"support.constant\",\"constant.other.caps\"],\"settings\":{\"foreground\":\"#ff9e64\"}},{\"scope\":[\"string\",\"constant.other.symbol\",\"constant.other.key\",\"meta.attribute-selector\",\"string constant.character\"],\"settings\":{\"fontStyle\":\"\",\"foreground\":\"#9ece6a\"}},{\"scope\":[\"constant.other.color\",\"constant.other.color.rgb-value.hex punctuation.definition.constant\"],\"settings\":{\"foreground\":\"#9aa5ce\"}},{\"scope\":[\"invalid\",\"invalid.illegal\"],\"settings\":{\"foreground\":\"#ff5370\"}},{\"scope\":\"invalid.deprecated\",\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":\"storage.type\",\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":[\"meta.var.expr storage.type\",\"storage.modifier\"],\"settings\":{\"foreground\":\"#9d7cd8\"}},{\"scope\":[\"punctuation.definition.template-expression\",\"punctuation.section.embedded\",\"meta.embedded.line.tag.smarty\",\"support.constant.handlebars\",\"punctuation.section.tag.twig\"],\"settings\":{\"foreground\":\"#7dcfff\"}},{\"scope\":[\"keyword.control.smarty\",\"keyword.control.twig\",\"support.constant.handlebars keyword.control\",\"keyword.operator.comparison.twig\",\"keyword.blade\",\"entity.name.function.blade\",\"meta.tag.blade keyword.other.type.php\"],\"settings\":{\"foreground\":\"#0db9d7\"}},{\"scope\":[\"keyword.operator.spread\",\"keyword.operator.rest\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#f7768e\"}},{\"scope\":[\"keyword.operator\",\"keyword.control.as\",\"keyword.other\",\"keyword.operator.bitwise.shift\",\"punctuation\",\"expression.embbeded.vue punctuation.definition.tag\",\"text.html.twig meta.tag.inline.any.html\",\"meta.tag.template.value.twig meta.function.arguments.twig\",\"meta.directive.vue punctuation.separator.key-value.html\",\"punctuation.definition.constant.markdown\",\"punctuation.definition.string\",\"punctuation.support.type.property-name\",\"text.html.vue-html meta.tag\",\"meta.attribute.directive\",\"punctuation.definition.keyword\",\"punctuation.terminator.rule\",\"punctuation.definition.entity\",\"punctuation.separator.inheritance.php\",\"keyword.other.template\",\"keyword.other.substitution\",\"entity.name.operator\",\"meta.property-list punctuation.separator.key-value\",\"meta.at-rule.mixin punctuation.separator.key-value\",\"meta.at-rule.function variable.parameter.url\",\"meta.embedded.inline.phpx punctuation.definition.tag.begin.html\",\"meta.embedded.inline.phpx punctuation.definition.tag.end.html\"],\"settings\":{\"foreground\":\"#89ddff\"}},{\"scope\":[\"keyword.control.module.js\",\"keyword.control.import\",\"keyword.control.export\",\"keyword.control.from\",\"keyword.control.default\",\"meta.import keyword.other\"],\"settings\":{\"foreground\":\"#7dcfff\"}},{\"scope\":[\"keyword\",\"keyword.control\",\"keyword.other.important\"],\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":\"keyword.other.DML\",\"settings\":{\"foreground\":\"#7dcfff\"}},{\"scope\":[\"keyword.operator.logical\",\"storage.type.function\",\"keyword.operator.bitwise\",\"keyword.operator.ternary\",\"keyword.operator.comparison\",\"keyword.operator.relational\",\"keyword.operator.or.regexp\"],\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":\"entity.name.tag\",\"settings\":{\"foreground\":\"#f7768e\"}},{\"scope\":[\"entity.name.tag support.class.component\",\"meta.tag.custom entity.name.tag\",\"meta.tag.other.unrecognized.html.derivative entity.name.tag\",\"meta.tag\"],\"settings\":{\"foreground\":\"#de5971\"}},{\"scope\":[\"punctuation.definition.tag\",\"text.html.php meta.embedded.block.html meta.tag.metadata.script.end.html punctuation.definition.tag.begin.html text.html.basic\"],\"settings\":{\"foreground\":\"#ba3c97\"}},{\"scope\":[\"constant.other.php\",\"variable.other.global.safer\",\"variable.other.global.safer punctuation.definition.variable\",\"variable.other.global\",\"variable.other.global punctuation.definition.variable\",\"constant.other\"],\"settings\":{\"foreground\":\"#e0af68\"}},{\"scope\":[\"variable\",\"support.variable\",\"string constant.other.placeholder\",\"variable.parameter.handlebars\",\"variable.other.object\",\"meta.fstring\",\"meta.function-call meta.function-call.arguments\",\"meta.embedded.inline.phpx constant.other.php\"],\"settings\":{\"foreground\":\"#c0caf5\"}},{\"scope\":\"meta.array.literal variable\",\"settings\":{\"foreground\":\"#7dcfff\"}},{\"scope\":[\"meta.object-literal.key\",\"entity.name.type.hcl\",\"string.alias.graphql\",\"string.unquoted.graphql\",\"string.unquoted.alias.graphql\",\"meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js\",\"meta.field.declaration.ts variable.object.property\",\"meta.block entity.name.label\"],\"settings\":{\"foreground\":\"#73daca\"}},{\"scope\":[\"variable.other.property\",\"support.variable.property\",\"support.variable.property.dom\",\"meta.function-call variable.other.object.property\"],\"settings\":{\"foreground\":\"#7dcfff\"}},{\"scope\":\"variable.other.object.property\",\"settings\":{\"foreground\":\"#c0caf5\"}},{\"scope\":\"meta.objectliteral meta.object.member meta.objectliteral meta.object.member meta.objectliteral meta.object.member meta.object-literal.key\",\"settings\":{\"foreground\":\"#41a6b5\"}},{\"scope\":\"source.cpp meta.block variable.other\",\"settings\":{\"foreground\":\"#f7768e\"}},{\"scope\":\"support.other.variable\",\"settings\":{\"foreground\":\"#f7768e\"}},{\"scope\":[\"meta.class-method.js entity.name.function.js\",\"entity.name.method.js\",\"variable.function.constructor\",\"keyword.other.special-method\",\"storage.type.cs\"],\"settings\":{\"foreground\":\"#7aa2f7\"}},{\"scope\":[\"entity.name.function\",\"variable.other.enummember\",\"meta.function-call\",\"meta.function-call entity.name.function\",\"variable.function\",\"meta.definition.method entity.name.function\",\"meta.object-literal entity.name.function\"],\"settings\":{\"foreground\":\"#7aa2f7\"}},{\"scope\":[\"variable.parameter.function.language.special\",\"variable.parameter\",\"meta.function.parameters punctuation.definition.variable\",\"meta.function.parameter variable\"],\"settings\":{\"foreground\":\"#e0af68\"}},{\"scope\":[\"keyword.other.type.php\",\"storage.type.php\",\"constant.character\",\"constant.escape\",\"keyword.other.unit\"],\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":[\"meta.definition.variable variable.other.constant\",\"meta.definition.variable variable.other.readwrite\",\"variable.declaration.hcl variable.other.readwrite.hcl\",\"meta.mapping.key.hcl variable.other.readwrite.hcl\",\"variable.other.declaration\"],\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":\"entity.other.inherited-class\",\"settings\":{\"fontStyle\":\"\",\"foreground\":\"#bb9af7\"}},{\"scope\":[\"support.class\",\"support.type\",\"variable.other.readwrite.alias\",\"support.orther.namespace.use.php\",\"meta.use.php\",\"support.other.namespace.php\",\"support.type.sys-types\",\"support.variable.dom\",\"support.constant.math\",\"support.type.object.module\",\"support.constant.json\",\"entity.name.namespace\",\"meta.import.qualifier\",\"variable.other.constant.object\"],\"settings\":{\"foreground\":\"#0db9d7\"}},{\"scope\":\"entity.name\",\"settings\":{\"foreground\":\"#c0caf5\"}},{\"scope\":\"support.function\",\"settings\":{\"foreground\":\"#0db9d7\"}},{\"scope\":[\"source.css support.type.property-name\",\"source.sass support.type.property-name\",\"source.scss support.type.property-name\",\"source.less support.type.property-name\",\"source.stylus support.type.property-name\",\"source.postcss support.type.property-name\",\"support.type.property-name.css\",\"support.type.vendored.property-name\",\"support.type.map.key\"],\"settings\":{\"foreground\":\"#7aa2f7\"}},{\"scope\":[\"support.constant.font-name\",\"meta.definition.variable\"],\"settings\":{\"foreground\":\"#9ece6a\"}},{\"scope\":[\"entity.other.attribute-name.class\",\"meta.at-rule.mixin.scss entity.name.function.scss\"],\"settings\":{\"foreground\":\"#9ece6a\"}},{\"scope\":\"entity.other.attribute-name.id\",\"settings\":{\"foreground\":\"#fc7b7b\"}},{\"scope\":\"entity.name.tag.css\",\"settings\":{\"foreground\":\"#0db9d7\"}},{\"scope\":[\"entity.other.attribute-name.pseudo-class punctuation.definition.entity\",\"entity.other.attribute-name.pseudo-element punctuation.definition.entity\",\"entity.other.attribute-name.class punctuation.definition.entity\",\"entity.name.tag.reference\"],\"settings\":{\"foreground\":\"#e0af68\"}},{\"scope\":\"meta.property-list\",\"settings\":{\"foreground\":\"#9abdf5\"}},{\"scope\":[\"meta.property-list meta.at-rule.if\",\"meta.at-rule.return variable.parameter.url\",\"meta.property-list meta.at-rule.else\"],\"settings\":{\"foreground\":\"#ff9e64\"}},{\"scope\":[\"entity.other.attribute-name.parent-selector-suffix punctuation.definition.entity.css\"],\"settings\":{\"foreground\":\"#73daca\"}},{\"scope\":\"meta.property-list meta.property-list\",\"settings\":{\"foreground\":\"#9abdf5\"}},{\"scope\":[\"meta.at-rule.mixin keyword.control.at-rule.mixin\",\"meta.at-rule.include entity.name.function.scss\",\"meta.at-rule.include keyword.control.at-rule.include\"],\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":[\"keyword.control.at-rule.include punctuation.definition.keyword\",\"keyword.control.at-rule.mixin punctuation.definition.keyword\",\"meta.at-rule.include keyword.control.at-rule.include\",\"keyword.control.at-rule.extend punctuation.definition.keyword\",\"meta.at-rule.extend keyword.control.at-rule.extend\",\"entity.other.attribute-name.placeholder.css punctuation.definition.entity.css\",\"meta.at-rule.media keyword.control.at-rule.media\",\"meta.at-rule.mixin keyword.control.at-rule.mixin\",\"meta.at-rule.function keyword.control.at-rule.function\",\"keyword.control punctuation.definition.keyword\"],\"settings\":{\"foreground\":\"#9d7cd8\"}},{\"scope\":\"meta.property-list meta.at-rule.include\",\"settings\":{\"foreground\":\"#c0caf5\"}},{\"scope\":\"support.constant.property-value\",\"settings\":{\"foreground\":\"#ff9e64\"}},{\"scope\":[\"entity.name.module.js\",\"variable.import.parameter.js\",\"variable.other.class.js\"],\"settings\":{\"foreground\":\"#c0caf5\"}},{\"scope\":\"variable.language\",\"settings\":{\"foreground\":\"#f7768e\"}},{\"scope\":\"variable.other punctuation.definition.variable\",\"settings\":{\"foreground\":\"#c0caf5\"}},{\"scope\":[\"source.js constant.other.object.key.js string.unquoted.label.js\",\"variable.language.this punctuation.definition.variable\",\"keyword.other.this\"],\"settings\":{\"foreground\":\"#f7768e\"}},{\"scope\":[\"entity.other.attribute-name\",\"text.html.basic entity.other.attribute-name.html\",\"text.html.basic entity.other.attribute-name\"],\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":\"text.html constant.character.entity\",\"settings\":{\"foreground\":\"#0DB9D7\"}},{\"scope\":[\"entity.other.attribute-name.id.html\",\"meta.directive.vue entity.other.attribute-name.html\"],\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":\"source.sass keyword.control\",\"settings\":{\"foreground\":\"#7aa2f7\"}},{\"scope\":[\"entity.other.attribute-name.pseudo-class\",\"entity.other.attribute-name.pseudo-element\",\"entity.other.attribute-name.placeholder\",\"meta.property-list meta.property-value\"],\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":\"markup.inserted\",\"settings\":{\"foreground\":\"#449dab\"}},{\"scope\":\"markup.deleted\",\"settings\":{\"foreground\":\"#914c54\"}},{\"scope\":\"markup.changed\",\"settings\":{\"foreground\":\"#6183bb\"}},{\"scope\":\"string.regexp\",\"settings\":{\"foreground\":\"#b4f9f8\"}},{\"scope\":\"punctuation.definition.group\",\"settings\":{\"foreground\":\"#f7768e\"}},{\"scope\":[\"constant.other.character-class.regexp\"],\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":[\"constant.other.character-class.set.regexp\",\"punctuation.definition.character-class.regexp\"],\"settings\":{\"foreground\":\"#e0af68\"}},{\"scope\":\"keyword.operator.quantifier.regexp\",\"settings\":{\"foreground\":\"#89ddff\"}},{\"scope\":\"constant.character.escape.backslash\",\"settings\":{\"foreground\":\"#c0caf5\"}},{\"scope\":\"constant.character.escape\",\"settings\":{\"foreground\":\"#89ddff\"}},{\"scope\":[\"tag.decorator.js entity.name.tag.js\",\"tag.decorator.js punctuation.definition.tag.js\"],\"settings\":{\"foreground\":\"#7aa2f7\"}},{\"scope\":\"keyword.other.unit\",\"settings\":{\"foreground\":\"#f7768e\"}},{\"scope\":[\"source.json meta.structure.dictionary.json support.type.property-name.json\"],\"settings\":{\"foreground\":\"#7aa2f7\"}},{\"scope\":[\"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json\"],\"settings\":{\"foreground\":\"#0db9d7\"}},{\"scope\":[\"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json\"],\"settings\":{\"foreground\":\"#7dcfff\"}},{\"scope\":[\"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json\"],\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":[\"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json\"],\"settings\":{\"foreground\":\"#e0af68\"}},{\"scope\":[\"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json\"],\"settings\":{\"foreground\":\"#0db9d7\"}},{\"scope\":[\"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json\"],\"settings\":{\"foreground\":\"#73daca\"}},{\"scope\":[\"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json\"],\"settings\":{\"foreground\":\"#f7768e\"}},{\"scope\":[\"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json\"],\"settings\":{\"foreground\":\"#9ece6a\"}},{\"scope\":\"punctuation.definition.list_item.markdown\",\"settings\":{\"foreground\":\"#9abdf5\"}},{\"scope\":[\"meta.block\",\"meta.brace\",\"punctuation.definition.block\",\"punctuation.definition.use\",\"punctuation.definition.class\",\"punctuation.definition.begin.bracket\",\"punctuation.definition.end.bracket\",\"punctuation.definition.switch-expression.begin.bracket\",\"punctuation.definition.switch-expression.end.bracket\",\"punctuation.definition.section.switch-block.begin.bracket\",\"punctuation.definition.section.switch-block.end.bracket\",\"punctuation.definition.group.shell\",\"punctuation.definition.parameters\",\"punctuation.definition.arguments\",\"punctuation.definition.dictionary\",\"punctuation.definition.array\",\"punctuation.section\"],\"settings\":{\"foreground\":\"#9abdf5\"}},{\"scope\":[\"meta.embedded.block\"],\"settings\":{\"foreground\":\"#c0caf5\"}},{\"scope\":[\"meta.tag JSXNested\",\"meta.jsx.children\",\"text.html\",\"text.log\"],\"settings\":{\"foreground\":\"#9aa5ce\"}},{\"scope\":\"text.html.markdown markup.inline.raw.markdown\",\"settings\":{\"foreground\":\"#bb9af7\"}},{\"scope\":\"text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown\",\"settings\":{\"foreground\":\"#4E5579\"}},{\"scope\":[\"heading.1.markdown entity.name\",\"heading.1.markdown punctuation.definition.heading.markdown\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#89ddff\"}},{\"scope\":[\"heading.2.markdown entity.name\",\"heading.2.markdown punctuation.definition.heading.markdown\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#61bdf2\"}},{\"scope\":[\"heading.3.markdown entity.name\",\"heading.3.markdown punctuation.definition.heading.markdown\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#7aa2f7\"}},{\"scope\":[\"heading.4.markdown entity.name\",\"heading.4.markdown punctuation.definition.heading.markdown\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#6d91de\"}},{\"scope\":[\"heading.5.markdown entity.name\",\"heading.5.markdown punctuation.definition.heading.markdown\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#9aa5ce\"}},{\"scope\":[\"heading.6.markdown entity.name\",\"heading.6.markdown punctuation.definition.heading.markdown\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#747ca1\"}},{\"scope\":[\"markup.italic\",\"markup.italic punctuation\"],\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#c0caf5\"}},{\"scope\":[\"markup.bold\",\"markup.bold punctuation\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#c0caf5\"}},{\"scope\":[\"markup.bold markup.italic\",\"markup.bold markup.italic punctuation\"],\"settings\":{\"fontStyle\":\"bold italic\",\"foreground\":\"#c0caf5\"}},{\"scope\":[\"markup.underline\",\"markup.underline punctuation\"],\"settings\":{\"fontStyle\":\"underline\"}},{\"scope\":\"markup.quote punctuation.definition.blockquote.markdown\",\"settings\":{\"foreground\":\"#4e5579\"}},{\"scope\":\"markup.quote\",\"settings\":{\"fontStyle\":\"italic\"}},{\"scope\":[\"string.other.link\",\"markup.underline.link\",\"constant.other.reference.link.markdown\",\"string.other.link.description.title.markdown\"],\"settings\":{\"foreground\":\"#73daca\"}},{\"scope\":[\"markup.fenced_code.block.markdown\",\"markup.inline.raw.string.markdown\",\"variable.language.fenced.markdown\"],\"settings\":{\"foreground\":\"#89ddff\"}},{\"scope\":\"meta.separator\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#51597d\"}},{\"scope\":\"markup.table\",\"settings\":{\"foreground\":\"#c0cefc\"}},{\"scope\":\"token.info-token\",\"settings\":{\"foreground\":\"#0db9d7\"}},{\"scope\":\"token.warn-token\",\"settings\":{\"foreground\":\"#ffdb69\"}},{\"scope\":\"token.error-token\",\"settings\":{\"foreground\":\"#db4b4b\"}},{\"scope\":\"token.debug-token\",\"settings\":{\"foreground\":\"#b267e6\"}},{\"scope\":\"entity.tag.apacheconf\",\"settings\":{\"foreground\":\"#f7768e\"}},{\"scope\":[\"meta.preprocessor\"],\"settings\":{\"foreground\":\"#73daca\"}},{\"scope\":\"source.env\",\"settings\":{\"foreground\":\"#7aa2f7\"}}],\"type\":\"dark\"}"));
|
|
3
|
+
export { tokyo_night_default as default };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '../styles/api.less';
|
|
1
2
|
import '../styles/theme.less';
|
|
2
3
|
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
4
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ComponentApi, SceneDescriptor } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
contract: ComponentApi;
|
|
4
|
+
scenes: SceneDescriptor[];
|
|
5
|
+
/** 要高亮的 API,格式 `props:disabled` */
|
|
6
|
+
focus?: string;
|
|
7
|
+
/** pageMeta.apiNotes:补 JSDoc 覆盖不到的说明 */
|
|
8
|
+
notes?: Record<string, string> | null;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
jump: (sceneName: string) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onJump?: ((sceneName: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ModuleApi } from '../module-api';
|
|
2
|
+
import type { SceneDescriptor } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* 非组件模块的 API 视图:函数 / 常量 / 类型。
|
|
5
|
+
* 外观与组件 API 表(PlaygroundApiTable)共用 styles/api.less —— 同一套表头、列、空值胶囊与交互。
|
|
6
|
+
*/
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
module: ModuleApi;
|
|
9
|
+
scenes?: SceneDescriptor[];
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
jump: (scene: string) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onJump?: ((scene: string) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { PageDescriptor, SceneDescriptor } from '../types';
|
|
2
|
+
import { type ViewportState } from './viewport';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
page: PageDescriptor;
|
|
5
|
+
scenes: SceneDescriptor[];
|
|
6
|
+
/** 首次渲染要落在哪个场景(切页 / 从全局搜索跳进来时用),空则第一个 */
|
|
7
|
+
initialActive?: string;
|
|
8
|
+
viewport: ViewportState;
|
|
9
|
+
theme: 'light' | 'dark';
|
|
10
|
+
sidebarOpen: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
13
|
+
jumpTo: (name: string) => Promise<void>;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
focus: (name: string) => any;
|
|
16
|
+
"update:viewport": (value: ViewportState) => any;
|
|
17
|
+
"toggle-theme": (event?: MouseEvent | undefined) => any;
|
|
18
|
+
"toggle-sidebar": () => any;
|
|
19
|
+
"collapse-sidebar": () => any;
|
|
20
|
+
"update:active": (name: string) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
onFocus?: ((name: string) => any) | undefined;
|
|
23
|
+
"onUpdate:viewport"?: ((value: ViewportState) => any) | undefined;
|
|
24
|
+
"onToggle-theme"?: ((event?: MouseEvent | undefined) => any) | undefined;
|
|
25
|
+
"onToggle-sidebar"?: (() => any) | undefined;
|
|
26
|
+
"onCollapse-sidebar"?: (() => any) | undefined;
|
|
27
|
+
"onUpdate:active"?: ((name: string) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { SceneDescriptor } from '../types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
scenes: SceneDescriptor[];
|
|
4
|
+
active: string;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
|
|
7
|
+
jump: (name: string) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
|
|
9
|
+
onJump?: ((name: string) => any) | undefined;
|
|
10
10
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PlaygroundPluginUiEntry } from '../plugin';
|
|
2
|
+
/**
|
|
3
|
+
* 插件的 UI 缝位:位置固定、尺寸受控,插件只管往里放组件。
|
|
4
|
+
* 每一项各自套错误边界,一个插件 UI 抛错不影响外壳。
|
|
5
|
+
*/
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
entries: PlaygroundPluginUiEntry[];
|
|
8
|
+
slot: 'header' | 'sidebarFooter';
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { PlaygroundPluginUiEntry } from '../plugin';
|
|
2
|
+
/**
|
|
3
|
+
* 插件提供的包裹层(config-provider / router 这类)。
|
|
4
|
+
* 没有包裹层时直接渲染插槽 —— 不配插件的项目 DOM 结构与之前完全一致。
|
|
5
|
+
*/
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
entries: PlaygroundPluginUiEntry[];
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_template: () => {
|
|
10
|
+
__VLS_Slots: {
|
|
11
|
+
default?: (props: {}) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: {}) => any;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '../styles/theme.less';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
|
|
2
|
+
sceneName: string;
|
|
3
3
|
};
|
|
4
4
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
5
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
sceneName: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SceneDescriptor } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
scene: SceneDescriptor;
|
|
4
|
+
theme?: 'light' | 'dark';
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
7
|
+
mount: () => Promise<void>;
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
inspect: (key: string) => any;
|
|
10
|
+
focus: (name: string) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onInspect?: ((key: string) => any) | undefined;
|
|
13
|
+
onFocus?: ((name: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { SceneDescriptor } from '../types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
scene: SceneDescriptor;
|
|
4
|
-
width: 'auto' | 'tablet' | 'mobile';
|
|
5
4
|
};
|
|
6
5
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
6
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
import type { SceneDescriptor } from '../types';
|
|
2
|
+
interface NavPage {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
count: number;
|
|
6
|
+
/** 1 = 组件页,2 = 子组件页 */
|
|
7
|
+
depth: 1 | 2;
|
|
8
|
+
children: NavPage[];
|
|
9
|
+
}
|
|
10
|
+
interface NavGroup {
|
|
11
|
+
name: string;
|
|
12
|
+
pages: NavPage[];
|
|
13
|
+
}
|
|
2
14
|
type __VLS_Props = {
|
|
3
15
|
title: string;
|
|
4
|
-
groups:
|
|
5
|
-
|
|
6
|
-
items: SceneDescriptor[];
|
|
7
|
-
}[];
|
|
8
|
-
activeId: string;
|
|
16
|
+
groups: NavGroup[];
|
|
17
|
+
activePageId: string;
|
|
9
18
|
sceneCount: number;
|
|
19
|
+
/** 全站场景:搜索是全局的,页面之外还要能直接搜到场景 */
|
|
20
|
+
scenes: SceneDescriptor[];
|
|
10
21
|
};
|
|
11
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
12
|
-
focusSearch: () => void;
|
|
13
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
23
|
select: (id: string) => any;
|
|
24
|
+
selectScene: (pageId: string, sceneName: string) => any;
|
|
15
25
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
26
|
onSelect?: ((id: string) => any) | undefined;
|
|
27
|
+
onSelectScene?: ((pageId: string, sceneName: string) => any) | undefined;
|
|
17
28
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
29
|
declare const _default: typeof __VLS_export;
|
|
19
30
|
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 预览宽度:设备预设 + 自定义,行业通用的几个档位。
|
|
3
|
+
*
|
|
4
|
+
* 名称与数值对齐 Chrome DevTools / Storybook 的默认视口:
|
|
5
|
+
* 手机 390(iPhone 14/15 逻辑宽)、平板 820(iPad Air 竖屏)、桌面 1280(笔记本基准)。
|
|
6
|
+
* 非自适应时给一层设备外壳(手机 / 平板 / 桌面窗口),看起来就是"装进设备里"。
|
|
7
|
+
*/
|
|
8
|
+
export type ViewportId = 'auto' | 'mobile' | 'tablet' | 'desktop' | 'custom';
|
|
9
|
+
export type DeviceShell = 'none' | 'phone' | 'tablet' | 'desktop';
|
|
10
|
+
export interface ViewportState {
|
|
11
|
+
id: ViewportId;
|
|
12
|
+
/** 自定义宽度(px);预设模式下为 0 */
|
|
13
|
+
px: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ViewportPreset {
|
|
16
|
+
id: Exclude<ViewportId, 'custom'>;
|
|
17
|
+
label: string;
|
|
18
|
+
/** 0 表示自适应 */
|
|
19
|
+
px: number;
|
|
20
|
+
shell: DeviceShell;
|
|
21
|
+
}
|
|
22
|
+
export declare const VIEWPORT_PRESETS: ViewportPreset[];
|
|
23
|
+
/** 自定义宽度的可输入范围,超出就夹住 */
|
|
24
|
+
export declare const CUSTOM_WIDTH: {
|
|
25
|
+
readonly min: 320;
|
|
26
|
+
readonly max: 1920;
|
|
27
|
+
};
|
|
28
|
+
/** 自定义宽度按大小自动挑外壳,避免 380px 却套桌面窗口 */
|
|
29
|
+
export declare const shellOf: (px: number) => DeviceShell;
|
|
30
|
+
export declare const clampWidth: (px: number) => number;
|
|
31
|
+
export interface ResolvedViewport {
|
|
32
|
+
id: ViewportId;
|
|
33
|
+
/** 0 = 自适应(不限制宽度) */
|
|
34
|
+
px: number;
|
|
35
|
+
shell: DeviceShell;
|
|
36
|
+
label: string;
|
|
37
|
+
}
|
|
38
|
+
export declare const resolveViewport: (state: ViewportState) => ResolvedViewport;
|
|
39
|
+
export declare const DEFAULT_VIEWPORT: ViewportState;
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
code: string;
|
|
3
3
|
lang?: string;
|
|
4
|
+
/** 搜索关键字:非空时把匹配项包成 <mark>,跨 token 的词也能命中 */
|
|
5
|
+
query?: string;
|
|
6
|
+
/** 大小写敏感 */
|
|
7
|
+
caseSensitive?: boolean;
|
|
8
|
+
/** 全词匹配 */
|
|
9
|
+
wholeWord?: boolean;
|
|
10
|
+
/** 当前高亮的匹配下标(0 起);-1 表示不高亮 */
|
|
11
|
+
active?: number;
|
|
4
12
|
};
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
14
|
+
scrollToHit: (index: number) => void;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
count: (total: number) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onCount?: ((total: number) => any) | undefined;
|
|
19
|
+
}>, {
|
|
6
20
|
lang: string;
|
|
21
|
+
query: string;
|
|
22
|
+
caseSensitive: boolean;
|
|
23
|
+
wholeWord: boolean;
|
|
24
|
+
active: number;
|
|
7
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
26
|
declare const _default: typeof __VLS_export;
|
|
9
27
|
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 源码搜索的文本匹配工具。
|
|
3
|
+
*
|
|
4
|
+
* shiki 把一行拆成几十个 `<span>`(token),直接对单个文本节点做 `indexOf` 会漏掉跨 token 的词
|
|
5
|
+
* (例如 `pageSize` 可能被拆成 `page` + `Size`)。做法是:
|
|
6
|
+
* 1. 把 DOM 里所有文本节点拼成一条扁平字符串(记下每个节点在扁平串里的起点);
|
|
7
|
+
* 2. 在扁平串上匹配;
|
|
8
|
+
* 3. 把匹配区间按交集映射回各个文本节点,节点内从后往前切分,偏移不会失效。
|
|
9
|
+
*/
|
|
10
|
+
export interface FlatText {
|
|
11
|
+
nodes: Text[];
|
|
12
|
+
text: string;
|
|
13
|
+
/** 每个节点在扁平串里的起始下标 */
|
|
14
|
+
starts: number[];
|
|
15
|
+
}
|
|
16
|
+
export interface TextMatch {
|
|
17
|
+
start: number;
|
|
18
|
+
end: number;
|
|
19
|
+
}
|
|
20
|
+
/** 映射结果:某个文本节点上的一段(相对节点自身的偏移) */
|
|
21
|
+
export interface TextSegment {
|
|
22
|
+
nodeIndex: number;
|
|
23
|
+
start: number;
|
|
24
|
+
end: number;
|
|
25
|
+
matchIndex: number;
|
|
26
|
+
}
|
|
27
|
+
export declare const escapeRegExp: (value: string) => string;
|
|
28
|
+
/** 收集 root 下所有文本节点(行号是 CSS counter,不参与匹配) */
|
|
29
|
+
export declare const flattenTextNodes: (root: HTMLElement) => FlatText;
|
|
30
|
+
/**
|
|
31
|
+
* 在扁平文本里找所有匹配。
|
|
32
|
+
*
|
|
33
|
+
* - `wholeWord` 用 `[\w$]` 判定前后边界;中文不属于词字符,按子串命中处理(符合直觉)
|
|
34
|
+
* - `limit` 防止超大文件把 DOM 撑爆,超出后不再收集
|
|
35
|
+
*/
|
|
36
|
+
export declare const findMatches: (text: string, query: string, options?: {
|
|
37
|
+
caseSensitive?: boolean;
|
|
38
|
+
wholeWord?: boolean;
|
|
39
|
+
limit?: number;
|
|
40
|
+
}) => TextMatch[];
|
|
41
|
+
/** 把扁平文本上的匹配映射到各文本节点的局部片段 */
|
|
42
|
+
export declare const segmentsOf: (flat: FlatText, matches: TextMatch[]) => TextSegment[];
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { type HighlighterCore } from 'shiki/core';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* 代码配色:浅色用 light-plus(VSCode 默认浅色)、深色用 tokyo-night。
|
|
4
|
+
*
|
|
5
|
+
* 早先用 vitesse-light / vitesse-dark(低彩度),在 13px 的代码块里
|
|
6
|
+
* 标签名、属性名、字符串几乎一个色,看着像“没有高亮”;换成这两套后
|
|
7
|
+
* token 色相分得开(粉 / 紫 / 绿 / 青),深色底 #1a1b26 也贴着外壳的 #16181d。
|
|
8
|
+
*/
|
|
9
|
+
export declare const PW_THEME_LIGHT = "light-plus";
|
|
10
|
+
export declare const PW_THEME_DARK = "tokyo-night";
|
|
4
11
|
export declare const getHighlighter: () => Promise<HighlighterCore>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
interface EditorPreset {
|
|
2
|
+
label: string;
|
|
3
|
+
/** 支持 {file}(原样)、{fileEnc}(URL 编码)、{line} */
|
|
4
|
+
template: string;
|
|
5
|
+
}
|
|
6
|
+
/** 内置编辑器协议;都是各编辑器官方注册的 URL scheme */
|
|
7
|
+
export declare const EDITOR_PRESETS: Record<string, EditorPreset>;
|
|
8
|
+
interface EditorChoice {
|
|
9
|
+
/** 内置 preset 名,或 'custom' */
|
|
10
|
+
key: string;
|
|
11
|
+
/** key === 'custom' 时的协议模板 */
|
|
12
|
+
template?: string;
|
|
13
|
+
}
|
|
14
|
+
/** 当前协议模板:内置 preset 的模板,或访问者自定义的模板 */
|
|
15
|
+
export declare const editorTemplate: () => string;
|
|
16
|
+
export declare const editorLabel: () => string;
|
|
17
|
+
export declare const editorChoiceKey: import("vue").ComputedRef<string>;
|
|
18
|
+
/** 菜单里的候选:配置限定 → 内置;配置指定的 preset 始终在列表里 */
|
|
19
|
+
export declare const editorOptions: () => {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}[];
|
|
23
|
+
/** 是否允许访问者填自定义模板(任意 IDE 都能接) */
|
|
24
|
+
export declare const allowCustomEditor: () => boolean;
|
|
25
|
+
/** 访问者能否自己选:配置显式关闭,或只有一个候选且不允许自定义时隐藏菜单 */
|
|
26
|
+
export declare const canChooseEditor: () => boolean;
|
|
27
|
+
export declare const setEditorChoice: (next: EditorChoice) => void;
|
|
28
|
+
export declare const editorEnabled: () => boolean;
|
|
29
|
+
/** 拼出「在 IDE 中打开」的 URL;拿不到绝对路径时返回空串 */
|
|
30
|
+
export declare const editorUrl: (rel: string, line?: number) => string;
|
|
31
|
+
/** 打开本地 IDE;没有可用 URL 时降级为复制绝对路径 */
|
|
32
|
+
export declare const openInEditor: (rel: string, line?: number) => void;
|
|
33
|
+
/** 复制文件路径:`line > 0` 时带「:行」,不传就是纯路径 */
|
|
34
|
+
export declare const copyPath: (rel: string, line?: number) => Promise<void>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** 场景顶部 API 摘要行:一个场景演示了哪些 API,类型与默认值来自 manifest */
|
|
2
|
+
export interface ApiBriefItem {
|
|
3
|
+
name: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
default?: string;
|
|
6
|
+
}
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
items: ApiBriefItem[];
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
inspect: (name: string) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onInspect?: ((name: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -14,10 +14,10 @@ declare const __VLS_template: () => {
|
|
|
14
14
|
};
|
|
15
15
|
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
16
16
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
-
size: "sm" | "md";
|
|
18
17
|
disabled: boolean;
|
|
19
|
-
|
|
18
|
+
size: "md" | "sm";
|
|
20
19
|
loading: boolean;
|
|
20
|
+
variant: "text" | "primary" | "ghost";
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 单个 Demo 块:标题 + 控件区 + 可选说明/页脚。
|
|
3
|
+
*
|
|
4
|
+
* 默认 `surface="none"`:画布已经提供了底色和内边距,这里只负责排版;
|
|
5
|
+
* 需要独立卡片时再加 `surface="card"`。全部可选,不想用这套原语照样可以自己写。
|
|
6
|
+
*/
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
/** 块标题,显示在控件上方(等宽小字) */
|
|
9
|
+
title?: string;
|
|
10
|
+
/** 控件排列:横排自动换行 / 竖排撑满 */
|
|
11
|
+
direction?: 'row' | 'column';
|
|
12
|
+
/** 交叉轴对齐(横排时控制垂直对齐,竖排时控制拉伸与对齐) */
|
|
13
|
+
align?: 'start' | 'center' | 'end';
|
|
14
|
+
/** 外观:none 只排版,card 画边框卡片 */
|
|
15
|
+
surface?: 'none' | 'card';
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_template: () => {
|
|
18
|
+
__VLS_Slots: {
|
|
19
|
+
default?: (props: {}) => any;
|
|
20
|
+
} & {
|
|
21
|
+
note?: (props: {}) => any;
|
|
22
|
+
} & {
|
|
23
|
+
footer?: (props: {}) => any;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
27
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
28
|
+
direction: "row" | "column";
|
|
29
|
+
align: "start" | "center" | "end";
|
|
30
|
+
surface: "none" | "card";
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|