@wikicasa-dev/components 2.9.0-alpha.2 → 2.9.0-alpha.3
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/lazyModules/ChartJs/Chart.d.ts +8 -1
- package/dist/lazyModules/ChartJs/Chart.js +4 -1
- package/dist/lazyModules/Swiper/Autoplay/index.js +1 -1
- package/dist/lazyModules/Swiper/Controller/index.js +1 -1
- package/dist/lazyModules/Swiper/Keyboard/index.js +1 -1
- package/dist/lazyModules/Swiper/Thumbs/index.js +1 -1
- package/dist/lazyModules/Swiper/index.d.ts +20 -1
- package/dist/lazyModules/Swiper/index.js +4 -1
- package/dist/lazyModules/VueChartJs/Doughnut/index.d.ts +8 -2
- package/dist/lazyModules/VueChartJs/Doughnut/index.js +4 -1
- package/dist/lazyModules/VueChartJs/Line/index.d.ts +8 -2
- package/dist/lazyModules/VueChartJs/Line/index.js +4 -1
- package/package.json +4 -4
- /package/dist/assets/{swiper-controller.css → swiper-keyboard.css} +0 -0
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { Chart as ChartClass } from 'chart.js';
|
|
2
|
+
/**
|
|
3
|
+
* Exported through a local binding rather than re-exported directly — see the comment in
|
|
4
|
+
* `lib/lazyModules/Swiper/index.ts`. A shim whose only value export passes an external
|
|
5
|
+
* straight through loses its import binding when a consumer's rolldown build merges it into
|
|
6
|
+
* a shared chunk, and the chunk then throws on evaluation.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Chart: typeof ChartClass;
|
|
@@ -1 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { Swiper as SwiperClass } from 'swiper';
|
|
2
|
+
/**
|
|
3
|
+
* Exported through a local binding, **not** as `export { Swiper } from "swiper"`.
|
|
4
|
+
*
|
|
5
|
+
* A module whose only value export is a bare re-export of an *external* has no statement of
|
|
6
|
+
* its own, and compiles to `import { Swiper as e } from "swiper"; export { e as Swiper };`.
|
|
7
|
+
* When rolldown merges that into a shared chunk in a **consumer's** production build it keeps
|
|
8
|
+
* the side-effect import (`import "swiper"`) but drops the named binding, while still emitting
|
|
9
|
+
* the namespace object that references it — so the chunk throws
|
|
10
|
+
* `ReferenceError: Swiper is not defined` the moment it is evaluated. In wikicasa-nuxt the
|
|
11
|
+
* chunk it landed in also held Nuxt's `useAsyncData` helpers, so it loaded during plugin setup
|
|
12
|
+
* and every route 500'd. Invisible in dev, and it only appears once chunk grouping happens to
|
|
13
|
+
* merge this module — so an unrelated edit in the consumer is enough to trigger it.
|
|
14
|
+
*
|
|
15
|
+
* The `const` is the same `var t = e` shape every `.vue` facade in this package already
|
|
16
|
+
* publishes and which rolldown preserves — see `moveFacadeCssImportsToModule` in
|
|
17
|
+
* vite-build.config.ts, whose comment notes those facades "survive only by the accident of
|
|
18
|
+
* carrying a `var t = e` statement". Do not collapse this back into a re-export.
|
|
19
|
+
*/
|
|
20
|
+
export declare const Swiper: typeof SwiperClass;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
import { Doughnut } from 'vue-chartjs';
|
|
1
|
+
import { Doughnut as DoughnutComponent } from 'vue-chartjs';
|
|
2
|
+
/**
|
|
3
|
+
* Exported through a local binding rather than re-exported directly — see the comment in
|
|
4
|
+
* `lib/lazyModules/Swiper/index.ts`. A shim whose only value export passes an external
|
|
5
|
+
* straight through loses its import binding when a consumer's rolldown build merges it into
|
|
6
|
+
* a shared chunk, and the chunk then throws on evaluation.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Doughnut: typeof DoughnutComponent;
|
|
2
9
|
export type DoughnutType = typeof Doughnut;
|
|
3
|
-
export { Doughnut };
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
import { Line } from 'vue-chartjs';
|
|
1
|
+
import { Line as LineComponent } from 'vue-chartjs';
|
|
2
|
+
/**
|
|
3
|
+
* Exported through a local binding rather than re-exported directly — see the comment in
|
|
4
|
+
* `lib/lazyModules/Swiper/index.ts`. A shim whose only value export passes an external
|
|
5
|
+
* straight through loses its import binding when a consumer's rolldown build merges it into
|
|
6
|
+
* a shared chunk, and the chunk then throws on evaluation.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Line: typeof LineComponent;
|
|
2
9
|
export type LineType = typeof Line;
|
|
3
|
-
export { Line };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/components",
|
|
3
|
-
"version": "2.9.0-alpha.
|
|
3
|
+
"version": "2.9.0-alpha.3",
|
|
4
4
|
"description": "Wikicasa frontend components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
"vue": "^3.5.41",
|
|
84
84
|
"vue-router": "^5.1.0",
|
|
85
85
|
"vue-tsc": "^3.3.3",
|
|
86
|
+
"@wikicasa-dev/eslint-config": "0.0.0",
|
|
86
87
|
"@wikicasa-dev/tsconfig": "0.0.0",
|
|
87
88
|
"@wikicasa-dev/types": "2.8.0",
|
|
88
|
-
"@wikicasa-dev/eslint-config": "0.0.0",
|
|
89
|
-
"@wikicasa-dev/vue-composables": "0.2.0",
|
|
90
89
|
"@wikicasa-dev/svg-icons": "1.3.7",
|
|
91
90
|
"@wikicasa-dev/tailwind-plugins": "0.0.7",
|
|
92
|
-
"@wikicasa-dev/utilities": "1.2.11"
|
|
91
|
+
"@wikicasa-dev/utilities": "1.2.11",
|
|
92
|
+
"@wikicasa-dev/vue-composables": "0.2.0"
|
|
93
93
|
},
|
|
94
94
|
"readme": "ERROR: No README data found!",
|
|
95
95
|
"scripts": {
|
|
File without changes
|