@flighthq/textsegment 0.5.1-next.4305.c5b7dc0 → 0.5.1-next.4329.8d695d9

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/README.md CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/textsegment`. The `@
13
13
  This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
14
14
 
15
15
  - [Flight project](https://github.com/flighthq/flight)
16
- - [Source for @flighthq/textsegment@0.5.1-next.4305.c5b7dc0](https://github.com/flighthq/flight/tree/c5b7dc0276d23e5772eb5aa05cdff1a91777141f/packages/textsegment)
17
- - [License](https://github.com/flighthq/flight/blob/c5b7dc0276d23e5772eb5aa05cdff1a91777141f/LICENSE.md)
16
+ - [Source for @flighthq/textsegment@0.5.1-next.4329.8d695d9](https://github.com/flighthq/flight/tree/8d695d97fdf10328d441d2ba3091fd16029b5387/packages/textsegment)
17
+ - [License](https://github.com/flighthq/flight/blob/8d695d97fdf10328d441d2ba3091fd16029b5387/LICENSE.md)
package/dist/contract.js CHANGED
@@ -1,9 +1,9 @@
1
1
  // Generated from crates/flight-textsegment/src/lib.rs by flight-compiler.
2
2
  // Rust is authoritative; run `npm run generate` after changing it.
3
- export { disableTextSegmentGuards, enableTextSegmentGuards } from "./enableTextSegmentGuards.js";
4
- export { segmentGraphemes, segmentSentences, segmentWords } from "./textSegment.js";
5
- export { getNextGraphemeBoundary, getNextSentenceBoundary, getNextWordBoundary, getPreviousGraphemeBoundary, getPreviousSentenceBoundary, getPreviousWordBoundary, getWordRangeAt, } from "./textSegmentBoundary.js";
6
- export { reportTextSegmenterUnavailable, setTextSegmentGuard } from "./textSegmentGuards.js";
7
- export { explainTextSegmenterBackend, webTextSegmenterBackend } from "./textSegmenterBackend.js";
8
- export { TextSegmentGranularity, TextSegmenterKind, getTextSegmentGranularityString, getTextSegmenterKindString, parseTextSegmentGranularity, parseTextSegmenterKind, } from "./types.js";
3
+ export { disableTextSegmentGuards, enableTextSegmentGuards } from './enableTextSegmentGuards.js';
4
+ export { segmentGraphemes, segmentSentences, segmentWords } from './textSegment.js';
5
+ export { getNextGraphemeBoundary, getNextSentenceBoundary, getNextWordBoundary, getPreviousGraphemeBoundary, getPreviousSentenceBoundary, getPreviousWordBoundary, getWordRangeAt, } from './textSegmentBoundary.js';
6
+ export { reportTextSegmenterUnavailable, setTextSegmentGuard } from './textSegmentGuards.js';
7
+ export { explainTextSegmenterBackend, webTextSegmenterBackend } from './textSegmenterBackend.js';
8
+ export { TextSegmentGranularity, TextSegmenterKind, getTextSegmentGranularityString, getTextSegmenterKindString, parseTextSegmentGranularity, parseTextSegmenterKind, } from './types.js';
9
9
  //# sourceMappingURL=contract.js.map
@@ -1,6 +1,6 @@
1
1
  import { logOnce } from '@flighthq/log/contract';
2
2
  import { LogLevel } from '@flighthq/types/contract';
3
- import { setTextSegmentGuard } from "./textSegmentGuards.js";
3
+ import { setTextSegmentGuard } from './textSegmentGuards.js';
4
4
  /** Uninstalls the guard installed by enableTextSegmentGuards. */
5
5
  export function disableTextSegmentGuards() {
6
6
  setTextSegmentGuard(null);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Generated from crates/flight-textsegment/src/lib.rs by flight-compiler.
2
2
  // Rust is authoritative; run `npm run generate` after changing it.
3
- export { TextSegmentGranularity, TextSegmenterKind, disableTextSegmentGuards, enableTextSegmentGuards, explainTextSegmenterBackend, getNextGraphemeBoundary, getNextSentenceBoundary, getNextWordBoundary, getPreviousGraphemeBoundary, getPreviousSentenceBoundary, getPreviousWordBoundary, getWordRangeAt, segmentGraphemes, segmentSentences, segmentWords, webTextSegmenterBackend, } from "./contract.js";
3
+ export { TextSegmentGranularity, TextSegmenterKind, disableTextSegmentGuards, enableTextSegmentGuards, explainTextSegmenterBackend, getNextGraphemeBoundary, getNextSentenceBoundary, getNextWordBoundary, getPreviousGraphemeBoundary, getPreviousSentenceBoundary, getPreviousWordBoundary, getWordRangeAt, segmentGraphemes, segmentSentences, segmentWords, webTextSegmenterBackend, } from './contract.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  // Generated from crates/flight-textsegment/src/text_segment.rs by flight-compiler.
2
2
  // Rust is authoritative; run `npm run generate` after changing it.
3
- import { TextSegmentGranularity } from "./types.js";
3
+ import { TextSegmentGranularity } from './types.js';
4
4
  export function segmentGraphemes(out, hostTextSegmenter, text, locale) {
5
5
  out.length = 0;
6
6
  for (const segment of hostTextSegmenter.segment(text, TextSegmentGranularity.Grapheme, locale)) {
@@ -1,5 +1,5 @@
1
- import { webTextSegmenterBackend } from "./textSegmenterBackend.js";
2
- import { reportTextSegmenterUnavailable } from "./textSegmentGuards.js";
1
+ import { webTextSegmenterBackend } from './textSegmenterBackend.js';
2
+ import { reportTextSegmenterUnavailable } from './textSegmentGuards.js';
3
3
  export function getNextGraphemeBoundary(textSegmenter, text, index, locale) {
4
4
  return getNextTextSegmentBoundary(textSegmenter, text, index, 'grapheme', locale);
5
5
  }
@@ -1,4 +1,4 @@
1
- import { reportTextSegmenterUnavailable } from "./textSegmentGuards.js";
1
+ import { reportTextSegmenterUnavailable } from './textSegmentGuards.js';
2
2
  // Stable bundled web provider. Hosts can import this directly when composing their explicit
3
3
  // capability object.
4
4
  export const webTextSegmenterBackend = createWebTextSegmenterBackend();
package/dist/types.d.ts CHANGED
@@ -23,13 +23,13 @@ export interface TextSegmenterExplanation {
23
23
  }
24
24
  export type TextSegmentGuard = () => void;
25
25
  export declare const TextSegmentGranularity: {
26
- readonly Grapheme: "grapheme";
27
- readonly Word: "word";
28
- readonly Sentence: "sentence";
26
+ readonly Grapheme: 'grapheme';
27
+ readonly Word: 'word';
28
+ readonly Sentence: 'sentence';
29
29
  };
30
30
  export declare const TextSegmenterKind: {
31
- readonly Custom: "custom";
32
- readonly WebIntl: "web-intl";
31
+ readonly Custom: 'custom';
32
+ readonly WebIntl: 'web-intl';
33
33
  };
34
34
  export declare function getTextSegmenterKindString(value: TextSegmenterKind): string;
35
35
  export declare function getTextSegmentGranularityString(value: TextSegmentGranularity): string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC;AAEtE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,2BAA2B,CAAC;CAClD;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,WAAW,EAAE,CAAC;CACrG;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEtD,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC;AAE1C,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,CAE3E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CAErF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAA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AE3E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CAErF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAGnF;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,sBAAsB,GAAG,SAAS,CAG7F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/textsegment",
3
- "version": "0.5.1-next.4305.c5b7dc0",
3
+ "version": "0.5.1-next.4329.8d695d9",
4
4
  "author": "Joshua Granick and other contributors",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,12 +40,12 @@
40
40
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@flighthq/entity": "0.5.1-next.4305.c5b7dc0",
44
- "@flighthq/log": "0.5.1-next.4305.c5b7dc0",
45
- "@flighthq/types": "0.5.1-next.4305.c5b7dc0"
43
+ "@flighthq/entity": "0.5.1-next.4329.8d695d9",
44
+ "@flighthq/log": "0.5.1-next.4329.8d695d9",
45
+ "@flighthq/types": "0.5.1-next.4329.8d695d9"
46
46
  },
47
47
  "devDependencies": {
48
- "typescript": "^5.3.0"
48
+ "typescript": "^7.0.2"
49
49
  },
50
50
  "description": "Unicode text-segmentation seam (UAX #29 grapheme/word/sentence) over a swappable backend defaulting to the browser-native Intl.Segmenter",
51
51
  "sideEffects": false