@axdspub/axiom-charts 0.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.
Files changed (78) hide show
  1. package/.dockerignore +4 -0
  2. package/.eslintrc.json +24 -0
  3. package/.gitlab-ci.yml +140 -0
  4. package/.yalc/@axdspub/axiom-ui-data-services/.dockerignore +4 -0
  5. package/.yalc/@axdspub/axiom-ui-data-services/.eslintrc.json +28 -0
  6. package/.yalc/@axdspub/axiom-ui-data-services/.gitlab-ci.yml +140 -0
  7. package/.yalc/@axdspub/axiom-ui-data-services/Dockerfile.storybook +33 -0
  8. package/.yalc/@axdspub/axiom-ui-data-services/craco.config.cjs +36 -0
  9. package/.yalc/@axdspub/axiom-ui-data-services/docker/nginx/conf.d/default.conf +46 -0
  10. package/.yalc/@axdspub/axiom-ui-data-services/docker-compose.yml +18 -0
  11. package/.yalc/@axdspub/axiom-ui-data-services/library/axiom-ui-data-services.d.ts +313 -0
  12. package/.yalc/@axdspub/axiom-ui-data-services/library/browser.js +18498 -0
  13. package/.yalc/@axdspub/axiom-ui-data-services/library/browser.js.map +1 -0
  14. package/.yalc/@axdspub/axiom-ui-data-services/library/cjs.js +18493 -0
  15. package/.yalc/@axdspub/axiom-ui-data-services/library/cjs.js.map +1 -0
  16. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/App.d.ts +4 -0
  17. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/App.d.ts.map +1 -0
  18. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/Components/JSON/VanillaJSONEditor.d.ts +8 -0
  19. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/Components/JSON/VanillaJSONEditor.d.ts.map +1 -0
  20. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/DataService.d.ts +34 -0
  21. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/DataService.d.ts.map +1 -0
  22. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/DataService.stories.d.ts +23 -0
  23. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/DataService.stories.d.ts.map +1 -0
  24. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/RequestItem.d.ts +27 -0
  25. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/RequestItem.d.ts.map +1 -0
  26. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/RequestItem.stories.d.ts +19 -0
  27. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/RequestItem.stories.d.ts.map +1 -0
  28. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/Types.d.ts +245 -0
  29. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/Types.d.ts.map +1 -0
  30. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/dataServiceHelpers.d.ts +12 -0
  31. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/dataServiceHelpers.d.ts.map +1 -0
  32. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/endpoints/index.d.ts +9 -0
  33. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/endpoints/index.d.ts.map +1 -0
  34. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/index.d.ts +2 -0
  35. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/index.d.ts.map +1 -0
  36. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/library.d.ts +6 -0
  37. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/library.d.ts.map +1 -0
  38. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/parsers/groupAndSum.d.ts +1 -0
  39. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/parsers/groupAndSum.d.ts.map +1 -0
  40. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/parsers/index.d.ts +13 -0
  41. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/parsers/index.d.ts.map +1 -0
  42. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/reportWebVitals.d.ts +4 -0
  43. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/reportWebVitals.d.ts.map +1 -0
  44. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/services.d.ts +11 -0
  45. package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/services.d.ts.map +1 -0
  46. package/.yalc/@axdspub/axiom-ui-data-services/library/index.js +18488 -0
  47. package/.yalc/@axdspub/axiom-ui-data-services/library/index.js.map +1 -0
  48. package/.yalc/@axdspub/axiom-ui-data-services/package.json +72 -0
  49. package/.yalc/@axdspub/axiom-ui-data-services/rollup.config.mjs +54 -0
  50. package/.yalc/@axdspub/axiom-ui-data-services/tsconfig.json +45 -0
  51. package/.yalc/@axdspub/axiom-ui-data-services/tsconfig.paths.json +11 -0
  52. package/.yalc/@axdspub/axiom-ui-data-services/yalc.sig +1 -0
  53. package/Dockerfile.storybook +33 -0
  54. package/README.md +46 -0
  55. package/craco.config.js +36 -0
  56. package/docker/nginx/conf.d/default.conf +46 -0
  57. package/docker-compose.yml +18 -0
  58. package/library/Libraries/axiom/assets/browser-ff7df1e3.css +19 -0
  59. package/library/Libraries/axiom/assets/cjs-ff7df1e3.css +19 -0
  60. package/library/Libraries/axiom/assets/index-ff7df1e3.css +19 -0
  61. package/library/Libraries/axiom/browser.js +41130 -0
  62. package/library/Libraries/axiom/browser.js.map +1 -0
  63. package/library/Libraries/axiom/cjs.js +41129 -0
  64. package/library/Libraries/axiom/cjs.js.map +1 -0
  65. package/library/Libraries/axiom/index.js +41127 -0
  66. package/library/Libraries/axiom/index.js.map +1 -0
  67. package/library/axiom-charts.d.ts +195 -0
  68. package/library/browser.js +36339 -0
  69. package/library/browser.js.map +1 -0
  70. package/library/cjs.js +36337 -0
  71. package/library/cjs.js.map +1 -0
  72. package/library/index.js +36334 -0
  73. package/library/index.js.map +1 -0
  74. package/package.json +112 -0
  75. package/rollup.config.mjs +141 -0
  76. package/tsconfig.json +29 -0
  77. package/tsconfig.paths.json +11 -0
  78. package/yalc.lock +10 -0
package/package.json ADDED
@@ -0,0 +1,112 @@
1
+ {
2
+ "name": "@axdspub/axiom-charts",
3
+ "version": "0.0.3",
4
+ "private": false,
5
+ "main": "./library/index.js",
6
+ "typings": "./library/axiom-charts.d.ts",
7
+ "dependencies": {
8
+ "@axdspub/axiom-ui-data-services": "^0.0.4"
9
+ },
10
+ "peerDependencies": {
11
+ "d3": "^7.8.4",
12
+ "d3-axis": "^3.0.0",
13
+ "d3-dsv": "^3.0.1",
14
+ "react": "^18.2.0",
15
+ "react-dom": "^18.2.0",
16
+ "react-scripts": "5.0.1"
17
+ },
18
+ "scripts": {
19
+ "start": "set PORT=3063 && craco start ",
20
+ "build": "craco build",
21
+ "test": "craco test",
22
+ "eject": "react-scripts eject",
23
+ "storybook": "storybook dev -p 6018",
24
+ "build-storybook": "storybook build",
25
+ "prepublishOnly": "npm run clean && rollup -c",
26
+ "clean": "rimraf library",
27
+ "rollup": "rollup -c"
28
+ },
29
+ "eslintConfig": {
30
+ "extends": [
31
+ "react-app",
32
+ "react-app/jest"
33
+ ],
34
+ "overrides": [
35
+ {
36
+ "files": [
37
+ "**/*.stories.*"
38
+ ],
39
+ "rules": {
40
+ "import/no-anonymous-default-export": "off"
41
+ }
42
+ }
43
+ ]
44
+ },
45
+ "browserslist": {
46
+ "production": [
47
+ ">0.2%",
48
+ "not dead",
49
+ "not op_mini all",
50
+ "not safari < 10",
51
+ "not chrome < 51",
52
+ "not android < 5",
53
+ "not ie < 12"
54
+ ],
55
+ "development": [
56
+ "last 1 chrome version",
57
+ "last 1 firefox version",
58
+ "last 1 safari version"
59
+ ]
60
+ },
61
+ "devDependencies": {
62
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
63
+ "@craco/craco": "^7.1.0",
64
+ "@rollup/plugin-alias": "^5.0.0",
65
+ "@rollup/plugin-commonjs": "^25.0.3",
66
+ "@rollup/plugin-node-resolve": "^15.1.0",
67
+ "@rollup/plugin-typescript": "^11.1.2",
68
+ "@storybook/addon-actions": "^7.0.27",
69
+ "@storybook/addon-essentials": "^7.0.27",
70
+ "@storybook/addon-interactions": "^7.0.27",
71
+ "@storybook/addon-links": "^7.0.27",
72
+ "@storybook/blocks": "^7.0.27",
73
+ "@storybook/builder-webpack5": "^7.0.27",
74
+ "@storybook/manager-webpack5": "^6.5.16",
75
+ "@storybook/node-logger": "^7.0.27",
76
+ "@storybook/preset-create-react-app": "^7.0.27",
77
+ "@storybook/react": "^7.0.27",
78
+ "@storybook/react-webpack5": "^7.0.27",
79
+ "@storybook/testing-library": "^0.2.0",
80
+ "@testing-library/jest-dom": "^5.16.5",
81
+ "@testing-library/react": "^13.4.0",
82
+ "@testing-library/user-event": "^13.5.0",
83
+ "@types/d3": "^7.4.0",
84
+ "@types/d3-axis": "^3.0.2",
85
+ "@types/d3-dsv": "^3.0.1",
86
+ "@types/d3-scale": "^4.0.3",
87
+ "@types/jest": "^27.5.2",
88
+ "@types/node": "^16.18.38",
89
+ "@types/react": "^18.2.15",
90
+ "@types/react-dom": "^18.2.7",
91
+ "@typescript-eslint/eslint-plugin": "^5.59.5",
92
+ "@typescript-eslint/parser": "^5.59.2",
93
+ "babel-plugin-named-exports-order": "^0.0.2",
94
+ "eslint": "^8.40.0",
95
+ "eslint-config-standard-with-typescript": "^34.0.1",
96
+ "eslint-plugin-import": "^2.27.5",
97
+ "eslint-plugin-n": "^15.7.0",
98
+ "eslint-plugin-promise": "^6.1.1",
99
+ "eslint-plugin-react": "^7.32.2",
100
+ "eslint-plugin-storybook": "^0.6.12",
101
+ "prop-types": "^15.8.1",
102
+ "rimraf": "^5.0.1",
103
+ "rollup": "^3.26.3",
104
+ "rollup-plugin-dts": "^5.3.0",
105
+ "rollup-plugin-import-css": "^3.3.1",
106
+ "rollup-plugin-peer-deps-external": "^2.2.4",
107
+ "storybook": "^7.0.27",
108
+ "typescript": "^5.0.4",
109
+ "web-vitals": "^2.1.4",
110
+ "webpack": "^5.88.1"
111
+ }
112
+ }
@@ -0,0 +1,141 @@
1
+ import resolve from '@rollup/plugin-node-resolve'
2
+ import commonjs from '@rollup/plugin-commonjs'
3
+ import typescript from '@rollup/plugin-typescript'
4
+ import dts from 'rollup-plugin-dts'
5
+ import alias from '@rollup/plugin-alias'
6
+ import peerDepsExternal from 'rollup-plugin-peer-deps-external'
7
+ import css from 'rollup-plugin-import-css'
8
+ // import packageJson from './package.json'
9
+ const external = [
10
+ 'react',
11
+ 'react-dom',
12
+ 'react-scripts'
13
+ ]
14
+ const globals = {
15
+ 'd3-axis': 'd3Axis',
16
+ 'react/jsx-runtime': 'JSXRuntime',
17
+ react: 'React'
18
+ }
19
+ const config = [
20
+ {
21
+ input: 'src/library.ts',
22
+ external,
23
+ output: [
24
+ {
25
+ file: 'library/cjs.js',
26
+ format: 'cjs',
27
+ sourcemap: true,
28
+ globals
29
+ },
30
+ {
31
+ file: 'library/index.js',
32
+ format: 'esm',
33
+ sourcemap: true,
34
+ globals
35
+ // preserveModules: true
36
+ },
37
+ {
38
+ file: 'library/browser.js',
39
+ format: 'iife',
40
+ name: 'AxiomCharts',
41
+ sourcemap: true,
42
+ globals
43
+ }
44
+ ],
45
+ plugins: [
46
+ resolve(),
47
+ commonjs(),
48
+ peerDepsExternal(),
49
+ typescript({ tsconfig: './tsconfig.json' }),
50
+ alias({
51
+ entries: {
52
+ '@/*': './src'
53
+ }
54
+ })
55
+ ]
56
+ },
57
+ {
58
+ input: 'src/Libraries/axiom/index.ts',
59
+ // https://github.com/d3/d3-selection/issues/168#issuecomment-451983830
60
+ onwarn: function (warning, warn) {
61
+ if (warning.code === 'CIRCULAR_DEPENDENCY') return
62
+ warn(warning)
63
+ },
64
+ external,
65
+ output: [
66
+ {
67
+ file: 'library/Libraries/axiom/cjs.js',
68
+ format: 'cjs',
69
+ sourcemap: true,
70
+ globals
71
+ },
72
+ {
73
+ file: 'library/Libraries/axiom/index.js',
74
+ format: 'esm',
75
+ sourcemap: true,
76
+ globals
77
+ // preserveModules: true
78
+ },
79
+ {
80
+ file: 'library/Libraries/axiom/browser.js',
81
+ format: 'iife',
82
+ name: 'AxiomCharts',
83
+ sourcemap: true,
84
+ globals
85
+ }
86
+ ],
87
+ plugins: [
88
+ resolve(),
89
+ commonjs(),
90
+ peerDepsExternal(),
91
+ css(),
92
+ typescript({ tsconfig: './tsconfig.json' }),
93
+ alias({
94
+ entries: {
95
+ '@/*': './src'
96
+ }
97
+ })
98
+ ]
99
+ },
100
+ {
101
+ input: 'src/library.ts',
102
+ output: [{
103
+ file: 'library/axiom-charts.d.ts',
104
+ format: 'esm'
105
+ }],
106
+ external,
107
+ plugins: [
108
+ // resolve(),
109
+ dts({
110
+ compilerOptions: {
111
+ // enabling declaration (.d.ts) emit
112
+ declaration: true,
113
+
114
+ // optional - in general it's a good practice to decouple declaration files from your actual transpiled JavaScript files
115
+ declarationDir: 'library',
116
+
117
+ // optional if you're using babel to transpile TS -> JS
118
+ emitDeclarationOnly: true,
119
+
120
+ paths: {
121
+ '@/*': [
122
+ './src/*'
123
+ ]
124
+ }
125
+ }
126
+ })/* ,
127
+ alias({
128
+ entries: {
129
+ '@/*': './src'
130
+ }
131
+ }) */
132
+ /* alias({
133
+ entries: [
134
+ { find: /^(@\/)/, replacement: './library/dist/esm/types/' }
135
+ ]
136
+ }) */
137
+ ]
138
+ }
139
+ ]
140
+
141
+ export default config
package/tsconfig.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "lib": [
5
+ "dom",
6
+ "dom.iterable",
7
+ "esnext"
8
+ ],
9
+ "allowJs": true,
10
+ "skipLibCheck": true,
11
+ "esModuleInterop": true,
12
+ "allowSyntheticDefaultImports": true,
13
+ "strict": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "noFallthroughCasesInSwitch": true,
16
+ "module": "esnext",
17
+ "moduleResolution": "node",
18
+ "resolveJsonModule": true,
19
+ "isolatedModules": true,
20
+ "noEmit": true,
21
+ "jsx": "react-jsx"
22
+ },
23
+ "include": [
24
+ "src"
25
+ ],
26
+ "allowSyntheticDefaultImports": true,
27
+ "extends": "./tsconfig.paths.json"
28
+
29
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "paths": {
5
+ "@/*": [
6
+ "./src/*"
7
+ ],
8
+ "*": [ "./src/@custom_types/*"]
9
+ }
10
+ }
11
+ }
package/yalc.lock ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": "v1",
3
+ "packages": {
4
+ "@axdspub/axiom-ui-data-services": {
5
+ "signature": "742074c38d14ee45bcfd3f7c2de32eea",
6
+ "file": true,
7
+ "replaced": "^0.0.3"
8
+ }
9
+ }
10
+ }