@d3plus/docs 3.0.2 → 3.0.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,5 +1,6 @@
1
1
  import remarkGfm from "remark-gfm";
2
2
  import path from "node:path";
3
+ import glob from "glob";
3
4
 
4
5
  // monorepo fix
5
6
  // https://storybook.js.org/docs/faq#how-do-i-fix-module-resolution-in-special-environments
@@ -43,6 +44,27 @@ module.exports = {
43
44
  core: {
44
45
  disableTelemetry: true, // 👈 Disables telemetry
45
46
  disableWhatsNewNotifications: true,
47
+ },
48
+
49
+ webpackFinal: async (config) => {
50
+ if (config.resolve) {
51
+
52
+ const workspacePackages = glob.sync('../*/').reduce((aliases, folder) => {
53
+ const name = path.basename(folder);
54
+ if (name !== "docs") {
55
+ const filename = name === "react" ? "index.jsx" : "index.js";
56
+ aliases[`@d3plus/${name}`] = path.resolve(__dirname, "../", folder, filename);
57
+ }
58
+ return aliases;
59
+ }, {});
60
+ console.log(workspacePackages);
61
+
62
+ config.resolve.alias = {
63
+ ...workspacePackages,
64
+ ...config.resolve.alias
65
+ };
66
+ }
67
+ return config;
46
68
  }
47
69
 
48
70
  };
@@ -15,7 +15,12 @@ const axisConfig = {
15
15
  stroke: gridColor
16
16
  },
17
17
  shapeConfig: {
18
- fill: tickColor,
18
+ Circle: {
19
+ stroke: gridColor
20
+ },
21
+ Rect: {
22
+ fill: tickColor
23
+ },
19
24
  labelConfig: {
20
25
  fontColor: tickColor
21
26
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d3plus/docs",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Documentation and examples for the d3plus visualization library.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://d3plus.org",
@@ -16,11 +16,11 @@
16
16
  "dev:local": "storybook dev --docs --ci --no-version-updates --port=4000"
17
17
  },
18
18
  "dependencies": {
19
- "@d3plus/core": "3.0.2",
20
- "@d3plus/dom": "3.0.2",
21
- "@d3plus/format": "3.0.2",
22
- "@d3plus/locales": "3.0.2",
23
- "@d3plus/react": "3.0.2",
19
+ "@d3plus/core": "3.0.3",
20
+ "@d3plus/dom": "3.0.3",
21
+ "@d3plus/format": "3.0.3",
22
+ "@d3plus/locales": "3.0.3",
23
+ "@d3plus/react": "3.0.3",
24
24
  "@types/react": "^19.1.0",
25
25
  "next": "^15.2.4",
26
26
  "react": "^18.2.0",