@rinova/playground-vite 0.1.5 → 0.7.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/dist/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  import type { Plugin } from 'vite';
2
+ /** 页内索引的分组顺序,空组不展示 */
3
+ export declare const SECTION_ORDER: readonly ["overview", "props", "events", "exposes", "slots"];
4
+ export type SceneSection = (typeof SECTION_ORDER)[number];
2
5
  export interface PlaygroundPluginOptions {
3
6
  /** 指定配置文件路径,默认在项目根查找 playground.config.{ts,mts,js,mjs} */
4
7
  configFile?: string;
@@ -8,6 +11,8 @@ export interface PlaygroundPluginOptions {
8
11
  /**
9
12
  * rinova-playground 的 Vite 插件。
10
13
  *
14
+ * 目录约定(必须三层):`scenes/<分组>/<组件页>/<场景>.vue`
15
+ *
11
16
  * ```ts
12
17
  * import { playground } from '@rinova/playground-vite'
13
18
  * export default defineConfig({ plugins: [vue(), playground()] })
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,MAAM,CAAA;AAmBjD,MAAM,WAAW,uBAAuB;IACtC,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uBAAuB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAiFD;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GAAI,UAAS,uBAA4B,KAAG,MAuUlE,CAAA;AAED,eAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,MAAM,CAAA;AAyBjD,sBAAsB;AACtB,eAAO,MAAM,aAAa,8DAA+D,CAAA;AACzF,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAEzD,MAAM,WAAW,uBAAuB;IACtC,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uBAAuB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAkKD;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,GAAI,UAAS,uBAA4B,KAAG,MAuuBlE,CAAA;AAED,eAAe,UAAU,CAAA"}