@pie-lib/editable-html 10.0.0-beta.0 → 10.0.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/editable-html",
3
- "version": "10.0.0-beta.0",
3
+ "version": "10.0.0-beta.1",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "main": "lib/index.js",
package/src/components.js CHANGED
@@ -10,7 +10,7 @@ export const Button = React.forwardRef(({ className, active, reversed, ...props
10
10
  className,
11
11
  css`
12
12
  cursor: pointer;
13
-
13
+
14
14
  color: ${reversed ? (active ? 'white' : '#aaa') : active ? 'black' : '#ccc'};
15
15
  `
16
16
  )}
@@ -0,0 +1,20 @@
1
+ diff a/packages/editable-html/src/test-serializer.js b/packages/editable-html/src/test-serializer.js (rejected hunks)
2
+ @@ -4 +4 @@ import { jsx } from 'slate-hyperscript';
3
+ -import { unWrapMath } from "@pie-lib/math-rendering";
4
+ +import { unWrapMath } from '@pie-lib/math-rendering';
5
+ @@ -82,4 +82,11 @@ class Html {
6
+ - return jsx('element', { type: 'math', data: {
7
+ - latex: unwrapped,
8
+ - wrapper: wrapType
9
+ - } }, children);
10
+ + return jsx(
11
+ + 'element',
12
+ + {
13
+ + type: 'math',
14
+ + data: {
15
+ + latex: unwrapped,
16
+ + wrapper: wrapType
17
+ + }
18
+ + },
19
+ + children
20
+ + );