@car-cutter/wc-webplayer 0.3.0 → 0.3.2
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.
- package/README.md +7 -5
- package/dist/index.js +236 -225
- package/dist/index.umd.cjs +8 -8
- package/package.json +11 -8
- package/.eslintrc.json +0 -3
- package/.turbo/turbo-build.log +0 -16
- package/.turbo/turbo-lint.log +0 -4
- package/index.ts +0 -35
- package/tsconfig.app.json +0 -6
- package/tsconfig.json +0 -11
- package/tsconfig.node.json +0 -5
- package/vite.config.ts +0 -35
package/package.json
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@car-cutter/wc-webplayer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.umd.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"package.json",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
9
14
|
"scripts": {
|
|
10
15
|
"build": "tsc -b && vite build",
|
|
11
16
|
"lint": "eslint . --ext ts --max-warnings 0",
|
|
12
17
|
"analyze": "vite-bundle-visualizer"
|
|
13
18
|
},
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"react": "^18.3.1",
|
|
16
|
-
"react-dom": "^18.3.1"
|
|
17
|
-
},
|
|
18
19
|
"devDependencies": {
|
|
19
|
-
"@car-cutter/core": "0.3.
|
|
20
|
-
"@car-cutter/core-ui": "0.3.
|
|
21
|
-
"@car-cutter/core-wc": "0.3.
|
|
20
|
+
"@car-cutter/core": "0.3.1",
|
|
21
|
+
"@car-cutter/core-ui": "0.3.1",
|
|
22
|
+
"@car-cutter/core-wc": "0.3.1",
|
|
22
23
|
"@car-cutter/eslint-config": "*",
|
|
23
24
|
"@car-cutter/typescript-config": "*",
|
|
24
25
|
"eslint": "^8.57.0",
|
|
26
|
+
"react": "^18.3.1",
|
|
27
|
+
"react-dom": "^18.3.1",
|
|
25
28
|
"typescript": "^5.5.4",
|
|
26
29
|
"vite": "^5.4.1",
|
|
27
30
|
"vite-bundle-visualizer": "^1.2.1",
|
package/.eslintrc.json
DELETED
package/.turbo/turbo-build.log
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
[2K[1G[1myarn run v1.22.22[22m
|
|
3
|
-
[2K[1G[2m$ tsc -b && vite build[22m
|
|
4
|
-
[36mvite v5.4.1 [32mbuilding for production...[36m[39m
|
|
5
|
-
[2K[1Gtransforming (1) [2mindex.ts[22m[2K[1Gtransforming (11) [2m../../node_modules/react/index.js[22m[2K[1Gtransforming (21) [2m../../node_modules/react-dom/index.js[22m[2K[1G[32m✓[39m 28 modules transformed.
|
|
6
|
-
[2K[1Grendering chunks (1)...[2K[1G[32m
|
|
7
|
-
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
8
|
-
[2K[1Gcomputing gzip size (0)...[32m[36m[vite:dts][32m Start rollup declaration files...[39m
|
|
9
|
-
Analysis will use the bundled TypeScript version 5.4.2
|
|
10
|
-
*** The target project appears to use TypeScript 5.5.4 which is newer than the bundled compiler engine; consider upgrading API Extractor.
|
|
11
|
-
[32m[36m[vite:dts][32m Declaration files built in 2823ms.
|
|
12
|
-
[39m
|
|
13
|
-
[2K[1Gcomputing gzip size (1)...[2K[1G[2mdist/[22m[36mindex.js [39m[1m[2m320.33 kB[22m[1m[22m[2m │ gzip: 80.28 kB[22m
|
|
14
|
-
[2K[1Grendering chunks (1)...[2K[1G[2K[1Gcomputing gzip size (1)...[2K[1G[2mdist/[22m[36mindex.umd.cjs [39m[1m[2m220.78 kB[22m[1m[22m[2m │ gzip: 69.58 kB[22m
|
|
15
|
-
[32m✓ built in 3.51s[39m
|
|
16
|
-
[2K[1G✨ Done in 5.09s.
|
package/.turbo/turbo-lint.log
DELETED
package/index.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// -- Expose ancestors package
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
// - WebComponents
|
|
5
|
-
WEB_PLAYER_WC_TAG,
|
|
6
|
-
WEB_PLAYER_ICON_WC_TAG,
|
|
7
|
-
// - Events
|
|
8
|
-
DEFAULT_EVENT_PREFIX,
|
|
9
|
-
EVENT_COMPOSITION_LOADING,
|
|
10
|
-
EVENT_COMPOSITION_LOADED,
|
|
11
|
-
EVENT_COMPOSITION_LOAD_ERROR,
|
|
12
|
-
EVENT_EXTEND_MODE_ON,
|
|
13
|
-
EVENT_EXTEND_MODE_OFF,
|
|
14
|
-
EVENT_HOTSPOTS_ON,
|
|
15
|
-
EVENT_HOTSPOTS_OFF,
|
|
16
|
-
EVENT_GALLERY_OPEN,
|
|
17
|
-
EVENT_GALLERY_CLOSE,
|
|
18
|
-
} from "@car-cutter/core";
|
|
19
|
-
|
|
20
|
-
export {
|
|
21
|
-
type WebPlayerProps,
|
|
22
|
-
type WebPlayerIconProps,
|
|
23
|
-
} from "@car-cutter/core-ui";
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
// - Utils
|
|
27
|
-
checkCustomElementsDefinition,
|
|
28
|
-
defineCustomElements,
|
|
29
|
-
ensureCustomElementsDefinition,
|
|
30
|
-
// - Components
|
|
31
|
-
webPlayerPropsToAttributes,
|
|
32
|
-
type WebPlayerAttributes,
|
|
33
|
-
webPlayerIconPropsToAttributes,
|
|
34
|
-
type WebPlayerIconAttributes,
|
|
35
|
-
} from "@car-cutter/core-wc";
|
package/tsconfig.app.json
DELETED
package/tsconfig.json
DELETED
package/tsconfig.node.json
DELETED
package/vite.config.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { resolve } from "path";
|
|
2
|
-
|
|
3
|
-
import react from "@vitejs/plugin-react";
|
|
4
|
-
import { defineConfig } from "vite";
|
|
5
|
-
import dts from "vite-plugin-dts";
|
|
6
|
-
|
|
7
|
-
export default defineConfig({
|
|
8
|
-
plugins: [
|
|
9
|
-
react(),
|
|
10
|
-
dts({
|
|
11
|
-
tsconfigPath: resolve(__dirname, "./tsconfig.app.json"),
|
|
12
|
-
rollupTypes: true,
|
|
13
|
-
bundledPackages: [
|
|
14
|
-
"@car-cutter/core",
|
|
15
|
-
"@car-cutter/core-ui",
|
|
16
|
-
"@car-cutter/core-wc",
|
|
17
|
-
],
|
|
18
|
-
}),
|
|
19
|
-
],
|
|
20
|
-
|
|
21
|
-
define: {
|
|
22
|
-
"process.env": {
|
|
23
|
-
NODE_ENV: "production",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
build: {
|
|
27
|
-
lib: {
|
|
28
|
-
name: "wc-webplayer",
|
|
29
|
-
fileName: "index",
|
|
30
|
-
entry: resolve(__dirname, "./index.ts"),
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
chunkSizeWarningLimit: 350,
|
|
34
|
-
},
|
|
35
|
-
});
|