fetta 1.3.0 → 1.3.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.
@@ -368,6 +368,7 @@ function collectTextStructure(element, trackAncestors) {
368
368
  for (const grapheme of graphemes) {
369
369
  if (grapheme === " " || grapheme === "\n" || grapheme === " ") {
370
370
  pushWord();
371
+ noSpaceBeforeNext = false;
371
372
  continue;
372
373
  }
373
374
  currentWord.push({ char: grapheme, ancestors });
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { splitText } from './chunk-Q2D5AQBW.js';
1
+ export { splitText } from './chunk-SGSZGY77.js';
package/dist/react.js CHANGED
@@ -1,4 +1,4 @@
1
- import { splitText, __spreadProps, __spreadValues, normalizeToPromise } from './chunk-Q2D5AQBW.js';
1
+ import { splitText, __spreadProps, __spreadValues, normalizeToPromise } from './chunk-SGSZGY77.js';
2
2
  import { forwardRef, useRef, useCallback, useState, useLayoutEffect, useEffect, isValidElement, cloneElement } from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fetta",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Text splitting library with kerning compensation for animations",
5
5
  "type": "module",
6
6
  "sideEffects": false,