From 4eff04b85aa9ec441a6d3cad525f843594c9ccde Mon Sep 17 00:00:00 2001 From: Jolie Rabideau Date: Wed, 17 Jan 2024 09:09:49 -0500 Subject: [PATCH] adjust vite config and webViewRequire --- extensions/package-lock.json | 32 +-- .../src/hello-someone.web-view.html | 27 ++- lib/papi-dts/package-lock.json | 43 ++++ .../dist/{index.cjs.js => index.cjs} | 196 +++++++++--------- .../dist/index.cjs.js.map | 1 - lib/platform-bible-react/dist/index.cjs.map | 1 + lib/platform-bible-react/dist/index.es.js.map | 1 - .../dist/{index.es.js => index.js} | 196 +++++++++--------- lib/platform-bible-react/dist/index.js.map | 1 + lib/platform-bible-react/package.json | 4 +- lib/platform-bible-react/vite.config.ts | 2 +- .../dist/{index.cjs.js => index.cjs} | 2 +- .../dist/index.cjs.js.map | 1 - lib/platform-bible-utils/dist/index.cjs.map | 1 + lib/platform-bible-utils/dist/index.es.js.map | 1 - .../dist/{index.es.js => index.js} | 2 +- lib/platform-bible-utils/dist/index.js.map | 1 + lib/platform-bible-utils/package.json | 4 +- lib/platform-bible-utils/vite.config.ts | 2 +- src/renderer/global-this.model.ts | 4 + 20 files changed, 275 insertions(+), 247 deletions(-) rename lib/platform-bible-react/dist/{index.cjs.js => index.cjs} (99%) delete mode 100644 lib/platform-bible-react/dist/index.cjs.js.map create mode 100644 lib/platform-bible-react/dist/index.cjs.map delete mode 100644 lib/platform-bible-react/dist/index.es.js.map rename lib/platform-bible-react/dist/{index.es.js => index.js} (99%) create mode 100644 lib/platform-bible-react/dist/index.js.map rename lib/platform-bible-utils/dist/{index.cjs.js => index.cjs} (99%) delete mode 100644 lib/platform-bible-utils/dist/index.cjs.js.map create mode 100644 lib/platform-bible-utils/dist/index.cjs.map delete mode 100644 lib/platform-bible-utils/dist/index.es.js.map rename lib/platform-bible-utils/dist/{index.es.js => index.js} (99%) create mode 100644 lib/platform-bible-utils/dist/index.js.map diff --git a/extensions/package-lock.json b/extensions/package-lock.json index c2a313c573..da1d4aeae2 100644 --- a/extensions/package-lock.json +++ b/extensions/package-lock.json @@ -53,6 +53,9 @@ "version": "0.0.1", "dev": true, "license": "MIT", + "dependencies": { + "platform-bible-utils": "file:../platform-bible-utils" + }, "devDependencies": { "escape-string-regexp": "^5.0.0", "rimraf": "^5.0.1", @@ -64,6 +67,9 @@ "dev": true, "hasInstallScript": true, "license": "MIT", + "dependencies": { + "platform-bible-utils": "file:../platform-bible-utils" + }, "devDependencies": { "@mui/icons-material": "^5.13.7", "@senojs/rollup-plugin-style-inject": "^0.2.3", @@ -101,34 +107,18 @@ "hasInstallScript": true, "license": "MIT", "devDependencies": { - "@mui/icons-material": "^5.13.7", - "@senojs/rollup-plugin-style-inject": "^0.2.3", - "@types/react": "^18.2.15", - "@types/react-dom": "^18.2.7", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", - "@vitejs/plugin-react": "^4.0.3", "dts-bundle-generator": "^8.0.1", "eslint": "^8.45.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-prettier": "^4.2.1", "prettier": "^2.8.8", "prettier-plugin-jsdoc": "^0.4.2", - "stylelint": "^15.10.2", - "stylelint-config-recommended": "^13.0.0", - "stylelint-config-sass-guidelines": "^10.0.0", "ts-node": "^10.9.1", "tslib": "^2.6.0", "typescript": "^5.1.6", "vite": "^4.4.12" - }, - "peerDependencies": { - "@emotion/react": ">=11.11.1", - "@emotion/styled": ">=11.11.0", - "@mui/material": ">=5.14.1", - "react": ">=18.2.0", - "react-data-grid": ">=7.0.0-beta.34", - "react-dom": ">=18.2.0" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -10027,6 +10017,7 @@ "version": "file:../lib/papi-dts", "requires": { "escape-string-regexp": "^5.0.0", + "platform-bible-utils": "file:../platform-bible-utils", "rimraf": "^5.0.1", "typescript": "^5.1.6" } @@ -10174,6 +10165,7 @@ "eslint": "^8.45.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-prettier": "^4.2.1", + "platform-bible-utils": "file:../platform-bible-utils", "prettier": "^2.8.8", "prettier-plugin-jsdoc": "^0.4.2", "stylelint": "^15.10.2", @@ -10188,22 +10180,14 @@ "platform-bible-utils": { "version": "file:../lib/platform-bible-utils", "requires": { - "@mui/icons-material": "^5.13.7", - "@senojs/rollup-plugin-style-inject": "^0.2.3", - "@types/react": "^18.2.15", - "@types/react-dom": "^18.2.7", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", - "@vitejs/plugin-react": "^4.0.3", "dts-bundle-generator": "^8.0.1", "eslint": "^8.45.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-prettier": "^4.2.1", "prettier": "^2.8.8", "prettier-plugin-jsdoc": "^0.4.2", - "stylelint": "^15.10.2", - "stylelint-config-recommended": "^13.0.0", - "stylelint-config-sass-guidelines": "^10.0.0", "ts-node": "^10.9.1", "tslib": "^2.6.0", "typescript": "^5.1.6", diff --git a/extensions/src/hello-someone/src/hello-someone.web-view.html b/extensions/src/hello-someone/src/hello-someone.web-view.html index c1e18edaff..7df2e8bdfb 100644 --- a/extensions/src/hello-someone/src/hello-someone.web-view.html +++ b/extensions/src/hello-someone/src/hello-someone.web-view.html @@ -34,6 +34,7 @@