@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.
@@ -1 +1,8 @@
1
- export { Chart } from 'chart.js';
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,2 +1,5 @@
1
1
  import { Chart as e } from "chart.js";
2
- export { e as Chart };
2
+ //#region lib/lazyModules/ChartJs/Chart.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as Chart };
@@ -1,3 +1,3 @@
1
- import '../../../assets/swiper-controller.css';/* empty css */
1
+ import '../../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Autoplay as e } from "swiper/modules";
3
3
  export { e as default };
@@ -1,3 +1,3 @@
1
- import '../../../assets/swiper-controller.css';/* empty css */
1
+ import '../../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Controller as e } from "swiper/modules";
3
3
  export { e as default };
@@ -1,3 +1,3 @@
1
- import '../../../assets/swiper-controller.css';/* empty css */
1
+ import '../../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Keyboard as e } from "swiper/modules";
3
3
  export { e as default };
@@ -1,3 +1,3 @@
1
- import '../../../assets/swiper-controller.css';/* empty css */
1
+ import '../../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Thumbs as e } from "swiper/modules";
3
3
  export { e as default };
@@ -1 +1,20 @@
1
- export { Swiper } from 'swiper';
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,6 @@
1
1
  import '../../assets/swiper-swiper.css';/* empty css */
2
2
  import { Swiper as e } from "swiper";
3
- export { e as Swiper };
3
+ //#region lib/lazyModules/Swiper/index.ts
4
+ var t = e;
5
+ //#endregion
6
+ export { t as Swiper };
@@ -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,2 +1,5 @@
1
1
  import { Doughnut as e } from "vue-chartjs";
2
- export { e as Doughnut };
2
+ //#region lib/lazyModules/VueChartJs/Doughnut/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as 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 };
@@ -1,2 +1,5 @@
1
1
  import { Line as e } from "vue-chartjs";
2
- export { e as Line };
2
+ //#region lib/lazyModules/VueChartJs/Line/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as Line };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.9.0-alpha.2",
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": {