@sepveneto/plugin-mp-router-view 0.3.1

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.
@@ -0,0 +1,6 @@
1
+ import * as rollup from 'rollup';
2
+ import { Options } from './types.js';
3
+
4
+ declare const _default: (options?: Options | undefined) => rollup.Plugin | rollup.Plugin[];
5
+
6
+ export { _default as default };
package/dist/rollup.js ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ src_default
3
+ } from "./chunk-NN5J6VGF.js";
4
+
5
+ // src/rollup.ts
6
+ var rollup_default = src_default.rollup;
7
+ export {
8
+ rollup_default as default
9
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/type.d.ts
17
+ var type_d_exports = {};
18
+ module.exports = __toCommonJS(type_d_exports);
19
+ exports.default = module.exports;
@@ -0,0 +1,36 @@
1
+ type Page = {
2
+ path: string
3
+ style: Record<string, string>
4
+ ROUTER_VIEW_EXCLUDE?: boolean
5
+ pages: Page[]
6
+ root?: string
7
+ [key: string]: unknown
8
+ }
9
+ interface PageJSON {
10
+ easycom: {
11
+ autoscan?: boolean
12
+ custom?: Record<string, string>
13
+ }
14
+ condition: {
15
+ current: number
16
+ list: Array<{ name: string, path: string}>
17
+ }
18
+ subPackages?: Array<{root: string, pages: Page[]}>
19
+ pages: Page[]
20
+ tabBar: {
21
+ color?: string
22
+ selectedColor?: string
23
+ borderStyle?: string
24
+ backgroundColor?: string
25
+ list: {
26
+ pagePath: string
27
+ iconPath: string
28
+ selectedIconPath: string
29
+ text: string
30
+ }[]
31
+ }
32
+ permission?: Record<string, string>
33
+ globalStyle: Record<string, string>
34
+ }
35
+
36
+ export { PageJSON };
package/dist/type.d.js ADDED
File without changes
package/dist/types.cjs ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/types.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
19
+ exports.default = module.exports;
@@ -0,0 +1,8 @@
1
+ type Level = 'error' | 'log' | undefined | boolean;
2
+
3
+ interface Options {
4
+ log?: Level;
5
+ collect?: string | boolean | ((path: string) => boolean);
6
+ }
7
+
8
+ export { Options };
package/dist/types.js ADDED
File without changes