@flighthq/textbidi 0.2.1-next.841.373388f → 0.3.0-next.1032.e2b99fc

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,4 +1,4 @@
1
- import type { BidiClassBackend } from '@flighthq/types';
1
+ import type { BidiClassBackend } from '@flighthq/types/contract';
2
2
  export declare function createCompactBidiClassBackend(): BidiClassBackend;
3
3
  export declare function getBidiClassBackend(): BidiClassBackend;
4
4
  export declare function setBidiClassBackend(backend: BidiClassBackend | null): void;
@@ -1 +1 @@
1
- {"version":3,"file":"bidiClassBackend.d.ts","sourceRoot":"","sources":["../src/bidiClassBackend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAUnE,wBAAgB,6BAA6B,IAAI,gBAAgB,CAEhE;AAKD,wBAAgB,mBAAmB,IAAI,gBAAgB,CAGtD;AAMD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAE1E"}
1
+ {"version":3,"file":"bidiClassBackend.d.ts","sourceRoot":"","sources":["../src/bidiClassBackend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAU5E,wBAAgB,6BAA6B,IAAI,gBAAgB,CAEhE;AAKD,wBAAgB,mBAAmB,IAAI,gBAAgB,CAGtD;AAMD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAE1E"}
@@ -0,0 +1,5 @@
1
+ export * from './bidiClassBackend';
2
+ export * from './getBidiRuns';
3
+ export * from './reorderBidiLine';
4
+ export * from './resolveBidiLevels';
5
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './bidiClassBackend';
2
+ export * from './getBidiRuns';
3
+ export * from './reorderBidiLine';
4
+ export * from './resolveBidiLevels';
5
+ //# sourceMappingURL=contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { BidiDirection, BidiRun } from '@flighthq/types';
1
+ import type { BidiDirection, BidiRun } from '@flighthq/types/contract';
2
2
  export declare function getBidiRuns(text: string, baseDirection: BidiDirection): readonly BidiRun[];
3
3
  //# sourceMappingURL=getBidiRuns.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBidiRuns.d.ts","sourceRoot":"","sources":["../src/getBidiRuns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAS9D,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,SAAS,OAAO,EAAE,CAa1F"}
1
+ {"version":3,"file":"getBidiRuns.d.ts","sourceRoot":"","sources":["../src/getBidiRuns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AASvE,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,SAAS,OAAO,EAAE,CAa1F"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,2 @@
1
- export * from './bidiClassBackend';
2
- export * from './getBidiRuns';
3
- export * from './reorderBidiLine';
4
- export * from './resolveBidiLevels';
1
+ export { getBidiRuns, reorderBidiLine, resolveBidiLevels } from './contract';
5
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,2 @@
1
- export * from './bidiClassBackend';
2
- export * from './getBidiRuns';
3
- export * from './reorderBidiLine';
4
- export * from './resolveBidiLevels';
1
+ export { getBidiRuns, reorderBidiLine, resolveBidiLevels } from './contract';
5
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { BidiDirection } from '@flighthq/types';
1
+ import type { BidiDirection } from '@flighthq/types/contract';
2
2
  export declare function resolveBidiLevels(text: string, baseDirection: BidiDirection): Uint8Array;
3
3
  //# sourceMappingURL=resolveBidiLevels.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolveBidiLevels.d.ts","sourceRoot":"","sources":["../src/resolveBidiLevels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAqBhE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,UAAU,CAkCxF"}
1
+ {"version":3,"file":"resolveBidiLevels.d.ts","sourceRoot":"","sources":["../src/resolveBidiLevels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAqBzE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,UAAU,CAkCxF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/textbidi",
3
- "version": "0.2.1-next.841.373388f",
3
+ "version": "0.3.0-next.1032.e2b99fc",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/flighthq/flight.git",
@@ -13,6 +13,10 @@
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
15
  "default": "./dist/index.js"
16
+ },
17
+ "./contract": {
18
+ "types": "./dist/contract.d.ts",
19
+ "default": "./dist/contract.js"
16
20
  }
17
21
  },
18
22
  "files": [
@@ -32,7 +36,7 @@
32
36
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
33
37
  },
34
38
  "dependencies": {
35
- "@flighthq/types": "0.2.1-next.841.373388f"
39
+ "@flighthq/types": "0.3.0-next.1032.e2b99fc"
36
40
  },
37
41
  "devDependencies": {
38
42
  "typescript": "^5.3.0"
@@ -1,4 +1,4 @@
1
- import type { BidiClassBackend } from '@flighthq/types';
1
+ import type { BidiClassBackend } from '@flighthq/types/contract';
2
2
  import { afterEach, describe, expect, it } from 'vitest';
3
3
 
4
4
  import { createCompactBidiClassBackend, getBidiClassBackend, setBidiClassBackend } from './bidiClassBackend';