浏览代码

package updates

Alexander Rose 1 年之前
父节点
当前提交
d2483dc449
共有 4 个文件被更改,包括 525 次插入408 次删除
  1. 498 383
      package-lock.json
  2. 25 25
      package.json
  3. 1 0
      src/mol-gl/_spec/gl.shim.ts
  4. 1 0
      src/mol-plugin-ui/toast.tsx

文件差异内容过多而无法显示
+ 498 - 383
package-lock.json


+ 25 - 25
package.json

@@ -103,56 +103,56 @@
   ],
   ],
   "license": "MIT",
   "license": "MIT",
   "devDependencies": {
   "devDependencies": {
-    "@graphql-codegen/add": "^4.0.1",
-    "@graphql-codegen/cli": "^3.3.1",
-    "@graphql-codegen/time": "^4.0.0",
-    "@graphql-codegen/typescript": "^3.0.4",
+    "@graphql-codegen/add": "^5.0.0",
+    "@graphql-codegen/cli": "^4.0.1",
+    "@graphql-codegen/time": "^5.0.0",
+    "@graphql-codegen/typescript": "^4.0.0",
     "@graphql-codegen/typescript-graphql-files-modules": "^2.2.1",
     "@graphql-codegen/typescript-graphql-files-modules": "^2.2.1",
-    "@graphql-codegen/typescript-graphql-request": "^4.5.9",
-    "@graphql-codegen/typescript-operations": "^3.0.4",
+    "@graphql-codegen/typescript-graphql-request": "^5.0.0",
+    "@graphql-codegen/typescript-operations": "^4.0.0",
     "@types/cors": "^2.8.13",
     "@types/cors": "^2.8.13",
     "@types/gl": "^6.0.2",
     "@types/gl": "^6.0.2",
     "@types/jpeg-js": "^0.3.7",
     "@types/jpeg-js": "^0.3.7",
     "@types/pngjs": "^6.0.1",
     "@types/pngjs": "^6.0.1",
-    "@types/jest": "^29.5.1",
-    "@types/react": "^18.2.6",
+    "@types/jest": "^29.5.2",
+    "@types/react": "^18.2.11",
     "@types/react-dom": "^18.2.4",
     "@types/react-dom": "^18.2.4",
-    "@typescript-eslint/eslint-plugin": "^5.59.5",
-    "@typescript-eslint/parser": "^5.59.5",
+    "@typescript-eslint/eslint-plugin": "^5.59.9",
+    "@typescript-eslint/parser": "^5.59.9",
     "benchmark": "^2.1.4",
     "benchmark": "^2.1.4",
-    "concurrently": "^8.0.1",
+    "concurrently": "^8.2.0",
     "cpx2": "^4.2.3",
     "cpx2": "^4.2.3",
     "crypto-browserify": "^3.12.0",
     "crypto-browserify": "^3.12.0",
-    "css-loader": "^6.7.3",
-    "eslint": "^8.40.0",
+    "css-loader": "^6.8.1",
+    "eslint": "^8.42.0",
     "extra-watch-webpack-plugin": "^1.0.3",
     "extra-watch-webpack-plugin": "^1.0.3",
     "file-loader": "^6.2.0",
     "file-loader": "^6.2.0",
     "fs-extra": "^11.1.1",
     "fs-extra": "^11.1.1",
     "graphql": "^16.6.0",
     "graphql": "^16.6.0",
     "http-server": "^14.1.1",
     "http-server": "^14.1.1",
     "jest": "^29.5.0",
     "jest": "^29.5.0",
-    "mini-css-extract-plugin": "^2.7.5",
+    "mini-css-extract-plugin": "^2.7.6",
     "path-browserify": "^1.0.1",
     "path-browserify": "^1.0.1",
     "raw-loader": "^4.0.2",
     "raw-loader": "^4.0.2",
     "react": "^18.2.0",
     "react": "^18.2.0",
     "react-dom": "^18.2.0",
     "react-dom": "^18.2.0",
-    "sass": "^1.62.1",
-    "sass-loader": "^13.2.2",
-    "simple-git": "^3.18.0",
+    "sass": "^1.63.3",
+    "sass-loader": "^13.3.2",
+    "simple-git": "^3.19.0",
     "stream-browserify": "^3.0.0",
     "stream-browserify": "^3.0.0",
-    "style-loader": "^3.3.2",
+    "style-loader": "^3.3.3",
     "ts-jest": "^29.1.0",
     "ts-jest": "^29.1.0",
-    "typescript": "^5.0.4",
-    "webpack": "^5.82.1",
-    "webpack-cli": "^5.1.1"
+    "typescript": "^5.1.3",
+    "webpack": "^5.86.0",
+    "webpack-cli": "^5.1.4"
   },
   },
   "dependencies": {
   "dependencies": {
     "@types/argparse": "^2.0.10",
     "@types/argparse": "^2.0.10",
     "@types/benchmark": "^2.1.2",
     "@types/benchmark": "^2.1.2",
     "@types/compression": "1.7.2",
     "@types/compression": "1.7.2",
     "@types/express": "^4.17.17",
     "@types/express": "^4.17.17",
-    "@types/node": "^16.18.30",
-    "@types/node-fetch": "^2.6.3",
+    "@types/node": "^16.18.35",
+    "@types/node-fetch": "^2.6.4",
     "@types/swagger-ui-dist": "3.30.1",
     "@types/swagger-ui-dist": "3.30.1",
     "argparse": "^2.0.1",
     "argparse": "^2.0.1",
     "body-parser": "^1.20.2",
     "body-parser": "^1.20.2",
@@ -164,8 +164,8 @@
     "immutable": "^4.3.0",
     "immutable": "^4.3.0",
     "node-fetch": "^2.6.11",
     "node-fetch": "^2.6.11",
     "rxjs": "^7.8.1",
     "rxjs": "^7.8.1",
-    "swagger-ui-dist": "^4.18.3",
-    "tslib": "^2.5.0",
+    "swagger-ui-dist": "^4.19.0",
+    "tslib": "^2.5.3",
     "util.promisify": "^1.1.2",
     "util.promisify": "^1.1.2",
     "xhr2": "^0.2.1"
     "xhr2": "^0.2.1"
   },
   },

+ 1 - 0
src/mol-gl/_spec/gl.shim.ts

@@ -762,6 +762,7 @@ export function createGl(width: number, height: number, contextAttributes: WebGL
         isContextLost: function () { return false; },
         isContextLost: function () { return false; },
         drawingBufferWidth: width,
         drawingBufferWidth: width,
         drawingBufferHeight: height,
         drawingBufferHeight: height,
+        drawingBufferColorSpace: 'srgb',
         blendColor: function () { },
         blendColor: function () { },
         blendEquation: function () { },
         blendEquation: function () { },
         blendEquationSeparate: function () { },
         blendEquationSeparate: function () { },

+ 1 - 0
src/mol-plugin-ui/toast.tsx

@@ -21,6 +21,7 @@ class ToastEntry extends PluginUIComponent<{ entry: PluginToastManager.Entry }>
         const entry = this.props.entry;
         const entry = this.props.entry;
         const message = typeof entry.message === 'string'
         const message = typeof entry.message === 'string'
             ? <div dangerouslySetInnerHTML={{ __html: entry.message }} />
             ? <div dangerouslySetInnerHTML={{ __html: entry.message }} />
+            // @ts-ignore // TODO: handle type better
             : <div><entry.message /></div>;
             : <div><entry.message /></div>;
 
 
         return <div className='msp-toast-entry'>
         return <div className='msp-toast-entry'>

部分文件因为文件数量过多而无法显示