@seafile/sdoc-editor 0.3.7 → 0.3.8

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { css } from 'glamor';
2
+ import { css } from 'goober';
3
3
  class Alert extends React.PureComponent {
4
4
  constructor(props) {
5
5
  super(props);
@@ -104,11 +104,13 @@ class Alert extends React.PureComponent {
104
104
  }
105
105
  render() {
106
106
  const toastStyle = this.getContainerStyle(this.props.intent);
107
- return /*#__PURE__*/React.createElement("div", css(toastStyle.borderStyle, this.containerStyle), /*#__PURE__*/React.createElement("div", {
107
+ return /*#__PURE__*/React.createElement("div", {
108
+ className: "".concat(toastStyle.borderStyle, " ").concat(this.containerStyle)
109
+ }, /*#__PURE__*/React.createElement("div", {
108
110
  className: this.toastIcon
109
- }, /*#__PURE__*/React.createElement("i", Object.assign({
110
- className: toastStyle.iconClass
111
- }, toastStyle.iconColor))), /*#__PURE__*/React.createElement("div", {
111
+ }, /*#__PURE__*/React.createElement("i", {
112
+ className: "".concat(toastStyle.iconColor, " ").concat(toastStyle.iconClass)
113
+ })), /*#__PURE__*/React.createElement("div", {
112
114
  className: this.toastTextContainer
113
115
  }, /*#__PURE__*/React.createElement("p", {
114
116
  className: this.toastTextTitle
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { css } from 'glamor';
2
+ import { css, keyframes } from 'goober';
3
3
  import Transition from 'react-transition-group/Transition';
4
4
  import Alert from './alert';
5
5
  const animationEasing = {
@@ -8,7 +8,7 @@ const animationEasing = {
8
8
  spring: 'cubic-bezier(0.175, 0.885, 0.320, 1.175)'
9
9
  };
10
10
  const ANIMATION_DURATION = 240;
11
- const openAnimation = css.keyframes('openAnimation', {
11
+ const openAnimation = keyframes('openAnimation', {
12
12
  from: {
13
13
  opacity: 0,
14
14
  transform: 'translateY(-120%)'
@@ -17,7 +17,7 @@ const openAnimation = css.keyframes('openAnimation', {
17
17
  transform: 'translateY(0)'
18
18
  }
19
19
  });
20
- const closeAnimation = css.keyframes('closeAnimation', {
20
+ const closeAnimation = keyframes('closeAnimation', {
21
21
  from: {
22
22
  transform: 'scale(1)',
23
23
  opacity: 1
@@ -2,10 +2,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
2
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
3
  const _excluded = ["id", "description"];
4
4
  import React from 'react';
5
- import { css } from 'glamor';
5
+ import { css } from 'goober';
6
6
  import Toast from './toast';
7
7
  const wrapperClass = css({
8
- maxWidth: 560,
8
+ maxWidth: '560px',
9
9
  margin: '0 auto',
10
10
  top: 0,
11
11
  left: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",
@@ -15,6 +15,7 @@
15
15
  "copy-to-clipboard": "^3.3.3",
16
16
  "dayjs": "1.11.2",
17
17
  "deep-copy": "1.4.2",
18
+ "goober": "2.1.13",
18
19
  "is-hotkey": "0.2.0",
19
20
  "is-url": "^1.2.4",
20
21
  "lodash.throttle": "4.1.1",
@@ -91,7 +92,6 @@
91
92
  "eslint-plugin-react-hooks": "^1.6.1",
92
93
  "file-loader": "6.2.0",
93
94
  "fs-extra": "7.0.1",
94
- "glamor": "2.20.40",
95
95
  "html-webpack-plugin": "^4.0.0-beta.5",
96
96
  "husky": "8.0.3",
97
97
  "i18next": "22.4.9",
@@ -113,7 +113,7 @@
113
113
  "postcss-loader": "^6.2.1",
114
114
  "postcss-normalize": "^10.0.1",
115
115
  "postcss-preset-env": "^7.0.1",
116
- "postcss-safe-parser": "^7.0.0",
116
+ "postcss-safe-parser": "^6.0.0",
117
117
  "prettier": "3.1.0",
118
118
  "prop-types": "15.8.1",
119
119
  "raf": "3.4.0",