dotdata_widgets 1.1.0 → 1.2.0-dev.120.2f41d4da

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 (3) hide show
  1. package/dist/index.js +58 -5
  2. package/lib/index.js +2 -18
  3. package/package.json +45 -82
package/lib/index.js CHANGED
@@ -1,19 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./version"), exports);
18
- __exportStar(require("./widgets"), exports);
1
+ export * from './version';
2
+ export * from './widgets';
19
3
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotdata_widgets",
3
- "version": "1.1.0",
3
+ "version": "1.2.0-dev.120.2f41d4da",
4
4
  "description": "A dotdata widget",
5
5
  "keywords": [
6
6
  "dotdata",
@@ -10,132 +10,95 @@
10
10
  "jupyterlab-extension"
11
11
  ],
12
12
  "files": [
13
- "dist/*.js",
14
- "dist/*.js.map"
13
+ "dist/*.js"
15
14
  ],
16
15
  "homepage": "https://github.com/ramencloud/dotdata-core",
17
16
  "bugs": {
18
17
  "url": "https://github.com/ramencloud/dotdata-core/issues"
19
18
  },
20
- "license": "UNLICENSED",
21
19
  "author": {
22
20
  "name": "dotdata",
23
21
  "email": "dotdata@dotdata.com"
24
22
  },
25
23
  "main": "lib/index.js",
26
- "types": "./lib/index.d.ts",
27
24
  "repository": {
28
25
  "type": "git",
29
26
  "url": "https://github.com/ramencloud/dotdata-core"
30
27
  },
31
28
  "scripts": {
32
- "build": "npm run build:lib && npm run build:nbextension && npm run build:labextension:dev",
33
- "build:prod": "npm run build:lib && npm run build:nbextension && npm run build:labextension",
34
- "build:labextension": "jupyter labextension build . && touch dotdata_widgets/labextension/static/__init__.py && touch dotdata_widgets/labextension/__init__.py",
35
- "build:labextension:dev": "jupyter labextension build --development True .",
36
- "build:lib": "tsc && tsc-alias",
37
- "build:nbextension": "webpack --mode=production",
29
+ "build": "npm run build:nbextension && npm run build:labextension && npm run build:package",
30
+ "build:labextension": "npm run build:lib && jupyter labextension build . && touch dotdata_widgets/labextension/static/__init__.py && touch dotdata_widgets/labextension/__init__.py",
31
+ "build:nbextension": "tsc -b ../../packages && webpack --mode=production --config webpack.config.js --config-name notebook-package notebook-entry-file",
32
+ "build:package": "tsc -b ../../packages && webpack --mode=production --config webpack.config.js --config-name npm-package",
33
+ "build:lib": "tsc --build && tsc-alias",
34
+ "build:test": "tsc --build tsconfig.test.json",
38
35
  "clean": "npm run clean:lib && npm run clean:nbextension && npm run clean:labextension",
39
- "clean:lib": "rimraf lib",
40
- "clean:labextension": "rimraf dotdata_widgets/labextension",
41
- "clean:nbextension": "rimraf dotdata_widgets/nbextension/static/index.js",
36
+ "clean:lib": "yarn run -T rimraf lib && yarn run -T rimraf tsconfig.tsbuildinfo && yarn run -T rimraf dist",
37
+ "clean:labextension": "yarn run -T rimraf dotdata_widgets/labextension",
38
+ "clean:nbextension": "yarn run -T rimraf dotdata_widgets/nbextension/*.js.* && yarn run -T rimraf dotdata_widgets/nbextension/*.js",
42
39
  "lint": "eslint . --ext .ts,.tsx --fix",
43
40
  "lint:check": "eslint . --ext .ts,.tsx",
44
- "prepack": "npm run build:lib",
45
- "test": "jest",
41
+ "prepack": "yarn build:package",
42
+ "publish": "yarn npm publish",
43
+ "test": "yarn build:test && vitest run",
44
+ "test:watch": "concurrently --hide \"yarn build:test -w\" --handle-input --raw \"vitest watch\" ",
46
45
  "format": "prettier --write \"src/**/*.ts\"",
47
- "watch": "npm-run-all -p watch:*",
48
- "watch:lib": "concurrently \"tsc -w\" \"tsc-alias -w\"",
49
- "watch:nbextension": "webpack --watch --mode=development",
50
- "watch:labextension": "jupyter labextension watch .",
46
+ "watch": "npm run build:lib && npm-run-all -p 'watch:*'",
47
+ "watch:lib": "concurrently \"tsc -b -w\" \"tsc-alias -w\"",
48
+ "watch:labextension": "jupyter labextension build --development True . && jupyter labextension watch .",
51
49
  "storybook": "storybook dev -p 6006",
52
50
  "build-storybook": "storybook build"
53
51
  },
54
52
  "dependencies": {
55
- "@emotion/react": "^11.10.6",
56
- "@emotion/styled": "^11.10.6",
53
+ "@dotdata/components": "^1.0.0",
54
+ "@dotdata/css": "^1.0.0",
55
+ "@dotdata/fixtures": "^1.0.0",
56
+ "@dotdata/utils": "^1.0.0",
57
+ "@emotion/react": "*",
58
+ "@emotion/styled": "*",
57
59
  "@jupyter-widgets/base": "^6.0.2",
58
60
  "@mui/icons-material": "^5.11.9",
59
- "@mui/lab": "^5.0.0-alpha.120",
60
- "@mui/material": "^5.11.9",
61
- "@tanstack/react-virtual": "^3.0.0-beta.48",
62
- "dompurify": "^3.0.1",
63
- "elkjs": "^0.8.2",
61
+ "@mui/material": "*",
62
+ "@mui/system": "*",
64
63
  "jupyterlab-plotly": "^5.19.0",
65
64
  "lodash": "^4.17.21",
66
- "nanoid": "^5.0.3",
67
- "prismjs": "^1.29.0",
68
- "react": "17.0.2",
69
- "react-dom": "17.0.2",
70
- "reactflow": "^11.10.2",
71
- "ts-pattern": "^4.2.2",
72
- "vega": "^5.22.1",
73
- "vega-embed": "^6.22.1",
74
- "vega-lite": "^5.13.0",
75
- "zod": "^3.21.4"
65
+ "react": "*",
66
+ "react-dom": "*",
67
+ "ts-pattern": "^4.2.2"
76
68
  },
77
69
  "devDependencies": {
78
- "@babel/core": "^7.20.12",
79
- "@babel/preset-env": "^7.20.2",
80
- "@babel/preset-react": "^7.18.6",
81
- "@babel/preset-typescript": "^7.23.3",
82
70
  "@jupyter-widgets/base-manager": "^1.0.7",
83
71
  "@jupyterlab/builder": "^3.6.1",
84
- "@storybook/addon-essentials": "^7.4.6",
85
- "@storybook/addon-interactions": "^7.4.6",
86
- "@storybook/addon-links": "^7.4.6",
87
- "@storybook/addon-onboarding": "^1.0.8",
88
- "@storybook/blocks": "^7.4.6",
89
- "@storybook/react": "^7.4.6",
90
- "@storybook/react-webpack5": "^7.4.6",
91
- "@storybook/testing-library": "^0.2.2",
92
- "@types/dagre": "^0.7.52",
93
- "@types/dompurify": "^3.0.0",
94
- "@types/jest": "^29.4.0",
95
- "@types/prismjs": "^1.26.1",
96
- "@types/react": "17.0.53",
97
- "@types/react-dom": "17.0.18",
98
72
  "@types/webpack-env": "^1.18.0",
99
- "@typescript-eslint/eslint-plugin": "^5.52.0",
100
- "@typescript-eslint/parser": "^5.52.0",
101
73
  "acorn": "^8.8.2",
102
- "babel-loader": "^9.1.2",
103
- "canvas": "^2.11.2",
104
- "concurrently": "^7.6.0",
74
+ "concurrently": "^8.2.2",
105
75
  "css-loader": "^6.7.3",
106
- "eslint": "^8.34.0",
107
- "eslint-config-prettier": "^8.6.0",
108
- "eslint-plugin-prettier": "^4.2.1",
109
- "eslint-plugin-storybook": "^0.6.15",
110
76
  "file-loader": "^6.2.0",
111
77
  "fs-extra": "^11.1.0",
78
+ "happy-dom": "*",
112
79
  "identity-obj-proxy": "^3.0.0",
113
- "jest": "^29.4.2",
114
- "jest-environment-jsdom": "^29.7.0",
115
80
  "mkdirp": "^2.1.3",
116
81
  "npm-run-all": "^4.1.5",
117
- "prettier": "^2.8.4",
118
- "rimraf": "^4.1.2",
119
82
  "source-map-loader": "^4.0.1",
120
- "storybook": "^7.4.6",
121
83
  "style-loader": "^3.3.1",
122
- "ts-jest": "^29.0.5",
123
84
  "ts-loader": "^9.4.2",
124
- "tsc-alias": "^1.8.2",
85
+ "tsc-alias": "^1.8.8",
125
86
  "tsconfig-paths-webpack-plugin": "^4.0.0",
126
- "typescript": "~4.9.5",
87
+ "typescript": "*",
88
+ "vitest": "*",
127
89
  "webpack": "^5.69.1",
128
90
  "webpack-cli": "^5.0.1"
129
91
  },
130
- "babel": {
131
- "presets": [
132
- "@babel/preset-env",
133
- "@babel/preset-react",
134
- "@babel/preset-typescript"
135
- ]
136
- },
137
92
  "jupyterlab": {
138
- "extension": "lib/plugin",
139
- "outputDir": "dotdata_widgets/labextension/"
93
+ "extension": "lib/plugin.js",
94
+ "outputDir": "dotdata_widgets/labextension/",
95
+ "sharedPackages": {
96
+ "@jupyter-widgets/base": {
97
+ "bundled": false,
98
+ "singleton": true
99
+ },
100
+ "react": false,
101
+ "react-dom": false
102
+ }
140
103
  }
141
- }
104
+ }