slate 0.135.0 → 0.136.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.
@@ -6,6 +6,7 @@ export declare const getCharacterDistance: (str: string, isRTL?: boolean) => num
6
6
  * Get the distance to the end of the first word in a string of text.
7
7
  */
8
8
  export declare const getWordDistance: (text: string, isRTL?: boolean) => number;
9
+ export declare const getWordBounds: (text: string, offset: number, isWordChar?: ((character: string) => boolean) | undefined) => [number, number];
9
10
  /**
10
11
  * Split a string in two parts at a given distance starting from the end when
11
12
  * `isRTL` is set to `true`.
@@ -1 +1 @@
1
- {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../packages/slate/src/utils/string.ts"],"names":[],"mappings":"AAUA;;GAEG;AAEH,eAAO,MAAM,oBAAoB,QAAS,MAAM,sBAAkB,MAyEjE,CAAA;AAOD;;GAEG;AAEH,eAAO,MAAM,eAAe,SAAU,MAAM,sBAAkB,MAqB7D,CAAA;AAED;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,QAC9B,MAAM,QACL,MAAM,UACJ,OAAO,KACd,CAAC,MAAM,EAAE,MAAM,CAOjB,CAAA;AAsCD;;GAEG;AAEH,eAAO,MAAM,qBAAqB,QAAmB,MAAM,qCAkB1D,CAAA"}
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../packages/slate/src/utils/string.ts"],"names":[],"mappings":"AAUA;;GAEG;AAEH,eAAO,MAAM,oBAAoB,QAAS,MAAM,sBAAkB,MAyEjE,CAAA;AAYD;;GAEG;AAEH,eAAO,MAAM,eAAe,SAAU,MAAM,sBAAkB,MAqC7D,CAAA;AAED,eAAO,MAAM,aAAa,SAClB,MAAM,UACJ,MAAM,4BACW,MAAM,KAAK,OAAO,kBAC1C,CAAC,MAAM,EAAE,MAAM,CA+CjB,CAAA;AAED;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,QAC9B,MAAM,QACL,MAAM,UACJ,OAAO,KACd,CAAC,MAAM,EAAE,MAAM,CAOjB,CAAA;AAsCD;;GAEG;AAEH,eAAO,MAAM,qBAAqB,QAAmB,MAAM,qCAkB1D,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "slate",
3
3
  "description": "A completely customizable framework for building rich text editors.",
4
- "version": "0.135.0",
4
+ "version": "0.136.0",
5
5
  "license": "MIT",
6
6
  "repository": "git://github.com/ianstormtaylor/slate.git",
7
7
  "main": "dist/index.js",