slate-react 0.88.2 → 0.89.0

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 +1 @@
1
- {"version":3,"file":"diff-text.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/utils/diff-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAQ,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAQ,MAAM,OAAO,CAAA;AAGzE,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,oBAAY,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,IAAI,CAAA;IACV,IAAI,EAAE,UAAU,CAAA;CACjB,CAAA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAwB3E;AAwCD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,qBAsBvE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,EAClB,CAAC,EAAE,UAAU,EACb,CAAC,EAAE,UAAU,GACZ,UAAU,GAAG,IAAI,CAmBnB;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,KAAK,CAMrD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,KAAK,GAAG,IAAI,CAgCzE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,KAAK,GAAG,IAAI,CAgBzE;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAA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EAAE,KAAK,GAAG,KAAK,GAAG,IAAI,CAgCzE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,KAAK,GAAG,IAAI,CAgBzE;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,EAAE,EAAE,SAAS,GACZ,KAAK,GAAG,IAAI,CAsDd;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,EAAE,EAAE,SAAS,GACZ,KAAK,GAAG,IAAI,CAgBd;AAED,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,QAAQ,EAClB,EAAE,EAAE,SAAS,GACZ,QAAQ,GAAG,IAAI,CAwHjB"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns a set of rules that use the `:where` selector if it is supported,
3
+ * otherwise it falls back to the provided selector on its own.
4
+ *
5
+ * The `:where` selector is used to give a selector a lower specificity,
6
+ * allowing the rule to be overridden by a user-defined stylesheet.
7
+ *
8
+ * Older browsers do not support the `:where` selector.
9
+ * If it is not supported, the selector will be used without `:where`,
10
+ * which means that the rule will have a higher specificity and a user-defined
11
+ * stylesheet will not be able to override it easily.
12
+ */
13
+ export declare function whereIfSupported(selector: string, styles: string): string;
14
+ //# sourceMappingURL=where-if-supported.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"where-if-supported.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/utils/where-if-supported.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CASzE"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "slate-react",
3
3
  "description": "Tools for building completely customizable richtext editors with React.",
4
- "version": "0.88.2",
4
+ "version": "0.89.0",
5
5
  "license": "MIT",
6
6
  "repository": "git://github.com/ianstormtaylor/slate.git",
7
7
  "main": "dist/index.js",
@@ -14,6 +14,7 @@
14
14
  "dist/"
15
15
  ],
16
16
  "dependencies": {
17
+ "@juggle/resize-observer": "^3.4.0",
17
18
  "@types/is-hotkey": "^0.1.1",
18
19
  "@types/lodash": "^4.14.149",
19
20
  "direction": "^1.0.3",