nuxt-charts 2.1.0-beta-4 → 2.1.0-beta-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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3"
6
6
  },
7
- "version": "2.1.0-beta-4",
7
+ "version": "2.1.0-beta-3",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -4,15 +4,16 @@ const resolveComponents = (config, filePath) => {
4
4
  const { prefix } = config;
5
5
  const allComponents = [
6
6
  "AreaChart",
7
- "AreaStackedChart",
8
7
  "LineChart",
9
8
  "BarChart",
10
9
  "DonutChart",
11
10
  "BubbleChart",
12
11
  "GanttChart",
13
- "SankeyChart",
14
12
  "DagreGraph",
15
- "DualChart"
13
+ "DualChart",
14
+ "SankeyChart",
15
+ "TopoJSONMap",
16
+ "DottedMap"
16
17
  ];
17
18
  allComponents.forEach((component) => {
18
19
  if (typeof component === "string") {
@@ -34,40 +35,13 @@ const resolveComponents = (config, filePath) => {
34
35
  };
35
36
 
36
37
  const resolveImports = (_, filePath) => {
37
- const allTypes = [
38
- "BulletLegendItemInterface",
39
- "MarkerConfig",
40
- "CrosshairConfig",
41
- "AxisConfig",
42
- "axisFormatter",
43
- "AreaChartProps",
44
- "AreaStackedChartProps",
45
- "BarChartProps",
46
- "LineChartProps",
47
- "DonutChartProps",
48
- "BubbleChartProps",
49
- "GanttChartProps",
50
- "DagreGraphProps",
51
- "SankeyChartProps",
52
- "DualChartProps",
53
- "SankeyInputNode",
54
- "SankeyInputLink",
55
- "GraphNodeDatum",
56
- "GraphLinkDatum",
57
- "GraphData",
58
- "DagreLayoutSettings",
59
- "DagreRankDir",
60
- "DagreAlign",
61
- "DagreRanker",
62
- "NodeShape",
63
- "LinkArrowPosition"
64
- ];
38
+ const allTypes = ["BulletLegendItemInterface", "MarkerConfig", "CrosshairConfig", "AxisConfig", "MapRegion", "MapPin"];
65
39
  addImportsSources({
66
40
  from: filePath,
67
41
  type: true,
68
42
  imports: [...allTypes]
69
43
  });
70
- const allImports = ["CurveType", "LegendPosition", "Orientation", "DonutType", "SankeyNodeAlign"];
44
+ const allImports = ["CurveType", "LegendPosition", "Orientation", "DonutType", "getMap", "getPin"];
71
45
  addImportsSources({
72
46
  from: filePath,
73
47
  imports: [...allImports]
@@ -90,12 +64,6 @@ const module = defineNuxtModule({
90
64
  },
91
65
  moduleDependencies: {},
92
66
  async setup(options, nuxt) {
93
- nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
94
- nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || [];
95
- nuxt.options.vite.optimizeDeps.include = [
96
- "vue-chrts",
97
- ...nuxt.options.vite.optimizeDeps.include
98
- ];
99
67
  nuxt.options.build.transpile = [
100
68
  "vue-chrts",
101
69
  ...nuxt.options.build.transpile
@@ -1 +1,2 @@
1
- export * from 'vue-chrts';
1
+ export { AreaChart, LineChart, BarChart, DonutChart, BubbleChart, GanttChart, DagreGraph, DualChart, SankeyChart, TopoJSONMap, DottedMap, } from "vue-chrts";
2
+ export * from "vue-chrts";
@@ -1 +1,14 @@
1
+ export {
2
+ AreaChart,
3
+ LineChart,
4
+ BarChart,
5
+ DonutChart,
6
+ BubbleChart,
7
+ GanttChart,
8
+ DagreGraph,
9
+ DualChart,
10
+ SankeyChart,
11
+ TopoJSONMap,
12
+ DottedMap
13
+ } from "vue-chrts";
1
14
  export * from "vue-chrts";
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "nuxt-charts",
3
- "version": "2.1.0-beta-4",
3
+ "version": "2.1.0-beta-3",
4
4
  "description": "Nuxt module for vue-chrts",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {
9
- "types": "./dist/module.d.ts",
10
9
  "import": "./dist/module.mjs",
11
10
  "require": "./dist/module.cjs"
12
11
  }
@@ -19,7 +18,7 @@
19
18
  "dependencies": {
20
19
  "@unovis/ts": "^1.6.2",
21
20
  "@unovis/vue": "^1.6.2",
22
- "vue-chrts": "2.1.0-beta-2"
21
+ "vue-chrts": "2.1.0-beta-3"
23
22
  },
24
23
  "devDependencies": {
25
24
  "@nuxt/eslint": "^1.7.1",