@flighthq/textshaper 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.
- package/dist/_textShaperHooks.d.ts +1 -1
- package/dist/_textShaperHooks.d.ts.map +1 -1
- package/dist/contract.d.ts +8 -0
- package/dist/contract.d.ts.map +1 -0
- package/dist/contract.js +8 -0
- package/dist/contract.js.map +1 -0
- package/dist/index.d.ts +1 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/dist/textShaper.d.ts +1 -1
- package/dist/textShaper.d.ts.map +1 -1
- package/dist/textShaperCache.d.ts +1 -1
- package/dist/textShaperCache.d.ts.map +1 -1
- package/dist/textShaperCluster.d.ts +1 -1
- package/dist/textShaperCluster.d.ts.map +1 -1
- package/dist/textShaperItemize.d.ts +1 -1
- package/dist/textShaperItemize.d.ts.map +1 -1
- package/dist/textShaperPool.d.ts +1 -1
- package/dist/textShaperPool.d.ts.map +1 -1
- package/dist/textShaperRun.d.ts +1 -1
- package/dist/textShaperRun.d.ts.map +1 -1
- package/dist/textShaperSignals.d.ts +1 -1
- package/dist/textShaperSignals.d.ts.map +1 -1
- package/dist/textShaperSignals.js +1 -1
- package/dist/textShaperSignals.js.map +1 -1
- package/package.json +7 -3
- package/src/_textShaperHooks.test.ts +1 -1
- package/src/textShaper.test.ts +1 -1
- package/src/textShaperCache.test.ts +1 -1
- package/src/textShaperCluster.test.ts +1 -1
- package/src/textShaperItemize.test.ts +1 -1
- package/src/textShaperRun.test.ts +1 -1
- package/src/textShaperSignals.test.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TextShaperBackend } from '@flighthq/types';
|
|
1
|
+
import type { TextShaperBackend } from '@flighthq/types/contract';
|
|
2
2
|
export declare let _textShaperBackendHook: ((backend: TextShaperBackend | null) => void) | null;
|
|
3
3
|
export declare function _setTextShaperBackendHook(hook: ((backend: TextShaperBackend | null) => void) | null): void;
|
|
4
4
|
//# sourceMappingURL=_textShaperHooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_textShaperHooks.d.ts","sourceRoot":"","sources":["../src/_textShaperHooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"_textShaperHooks.d.ts","sourceRoot":"","sources":["../src/_textShaperHooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,IAAI,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,IAAW,CAAC;AAE/F,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAE1G"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './textShaper';
|
|
2
|
+
export * from './textShaperCache';
|
|
3
|
+
export * from './textShaperCluster';
|
|
4
|
+
export * from './textShaperItemize';
|
|
5
|
+
export * from './textShaperPool';
|
|
6
|
+
export * from './textShaperRun';
|
|
7
|
+
export * from './textShaperSignals';
|
|
8
|
+
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|
package/dist/contract.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './textShaper';
|
|
2
|
+
export * from './textShaperCache';
|
|
3
|
+
export * from './textShaperCluster';
|
|
4
|
+
export * from './textShaperItemize';
|
|
5
|
+
export * from './textShaperPool';
|
|
6
|
+
export * from './textShaperRun';
|
|
7
|
+
export * from './textShaperSignals';
|
|
8
|
+
//# sourceMappingURL=contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './textShaperCache';
|
|
3
|
-
export * from './textShaperCluster';
|
|
4
|
-
export * from './textShaperItemize';
|
|
5
|
-
export * from './textShaperPool';
|
|
6
|
-
export * from './textShaperRun';
|
|
7
|
-
export * from './textShaperSignals';
|
|
1
|
+
export { acquireShapedRun, clearShapedRun, clearTextShaperCache, createShapedRun, createTextShaperCache, disposeTextShaperCache, disposeTextShaperSignals, enableTextShaperSignals, getCaretPositionsForRun, getClusterForIndex, getCodePointForGlyph, getFontMetrics, getFontMetricsInto, getFontUnitScale, getGlyphExtents, getGlyphExtentsBatch, getGlyphExtentsInto, getGlyphIndexForCodePoint, getGlyphName, getIndexRangeForCluster, getTextShaperSignals, itemizeText, measureText, releaseShapedRun, shapeTextRun, shapeTextRunCached, shapeTextRunInto, shapeTextRuns, } from './contract';
|
|
8
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,YAAY,EACZ,uBAAuB,EACvB,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,GACd,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './textShaperCache';
|
|
3
|
-
export * from './textShaperCluster';
|
|
4
|
-
export * from './textShaperItemize';
|
|
5
|
-
export * from './textShaperPool';
|
|
6
|
-
export * from './textShaperRun';
|
|
7
|
-
export * from './textShaperSignals';
|
|
1
|
+
export { acquireShapedRun, clearShapedRun, clearTextShaperCache, createShapedRun, createTextShaperCache, disposeTextShaperCache, disposeTextShaperSignals, enableTextShaperSignals, getCaretPositionsForRun, getClusterForIndex, getCodePointForGlyph, getFontMetrics, getFontMetricsInto, getFontUnitScale, getGlyphExtents, getGlyphExtentsBatch, getGlyphExtentsInto, getGlyphIndexForCodePoint, getGlyphName, getIndexRangeForCluster, getTextShaperSignals, itemizeText, measureText, releaseShapedRun, shapeTextRun, shapeTextRunCached, shapeTextRunInto, shapeTextRuns, } from './contract';
|
|
8
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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,YAAY,EACZ,uBAAuB,EACvB,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,GACd,MAAM,YAAY,CAAC"}
|
package/dist/textShaper.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TextFormat, TextShaperBackend } from '@flighthq/types';
|
|
1
|
+
import type { TextFormat, TextShaperBackend } from '@flighthq/types/contract';
|
|
2
2
|
export declare function getTextShaperBackend(): TextShaperBackend | null;
|
|
3
3
|
export declare function measureText(text: string, format: Readonly<TextFormat>): number;
|
|
4
4
|
export declare function setTextShaperBackend(backend: TextShaperBackend | null): void;
|
package/dist/textShaper.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textShaper.d.ts","sourceRoot":"","sources":["../src/textShaper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"textShaper.d.ts","sourceRoot":"","sources":["../src/textShaper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAW9E,wBAAgB,oBAAoB,IAAI,iBAAiB,GAAG,IAAI,CAE/D;AAKD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,CAG9E;AAKD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAG5E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ShapedRun, ShapeRunOptions, TextFormat, TextShaperCache } from '@flighthq/types';
|
|
1
|
+
import type { ShapedRun, ShapeRunOptions, TextFormat, TextShaperCache } from '@flighthq/types/contract';
|
|
2
2
|
export declare function clearTextShaperCache(cache: TextShaperCache): void;
|
|
3
3
|
export declare function createTextShaperCache(): TextShaperCache;
|
|
4
4
|
export declare function disposeTextShaperCache(cache: TextShaperCache): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textShaperCache.d.ts","sourceRoot":"","sources":["../src/textShaperCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"textShaperCache.d.ts","sourceRoot":"","sources":["../src/textShaperCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAOxG,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAEjE;AAGD,wBAAgB,qBAAqB,IAAI,eAAe,CAEvD;AAKD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAEnE;AAMD,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,eAAe,EACtB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC5B,OAAO,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,GAClC,SAAS,GAAG,IAAI,CAOlB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ShapedRun } from '@flighthq/types';
|
|
1
|
+
import type { ShapedRun } from '@flighthq/types/contract';
|
|
2
2
|
export declare function getCaretPositionsForRun(run: Readonly<ShapedRun>): number[];
|
|
3
3
|
export declare function getClusterForIndex(run: Readonly<ShapedRun>, stringIndex: number): number;
|
|
4
4
|
export declare function getIndexRangeForCluster(run: Readonly<ShapedRun>, cluster: number, stringLength?: number): readonly [number, number] | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textShaperCluster.d.ts","sourceRoot":"","sources":["../src/textShaperCluster.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"textShaperCluster.d.ts","sourceRoot":"","sources":["../src/textShaperCluster.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAU1D,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,MAAM,EAAE,CAW1E;AAQD,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAYxF;AAUD,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,QAAQ,CAAC,SAAS,CAAC,EACxB,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM,GACpB,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAqBlC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ShapedRun, TextFormat, TextItem, TextShaperOptions } from '@flighthq/types';
|
|
1
|
+
import type { ShapedRun, TextFormat, TextItem, TextShaperOptions } from '@flighthq/types/contract';
|
|
2
2
|
export declare function itemizeText(text: string, _format: Readonly<TextFormat>, options?: Readonly<TextShaperOptions>): readonly TextItem[];
|
|
3
3
|
export declare function shapeTextRuns(text: string, format: Readonly<TextFormat>, options?: Readonly<TextShaperOptions>): readonly ShapedRun[];
|
|
4
4
|
//# sourceMappingURL=textShaperItemize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textShaperItemize.d.ts","sourceRoot":"","sources":["../src/textShaperItemize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"textShaperItemize.d.ts","sourceRoot":"","sources":["../src/textShaperItemize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAanG,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,EAGZ,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC7B,OAAO,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GACpC,SAAS,QAAQ,EAAE,CAgDrB;AAQD,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC5B,OAAO,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GACpC,SAAS,SAAS,EAAE,CAiBtB"}
|
package/dist/textShaperPool.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ShapedRun } from '@flighthq/types';
|
|
1
|
+
import type { ShapedRun } from '@flighthq/types/contract';
|
|
2
2
|
export declare function acquireShapedRun(): ShapedRun;
|
|
3
3
|
export declare function releaseShapedRun(run: ShapedRun): void;
|
|
4
4
|
//# sourceMappingURL=textShaperPool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textShaperPool.d.ts","sourceRoot":"","sources":["../src/textShaperPool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"textShaperPool.d.ts","sourceRoot":"","sources":["../src/textShaperPool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAU1D,wBAAgB,gBAAgB,IAAI,SAAS,CAG5C;AAID,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAIrD"}
|
package/dist/textShaperRun.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FontMetrics, GlyphExtents, ShapedRun, ShapeRunOptions, TextFormat } from '@flighthq/types';
|
|
1
|
+
import type { FontMetrics, GlyphExtents, ShapedRun, ShapeRunOptions, TextFormat } from '@flighthq/types/contract';
|
|
2
2
|
export declare function clearShapedRun(run: ShapedRun): ShapedRun;
|
|
3
3
|
export declare function createShapedRun(): ShapedRun;
|
|
4
4
|
export declare function getCodePointForGlyph(glyphId: number, _format: Readonly<TextFormat>): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textShaperRun.d.ts","sourceRoot":"","sources":["../src/textShaperRun.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"textShaperRun.d.ts","sourceRoot":"","sources":["../src/textShaperRun.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAIlH,wBAAgB,cAAc,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,CAQxD;AAED,wBAAgB,eAAe,IAAI,SAAS,CAS3C;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,CAI3F;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,WAAW,GAAG,IAAI,CAI/E;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO,CAY1F;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,CAKrE;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,YAAY,GAAG,IAAI,CAInG;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,EAC/B,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC7B,GAAG,EAAE,YAAY,EAAE,GAClB,MAAM,CAcR;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,YAAY,GAAG,OAAO,CAQ9G;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,CAIlG;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,CAInF;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,GAAG,IAAI,CAIpH;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC5B,GAAG,EAAE,SAAS,EACd,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAgBT"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TextShaperSignals } from '@flighthq/types';
|
|
1
|
+
import type { TextShaperSignals } from '@flighthq/types/contract';
|
|
2
2
|
export declare function disposeTextShaperSignals(): void;
|
|
3
3
|
export declare function enableTextShaperSignals(): TextShaperSignals;
|
|
4
4
|
export declare function getTextShaperSignals(): TextShaperSignals | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textShaperSignals.d.ts","sourceRoot":"","sources":["../src/textShaperSignals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqB,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"textShaperSignals.d.ts","sourceRoot":"","sources":["../src/textShaperSignals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqB,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAIrF,wBAAgB,wBAAwB,IAAI,IAAI,CAK/C;AAED,wBAAgB,uBAAuB,IAAI,iBAAiB,CAW3D;AAED,wBAAgB,oBAAoB,IAAI,iBAAiB,GAAG,IAAI,CAE/D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clearSignal, createSignal } from '@flighthq/signals';
|
|
1
|
+
import { clearSignal, createSignal } from '@flighthq/signals/contract';
|
|
2
2
|
import { _setTextShaperBackendHook } from './_textShaperHooks';
|
|
3
3
|
export function disposeTextShaperSignals() {
|
|
4
4
|
if (_signals === null)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textShaperSignals.js","sourceRoot":"","sources":["../src/textShaperSignals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"textShaperSignals.js","sourceRoot":"","sources":["../src/textShaperSignals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAGvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,UAAU,wBAAwB;IACtC,IAAI,QAAQ,KAAK,IAAI;QAAE,OAAO;IAC9B,WAAW,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACvC,QAAQ,GAAG,IAAI,CAAC;IAChB,yBAAyB,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,uBAAuB;IACrC,IAAI,QAAQ,KAAK,IAAI;QAAE,OAAO,QAAQ,CAAC;IACvC,QAAQ,GAAG;QACT,gBAAgB,EAAE,YAAY,EAA+C;KAC9E,CAAC;IACF,yBAAyB,CAAC,CAAC,OAAO,EAAE,EAAE;QACpC,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;YACtB,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,IAAI,QAAQ,GAA6B,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/textshaper",
|
|
3
|
-
"version": "0.
|
|
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,8 +36,8 @@
|
|
|
32
36
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
33
37
|
},
|
|
34
38
|
"dependencies": {
|
|
35
|
-
"@flighthq/signals": "0.
|
|
36
|
-
"@flighthq/types": "0.
|
|
39
|
+
"@flighthq/signals": "0.3.0-next.1032.e2b99fc",
|
|
40
|
+
"@flighthq/types": "0.3.0-next.1032.e2b99fc"
|
|
37
41
|
},
|
|
38
42
|
"devDependencies": {
|
|
39
43
|
"typescript": "^5.3.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TextShaperBackend } from '@flighthq/types';
|
|
1
|
+
import type { TextShaperBackend } from '@flighthq/types/contract';
|
|
2
2
|
|
|
3
3
|
import { _setTextShaperBackendHook, _textShaperBackendHook } from './_textShaperHooks';
|
|
4
4
|
import { setTextShaperBackend } from './textShaper';
|
package/src/textShaper.test.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ShapedRun, ShapeRunOptions, TextFormat } from '@flighthq/types';
|
|
1
|
+
import type { ShapedRun, ShapeRunOptions, TextFormat } from '@flighthq/types/contract';
|
|
2
2
|
|
|
3
3
|
import { setTextShaperBackend } from './textShaper';
|
|
4
4
|
import { itemizeText, shapeTextRuns } from './textShaperItemize';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TextShaperBackend } from '@flighthq/types';
|
|
1
|
+
import type { TextShaperBackend } from '@flighthq/types/contract';
|
|
2
2
|
|
|
3
3
|
import { setTextShaperBackend } from './textShaper';
|
|
4
4
|
import { disposeTextShaperSignals, enableTextShaperSignals, getTextShaperSignals } from './textShaperSignals';
|