@cyca/react-timeline-editor 0.2.1-alpha.0 → 0.2.2-alpha.1
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/dist/react-timeline-editor.cjs +25 -0
- package/dist/react-timeline-editor.js +3207 -3011
- package/dist/style.css +1 -0
- package/package.json +19 -17
- package/dist/react-timeline-editor.css +0 -2
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.timeline-editor-cursor{cursor:ew-resize;position:absolute;top:32px;height:calc(100% - 32px);box-sizing:border-box;border-left:1px solid #5297FF;border-right:1px solid #5297FF;transform:translate(-25%) scaleX(.5)}.timeline-editor-cursor-top{position:absolute;top:0;left:50%;transform:translate(-50%) scaleX(2);margin:auto}.timeline-editor-cursor-area{width:16px;height:100%;cursor:ew-resize;position:absolute;top:0;left:50%;transform:translate(-50%)}.timeline-editor-drag-line-container{position:absolute;height:100%;top:0;left:0}.timeline-editor-drag-line{width:0;position:absolute;top:0;height:99%;border-left:1px dashed rgba(82,151,255,.6)}.timeline-editor:hover .timeline-editor-edit-area .ReactVirtualized__Grid::-webkit-scrollbar{height:4px}.timeline-editor-edit-area{flex:1 1 auto;margin-top:10px;overflow:hidden;position:relative}.timeline-editor-edit-area .ReactVirtualized__Grid{outline:none!important;overflow:overlay!important}.timeline-editor-edit-area .ReactVirtualized__Grid::-webkit-scrollbar{width:0;height:0}.timeline-editor-edit-area .ReactVirtualized__Grid::-webkit-scrollbar-track{background-color:transparent!important}.timeline-editor-edit-area .ReactVirtualized__Grid::-webkit-scrollbar-thumb{background:#313132;border-radius:16px}.timeline-editor-action{position:absolute;left:0;top:0;background-color:#2f3134}.timeline-editor-action .timeline-editor-action-left-stretch,.timeline-editor-action .timeline-editor-action-right-stretch{position:absolute;top:0;width:10px;border-radius:4px;height:100%;overflow:hidden}.timeline-editor-action .timeline-editor-action-left-stretch:after,.timeline-editor-action .timeline-editor-action-right-stretch:after{position:absolute;top:0;bottom:0;margin:auto;border-radius:4px;border-top:28px solid transparent;border-bottom:28px solid transparent}.timeline-editor-action .timeline-editor-action-left-stretch{left:0}.timeline-editor-action .timeline-editor-action-left-stretch:after{left:0;content:"";border-left:7px solid rgba(255,255,255,.1);border-right:7px solid transparent}.timeline-editor-action .timeline-editor-action-right-stretch{right:0}.timeline-editor-action .timeline-editor-action-right-stretch:after{right:0;content:"";border-right:7px solid rgba(255,255,255,.1);border-left:7px solid transparent}.timeline-editor-edit-row{background-repeat:no-repeat,repeat;background-image:linear-gradient(#191b1d,#191b1d),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 0);display:flex;flex-direction:row;box-sizing:border-box}.timeline-editor{height:600px;width:600px;min-height:32px;position:relative;font-size:12px;font-family:PingFang SC;background-color:#191b1d;display:flex;flex-direction:column;overflow:hidden}.timeline-editor-time-area{position:relative;height:32px;flex:0 0 auto}.timeline-editor-time-area-virtual{outline:none}.timeline-editor-time-area-virtual::-webkit-scrollbar{display:none}.timeline-editor-time-area-interact{position:absolute;cursor:pointer;left:0;top:0}.timeline-editor-time-unit{border-right:1px solid rgba(255,255,255,.2);position:relative;box-sizing:content-box;height:4px!important;bottom:0!important;top:auto!important}.timeline-editor-time-unit-big{height:8px!important}.timeline-editor-time-unit-scale{color:#fff9;position:absolute;right:0;top:0;transform:translate(50%,-100%)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyca/react-timeline-editor",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2-alpha.1",
|
|
4
4
|
"author": "cyca",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
"dist"
|
|
33
33
|
],
|
|
34
34
|
"type": "module",
|
|
35
|
+
"main": "./dist/react-timeline-editor.cjs",
|
|
35
36
|
"module": "./dist/react-timeline-editor.js",
|
|
36
37
|
"types": "./dist/index.d.ts",
|
|
37
38
|
"exports": {
|
|
38
39
|
".": {
|
|
39
40
|
"types": "./dist/index.d.ts",
|
|
40
|
-
"import": "./dist/react-timeline-editor.js"
|
|
41
|
+
"import": "./dist/react-timeline-editor.js",
|
|
42
|
+
"require": "./dist/react-timeline-editor.cjs"
|
|
41
43
|
},
|
|
42
44
|
"./package.json": "./package.json"
|
|
43
45
|
},
|
|
@@ -54,28 +56,28 @@
|
|
|
54
56
|
},
|
|
55
57
|
"devDependencies": {
|
|
56
58
|
"@eslint/js": "^9.36.0",
|
|
57
|
-
"@storybook/addon-docs": "^10.0.
|
|
58
|
-
"@storybook/react-vite": "^10.0.
|
|
59
|
-
"@types/howler": "^2.2.
|
|
60
|
-
"@types/node": "^24.
|
|
61
|
-
"@types/react": "^19.
|
|
62
|
-
"@types/react-dom": "^19.
|
|
63
|
-
"@vitejs/plugin-react": "^5.0
|
|
59
|
+
"@storybook/addon-docs": "^10.0.5",
|
|
60
|
+
"@storybook/react-vite": "^10.0.5",
|
|
61
|
+
"@types/howler": "^2.2.12",
|
|
62
|
+
"@types/node": "^24.10.0",
|
|
63
|
+
"@types/react": "^19.2.2",
|
|
64
|
+
"@types/react-dom": "^19.2.2",
|
|
65
|
+
"@vitejs/plugin-react": "^5.1.0",
|
|
64
66
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
65
|
-
"eslint": "^9.
|
|
67
|
+
"eslint": "^9.39.1",
|
|
66
68
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
67
69
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
68
|
-
"eslint-plugin-storybook": "^10.0.
|
|
69
|
-
"gh-pages": "^3.
|
|
70
|
-
"globals": "^16.
|
|
70
|
+
"eslint-plugin-storybook": "^10.0.5",
|
|
71
|
+
"gh-pages": "^3.2.3",
|
|
72
|
+
"globals": "^16.5.0",
|
|
71
73
|
"less": "^4.4.2",
|
|
72
|
-
"prettier": "^2.
|
|
74
|
+
"prettier": "^2.8.8",
|
|
73
75
|
"react": "^19.2.0",
|
|
74
76
|
"react-dom": "^19.2.0",
|
|
75
|
-
"storybook": "^10.0.
|
|
77
|
+
"storybook": "^10.0.5",
|
|
76
78
|
"typescript": "~5.9.3",
|
|
77
|
-
"typescript-eslint": "^8.
|
|
78
|
-
"vite": "
|
|
79
|
+
"typescript-eslint": "^8.46.3",
|
|
80
|
+
"vite": "^5.4.21",
|
|
79
81
|
"vite-plugin-dts": "^4.5.4"
|
|
80
82
|
}
|
|
81
83
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.timeline-editor-cursor{cursor:ew-resize;box-sizing:border-box;border-left:1px solid #5297ff;border-right:1px solid #5297ff;height:calc(100% - 32px);position:absolute;top:32px;transform:translate(-25%)scaleX(.5)}.timeline-editor-cursor-top{margin:auto;position:absolute;top:0;left:50%;transform:translate(-50%)scaleX(2)}.timeline-editor-cursor-area{cursor:ew-resize;width:16px;height:100%;position:absolute;top:0;left:50%;transform:translate(-50%)}.timeline-editor-drag-line-container{height:100%;position:absolute;top:0;left:0}.timeline-editor-drag-line{border-left:1px dashed #5297ff99;width:0;height:99%;position:absolute;top:0}.timeline-editor:hover .timeline-editor-edit-area .ReactVirtualized__Grid::-webkit-scrollbar{height:4px}.timeline-editor-edit-area{flex:auto;margin-top:10px;position:relative;overflow:hidden}.timeline-editor-edit-area .ReactVirtualized__Grid{overflow:overlay!important;outline:none!important}.timeline-editor-edit-area .ReactVirtualized__Grid::-webkit-scrollbar{width:0;height:0}.timeline-editor-edit-area .ReactVirtualized__Grid::-webkit-scrollbar-track{background-color:#0000!important}.timeline-editor-edit-area .ReactVirtualized__Grid::-webkit-scrollbar-thumb{background:#313132;border-radius:16px}.timeline-editor-action{background-color:#2f3134;position:absolute;top:0;left:0}.timeline-editor-action .timeline-editor-action-left-stretch,.timeline-editor-action .timeline-editor-action-right-stretch{border-radius:4px;width:10px;height:100%;position:absolute;top:0;overflow:hidden}.timeline-editor-action .timeline-editor-action-left-stretch:after,.timeline-editor-action .timeline-editor-action-right-stretch:after{border-top:28px solid #0000;border-bottom:28px solid #0000;border-radius:4px;margin:auto;position:absolute;top:0;bottom:0}.timeline-editor-action .timeline-editor-action-left-stretch{left:0}.timeline-editor-action .timeline-editor-action-left-stretch:after{content:"";border-left:7px solid #ffffff1a;border-right:7px solid #0000;left:0}.timeline-editor-action .timeline-editor-action-right-stretch{right:0}.timeline-editor-action .timeline-editor-action-right-stretch:after{content:"";border-left:7px solid #0000;border-right:7px solid #ffffff1a;right:0}.timeline-editor-edit-row{box-sizing:border-box;background-image:linear-gradient(#191b1d,#191b1d),linear-gradient(90deg,#ffffff14 1px,#0000 0);background-repeat:no-repeat,repeat;flex-direction:row;display:flex}.timeline-editor{background-color:#191b1d;flex-direction:column;width:600px;height:600px;min-height:32px;font-family:PingFang SC;font-size:12px;display:flex;position:relative;overflow:hidden}.timeline-editor-time-area{flex:none;height:32px;position:relative}.timeline-editor-time-area-virtual{outline:none}.timeline-editor-time-area-virtual::-webkit-scrollbar{display:none}.timeline-editor-time-area-interact{cursor:pointer;position:absolute;top:0;left:0}.timeline-editor-time-unit{box-sizing:content-box;border-right:1px solid #fff3;position:relative;height:4px!important;top:auto!important;bottom:0!important}.timeline-editor-time-unit-big{height:8px!important}.timeline-editor-time-unit-scale{color:#fff9;position:absolute;top:0;right:0;transform:translate(50%,-100%)}
|
|
2
|
-
/*$vite$:1*/
|