peachsim 0.1.1945 → 0.1.1946
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-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +1 -1
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +1 -1
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +1 -1
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/grapheme-segmenter.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/text-nested.d.ts +52 -0
- package/dist-types/packages/peach-engine/src/engine/text-runs.d.ts +43 -0
- package/package.json +1 -1
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1946 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1946 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1946 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1946 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1946 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1946 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1946 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1946 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1946 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1946 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -10,6 +10,7 @@ import { type DamageRect } from './damage-rect.d.ts';
|
|
|
10
10
|
import { SootSimNode } from './node.d.ts';
|
|
11
11
|
import { type TextHyphenation } from './text-line-break.d.ts';
|
|
12
12
|
export { releaseRasterCachesInSubtree } from './paint-boundary.d.ts';
|
|
13
|
+
import { type TextParagraphLineHeight } from './text-nested.d.ts';
|
|
13
14
|
import { type Paragraph } from './text-paragraph.d.ts';
|
|
14
15
|
import type { SootSimStyle, RenderContext, PrewarmReach } from './types.d.ts';
|
|
15
16
|
import type { Canvas, ColorFilter, Paint, FontMgr, Surface } from 'canvaskit-wasm';
|
|
@@ -93,6 +94,7 @@ export interface TextParagraphInputs {
|
|
|
93
94
|
hasExplicitLineHeight: boolean;
|
|
94
95
|
attachmentsStandOnBaseline: boolean;
|
|
95
96
|
mixedParagraphs: boolean;
|
|
97
|
+
textKitLines: TextParagraphLineHeight['textKitLines'];
|
|
96
98
|
paragraphLeading: number;
|
|
97
99
|
letterSpacing: number;
|
|
98
100
|
textOffset: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function segmentGraphemes(text: string): string[];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { SootSimNode } from './node.d.ts';
|
|
2
|
+
import { type TextRunStyles } from './text-runs.d.ts';
|
|
3
|
+
import type { AttributedParagraphStyle } from './text-paragraphContract.d.ts';
|
|
4
|
+
import type { SootSimStyle } from './types.d.ts';
|
|
5
|
+
interface ParagraphBuilderLike {
|
|
6
|
+
setParagraphStyle?(style: AttributedParagraphStyle | undefined, restore?: boolean): void;
|
|
7
|
+
addText(text: string): void;
|
|
8
|
+
pushStyle(style: any): void;
|
|
9
|
+
pop(): void;
|
|
10
|
+
addPlaceholder?: (width?: number, height?: number, alignment?: any, baseline?: any, offset?: number) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function isInlineEmbedChild(node: SootSimNode): boolean;
|
|
13
|
+
export declare function attachmentSizesFromText(node: SootSimNode): boolean;
|
|
14
|
+
export declare function hasNestedTextNodes(node: SootSimNode): boolean;
|
|
15
|
+
export declare function nestedTextSignature(node: SootSimNode): string;
|
|
16
|
+
export interface TextParagraphLineHeight {
|
|
17
|
+
firstTextStyle: SootSimStyle | null;
|
|
18
|
+
hasExplicitLineHeight: boolean;
|
|
19
|
+
declaresLineHeight: boolean;
|
|
20
|
+
height: number | null;
|
|
21
|
+
leading: number;
|
|
22
|
+
mixedParagraphs: boolean;
|
|
23
|
+
textKitLines: {
|
|
24
|
+
heights: number[];
|
|
25
|
+
baselineOffset: number;
|
|
26
|
+
} | null;
|
|
27
|
+
}
|
|
28
|
+
export declare function resolveTextParagraphLineHeight(rootNode: SootSimNode | null, rootText: string, rootStyle: SootSimStyle, fontScale: number | null, resolveNaturalLineHeight: (style: SootSimStyle, scaledFontSize: number) => number | null, resolveRunStyle?: (style: SootSimStyle, node: SootSimNode | null) => SootSimStyle): TextParagraphLineHeight;
|
|
29
|
+
export interface InlineEmbedSlot {
|
|
30
|
+
node: SootSimNode;
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
placeholderIndex: number;
|
|
34
|
+
}
|
|
35
|
+
export declare function measureInlineTextAttachment(node: SootSimNode, rootNode: SootSimNode): {
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
};
|
|
39
|
+
export declare function inlineAttachmentsStandOnBaseline(rootStyle: SootSimStyle, lineHeight: TextParagraphLineHeight): boolean;
|
|
40
|
+
export declare const TEXTKIT_UNATTRIBUTED_METRICS: {
|
|
41
|
+
ascender: number;
|
|
42
|
+
descender: number;
|
|
43
|
+
lineHeight: number;
|
|
44
|
+
};
|
|
45
|
+
export declare function resolveTextKitAttachmentTop(node: SootSimNode, lineBottom: number, attachmentHeight: number): number | null;
|
|
46
|
+
export declare function resolveUnattributedTextAttachment(node: SootSimNode | null | undefined, text: string, slots: readonly InlineEmbedSlot[]): InlineEmbedSlot | null;
|
|
47
|
+
export declare function emitNestedTextRuns(builder: ParagraphBuilderLike, rootNode: SootSimNode, rootStyle: SootSimStyle, buildRunStyle: (mergedStyle: SootSimStyle, node: SootSimNode, natural: boolean) => Record<string, any> | null, rootStyles: TextRunStyles, embedPolicy?: {
|
|
48
|
+
addPlaceholder: (width: number, height: number, offset: number, natural: boolean) => number;
|
|
49
|
+
embedSlots: InlineEmbedSlot[];
|
|
50
|
+
naturalRootStyles?: TextRunStyles;
|
|
51
|
+
}): InlineEmbedSlot[];
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export { segmentGraphemes } from './grapheme-segmenter.d.ts';
|
|
2
|
+
export declare function isEmojiGrapheme(segment: string): boolean;
|
|
3
|
+
export interface TextRun {
|
|
4
|
+
text: string;
|
|
5
|
+
kind: 'text' | 'emoji' | 'symbol' | 'language';
|
|
6
|
+
family?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TextTightening {
|
|
9
|
+
tracking: number;
|
|
10
|
+
spaceReduction: number;
|
|
11
|
+
leadingSpacing: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function tighteningSpacingAt(graphemes: readonly string[], index: number, tightening: Pick<TextTightening, 'tracking' | 'spaceReduction'>): number;
|
|
14
|
+
export interface TextRunStyles {
|
|
15
|
+
base: Record<string, any> & {
|
|
16
|
+
_tightening?: TextTightening;
|
|
17
|
+
};
|
|
18
|
+
emoji: () => Record<string, any>;
|
|
19
|
+
sfSymbol: (style: Record<string, any>) => SfSymbolTextStyles;
|
|
20
|
+
}
|
|
21
|
+
export interface SfSymbolTextStyles {
|
|
22
|
+
add: (codePoint: number, style: Record<string, any>) => void;
|
|
23
|
+
addPlaceholder: () => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function createSfSymbolTextStyleFactory(builder: {
|
|
26
|
+
addPlaceholder?: (width?: number, height?: number, alignment?: any, baseline?: any, offset?: number) => void;
|
|
27
|
+
}, alignment: any, baseline: any, nextPlaceholderIndex: () => number, onCodePoint?: (placeholderIndex: number, codePoint: number, style: Record<string, any>, size: number) => void): (style: Record<string, any>) => SfSymbolTextStyles;
|
|
28
|
+
export interface EmojiGrapheme {
|
|
29
|
+
grapheme: string;
|
|
30
|
+
start: number;
|
|
31
|
+
end: number;
|
|
32
|
+
}
|
|
33
|
+
export declare function normalizeTextForCanvasParagraph(text: string): string;
|
|
34
|
+
export declare function getEmojiGraphemes(text: string, preserveBufferOffsets?: boolean): EmojiGrapheme[];
|
|
35
|
+
export declare function buildEmojiTextStyle(baseStyle: Record<string, any>, weight: any, letterSpacing?: number): Record<string, any>;
|
|
36
|
+
export declare function iosEmojiAdvance(fontSize: number, systemFont: boolean): number;
|
|
37
|
+
export declare function addTextWithFallbackRuns(builder: {
|
|
38
|
+
preserveBufferOffsets?: boolean;
|
|
39
|
+
addText(text: string): void;
|
|
40
|
+
pushStyle(style: any): void;
|
|
41
|
+
pop(): void;
|
|
42
|
+
addPlaceholder?: (width?: number, height?: number, alignment?: any, baseline?: any, offset?: number) => void;
|
|
43
|
+
}, text: string, styles: TextRunStyles): void;
|