@rinova/playground 0.1.2 → 0.1.4

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.
@@ -11410,9 +11410,9 @@ var loadMonaco = () => {
11410
11410
  const [editorWorker, tsWorker, monaco, _contribution, shikiModule] = await Promise.all([
11411
11411
  import("./editor.worker-VDFPHiZj.js"),
11412
11412
  import("./ts.worker-CpQm_d0w.js"),
11413
- import("./editor.api-BtqJ5Bxw.js").then((n) => n.s),
11414
- import("./monaco.contribution-GLS4-bVF.js").then((n) => n.t),
11415
- import("./dist-g9u4q-9e.js")
11413
+ import("./editor.api-6f2aPN2V.js").then((n) => n.s),
11414
+ import("./monaco.contribution-jrnupplv.js").then((n) => n.t),
11415
+ import("./dist-CiAXGmAo.js")
11416
11416
  ]);
11417
11417
  const EditorWorker = editorWorker.default;
11418
11418
  const TsWorker = tsWorker.default;
@@ -11871,7 +11871,7 @@ var App_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ *
11871
11871
  localStorage.setItem(STORAGE_KEY, preference.value);
11872
11872
  };
11873
11873
  const basePath = (() => {
11874
- const raw = config.base ?? "/";
11874
+ const raw = config.routeBase ?? config.base ?? "/";
11875
11875
  return raw.endsWith("/") ? raw : `${raw}/`;
11876
11876
  })();
11877
11877
  /** 从 location.pathname 解析出场景 id(去掉 base 与尾部斜杠) */
@@ -11976,5 +11976,5 @@ var App_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ *
11976
11976
  ]);
11977
11977
  };
11978
11978
  }
11979
- }), [["__scopeId", "data-v-cba81ecf"]]);
11979
+ }), [["__scopeId", "data-v-c32e20d1"]]);
11980
11980
  export { App_default as default, __exportAll as i, FontStyle as n, INITIAL as r, EncodedTokenMetadata as t };
@@ -1,4 +1,4 @@
1
- import { n as FontStyle, r as INITIAL, t as EncodedTokenMetadata } from "./App-CK1Q_fap.js";
1
+ import { n as FontStyle, r as INITIAL, t as EncodedTokenMetadata } from "./App-BzlvncHB.js";
2
2
  // ../../node_modules/.pnpm/@shikijs+monaco@4.6.0/node_modules/@shikijs/monaco/dist/index.mjs
3
3
  var TokenizerState = class TokenizerState {
4
4
  _ruleStack;
@@ -1,4 +1,4 @@
1
- import { i as __exportAll } from "./App-CK1Q_fap.js";
1
+ import { i as __exportAll } from "./App-BzlvncHB.js";
2
2
  // ../../node_modules/.pnpm/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/base/common/arrays.js
3
3
  /**
4
4
  * Returns the last entry and the initial N-1 entries of the array, as a tuple of [rest, last].
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ var defineSceneMeta = (meta) => meta;
16
16
  var createPlayground = async (options = {}) => {
17
17
  const target = typeof options.el === "string" ? document.querySelector(options.el) : options.el ?? document.querySelector("#app");
18
18
  if (!target) throw new Error("[rinova-playground] 未找到挂载容器。请在 index.html 中提供 <div id=\"app\"></div>,或调用 createPlayground({ el })");
19
- const { default: App } = await import("./App-CK1Q_fap.js");
19
+ const { default: App } = await import("./App-BzlvncHB.js");
20
20
  createApp(App).mount(target);
21
21
  };
22
22
  export { createPlayground, currentArgs, currentOutput, defineConfig, defineSceneMeta, toast, useSceneArgs, useSceneOutput };
@@ -1,5 +1,5 @@
1
- import { c as languages, t as Emitter } from "./editor.api-BtqJ5Bxw.js";
2
- import { i as __exportAll } from "./App-CK1Q_fap.js";
1
+ import { c as languages, t as Emitter } from "./editor.api-6f2aPN2V.js";
2
+ import { i as __exportAll } from "./App-BzlvncHB.js";
3
3
  // ../../node_modules/.pnpm/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/features/typescript/lib/typescriptServicesMetadata.js
4
4
  var typescriptVersion$1 = "5.9.3";
5
5
  // ../../node_modules/.pnpm/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/features/typescript/register.js
@@ -196,7 +196,7 @@ var getJavaScriptWorker = () => {
196
196
  return getMode().then((mode) => mode.getJavaScriptWorker());
197
197
  };
198
198
  function getMode() {
199
- return import("./tsMode-ezle9bSI.js");
199
+ return import("./tsMode-C6DRwdZC.js");
200
200
  }
201
201
  languages.onLanguage("typescript", () => {
202
202
  return getMode().then((mode) => mode.setupTypeScript(typescriptDefaults));
package/dist/style.css CHANGED
@@ -685,31 +685,31 @@ to {
685
685
  outline: 2px solid color-mix(in srgb, var(--rp-color-primary) 55%, transparent);
686
686
  outline-offset: -1px;
687
687
  }
688
- .pw-app[data-v-cba81ecf] {
688
+ .pw-app[data-v-c32e20d1] {
689
689
  display: flex;
690
690
  height: 100vh;
691
691
  overflow: hidden;
692
692
  background: var(--rp-color-bg);
693
693
  color: var(--rp-color-text);
694
694
  }
695
- .pw-main[data-v-cba81ecf] {
695
+ .pw-main[data-v-c32e20d1] {
696
696
  display: flex;
697
697
  flex-direction: column;
698
698
  flex: 1;
699
699
  min-width: 0;
700
700
  }
701
- .pw-body[data-v-cba81ecf] {
701
+ .pw-body[data-v-c32e20d1] {
702
702
  display: flex;
703
703
  flex: 1;
704
704
  min-height: 0;
705
705
  }
706
- .pw-source-slot[data-v-cba81ecf] {
706
+ .pw-source-slot[data-v-c32e20d1] {
707
707
  height: 42%;
708
708
  min-height: 200px;
709
709
  border-top: 1px solid var(--rp-color-border);
710
710
  background: var(--rp-color-bg);
711
711
  }
712
- .pw-empty[data-v-cba81ecf] {
712
+ .pw-empty[data-v-c32e20d1] {
713
713
  display: flex;
714
714
  flex: 1;
715
715
  align-items: center;
@@ -1,5 +1,5 @@
1
- import { $ as QuickCommandNLS, $a as alert, $c as debouncedObservable, $d as BugIndicatingError, $i as diffInserted, $l as isFirefox, $n as ClickAction, $o as Mimes, $r as getGoodIndentForLine, $s as Separator, $t as isLocalizedString, $u as CancellationTokenSource, A as observableSignalFromEvent, Aa as overviewRulerSelectionHighlightForeground, Ac as getDomNodeZoomLevel, Ad as isWeb, Ai as Gesture, Al as thisEqualsC, An as openLinkFromMarkdown, Ao as LineRange, Ar as ViewGpuContext, As as relativePath, At as RegexToggle, Au as InlineCompletionEndOfLifeReasonKind, Ba as darken, Bc as isAncestorOfActiveElement, Bd as assertType, Bi as buttonBackground, Bl as Delayer, Bn as isEmptyMarkdownString, Bo as GlyphMarginLane, Br as isModelDecorationInString, Bs as SubmenuItemAction, Bt as IDataChannelService, Bu as getAriaLabelForSymbol, C as WorkbenchToolBar, Ca as editorSelectionBackground, Cc as clearNode, Cd as createSingleCallFunction, Ci as generateUuid, Cl as DebugLocation, Cn as ItemActivation, Co as lineRangeMappingFromRangeMappings, Cr as EditDeltaInfo, Cs as basenameOrAuthority, Ct as WorkbenchAsyncDataTree, Cu as Command, D as LineSource, Da as editorWidgetBackground, Dc as getClientArea, Dd as isLittleEndian, Di as ScrollableElement, Dl as equalsIfDefinedC, Dn as ILayoutService, Do as StringText, Dr as IUserInteractionService, Ds as isEqual, Dt as FindInput, Du as FoldingRangeKind, E as rangeIsSingleLine, Ea as editorWarningForeground, Ec as getActiveWindow, Ed as isLinux, Ei as DomScrollableElement, El as equalsIfDefined, En as IDialogService, Eo as AbstractText, Er as groupByMap, Es as extname, Et as WorkbenchTreeElementCanExpand, Eu as DocumentPasteTriggerKind, F as bindContextKey, Fa as contrastBorder, Fc as getWindow, Fd as localize2, Fi as DynamicCssRules, Fl as Schemas, Fn as renderLabelWithIcons, Fo as findLastMax, Fr as Severity, Fs as Action2, Ft as SplitView, Fu as ProviderId, G as IconLabel, Ga as createCSSRule, Gc as reset, Gd as isObject, Gi as inputBackground, Gl as disposableTimeout, Gn as anyScore, Go as safeIntl, Gr as overviewRulerRangeHighlight, Gs as ContextKeyEqualsExpr, Gt as getActionBarActions, Gu as Position, H as widgetClose, Ha as registerColor, Hc as isHTMLElement, Hd as isDefined, Hi as inputActiveOptionBackground, Hl as TimeoutTimer, Hn as stripIcons, Ho as OverviewRulerLane, Hr as computeIndentLevel, Hs as registerAction2, Ht as MenuEntryActionViewItem, Hu as Codicon, I as observableConfigValue, Ia as descriptionForeground, Ic as h, Id as cloneAndChange, Ii as EditorMouseEvent, Il as matchesScheme, In as IdGenerator, Io as mapFindFirst, Ir as Severity$1, Is as IMenuService, It as OrthogonalEdge, Iu as SelectedSuggestionInfo, J as Button, Ja as CONTEXT_ACCESSIBILITY_MODE_ENABLED, Jc as scheduleAtNextAnimationFrame, Jd as upcast, Ji as editorActionListForeground, Jl as raceCancellationError, Jn as fuzzyScoreGracefulAggressive, Jo as StringDiffSequence, Jr as themeColorFromId, Js as RawContextKey, Jt as defaultInputBoxStyles, Ju as dirname$1, K as HighlightedLabel, Ka as createStyleSheetFromObservable, Kc as runAtThisOrScheduleAtNextAnimationFrame, Kd as isString, Ki as inputBorder, Kl as first, Kn as createMatches, Ko as CharacterSet, Kr as IThemeService, Ks as ContextKeyExpr, Kt as getFlatActionBarActions, Ku as URI, L as createHotClass, La as foreground, Lc as hide, Ld as deepClone, Li as quickInputListFocusBackground, Ll as matchesSomeScheme, Ln as defaultGenerator, Lo as OffsetRange, Lr as GlyphRasterizer, Ls as MenuId, Lt as Sash, Lu as SignatureHelpTriggerKind, M as DisposableCancellationTokenSource, Ma as widgetShadow, Mc as getTopLeftOffset, Md as language, Mi as getColumnOfNodeOffset, Ml as ConstantStringHash, Mn as withSelection, Mo as findFirstMax, Mr as runOnChangeWithCancellationToken, Ms as LRUCache, Mt as navigateToggles, Mu as InlineCompletionTriggerKind, N as appendRemoveOnDispose, Na as scrollbarShadow, Nc as getTotalHeight, Nd as setTimeout0, Ni as isDark, Nl as hash, Nn as renderMarkdown$1, No as findFirstMin, Nr as runOnChangeWithStore, Ns as ResourceMap, Nt as Toggle, Nu as NewSymbolNameTag, O as RenderOptions, Oa as editorWidgetBorder, Oc as getComputedStyle, Od as isMacintosh, Oi as Widget, Ol as strictEquals, On as getAnchorRect, Oo as PositionOffsetTransformerBase, Or as NativeEditContextRegistry, Os as joinPath, Ot as HistoryInputBox, Ou as HoverVerbosityAction, P as StableEditorScrollState, Pa as activeContrastBorder, Pc as getTotalWidth, Pd as localize, Pi as isHighContrast, Pl as VSBuffer, Pn as renderIcon, Po as findLast, Pr as INotificationService, Ps as ITelemetryService, Pt as Sizing, Pu as NewSymbolNameTriggerKind, Q as InspectTokensNLS, Qa as IEditorWorkerService, Qc as trackFocus, Qd as checkAdjacentItems, Qi as minimapSelectionOccurrenceHighlight, Ql as StandardKeyboardEvent, Qn as or, Qo as product$1, Qr as EnterOperation, Qs as Action, Qt as getListStyles, Qu as CancellationToken, R as HC_BLACK_THEME_NAME, Ra as iconForeground, Rc as isActiveElement, Rd as mixin, Ri as quickInputListFocusForeground, Rl as AsyncIterableProducer, Rn as MarkdownString, Ro as UnicodeTextModelHighlighter, Rr as ensureNonNullable, Rs as MenuItemAction, Rt as ILabelService, Ru as SymbolKinds, S as MenuWorkbenchToolBar, Sa as editorInlayHintTypeForeground, Sc as append, Sd as Iterable, Sf as sum, Si as DataTransfers, Sl as DebugNameData, Sn as IQuickInputService, So as RangeMapping, Sr as lengthGetColumnCountIfZeroLineCount, Ss as basename, St as IListService, Su as mainWindow, T as Point, Ta as editorWarningBorder, Tc as getActiveElement, Td as isIOS, Ti as DomEmitter, Tl as equals$2, Tn as isKeyModified, To as TextReplacement, Tr as countEOL, Ts as extUri, Tt as WorkbenchTreeElementCanCollapse, Tu as DocumentHighlightKind, U as KeybindingLabel, Ua as transparent, Uc as isMouseEvent, Ud as isFunction, Ui as inputActiveOptionBorder, Ul as createCancelableAsyncIterableProducer, Un as FuzzyScore, Uo as shouldSynchronizeModel, Ur as editorBracketMatchForeground, Us as KeybindingsRegistry, Ut as TextOnlyMenuEntryActionViewItem, Uu as Selection, V as registerIcon, Va as oneOf, Vc as isEditableElement, Vd as isArrayOf, Vi as buttonForeground, Vl as RunOnceScheduler, Vn as isMarkdownString, Vo as InjectedTextCursorStops, Vr as isModelDecorationVisible, Vs as isIMenuItem, Vt as ActionBar, Vu as isLocationLink, W as unthemedKeybindingLabelOptions, Wa as GlobalPointerMoveMonitor, Wc as n, Wd as isNumber, Wi as inputActiveOptionForeground, Wl as createCancelablePromise, Wn as FuzzyScoreOptions, Wo as getMapForWordSeparators, Wr as ghostTextForeground, Ws as Registry, Wt as createActionViewItem, Wu as Range, X as IStandaloneThemeService, Xa as TabFocus, Xc as show, Xd as assertFn, Xi as listHighlightForeground, Xl as timeout, Xn as matchesSubString, Xo as PLAINTEXT_LANGUAGE_ID, Xr as EditorContextKeys, Xs as ICommandService, Xt as defaultListStyles, Xu as KeyChord, Y as Extensions$1, Ya as IAccessibilityService, Yc as setVisibility, Yd as assert, Yi as listFocusHighlightForeground, Yl as raceTimeout, Yn as matchesBaseContiguousSubString, Yo as ILanguageConfigurationService, Yr as CoreEditingCommands, Ys as CommandsRegistry, Yt as defaultKeybindingLabelStyles, Yu as sep, Z as GoToLineNLS, Za as IMarkerDecorationsService, Zc as size, Zd as assertNever, Zi as minimapFindMatch, Zl as StandardMouseEvent, Zn as matchesWords, Zo as Extensions, Zr as TypeOperations, Zs as ThemeIcon, Zt as defaultToggleStyles, Zu as isModifierKey, _ as isCodeEditor, _a as editorInlayHintBackground, _c as addDisposableGenericMouseDownListener, _d as RefCountedDisposable, _f as isNonEmptyArray, _i as LocalSelectionTransfer, _l as derived, _n as CancelSnoozeInlineCompletion, _o as RGBA, _r as parseDocument, _s as ILogService, _t as IProgressService, _u as lastNonWhitespaceIndex, a as Uri, aa as editorErrorForeground, ac as IInstantiationService, ad as unicodeHighlightConfigKeys, af as Permutation, ai as WordOperations, al as observableSignal, an as InputFocusedContext, ao as TokenArray, ar as IContextViewService, as as EditorAction, at as editorConfigurationBaseNode, au as containsRTL, b as HideUnchangedRegionsFeature, ba as editorInlayHintParameterForeground, bc as addStandardDisposableGenericMouseDownListener, bd as isDisposable, bf as quickSelect, bi as createStringDataTransferItem, bl as derivedOpts, bn as IStorageService, bo as StringReplacement, br as DenseKeyProvider, bs as canLog, bt as IMarkerService, bu as Lazy, c as languages, ca as editorFindMatchHighlightBorder, cc as PixelRatio, cd as EditorZoom, cf as binarySearch2, ci as ReplaceCommand, cl as disposableObservableValue, cn as TernarySearchTree, co as createTrustedTypesPolicy$1, cr as nativeHoverDelegate, cs as MultiCommand, ct as ResourceTextEdit, cu as firstNonWhitespaceIndex, d as getOnTypeFormattingEdits, da as editorForeground, dc as DisposableResizeObserver, dd as PauseableEmitter, df as compareBy, di as CursorState$1, dl as subtransaction, dn as IAccessibilitySignalService, do as nullTokenizeEncoded, dr as ModelDecorationInjectedTextOptions, ds as registerEditorCommand, dt as WORKSPACE_EXTENSION, du as isBasicASCII, ea as diffInsertedLine, ec as SubmenuAction, ed as cancelOnDispose, ef as CancellationError, ei as getIndentMetadata, el as debouncedObservable2, en as ActionViewItem, eo as status, er as HoverAction, es as registerSingleton, et as QuickHelpNLS, eu as InvisibleCharacters, f as FormattingEdit, fa as editorHoverBackground, fc as EventHelper, fd as StopWatch, ff as compareUndefinedSmallest, fi as normalizeIndentation, fl as transaction, fn as ISemanticTokensStylingService, fo as isCompletionsEnabledFromObject, fr as ModelDecorationOptions, fs as registerEditorContribution, ft as isEmptyWorkspaceIdentifier, fu as isFalsyOrWhitespace, g as getCodeEditor, ga as editorInfoForeground, gc as WindowIdleValue, gd as MutableDisposable, gf as isFalsyOrEmpty, gi as toExternalVSDataTransfer, gl as registerAutorunSelfDisposable, gn as IEnvironmentService, go as HSVA, gr as offsetEditFromContentChanges, gs as TriggerInlineEditCommandsRegistry, gt as IEditorProgressService, gu as isUpperAsciiLetter, h as TextModelCancellationTokenSource, ha as editorInfoBorder, hc as SafeTriangle, hd as DisposableStore, hf as groupBy, hi as generateDataToCopyAndStoreInMemory, hl as autorunWithStore, hn as ILanguageFeatureDebounceService, ho as Color, hr as recordChangesLazy, hs as registerMultiEditorAction, ht as toWorkspaceIdentifier, hu as isLowerAsciiLetter, i as Range$1, ia as editorErrorBorder, ic as ICodeEditorService, if as onUnexpectedExternalError, ii as CursorMoveCommands, il as recomputeInitiallyAndOnChange, in as getDefaultHoverDelegate, io as LineTokens, ir as IContextMenuService, is as IndentAction, it as EditOperation, iu as compareIgnoreCase, j as waitForState, ja as widgetBorder, jc as getShadowRoot, jd as isWindows, ji as CursorColumns, jl as clamp, jn as IOpenerService, jo as findFirstIdxMonotonousOrArrLen, jr as runOnChange, js as hasDriveLetter, jt as WholeWordsToggle, ju as InlineCompletionHintStyle, k as renderLines$1, ka as overviewRulerFindMatchForeground, kc as getDomNodePagePosition, kd as isNative, ki as EventType$1, kl as structuralEquals, kn as IMarkdownRendererService, ko as TextLength, kr as IKeybindingService, ks as originalFSPath, kt as CaseSensitiveToggle, ku as InlayHintKind, l as formatDocumentRangesWithSelectedProvider, la as editorFindMatchHighlightForeground, lc as $$1, ld as Emitter, lf as booleanComparator, li as ReplaceCommandThatPreservesSelection, ll as observableValue, ln as IClipboardService, lo as NullState, lr as CodeEditorWidget, ls as MultiEditorAction, lt as IWorkspaceTrustManagementService, lu as format, m as EditorStateCancellationTokenSource, ma as editorHoverForeground, mc as ModifierKeyEmitter, md as Disposable, mf as equals, mi as InMemoryClipboardMetadataManager, ml as autorunDelta, mn as score, mo as ITextResourceConfigurationService, mr as indentOfLine, ms as registerModelAndPositionCommand, mt as isStandaloneEditorWorkspace, mu as isLowSurrogate, n as MarkerSeverity$1, na as editorActiveLinkForeground, nc as ITextModelService, nd as EditorOptions, nf as isCancellationError, ni as getEnterAction, nl as mapObservableArrayCached, nn as constObservable, no as renderViewLine, nr as KeyDownAction, ns as IConfigurationService, nt as ToggleHighContrastNLS, nu as commonSuffixLength, o as editor, oa as editorFindMatchForeground, oc as createDecorator, od as USUAL_WORD_SEPARATORS, of as asArray, oi as WordPartOperations, ol as observableFromEvent, on as IsWebContext, oo as getStandardTokenTypeAtPosition, or as IHoverService, os as EditorAction2, ot as IRenameSymbolTrackerService, ou as containsUppercaseCharacter, p as EditorState$2, pa as editorHoverBorder, pc as EventType, pd as LinkedList, pf as distinct, pi as CopyOptions, pl as autorun, pn as toMultilineTokens2, po as ILanguageFeaturesService, pr as TextModel, ps as registerInstantiatedEditorAction, pt as isSingleFolderWorkspaceIdentifier, pu as isHighSurrogate, q as CountBadge, qa as removeCSSRulesContainingSelector, qc as runWhenWindowIdle, qd as isUndefined, qi as inputForeground, ql as raceCancellation, qn as fuzzyScore, qo as LcsDiff, qr as registerThemingParticipant, qs as IContextKeyService, qt as defaultCountBadgeStyles, qu as basename$1, r as MarkerTag, ra as editorBackground, rc as IModelService, rd as ShowLightbulbIconMode, rf as onUnexpectedError, ri as ProcessedIndentRulesSupport, rl as observableFromPromise, rn as getBaseLayerHoverDelegate, ro as LineDecoration, rr as getHoverAccessibleViewHint, rs as StringBuilder, rt as registerEditorFeature, ru as compare, sa as editorFindMatchHighlight, sc as applyFontInfo, sd as EDITOR_FONT_DEFAULTS, sf as binarySearch, si as MoveOperations, sl as observableFromEventOpts, sn as IsWindowsContext, so as TokenMetadata, sr as WorkbenchHoverDelegate, ss as EditorCommand, st as IBulkEditService, su as escapeRegExpCharacters, ta as diffRemoved, tc as toAction, td as EditorFontLigatures, tf as illegalArgument, ti as ShiftCommand, tl as derivedObservableWithCache, tn as List, to as RenderLineInput, tr as HoverWidget, ts as ILanguageService, tt as QuickOutlineNLS, tu as commonPrefixLength, u as formatDocumentWithSelectedProvider, ua as editorFindRangeHighlightBorder, uc as Dimension, ud as Event, uf as coalesce, ui as ReplaceCommandThatSelectsText, ul as asyncTransaction, un as AccessibilitySignal, uo as nullTokenize, ur as InlineDecoration, us as registerEditorAction, ut as IWorkspaceContextService, uu as getLeadingWhitespace, v as isDiffEditor, va as editorInlayHintForeground, vc as addDisposableGenericMouseUpListener, vd as combinedDisposable, vf as mapFilter, vi as UriList, vl as derivedDisposable, vn as IInlineCompletionsService, vo as linesDiffComputers, vr as LanguageAgnosticBracketTokens, vs as ILoggerService, vt as Progress, vu as splitLines, w as observableCodeEditor, wa as editorSelectionHighlight, wc as getActiveDocument, wd as OS, wi as prefixedUuid, wl as arrayEqualsC, wn as QuickInputButtonLocation, wo as TextEdit, wr as EditSources, ws as dirname, wt as WorkbenchListFocusContextKey, wu as CompletionItemKinds, x as TextModelText, xa as editorInlayHintTypeBackground, xc as addStandardDisposableListener, xd as toDisposable, xf as reverseOrder, xi as matchesMimeType, xl as DerivedWithSetter, xn as WillSaveStateReason, xo as applyEditsToRanges, xr as lengthAdd, xs as DataUri, xt as MarkerSeverity, xu as CachedFunction, y as DiffEditorWidget, ya as editorInlayHintParameterBackground, yc as addDisposableListener, yd as dispose, yf as numberComparator, yi as VSDataTransfer, yl as derivedHandleChanges, yn as SnoozeInlineCompletion, yo as StringEdit, yr as TextBufferTokenizer, ys as LogLevel, yt as IMarkerData, yu as trim, z as HC_LIGHT_THEME_NAME, za as asCssVariable, zc as isAncestor, zd as assertReturnsDefined, zi as quickInputListFocusIconForeground, zl as DeferredPromise, zn as createCommandUri, zo as SearchParams, zr as isModelDecorationInComment, zs as MenuRegistry, zt as IDefaultAccountService, zu as TokenizationRegistry } from "./editor.api-BtqJ5Bxw.js";
2
- import { typescriptDefaults } from "./monaco.contribution-GLS4-bVF.js";
1
+ import { $ as QuickCommandNLS, $a as alert, $c as debouncedObservable, $d as BugIndicatingError, $i as diffInserted, $l as isFirefox, $n as ClickAction, $o as Mimes, $r as getGoodIndentForLine, $s as Separator, $t as isLocalizedString, $u as CancellationTokenSource, A as observableSignalFromEvent, Aa as overviewRulerSelectionHighlightForeground, Ac as getDomNodeZoomLevel, Ad as isWeb, Ai as Gesture, Al as thisEqualsC, An as openLinkFromMarkdown, Ao as LineRange, Ar as ViewGpuContext, As as relativePath, At as RegexToggle, Au as InlineCompletionEndOfLifeReasonKind, Ba as darken, Bc as isAncestorOfActiveElement, Bd as assertType, Bi as buttonBackground, Bl as Delayer, Bn as isEmptyMarkdownString, Bo as GlyphMarginLane, Br as isModelDecorationInString, Bs as SubmenuItemAction, Bt as IDataChannelService, Bu as getAriaLabelForSymbol, C as WorkbenchToolBar, Ca as editorSelectionBackground, Cc as clearNode, Cd as createSingleCallFunction, Ci as generateUuid, Cl as DebugLocation, Cn as ItemActivation, Co as lineRangeMappingFromRangeMappings, Cr as EditDeltaInfo, Cs as basenameOrAuthority, Ct as WorkbenchAsyncDataTree, Cu as Command, D as LineSource, Da as editorWidgetBackground, Dc as getClientArea, Dd as isLittleEndian, Di as ScrollableElement, Dl as equalsIfDefinedC, Dn as ILayoutService, Do as StringText, Dr as IUserInteractionService, Ds as isEqual, Dt as FindInput, Du as FoldingRangeKind, E as rangeIsSingleLine, Ea as editorWarningForeground, Ec as getActiveWindow, Ed as isLinux, Ei as DomScrollableElement, El as equalsIfDefined, En as IDialogService, Eo as AbstractText, Er as groupByMap, Es as extname, Et as WorkbenchTreeElementCanExpand, Eu as DocumentPasteTriggerKind, F as bindContextKey, Fa as contrastBorder, Fc as getWindow, Fd as localize2, Fi as DynamicCssRules, Fl as Schemas, Fn as renderLabelWithIcons, Fo as findLastMax, Fr as Severity, Fs as Action2, Ft as SplitView, Fu as ProviderId, G as IconLabel, Ga as createCSSRule, Gc as reset, Gd as isObject, Gi as inputBackground, Gl as disposableTimeout, Gn as anyScore, Go as safeIntl, Gr as overviewRulerRangeHighlight, Gs as ContextKeyEqualsExpr, Gt as getActionBarActions, Gu as Position, H as widgetClose, Ha as registerColor, Hc as isHTMLElement, Hd as isDefined, Hi as inputActiveOptionBackground, Hl as TimeoutTimer, Hn as stripIcons, Ho as OverviewRulerLane, Hr as computeIndentLevel, Hs as registerAction2, Ht as MenuEntryActionViewItem, Hu as Codicon, I as observableConfigValue, Ia as descriptionForeground, Ic as h, Id as cloneAndChange, Ii as EditorMouseEvent, Il as matchesScheme, In as IdGenerator, Io as mapFindFirst, Ir as Severity$1, Is as IMenuService, It as OrthogonalEdge, Iu as SelectedSuggestionInfo, J as Button, Ja as CONTEXT_ACCESSIBILITY_MODE_ENABLED, Jc as scheduleAtNextAnimationFrame, Jd as upcast, Ji as editorActionListForeground, Jl as raceCancellationError, Jn as fuzzyScoreGracefulAggressive, Jo as StringDiffSequence, Jr as themeColorFromId, Js as RawContextKey, Jt as defaultInputBoxStyles, Ju as dirname$1, K as HighlightedLabel, Ka as createStyleSheetFromObservable, Kc as runAtThisOrScheduleAtNextAnimationFrame, Kd as isString, Ki as inputBorder, Kl as first, Kn as createMatches, Ko as CharacterSet, Kr as IThemeService, Ks as ContextKeyExpr, Kt as getFlatActionBarActions, Ku as URI, L as createHotClass, La as foreground, Lc as hide, Ld as deepClone, Li as quickInputListFocusBackground, Ll as matchesSomeScheme, Ln as defaultGenerator, Lo as OffsetRange, Lr as GlyphRasterizer, Ls as MenuId, Lt as Sash, Lu as SignatureHelpTriggerKind, M as DisposableCancellationTokenSource, Ma as widgetShadow, Mc as getTopLeftOffset, Md as language, Mi as getColumnOfNodeOffset, Ml as ConstantStringHash, Mn as withSelection, Mo as findFirstMax, Mr as runOnChangeWithCancellationToken, Ms as LRUCache, Mt as navigateToggles, Mu as InlineCompletionTriggerKind, N as appendRemoveOnDispose, Na as scrollbarShadow, Nc as getTotalHeight, Nd as setTimeout0, Ni as isDark, Nl as hash, Nn as renderMarkdown$1, No as findFirstMin, Nr as runOnChangeWithStore, Ns as ResourceMap, Nt as Toggle, Nu as NewSymbolNameTag, O as RenderOptions, Oa as editorWidgetBorder, Oc as getComputedStyle, Od as isMacintosh, Oi as Widget, Ol as strictEquals, On as getAnchorRect, Oo as PositionOffsetTransformerBase, Or as NativeEditContextRegistry, Os as joinPath, Ot as HistoryInputBox, Ou as HoverVerbosityAction, P as StableEditorScrollState, Pa as activeContrastBorder, Pc as getTotalWidth, Pd as localize, Pi as isHighContrast, Pl as VSBuffer, Pn as renderIcon, Po as findLast, Pr as INotificationService, Ps as ITelemetryService, Pt as Sizing, Pu as NewSymbolNameTriggerKind, Q as InspectTokensNLS, Qa as IEditorWorkerService, Qc as trackFocus, Qd as checkAdjacentItems, Qi as minimapSelectionOccurrenceHighlight, Ql as StandardKeyboardEvent, Qn as or, Qo as product$1, Qr as EnterOperation, Qs as Action, Qt as getListStyles, Qu as CancellationToken, R as HC_BLACK_THEME_NAME, Ra as iconForeground, Rc as isActiveElement, Rd as mixin, Ri as quickInputListFocusForeground, Rl as AsyncIterableProducer, Rn as MarkdownString, Ro as UnicodeTextModelHighlighter, Rr as ensureNonNullable, Rs as MenuItemAction, Rt as ILabelService, Ru as SymbolKinds, S as MenuWorkbenchToolBar, Sa as editorInlayHintTypeForeground, Sc as append, Sd as Iterable, Sf as sum, Si as DataTransfers, Sl as DebugNameData, Sn as IQuickInputService, So as RangeMapping, Sr as lengthGetColumnCountIfZeroLineCount, Ss as basename, St as IListService, Su as mainWindow, T as Point, Ta as editorWarningBorder, Tc as getActiveElement, Td as isIOS, Ti as DomEmitter, Tl as equals$2, Tn as isKeyModified, To as TextReplacement, Tr as countEOL, Ts as extUri, Tt as WorkbenchTreeElementCanCollapse, Tu as DocumentHighlightKind, U as KeybindingLabel, Ua as transparent, Uc as isMouseEvent, Ud as isFunction, Ui as inputActiveOptionBorder, Ul as createCancelableAsyncIterableProducer, Un as FuzzyScore, Uo as shouldSynchronizeModel, Ur as editorBracketMatchForeground, Us as KeybindingsRegistry, Ut as TextOnlyMenuEntryActionViewItem, Uu as Selection, V as registerIcon, Va as oneOf, Vc as isEditableElement, Vd as isArrayOf, Vi as buttonForeground, Vl as RunOnceScheduler, Vn as isMarkdownString, Vo as InjectedTextCursorStops, Vr as isModelDecorationVisible, Vs as isIMenuItem, Vt as ActionBar, Vu as isLocationLink, W as unthemedKeybindingLabelOptions, Wa as GlobalPointerMoveMonitor, Wc as n, Wd as isNumber, Wi as inputActiveOptionForeground, Wl as createCancelablePromise, Wn as FuzzyScoreOptions, Wo as getMapForWordSeparators, Wr as ghostTextForeground, Ws as Registry, Wt as createActionViewItem, Wu as Range, X as IStandaloneThemeService, Xa as TabFocus, Xc as show, Xd as assertFn, Xi as listHighlightForeground, Xl as timeout, Xn as matchesSubString, Xo as PLAINTEXT_LANGUAGE_ID, Xr as EditorContextKeys, Xs as ICommandService, Xt as defaultListStyles, Xu as KeyChord, Y as Extensions$1, Ya as IAccessibilityService, Yc as setVisibility, Yd as assert, Yi as listFocusHighlightForeground, Yl as raceTimeout, Yn as matchesBaseContiguousSubString, Yo as ILanguageConfigurationService, Yr as CoreEditingCommands, Ys as CommandsRegistry, Yt as defaultKeybindingLabelStyles, Yu as sep, Z as GoToLineNLS, Za as IMarkerDecorationsService, Zc as size, Zd as assertNever, Zi as minimapFindMatch, Zl as StandardMouseEvent, Zn as matchesWords, Zo as Extensions, Zr as TypeOperations, Zs as ThemeIcon, Zt as defaultToggleStyles, Zu as isModifierKey, _ as isCodeEditor, _a as editorInlayHintBackground, _c as addDisposableGenericMouseDownListener, _d as RefCountedDisposable, _f as isNonEmptyArray, _i as LocalSelectionTransfer, _l as derived, _n as CancelSnoozeInlineCompletion, _o as RGBA, _r as parseDocument, _s as ILogService, _t as IProgressService, _u as lastNonWhitespaceIndex, a as Uri, aa as editorErrorForeground, ac as IInstantiationService, ad as unicodeHighlightConfigKeys, af as Permutation, ai as WordOperations, al as observableSignal, an as InputFocusedContext, ao as TokenArray, ar as IContextViewService, as as EditorAction, at as editorConfigurationBaseNode, au as containsRTL, b as HideUnchangedRegionsFeature, ba as editorInlayHintParameterForeground, bc as addStandardDisposableGenericMouseDownListener, bd as isDisposable, bf as quickSelect, bi as createStringDataTransferItem, bl as derivedOpts, bn as IStorageService, bo as StringReplacement, br as DenseKeyProvider, bs as canLog, bt as IMarkerService, bu as Lazy, c as languages, ca as editorFindMatchHighlightBorder, cc as PixelRatio, cd as EditorZoom, cf as binarySearch2, ci as ReplaceCommand, cl as disposableObservableValue, cn as TernarySearchTree, co as createTrustedTypesPolicy$1, cr as nativeHoverDelegate, cs as MultiCommand, ct as ResourceTextEdit, cu as firstNonWhitespaceIndex, d as getOnTypeFormattingEdits, da as editorForeground, dc as DisposableResizeObserver, dd as PauseableEmitter, df as compareBy, di as CursorState$1, dl as subtransaction, dn as IAccessibilitySignalService, do as nullTokenizeEncoded, dr as ModelDecorationInjectedTextOptions, ds as registerEditorCommand, dt as WORKSPACE_EXTENSION, du as isBasicASCII, ea as diffInsertedLine, ec as SubmenuAction, ed as cancelOnDispose, ef as CancellationError, ei as getIndentMetadata, el as debouncedObservable2, en as ActionViewItem, eo as status, er as HoverAction, es as registerSingleton, et as QuickHelpNLS, eu as InvisibleCharacters, f as FormattingEdit, fa as editorHoverBackground, fc as EventHelper, fd as StopWatch, ff as compareUndefinedSmallest, fi as normalizeIndentation, fl as transaction, fn as ISemanticTokensStylingService, fo as isCompletionsEnabledFromObject, fr as ModelDecorationOptions, fs as registerEditorContribution, ft as isEmptyWorkspaceIdentifier, fu as isFalsyOrWhitespace, g as getCodeEditor, ga as editorInfoForeground, gc as WindowIdleValue, gd as MutableDisposable, gf as isFalsyOrEmpty, gi as toExternalVSDataTransfer, gl as registerAutorunSelfDisposable, gn as IEnvironmentService, go as HSVA, gr as offsetEditFromContentChanges, gs as TriggerInlineEditCommandsRegistry, gt as IEditorProgressService, gu as isUpperAsciiLetter, h as TextModelCancellationTokenSource, ha as editorInfoBorder, hc as SafeTriangle, hd as DisposableStore, hf as groupBy, hi as generateDataToCopyAndStoreInMemory, hl as autorunWithStore, hn as ILanguageFeatureDebounceService, ho as Color, hr as recordChangesLazy, hs as registerMultiEditorAction, ht as toWorkspaceIdentifier, hu as isLowerAsciiLetter, i as Range$1, ia as editorErrorBorder, ic as ICodeEditorService, if as onUnexpectedExternalError, ii as CursorMoveCommands, il as recomputeInitiallyAndOnChange, in as getDefaultHoverDelegate, io as LineTokens, ir as IContextMenuService, is as IndentAction, it as EditOperation, iu as compareIgnoreCase, j as waitForState, ja as widgetBorder, jc as getShadowRoot, jd as isWindows, ji as CursorColumns, jl as clamp, jn as IOpenerService, jo as findFirstIdxMonotonousOrArrLen, jr as runOnChange, js as hasDriveLetter, jt as WholeWordsToggle, ju as InlineCompletionHintStyle, k as renderLines$1, ka as overviewRulerFindMatchForeground, kc as getDomNodePagePosition, kd as isNative, ki as EventType$1, kl as structuralEquals, kn as IMarkdownRendererService, ko as TextLength, kr as IKeybindingService, ks as originalFSPath, kt as CaseSensitiveToggle, ku as InlayHintKind, l as formatDocumentRangesWithSelectedProvider, la as editorFindMatchHighlightForeground, lc as $$1, ld as Emitter, lf as booleanComparator, li as ReplaceCommandThatPreservesSelection, ll as observableValue, ln as IClipboardService, lo as NullState, lr as CodeEditorWidget, ls as MultiEditorAction, lt as IWorkspaceTrustManagementService, lu as format, m as EditorStateCancellationTokenSource, ma as editorHoverForeground, mc as ModifierKeyEmitter, md as Disposable, mf as equals, mi as InMemoryClipboardMetadataManager, ml as autorunDelta, mn as score, mo as ITextResourceConfigurationService, mr as indentOfLine, ms as registerModelAndPositionCommand, mt as isStandaloneEditorWorkspace, mu as isLowSurrogate, n as MarkerSeverity$1, na as editorActiveLinkForeground, nc as ITextModelService, nd as EditorOptions, nf as isCancellationError, ni as getEnterAction, nl as mapObservableArrayCached, nn as constObservable, no as renderViewLine, nr as KeyDownAction, ns as IConfigurationService, nt as ToggleHighContrastNLS, nu as commonSuffixLength, o as editor, oa as editorFindMatchForeground, oc as createDecorator, od as USUAL_WORD_SEPARATORS, of as asArray, oi as WordPartOperations, ol as observableFromEvent, on as IsWebContext, oo as getStandardTokenTypeAtPosition, or as IHoverService, os as EditorAction2, ot as IRenameSymbolTrackerService, ou as containsUppercaseCharacter, p as EditorState$2, pa as editorHoverBorder, pc as EventType, pd as LinkedList, pf as distinct, pi as CopyOptions, pl as autorun, pn as toMultilineTokens2, po as ILanguageFeaturesService, pr as TextModel, ps as registerInstantiatedEditorAction, pt as isSingleFolderWorkspaceIdentifier, pu as isHighSurrogate, q as CountBadge, qa as removeCSSRulesContainingSelector, qc as runWhenWindowIdle, qd as isUndefined, qi as inputForeground, ql as raceCancellation, qn as fuzzyScore, qo as LcsDiff, qr as registerThemingParticipant, qs as IContextKeyService, qt as defaultCountBadgeStyles, qu as basename$1, r as MarkerTag, ra as editorBackground, rc as IModelService, rd as ShowLightbulbIconMode, rf as onUnexpectedError, ri as ProcessedIndentRulesSupport, rl as observableFromPromise, rn as getBaseLayerHoverDelegate, ro as LineDecoration, rr as getHoverAccessibleViewHint, rs as StringBuilder, rt as registerEditorFeature, ru as compare, sa as editorFindMatchHighlight, sc as applyFontInfo, sd as EDITOR_FONT_DEFAULTS, sf as binarySearch, si as MoveOperations, sl as observableFromEventOpts, sn as IsWindowsContext, so as TokenMetadata, sr as WorkbenchHoverDelegate, ss as EditorCommand, st as IBulkEditService, su as escapeRegExpCharacters, ta as diffRemoved, tc as toAction, td as EditorFontLigatures, tf as illegalArgument, ti as ShiftCommand, tl as derivedObservableWithCache, tn as List, to as RenderLineInput, tr as HoverWidget, ts as ILanguageService, tt as QuickOutlineNLS, tu as commonPrefixLength, u as formatDocumentWithSelectedProvider, ua as editorFindRangeHighlightBorder, uc as Dimension, ud as Event, uf as coalesce, ui as ReplaceCommandThatSelectsText, ul as asyncTransaction, un as AccessibilitySignal, uo as nullTokenize, ur as InlineDecoration, us as registerEditorAction, ut as IWorkspaceContextService, uu as getLeadingWhitespace, v as isDiffEditor, va as editorInlayHintForeground, vc as addDisposableGenericMouseUpListener, vd as combinedDisposable, vf as mapFilter, vi as UriList, vl as derivedDisposable, vn as IInlineCompletionsService, vo as linesDiffComputers, vr as LanguageAgnosticBracketTokens, vs as ILoggerService, vt as Progress, vu as splitLines, w as observableCodeEditor, wa as editorSelectionHighlight, wc as getActiveDocument, wd as OS, wi as prefixedUuid, wl as arrayEqualsC, wn as QuickInputButtonLocation, wo as TextEdit, wr as EditSources, ws as dirname, wt as WorkbenchListFocusContextKey, wu as CompletionItemKinds, x as TextModelText, xa as editorInlayHintTypeBackground, xc as addStandardDisposableListener, xd as toDisposable, xf as reverseOrder, xi as matchesMimeType, xl as DerivedWithSetter, xn as WillSaveStateReason, xo as applyEditsToRanges, xr as lengthAdd, xs as DataUri, xt as MarkerSeverity, xu as CachedFunction, y as DiffEditorWidget, ya as editorInlayHintParameterBackground, yc as addDisposableListener, yd as dispose, yf as numberComparator, yi as VSDataTransfer, yl as derivedHandleChanges, yn as SnoozeInlineCompletion, yo as StringEdit, yr as TextBufferTokenizer, ys as LogLevel, yt as IMarkerData, yu as trim, z as HC_LIGHT_THEME_NAME, za as asCssVariable, zc as isAncestor, zd as assertReturnsDefined, zi as quickInputListFocusIconForeground, zl as DeferredPromise, zn as createCommandUri, zo as SearchParams, zr as isModelDecorationInComment, zs as MenuRegistry, zt as IDefaultAccountService, zu as TokenizationRegistry } from "./editor.api-6f2aPN2V.js";
2
+ import { typescriptDefaults } from "./monaco.contribution-jrnupplv.js";
3
3
  // ../../node_modules/.pnpm/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/commands.js
4
4
  var ToggleCollapseUnchangedRegions = class extends Action2 {
5
5
  constructor() {
@@ -18,8 +18,14 @@ export interface PlaygroundConfig {
18
18
  };
19
19
  /** 扫描时排除的 glob(相对 scenes 根) */
20
20
  exclude?: string[];
21
- /** 部署子路径 */
21
+ /** 部署子路径(写入 Vite 的 base,影响资源路径;同时作为路由前缀的默认值) */
22
22
  base?: string;
23
+ /**
24
+ * 只作用于场景 URL 的前缀,不会写进 Vite 的 base。
25
+ * 多入口(MPA)部署时用:资源和主应用共享根路径,但场景路由要落在自己的子路径下,如 '/playground/'。
26
+ * 不配时回落 base ?? '/'。
27
+ */
28
+ routeBase?: string;
23
29
  /** dev server 端口 */
24
30
  port?: number;
25
31
  /** 契约清单要扫描的组件 glob(如 src/components 下所有 .vue);不配则不生成 manifest */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinova/playground",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "\u9762\u5411 Vue3 \u7684\u300c\u6587\u4ef6\u5373\u573a\u666f\u300d\u7ec4\u4ef6\u6f14\u793a\u6846\u67b6",
5
5
  "type": "module",
6
6
  "license": "MIT",