@blocklet/editor 2.6.16 → 2.6.17

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.
@@ -62,18 +62,19 @@ const FileComponent = ({ src, mimetype, name }) => {
62
62
  display: 'inline-block',
63
63
  '@keyframes scroll': {
64
64
  '0%': {
65
- ml: 0,
66
65
  transform: 'translateX(0)',
67
66
  },
68
67
  '100%': {
69
- ml: '100%',
70
- transform: 'translateX(-100%)',
68
+ transform: 'translateX(calc(-100% + 120px))',
71
69
  },
72
70
  },
73
- }, children: _jsx(Box, { sx: {
74
- animation: 'scroll linear 5s alternate infinite',
75
- float: 'left',
71
+ '&:hover > span': {
72
+ animation: 'scroll linear 3s alternate infinite',
73
+ },
74
+ }, children: _jsx(Box, { component: "span", sx: {
75
+ display: 'inline-block',
76
76
  minWidth: iconSize,
77
+ willChange: 'transform',
77
78
  }, children: name }) })] }) }));
78
79
  };
79
80
  export const getAbsoluteUrl = ({ fileUrl, name }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/editor",
3
- "version": "2.6.16",
3
+ "version": "2.6.17",
4
4
  "main": "lib/index.js",
5
5
  "sideEffects": false,
6
6
  "publishConfig": {
@@ -73,7 +73,7 @@
73
73
  "ufo": "^1.5.4",
74
74
  "url-join": "^4.0.1",
75
75
  "zustand": "^4.5.5",
76
- "@blocklet/pdf": "2.6.16"
76
+ "@blocklet/pdf": "2.6.17"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@babel/core": "^7.25.2",