react-native-roku 0.0.0-stage → 0.2.0-preview.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.
- package/CHANGELOG.md +318 -0
- package/CONTRIBUTING.md +34 -0
- package/LICENSE +21 -0
- package/NOTICE.md +10 -0
- package/README.md +66 -2
- package/bin/react-native-roku.mjs +91 -0
- package/build/assets.cjs +311 -0
- package/build/assets.d.cts +50 -0
- package/build/compatibility.d.mts +40 -0
- package/build/compatibility.mjs +272 -0
- package/build/dev.d.mts +34 -0
- package/build/dev.mjs +297 -0
- package/build/devWorkspace.d.mts +11 -0
- package/build/devWorkspace.mjs +86 -0
- package/build/device.d.mts +47 -0
- package/build/device.mjs +310 -0
- package/build/environment.d.mts +29 -0
- package/build/environment.mjs +144 -0
- package/build/esbuild.d.mts +5 -0
- package/build/esbuild.mjs +118 -0
- package/build/fontVariants.d.mts +27 -0
- package/build/fontVariants.mjs +424 -0
- package/build/frontend.d.mts +52 -0
- package/build/frontend.mjs +75 -0
- package/build/identity.mjs +45 -0
- package/build/index.d.mts +22 -0
- package/build/index.mjs +87 -0
- package/build/intl.mjs +121 -0
- package/build/metro.cjs +38 -0
- package/build/metro.d.cts +37 -0
- package/build/metroFrontend.mjs +222 -0
- package/build/metroMetadata.mjs +119 -0
- package/build/metroModules.mjs +397 -0
- package/build/metroRefresh.d.mts +64 -0
- package/build/metroRefresh.mjs +346 -0
- package/build/metroTransformer.cjs +146 -0
- package/build/nativeTextMemo.mjs +296 -0
- package/build/nativewind.d.mts +9 -0
- package/build/nativewind.mjs +92 -0
- package/build/project.d.mts +111 -0
- package/build/project.mjs +615 -0
- package/build/reactCompiler.mjs +113 -0
- package/build/reactProfile.cjs +35 -0
- package/build/refreshRuntime.mjs +187 -0
- package/build/refreshSourceMap.mjs +53 -0
- package/build/release.mjs +99 -0
- package/build/resolution.d.mts +3 -0
- package/build/resolution.mjs +25 -0
- package/build/surfaces.d.mts +1 -0
- package/build/surfaces.mjs +42 -0
- package/build/testing/node.d.mts +29 -0
- package/build/testing/node.mjs +106 -0
- package/build/yoga.d.mts +8 -0
- package/build/yoga.mjs +186 -0
- package/compatibility/public-api.json +327 -0
- package/compatibility/registry.json +2258 -0
- package/config/release.json +15 -0
- package/config/toolchain.json +34 -0
- package/docs/compatibility.md +813 -0
- package/docs/getting-started.md +460 -0
- package/docs/maintenance.md +362 -0
- package/docs/qualification.md +241 -0
- package/docs/standalone-testing.md +56 -0
- package/examples/hello-roku/README.md +35 -0
- package/examples/hello-roku/package.template.json +31 -0
- package/examples/hello-roku/pnpm-workspace.yaml +11 -0
- package/examples/hello-roku/roku.config.json +22 -0
- package/examples/hello-roku/src/App.tsx +54 -0
- package/examples/hello-roku/src/Catalog.tsx +200 -0
- package/examples/hello-roku/src/assets.d.ts +16 -0
- package/examples/hello-roku/src/catalog-cover.png +0 -0
- package/examples/hello-roku/tsconfig.json +1 -0
- package/examples/hello-roku/tsconfig.react.json +1 -0
- package/native/components/RNRAppControl.brs +215 -0
- package/native/components/RNRAppControl.xml +13 -0
- package/native/components/RNRDeviceFacts.brs +19 -0
- package/native/components/RNRDeviceFacts.xml +9 -0
- package/native/components/RNRDeviceFactsTask.brs +74 -0
- package/native/components/RNRDeviceFactsTask.xml +9 -0
- package/native/components/RNRTextRaster.brs +15 -0
- package/native/components/RNRTextRaster.xml +9 -0
- package/native/components/RNRTextRasterTask.brs +77 -0
- package/native/components/RNRTextRasterTask.xml +9 -0
- package/native/manifest.json +7 -0
- package/package.json +183 -3
- package/src/animation/clock.ts +10 -0
- package/src/animation/derivedValue.ts +163 -0
- package/src/animation/legacyAnimated.ts +255 -0
- package/src/animation/reanimated.ts +243 -0
- package/src/animation/sharedValue.ts +285 -0
- package/src/animation/worklets.ts +23 -0
- package/src/application/AppRegistry.ts +31 -0
- package/src/application/mountApplication.ts +136 -0
- package/src/graphics/BitmapLayer.tsx +68 -0
- package/src/graphics/RoundedBorder.tsx +116 -0
- package/src/graphics/TextRasterCache.ts +259 -0
- package/src/graphics/gradient.ts +37 -0
- package/src/graphics/inlineRaster.ts +85 -0
- package/src/graphics/png.ts +77 -0
- package/src/graphics/rasterPixels.ts +89 -0
- package/src/graphics/surfaces.ts +105 -0
- package/src/graphics/textRaster.types.ts +60 -0
- package/src/graphics/textRasterGeometry.ts +116 -0
- package/src/host/host.types.ts +57 -0
- package/src/index.ts +22 -0
- package/src/interop/nativewind.ts +2 -0
- package/src/layout/FontResources.ts +252 -0
- package/src/layout/affine.ts +89 -0
- package/src/layout/flexLayout.ts +398 -0
- package/src/layout/fontFaces.d.mts +19 -0
- package/src/layout/fontFaces.mjs +85 -0
- package/src/layout/fontVariants.d.mts +2 -0
- package/src/layout/fontVariants.mjs +8 -0
- package/src/layout/inlineParagraph.ts +158 -0
- package/src/layout/inlineText.ts +68 -0
- package/src/layout/layoutReuse.ts +117 -0
- package/src/layout/nativeNodeFields.ts +179 -0
- package/src/layout/preparedFields.ts +78 -0
- package/src/layout/textLayout.ts +138 -0
- package/src/layout/transform.ts +113 -0
- package/src/media/SceneGraphAudio.ts +161 -0
- package/src/media/SceneGraphVideo.ts +167 -0
- package/src/media/audioSession.ts +84 -0
- package/src/media/index.ts +2 -0
- package/src/media/videoErrorDetails.ts +40 -0
- package/src/media/videoSession.ts +136 -0
- package/src/navigation/RouterStore.ts +244 -0
- package/src/navigation/expoRouter.ts +115 -0
- package/src/react-native/NativeInput.ts +494 -0
- package/src/react-native/NativeSystemState.ts +95 -0
- package/src/react-native/accessibility.ts +265 -0
- package/src/react-native/activityIndicator.ts +72 -0
- package/src/react-native/compilerPressable.ts +26 -0
- package/src/react-native/createNativeRoot.ts +2126 -0
- package/src/react-native/directionalFocus.ts +55 -0
- package/src/react-native/environment.ts +275 -0
- package/src/react-native/flatList.ts +1001 -0
- package/src/react-native/flatListViewability.ts +231 -0
- package/src/react-native/focusEvents.ts +85 -0
- package/src/react-native/image.ts +247 -0
- package/src/react-native/index.ts +54 -0
- package/src/react-native/interactionManager.ts +76 -0
- package/src/react-native/keyboard.ts +60 -0
- package/src/react-native/linearGradient.ts +94 -0
- package/src/react-native/modal.tsx +148 -0
- package/src/react-native/nativeHostContext.ts +80 -0
- package/src/react-native/nativeModules.ts +86 -0
- package/src/react-native/nativeRoot.types.ts +22 -0
- package/src/react-native/nativeViewHandle.ts +191 -0
- package/src/react-native/nativewindPressable.ts +38 -0
- package/src/react-native/panResponder.ts +73 -0
- package/src/react-native/primitives.ts +685 -0
- package/src/react-native/safeArea.ts +76 -0
- package/src/react-native/scrollView.ts +289 -0
- package/src/react-native/styleInterop.ts +8 -0
- package/src/react-native/styleSheet.ts +54 -0
- package/src/react-native/textInput.ts +334 -0
- package/src/react-native/unsupported.ts +25 -0
- package/src/renderer/SceneRoot.ts +1006 -0
- package/src/scene/SdkDeviceFacts.ts +151 -0
- package/src/scene/SdkDeviceServices.ts +72 -0
- package/src/scene/SdkSceneGraph.ts +124 -0
- package/src/scene/SdkTextEntry.ts +321 -0
- package/src/scene/SdkTextMetrics.ts +136 -0
- package/src/scene/SdkTextRasterTransport.ts +191 -0
- package/src/scene/SdkWebTransport.ts +122 -0
- package/src/scene/createRokuHost.ts +213 -0
- package/src/scene/sceneGraph.types.ts +38 -0
- package/src/services/DeviceServices.ts +53 -0
- package/src/services/RegistryStorage.ts +85 -0
- package/src/services/RokuKeySession.ts +29 -0
- package/src/services/asyncStorage.ts +23 -0
- package/src/services/base64.ts +52 -0
- package/src/services/crypto.ts +18 -0
- package/src/services/expoConstants.ts +11 -0
- package/src/services/expoLinking.ts +12 -0
- package/src/services/expoStatusBar.ts +4 -0
- package/src/services/installWebRuntime.ts +105 -0
- package/src/services/intlEnglish.ts +54 -0
- package/src/services/languageRuntime.ts +65 -0
- package/src/services/nativeTimers.ts +96 -0
- package/src/services/secureStore.ts +23 -0
- package/src/services/textEntryRequest.ts +22 -0
- package/src/services/utf8.ts +57 -0
- package/src/services/webRuntime.ts +346 -0
- package/src/testing/CanvasResources.ts +141 -0
- package/src/testing/CanvasSceneGraph.ts +496 -0
- package/src/testing/CanvasTextEntry.ts +237 -0
- package/src/testing/PreviewTextObservations.ts +82 -0
- package/src/testing/RecordingSceneGraph.ts +136 -0
- package/src/types/normalize-colors.d.ts +4 -0
- package/src/vector/dynamicSvg.tsx +226 -0
- package/src/vector/svg.ts +222 -0
- package/src/vector/svg.types.ts +4 -0
- package/src/vector/svgElements.ts +58 -0
- package/src/vector/svgKey.d.mts +4 -0
- package/src/vector/svgKey.mjs +16 -0
- package/src/vector/svgPath.ts +157 -0
- package/src/vector/svgPixels.ts +133 -0
- package/tsconfig.consumer.json +29 -0
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { resolve } from "node:path";
|
|
4
|
+
import { fontVariantFamily } from "../src/layout/fontVariants.mjs";
|
|
5
|
+
import { prepareFontFamilies } from "../src/layout/fontFaces.mjs";
|
|
6
|
+
|
|
7
|
+
// OpenType: https://learn.microsoft.com/en-us/typography/opentype/spec/gsub
|
|
8
|
+
// https://learn.microsoft.com/en-us/typography/opentype/spec/cmap
|
|
9
|
+
// This deliberately bounded derivative handles static TrueType single-glyph
|
|
10
|
+
// tnum substitutions. Contextual shaping/variable fonts need a different owner.
|
|
11
|
+
const fail = (message) => {
|
|
12
|
+
throw Error(`C04_FONT_VARIANT_BUILD: ${message}`);
|
|
13
|
+
};
|
|
14
|
+
const requireValue = (value, message) => {
|
|
15
|
+
if (!value) fail(message);
|
|
16
|
+
};
|
|
17
|
+
const hash = (bytes) => createHash("sha256").update(bytes).digest("hex");
|
|
18
|
+
function tableReader(bytes) {
|
|
19
|
+
const range = (offset, length) => {
|
|
20
|
+
requireValue(
|
|
21
|
+
Number.isSafeInteger(offset) &&
|
|
22
|
+
Number.isSafeInteger(length) &&
|
|
23
|
+
offset >= 0 &&
|
|
24
|
+
length >= 0 &&
|
|
25
|
+
offset + length <= bytes.length,
|
|
26
|
+
"Font table is truncated",
|
|
27
|
+
);
|
|
28
|
+
return bytes.subarray(offset, offset + length);
|
|
29
|
+
};
|
|
30
|
+
return {
|
|
31
|
+
bytes,
|
|
32
|
+
range,
|
|
33
|
+
u16: (offset) => range(offset, 2).readUInt16BE(),
|
|
34
|
+
i16: (offset) => range(offset, 2).readInt16BE(),
|
|
35
|
+
u32: (offset) => range(offset, 4).readUInt32BE(),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function readFont(input) {
|
|
39
|
+
requireValue(
|
|
40
|
+
input instanceof Uint8Array && input.length >= 12 && input.length <= 32 * 1024 * 1024,
|
|
41
|
+
"Use a bounded static TrueType font",
|
|
42
|
+
);
|
|
43
|
+
const font = tableReader(Buffer.from(input));
|
|
44
|
+
requireValue(font.u32(0) === 0x00010000, "Only standalone TrueType outlines are admitted");
|
|
45
|
+
const tables = new Map();
|
|
46
|
+
const count = font.u16(4);
|
|
47
|
+
requireValue(count > 0 && count <= 256, "Invalid font table count");
|
|
48
|
+
for (let i = 0; i < count; i++) {
|
|
49
|
+
const offset = 12 + i * 16,
|
|
50
|
+
tag = font.range(offset, 4).toString("ascii");
|
|
51
|
+
requireValue(!tables.has(tag), "Duplicate font table");
|
|
52
|
+
tables.set(tag, tableReader(font.range(font.u32(offset + 8), font.u32(offset + 12))));
|
|
53
|
+
}
|
|
54
|
+
for (const tag of ["cmap", "GSUB", "head", "hhea", "hmtx", "maxp", "name", "glyf", "loca"])
|
|
55
|
+
requireValue(tables.has(tag), `Missing ${tag} table`);
|
|
56
|
+
requireValue(!tables.has("fvar"), "Variable fonts are not admitted");
|
|
57
|
+
return tables;
|
|
58
|
+
}
|
|
59
|
+
function characterMap(cmap) {
|
|
60
|
+
const candidates = [];
|
|
61
|
+
for (let i = 0; i < cmap.u16(2); i++) {
|
|
62
|
+
const entry = 4 + 8 * i,
|
|
63
|
+
platform = cmap.u16(entry),
|
|
64
|
+
encoding = cmap.u16(entry + 2),
|
|
65
|
+
offset = cmap.u32(entry + 4);
|
|
66
|
+
if (platform !== 0 && !(platform === 3 && [1, 10].includes(encoding))) continue;
|
|
67
|
+
const format = cmap.u16(offset);
|
|
68
|
+
requireValue(
|
|
69
|
+
format !== 14,
|
|
70
|
+
"Variation selector mappings require a reviewed derivation profile",
|
|
71
|
+
);
|
|
72
|
+
if ([4, 12].includes(format)) candidates.push({ offset, format });
|
|
73
|
+
}
|
|
74
|
+
candidates.sort((a, b) => b.format - a.format);
|
|
75
|
+
requireValue(candidates.length, "A Unicode format 4 or 12 character map is required");
|
|
76
|
+
const { offset: base, format } = candidates[0],
|
|
77
|
+
result = new Map();
|
|
78
|
+
const put = (cp, glyph) => {
|
|
79
|
+
requireValue(cp <= 0x10ffff && glyph >= 0 && glyph <= 0xffff, "Invalid Unicode/glyph mapping");
|
|
80
|
+
if (glyph) result.set(cp, glyph);
|
|
81
|
+
};
|
|
82
|
+
if (format === 12) {
|
|
83
|
+
const count = cmap.u32(base + 12);
|
|
84
|
+
requireValue(count <= 0x110000, "Character map exceeds the Unicode budget");
|
|
85
|
+
let previous = -1;
|
|
86
|
+
for (let i = 0; i < count; i++) {
|
|
87
|
+
const p = base + 16 + 12 * i,
|
|
88
|
+
first = cmap.u32(p),
|
|
89
|
+
last = cmap.u32(p + 4),
|
|
90
|
+
glyph = cmap.u32(p + 8);
|
|
91
|
+
requireValue(
|
|
92
|
+
first > previous && last >= first && last <= 0x10ffff,
|
|
93
|
+
"Unordered character map ranges",
|
|
94
|
+
);
|
|
95
|
+
for (let cp = first; cp <= last; cp++) put(cp, glyph + cp - first);
|
|
96
|
+
previous = last;
|
|
97
|
+
}
|
|
98
|
+
} else {
|
|
99
|
+
const count = cmap.u16(base + 6) / 2;
|
|
100
|
+
requireValue(Number.isInteger(count) && count > 0, "Invalid character map segments");
|
|
101
|
+
const ends = base + 14,
|
|
102
|
+
starts = ends + 2 * count + 2,
|
|
103
|
+
deltas = starts + 2 * count,
|
|
104
|
+
offsets = deltas + 2 * count;
|
|
105
|
+
let previous = -1;
|
|
106
|
+
for (let i = 0; i < count; i++) {
|
|
107
|
+
const first = cmap.u16(starts + i * 2),
|
|
108
|
+
last = cmap.u16(ends + i * 2),
|
|
109
|
+
delta = cmap.i16(deltas + i * 2),
|
|
110
|
+
offset = cmap.u16(offsets + i * 2);
|
|
111
|
+
requireValue(first > previous && last >= first, "Unordered character map segments");
|
|
112
|
+
for (let cp = first; cp <= last && cp < 0xffff; cp++) {
|
|
113
|
+
const glyph = offset ? cmap.u16(offsets + i * 2 + offset + 2 * (cp - first)) : cp;
|
|
114
|
+
put(cp, offset && !glyph ? 0 : (glyph + delta) & 0xffff);
|
|
115
|
+
}
|
|
116
|
+
previous = last;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return result;
|
|
120
|
+
}
|
|
121
|
+
function coverage(table, base) {
|
|
122
|
+
const format = table.u16(base),
|
|
123
|
+
count = table.u16(base + 2),
|
|
124
|
+
result = [];
|
|
125
|
+
if (format === 1) for (let i = 0; i < count; i++) result.push(table.u16(base + 4 + 2 * i));
|
|
126
|
+
else if (format === 2)
|
|
127
|
+
for (let i = 0; i < count; i++) {
|
|
128
|
+
const p = base + 4 + i * 6,
|
|
129
|
+
first = table.u16(p),
|
|
130
|
+
last = table.u16(p + 2);
|
|
131
|
+
requireValue(
|
|
132
|
+
first <= last && table.u16(p + 4) === result.length,
|
|
133
|
+
"Invalid feature coverage range",
|
|
134
|
+
);
|
|
135
|
+
for (let glyph = first; glyph <= last; glyph++) result.push(glyph);
|
|
136
|
+
requireValue(result.length <= 65536, "Feature coverage exceeds glyph budget");
|
|
137
|
+
}
|
|
138
|
+
else fail("Unsupported feature coverage format");
|
|
139
|
+
requireValue(
|
|
140
|
+
result.every((value, index) => index === 0 || value > result[index - 1]),
|
|
141
|
+
"Unordered feature coverage",
|
|
142
|
+
);
|
|
143
|
+
return result;
|
|
144
|
+
}
|
|
145
|
+
function tabularLookups(gsub) {
|
|
146
|
+
requireValue(gsub.u16(0) === 1, "Unsupported GSUB version");
|
|
147
|
+
requireValue(
|
|
148
|
+
gsub.u16(2) === 0 || (gsub.u16(2) === 1 && gsub.u32(10) === 0),
|
|
149
|
+
"Conditional feature variations require review",
|
|
150
|
+
);
|
|
151
|
+
const features = gsub.u16(6),
|
|
152
|
+
lookups = gsub.u16(8),
|
|
153
|
+
indexes = new Set();
|
|
154
|
+
let profile;
|
|
155
|
+
for (let i = 0; i < gsub.u16(features); i++) {
|
|
156
|
+
const p = features + 2 + i * 6;
|
|
157
|
+
if (gsub.range(p, 4).toString("ascii") !== "tnum") continue;
|
|
158
|
+
const f = features + gsub.u16(p + 4);
|
|
159
|
+
requireValue(gsub.u16(f) === 0, "Feature parameters require review");
|
|
160
|
+
const selected = Array.from({ length: gsub.u16(f + 2) }, (_, j) => gsub.u16(f + 4 + 2 * j));
|
|
161
|
+
requireValue(
|
|
162
|
+
selected.every((value, index) => index === 0 || value > selected[index - 1]),
|
|
163
|
+
"Unordered feature lookups require review",
|
|
164
|
+
);
|
|
165
|
+
requireValue(
|
|
166
|
+
profile === undefined || profile === JSON.stringify(selected),
|
|
167
|
+
"Language-specific tnum profiles require review",
|
|
168
|
+
);
|
|
169
|
+
profile = JSON.stringify(selected);
|
|
170
|
+
for (const index of selected) indexes.add(index);
|
|
171
|
+
}
|
|
172
|
+
requireValue(indexes.size, "Font has no tnum substitution feature");
|
|
173
|
+
return [...indexes].map((index) => {
|
|
174
|
+
requireValue(index < gsub.u16(lookups), "Feature references an absent lookup");
|
|
175
|
+
const base = lookups + gsub.u16(lookups + 2 + 2 * index),
|
|
176
|
+
kind = gsub.u16(base),
|
|
177
|
+
result = new Map();
|
|
178
|
+
requireValue(gsub.u16(base + 2) === 0, "Filtered/contextual feature lookups are not admitted");
|
|
179
|
+
requireValue(kind === 1 || kind === 7, "Only single-glyph tnum substitutions are admitted");
|
|
180
|
+
for (let i = 0; i < gsub.u16(base + 4); i++) {
|
|
181
|
+
let sub = base + gsub.u16(base + 6 + 2 * i);
|
|
182
|
+
if (kind === 7) {
|
|
183
|
+
requireValue(
|
|
184
|
+
gsub.u16(sub) === 1 && gsub.u16(sub + 2) === 1,
|
|
185
|
+
"Only extension single substitutions are admitted",
|
|
186
|
+
);
|
|
187
|
+
sub += gsub.u32(sub + 4);
|
|
188
|
+
}
|
|
189
|
+
const format = gsub.u16(sub),
|
|
190
|
+
covered = coverage(gsub, sub + gsub.u16(sub + 2));
|
|
191
|
+
requireValue(format === 1 || format === 2, "Unsupported single substitution format");
|
|
192
|
+
if (format === 2)
|
|
193
|
+
requireValue(gsub.u16(sub + 4) === covered.length, "Feature coverage count differs");
|
|
194
|
+
for (const [i, glyph] of covered.entries()) {
|
|
195
|
+
requireValue(!result.has(glyph), "Overlapping feature subtables require review");
|
|
196
|
+
result.set(
|
|
197
|
+
glyph,
|
|
198
|
+
format === 1 ? (glyph + gsub.i16(sub + 4)) & 0xffff : gsub.u16(sub + 6 + 2 * i),
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return result;
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
function encodeCmap(mapping) {
|
|
206
|
+
const entries = [...mapping].sort((a, b) => a[0] - b[0]),
|
|
207
|
+
groups = [];
|
|
208
|
+
for (const [cp, glyph] of entries) {
|
|
209
|
+
const previous = groups.at(-1);
|
|
210
|
+
if (previous && cp === previous[1] + 1 && glyph === previous[2] + cp - previous[0])
|
|
211
|
+
previous[1] = cp;
|
|
212
|
+
else groups.push([cp, cp, glyph]);
|
|
213
|
+
}
|
|
214
|
+
const wide = Buffer.alloc(16 + groups.length * 12);
|
|
215
|
+
wide.writeUInt16BE(12);
|
|
216
|
+
wide.writeUInt32BE(wide.length, 4);
|
|
217
|
+
wide.writeUInt32BE(groups.length, 12);
|
|
218
|
+
groups.forEach((group, i) =>
|
|
219
|
+
group.forEach((value, j) => wide.writeUInt32BE(value, 16 + i * 12 + j * 4)),
|
|
220
|
+
);
|
|
221
|
+
const segments = [];
|
|
222
|
+
for (const [cp, glyph] of entries.filter(([cp]) => cp < 0xffff)) {
|
|
223
|
+
const delta = (glyph - cp) & 0xffff,
|
|
224
|
+
previous = segments.at(-1);
|
|
225
|
+
if (previous && cp === previous[1] + 1 && delta === previous[2]) previous[1] = cp;
|
|
226
|
+
else segments.push([cp, cp, delta]);
|
|
227
|
+
}
|
|
228
|
+
segments.push([0xffff, 0xffff, 1]);
|
|
229
|
+
const n = segments.length,
|
|
230
|
+
narrow = Buffer.alloc(16 + 8 * n);
|
|
231
|
+
requireValue(narrow.length <= 65535, "BMP character map exceeds format 4 capacity");
|
|
232
|
+
narrow.writeUInt16BE(4);
|
|
233
|
+
narrow.writeUInt16BE(narrow.length, 2);
|
|
234
|
+
narrow.writeUInt16BE(n * 2, 6);
|
|
235
|
+
const power = 2 ** Math.floor(Math.log2(n));
|
|
236
|
+
narrow.writeUInt16BE(power * 2, 8);
|
|
237
|
+
narrow.writeUInt16BE(Math.log2(power), 10);
|
|
238
|
+
narrow.writeUInt16BE(n * 2 - power * 2, 12);
|
|
239
|
+
segments.forEach(([first, last, delta], i) => {
|
|
240
|
+
narrow.writeUInt16BE(last, 14 + 2 * i);
|
|
241
|
+
narrow.writeUInt16BE(first, 16 + 2 * n + 2 * i);
|
|
242
|
+
narrow.writeUInt16BE(delta, 16 + 4 * n + 2 * i);
|
|
243
|
+
});
|
|
244
|
+
const header = Buffer.alloc(36);
|
|
245
|
+
header.writeUInt16BE(4, 2);
|
|
246
|
+
[
|
|
247
|
+
[0, 3, 36],
|
|
248
|
+
[0, 4, 36 + narrow.length],
|
|
249
|
+
[3, 1, 36],
|
|
250
|
+
[3, 10, 36 + narrow.length],
|
|
251
|
+
].forEach(([platform, encoding, offset], i) => {
|
|
252
|
+
header.writeUInt16BE(platform, 4 + 8 * i);
|
|
253
|
+
header.writeUInt16BE(encoding, 6 + 8 * i);
|
|
254
|
+
header.writeUInt32BE(offset, 8 + 8 * i);
|
|
255
|
+
});
|
|
256
|
+
return Buffer.concat([header, narrow, wide]);
|
|
257
|
+
}
|
|
258
|
+
function renamed(table, family) {
|
|
259
|
+
requireValue(table.u16(0) === 0, "Only format 0 font names are admitted");
|
|
260
|
+
const count = table.u16(2),
|
|
261
|
+
storage = table.u16(4),
|
|
262
|
+
records = [],
|
|
263
|
+
strings = [];
|
|
264
|
+
requireValue(6 + 12 * count <= 65535, "Font names exceed header offset budget");
|
|
265
|
+
let total = 0;
|
|
266
|
+
for (let i = 0; i < count; i++) {
|
|
267
|
+
const p = 6 + 12 * i,
|
|
268
|
+
record = Buffer.from(table.range(p, 12)),
|
|
269
|
+
platform = table.u16(p),
|
|
270
|
+
name = table.u16(p + 6);
|
|
271
|
+
let bytes = Buffer.from(table.range(storage + table.u16(p + 10), table.u16(p + 8)));
|
|
272
|
+
if ([1, 3, 4, 6, 16, 18, 21].includes(name)) {
|
|
273
|
+
requireValue([0, 1, 3].includes(platform), "Unknown font name encoding");
|
|
274
|
+
bytes = Buffer.from(family, platform === 1 ? "ascii" : "utf16le");
|
|
275
|
+
if (platform !== 1) bytes.swap16();
|
|
276
|
+
}
|
|
277
|
+
requireValue(total + bytes.length <= 65535, "Font name table exceeds offset budget");
|
|
278
|
+
record.writeUInt16BE(bytes.length, 8);
|
|
279
|
+
record.writeUInt16BE(total, 10);
|
|
280
|
+
total += bytes.length;
|
|
281
|
+
records.push(record);
|
|
282
|
+
strings.push(bytes);
|
|
283
|
+
}
|
|
284
|
+
const header = Buffer.alloc(6);
|
|
285
|
+
header.writeUInt16BE(count, 2);
|
|
286
|
+
header.writeUInt16BE(6 + 12 * count, 4);
|
|
287
|
+
return Buffer.concat([header, ...records, ...strings]);
|
|
288
|
+
}
|
|
289
|
+
function checksum(bytes) {
|
|
290
|
+
let result = 0;
|
|
291
|
+
for (let i = 0; i < bytes.length; i += 4) {
|
|
292
|
+
let word = 0;
|
|
293
|
+
for (let j = 0; j < 4; j++) word = (word * 256 + (bytes[i + j] ?? 0)) >>> 0;
|
|
294
|
+
result = (result + word) >>> 0;
|
|
295
|
+
}
|
|
296
|
+
return result;
|
|
297
|
+
}
|
|
298
|
+
function encodeFont(tables) {
|
|
299
|
+
const ordered = [...tables]
|
|
300
|
+
.filter(([tag]) => tag !== "DSIG")
|
|
301
|
+
.sort(([a], [b]) => a.localeCompare(b));
|
|
302
|
+
const count = ordered.length,
|
|
303
|
+
directory = Buffer.alloc(12 + 16 * count),
|
|
304
|
+
power = 2 ** Math.floor(Math.log2(count));
|
|
305
|
+
directory.writeUInt32BE(0x00010000);
|
|
306
|
+
directory.writeUInt16BE(count, 4);
|
|
307
|
+
directory.writeUInt16BE(power * 16, 6);
|
|
308
|
+
directory.writeUInt16BE(Math.log2(power), 8);
|
|
309
|
+
directory.writeUInt16BE(count * 16 - power * 16, 10);
|
|
310
|
+
const data = [];
|
|
311
|
+
let offset = directory.length,
|
|
312
|
+
headOffset;
|
|
313
|
+
ordered.forEach(([tag, table], i) => {
|
|
314
|
+
const bytes = Buffer.from(table.bytes ?? table),
|
|
315
|
+
p = 12 + 16 * i;
|
|
316
|
+
if (tag === "head") {
|
|
317
|
+
requireValue(bytes.length >= 54, "Truncated font header");
|
|
318
|
+
bytes.writeUInt32BE(0, 8);
|
|
319
|
+
headOffset = offset;
|
|
320
|
+
}
|
|
321
|
+
directory.write(tag, p, 4, "ascii");
|
|
322
|
+
directory.writeUInt32BE(checksum(bytes), p + 4);
|
|
323
|
+
directory.writeUInt32BE(offset, p + 8);
|
|
324
|
+
directory.writeUInt32BE(bytes.length, p + 12);
|
|
325
|
+
const padding = Buffer.alloc((4 - (bytes.length % 4)) % 4);
|
|
326
|
+
data.push(bytes, padding);
|
|
327
|
+
offset += bytes.length + padding.length;
|
|
328
|
+
});
|
|
329
|
+
const result = Buffer.concat([directory, ...data]);
|
|
330
|
+
result.writeUInt32BE((0xb1b0afba - checksum(result)) >>> 0, headOffset + 8);
|
|
331
|
+
return result;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/** Bake the font's real tnum glyph substitution into a renamed static asset.
|
|
335
|
+
* Never changes outlines, advances or license records. No shaping approximation. */
|
|
336
|
+
export function deriveTabularFont(input) {
|
|
337
|
+
const tables = readFont(input),
|
|
338
|
+
original = characterMap(tables.get("cmap")),
|
|
339
|
+
lookups = tabularLookups(tables.get("GSUB"));
|
|
340
|
+
const glyphCount = tables.get("maxp").u16(4),
|
|
341
|
+
mapping = new Map(original);
|
|
342
|
+
for (const [cp, initial] of mapping) {
|
|
343
|
+
let glyph = initial;
|
|
344
|
+
for (const lookup of lookups) glyph = lookup.get(glyph) ?? glyph;
|
|
345
|
+
requireValue(glyph < glyphCount, "Substitution references an absent glyph");
|
|
346
|
+
mapping.set(cp, glyph);
|
|
347
|
+
}
|
|
348
|
+
const metricCount = tables.get("hhea").u16(34),
|
|
349
|
+
metrics = tables.get("hmtx");
|
|
350
|
+
const widths = Array.from({ length: 10 }, (_, i) => {
|
|
351
|
+
const glyph = mapping.get(48 + i);
|
|
352
|
+
requireValue(glyph > 0 && metricCount > 0, "Tabular font needs decimal digit glyphs");
|
|
353
|
+
return metrics.u16(Math.min(glyph, metricCount - 1) * 4);
|
|
354
|
+
});
|
|
355
|
+
requireValue(
|
|
356
|
+
widths.every((width) => width > 0 && width === widths[0]),
|
|
357
|
+
"tnum feature does not yield equal decimal advances",
|
|
358
|
+
);
|
|
359
|
+
const family = `RNRVariant-${hash(input).slice(0, 16)}-tnum`;
|
|
360
|
+
tables.set("cmap", encodeCmap(mapping));
|
|
361
|
+
tables.set("name", renamed(tables.get("name"), family));
|
|
362
|
+
return {
|
|
363
|
+
bytes: encodeFont(tables),
|
|
364
|
+
family,
|
|
365
|
+
sourceSha256: hash(input),
|
|
366
|
+
digitAdvance: widths[0],
|
|
367
|
+
characters: mapping.size,
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/** Prepare ordinary and explicitly requested variant faces in one owned build
|
|
372
|
+
* directory. All sources/derivatives are validated before any font is written. */
|
|
373
|
+
export function prepareRokuFontAssets({ assets, families, variants = [], outputDirectory }) {
|
|
374
|
+
variants ??= [];
|
|
375
|
+
requireValue(
|
|
376
|
+
typeof outputDirectory === "string" && outputDirectory.length > 0,
|
|
377
|
+
"Choose a font output directory",
|
|
378
|
+
);
|
|
379
|
+
fontVariantFamily("validation", variants);
|
|
380
|
+
requireValue(assets && Object.keys(assets).length > 0, "Supply font assets");
|
|
381
|
+
const preparedFamilies = prepareFontFamilies(assets, families);
|
|
382
|
+
const faces = [],
|
|
383
|
+
sources = new Set();
|
|
384
|
+
for (const [index, [family, path]] of Object.entries(assets).entries()) {
|
|
385
|
+
requireValue(family.length > 0 && typeof path === "string", "Use named font file paths");
|
|
386
|
+
const source = resolve(path),
|
|
387
|
+
bytes = readFileSync(source);
|
|
388
|
+
sources.add(source);
|
|
389
|
+
faces.push({
|
|
390
|
+
family,
|
|
391
|
+
file: `font-${index}.ttf`,
|
|
392
|
+
bytes,
|
|
393
|
+
sourceSha256: hash(bytes),
|
|
394
|
+
features: [],
|
|
395
|
+
});
|
|
396
|
+
if (variants.length) {
|
|
397
|
+
requireValue(!family.includes("::"), "Variant family namespace is reserved");
|
|
398
|
+
const { family: fontFamily, ...derived } = deriveTabularFont(bytes);
|
|
399
|
+
faces.push({
|
|
400
|
+
family: fontVariantFamily(family, variants),
|
|
401
|
+
file: `font-${index}-tabular-nums.ttf`,
|
|
402
|
+
...derived,
|
|
403
|
+
features: ["tnum"],
|
|
404
|
+
fontFamily,
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
for (const face of faces)
|
|
409
|
+
requireValue(
|
|
410
|
+
!sources.has(resolve(outputDirectory, face.file)),
|
|
411
|
+
"Output must not overwrite a font source",
|
|
412
|
+
);
|
|
413
|
+
mkdirSync(outputDirectory, { recursive: true });
|
|
414
|
+
const prepared = faces.map(({ bytes, file, ...face }) => {
|
|
415
|
+
const path = resolve(outputDirectory, file);
|
|
416
|
+
writeFileSync(path, bytes);
|
|
417
|
+
return { ...face, path, sha256: hash(bytes) };
|
|
418
|
+
});
|
|
419
|
+
return {
|
|
420
|
+
assets: Object.fromEntries(prepared.map((face) => [face.family, face.path])),
|
|
421
|
+
families: preparedFamilies,
|
|
422
|
+
faces: prepared,
|
|
423
|
+
};
|
|
424
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { BuildOptions, BuildResult } from "esbuild";
|
|
2
|
+
import type { RokuBuildProfile } from "./environment.mjs";
|
|
3
|
+
export { createRokuMetroRefreshSession, writeRokuRefreshBootstrap } from "./metroRefresh.mjs";
|
|
4
|
+
export type {
|
|
5
|
+
RokuRefreshPlan,
|
|
6
|
+
RokuMetroRefreshGraph,
|
|
7
|
+
RokuMetroRefreshSession,
|
|
8
|
+
RokuMetroRefreshContext,
|
|
9
|
+
} from "./metroRefresh.mjs";
|
|
10
|
+
export declare function buildRokuMetroModules(options: {
|
|
11
|
+
root?: string;
|
|
12
|
+
entry: string;
|
|
13
|
+
outfile: string;
|
|
14
|
+
profile?: RokuBuildProfile;
|
|
15
|
+
configPath?: string;
|
|
16
|
+
configuration?: object;
|
|
17
|
+
workDirectory?: string;
|
|
18
|
+
exports?: readonly string[];
|
|
19
|
+
maxModuleBytes?: number;
|
|
20
|
+
imageAssets?: Omit<import("./assets.cjs").RokuImageAssetsOptions, "root" | "reset">;
|
|
21
|
+
refresh?: import("./metroRefresh.mjs").RokuMetroRefreshContext;
|
|
22
|
+
}): Promise<{
|
|
23
|
+
outfile: string;
|
|
24
|
+
modules: number;
|
|
25
|
+
entryModuleId: number | string;
|
|
26
|
+
files: Array<{ path: string; bytes: number; sha256: string }>;
|
|
27
|
+
profile: RokuBuildProfile;
|
|
28
|
+
bundler: "metro";
|
|
29
|
+
bundle: string;
|
|
30
|
+
bundleSha256: string;
|
|
31
|
+
sourceMap: string;
|
|
32
|
+
sources: string[];
|
|
33
|
+
assets: Array<{
|
|
34
|
+
files: string[];
|
|
35
|
+
scales: number[];
|
|
36
|
+
name: string;
|
|
37
|
+
type: string;
|
|
38
|
+
hash: string;
|
|
39
|
+
width?: number;
|
|
40
|
+
height?: number;
|
|
41
|
+
[property: string]: unknown;
|
|
42
|
+
}>;
|
|
43
|
+
imageAssets?: Record<string, import("./assets.cjs").RokuImageAssetRecord>;
|
|
44
|
+
imagePreparationPasses?: number;
|
|
45
|
+
refreshGraph?: import("./metroRefresh.mjs").RokuMetroRefreshGraph;
|
|
46
|
+
metafile: import("esbuild").Metafile;
|
|
47
|
+
intl: Array<{ path: string; sha256: string; files: string[] }>;
|
|
48
|
+
}>;
|
|
49
|
+
export declare function buildRokuReactModules(
|
|
50
|
+
configuration: BuildOptions,
|
|
51
|
+
options?: { partition?: boolean; maxModuleBytes?: number },
|
|
52
|
+
): Promise<BuildResult<{ metafile: true }>>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { basename, relative, resolve, sep } from "node:path";
|
|
2
|
+
import { rmSync } from "node:fs";
|
|
3
|
+
export { buildRokuMetroModules } from "./metroFrontend.mjs";
|
|
4
|
+
export { createRokuMetroRefreshSession, writeRokuRefreshBootstrap } from "./metroRefresh.mjs";
|
|
5
|
+
|
|
6
|
+
/** SDK transformations run per input module. Bound frontend modules for every
|
|
7
|
+
* consumer while retaining a single application entry and linker-owned state. */
|
|
8
|
+
export async function buildRokuReactModules(
|
|
9
|
+
configuration,
|
|
10
|
+
{ partition = true, maxModuleBytes = 2 * 1024 * 1024 } = {},
|
|
11
|
+
) {
|
|
12
|
+
const { build } = await import("esbuild");
|
|
13
|
+
const root = configuration.absWorkingDir ?? process.cwd();
|
|
14
|
+
if (
|
|
15
|
+
!configuration.outfile ||
|
|
16
|
+
!Array.isArray(configuration.entryPoints) ||
|
|
17
|
+
configuration.entryPoints.length !== 1 ||
|
|
18
|
+
typeof configuration.entryPoints[0] !== "string"
|
|
19
|
+
)
|
|
20
|
+
throw Error("A Roku React frontend needs one file entry and an outfile");
|
|
21
|
+
if (!Number.isSafeInteger(maxModuleBytes) || maxModuleBytes <= 0)
|
|
22
|
+
throw Error("Invalid frontend module budget");
|
|
23
|
+
let result = await build({ ...configuration, metafile: true });
|
|
24
|
+
if (!partition) return result;
|
|
25
|
+
const written = new Set();
|
|
26
|
+
const remember = (value) => {
|
|
27
|
+
if (configuration.write !== false)
|
|
28
|
+
for (const path of Object.keys(value.metafile.outputs)) written.add(resolve(root, path));
|
|
29
|
+
};
|
|
30
|
+
const finish = (value) => {
|
|
31
|
+
const retained = new Set(
|
|
32
|
+
Object.keys(value.metafile.outputs).map((path) => resolve(root, path)),
|
|
33
|
+
);
|
|
34
|
+
// Only retire files written by this invocation. Other output files and
|
|
35
|
+
// buffered builds remain owned by the caller's generation policy.
|
|
36
|
+
for (const path of written) if (!retained.has(path)) rmSync(path, { force: true });
|
|
37
|
+
return value;
|
|
38
|
+
};
|
|
39
|
+
const oversizedModules = (value) =>
|
|
40
|
+
Object.entries(value.metafile.outputs).filter(
|
|
41
|
+
([path, file]) => /\.[cm]?js$/.test(path) && file.bytes > maxModuleBytes,
|
|
42
|
+
);
|
|
43
|
+
remember(result);
|
|
44
|
+
if (!oversizedModules(result).length) return finish(result);
|
|
45
|
+
const output = resolve(root, configuration.outfile);
|
|
46
|
+
const weights = Object.entries(
|
|
47
|
+
result.metafile.outputs[relative(root, output).split(sep).join("/")]?.inputs ?? {},
|
|
48
|
+
)
|
|
49
|
+
.filter(([path]) => /\.[cm]?[jt]sx?$/.test(path) && !path.startsWith("<"))
|
|
50
|
+
.sort((a, b) => b[1].bytesInOutput - a[1].bytesInOutput);
|
|
51
|
+
let oversized = [];
|
|
52
|
+
for (const count of [128, 256, 512]) {
|
|
53
|
+
const anchors = weights.slice(0, count).map(([path]) => resolve(root, path));
|
|
54
|
+
result = await build({
|
|
55
|
+
...configuration,
|
|
56
|
+
metafile: true,
|
|
57
|
+
outfile: undefined,
|
|
58
|
+
outdir: resolve(output, ".."),
|
|
59
|
+
entryPoints: {
|
|
60
|
+
[basename(output).replace(/\.[^.]+$/, "")]: configuration.entryPoints[0],
|
|
61
|
+
...Object.fromEntries(anchors.map((path, index) => [`partitions/module-${index}`, path])),
|
|
62
|
+
},
|
|
63
|
+
splitting: true,
|
|
64
|
+
outExtension: { ".js": ".mjs" },
|
|
65
|
+
chunkNames: "chunks/[name]-[hash]",
|
|
66
|
+
});
|
|
67
|
+
remember(result);
|
|
68
|
+
oversized = oversizedModules(result);
|
|
69
|
+
if (!oversized.length) return finish(result);
|
|
70
|
+
if (anchors.length === weights.length) break;
|
|
71
|
+
}
|
|
72
|
+
throw Error(
|
|
73
|
+
`Review frontend partitioning before SDK transformation: ${oversized.map(([path, value]) => `${path} (${value.bytes} bytes)`).join(", ")}`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Only public build hashes may cross the diagnostic boundary. */
|
|
2
|
+
export function normalizeRokuBuildIdentity(value) {
|
|
3
|
+
if (!value || !/^[A-Za-z][A-Za-z0-9_]*$/.test(value.application ?? ""))
|
|
4
|
+
throw Error("A build identity requires an application identifier");
|
|
5
|
+
const identity = { schema: "react-native-roku-build/v1", application: value.application };
|
|
6
|
+
for (const name of ["inputFingerprint", "runtimeSha256", "frontendGraphSha256"])
|
|
7
|
+
if (value[name] !== undefined) {
|
|
8
|
+
if (!/^[a-f0-9]{64}$/.test(value[name])) throw Error(`Invalid build identity ${name}`);
|
|
9
|
+
identity[name] = value[name];
|
|
10
|
+
}
|
|
11
|
+
return identity;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function isRokuDiagnosticError(line) {
|
|
15
|
+
return /(?:ROKU|RNR)_(?:HOST|RENDER)_ERROR|BRIGHTSCRIPT:\s*ERROR|\b(?:Syntax\s*Error|TypeError|ReferenceError)[:.]|runtime error|Micro Debugger/i.test(
|
|
16
|
+
line,
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export function parseRokuHostDiagnostics(lines) {
|
|
20
|
+
const identities = [],
|
|
21
|
+
ready = [],
|
|
22
|
+
memory = [],
|
|
23
|
+
errors = [];
|
|
24
|
+
for (const line of lines) {
|
|
25
|
+
if (isRokuDiagnosticError(line)) errors.push(line);
|
|
26
|
+
for (const [marker, target] of [
|
|
27
|
+
["RNR_BUILD", identities],
|
|
28
|
+
["RNR_HOST_READY", ready],
|
|
29
|
+
["RNR_HOST_MEMORY", memory],
|
|
30
|
+
]) {
|
|
31
|
+
const index = line.indexOf(marker + " ");
|
|
32
|
+
if (index < 0) continue;
|
|
33
|
+
try {
|
|
34
|
+
const value = JSON.parse(line.slice(index + marker.length).trim());
|
|
35
|
+
if (marker === "RNR_BUILD") {
|
|
36
|
+
if (value.schema !== "react-native-roku-build/v1") continue;
|
|
37
|
+
target.push(normalizeRokuBuildIdentity(value));
|
|
38
|
+
} else if (value && typeof value === "object" && !Array.isArray(value)) target.push(value);
|
|
39
|
+
} catch {
|
|
40
|
+
/* Truncated or malformed output is never identity evidence. */
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return { identities, ready, memory, errors };
|
|
45
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const packageRoot: string;
|
|
2
|
+
export declare const adapterModules: Readonly<Record<string, string>>;
|
|
3
|
+
export declare function resolveAdapter(specifier: string): string | null;
|
|
4
|
+
export declare function resolveRuntime(subpath?: string): string;
|
|
5
|
+
export declare function isRuntimeSource(path: string): boolean;
|
|
6
|
+
export interface RuntimeInput {
|
|
7
|
+
readonly path: string;
|
|
8
|
+
readonly sha256: string;
|
|
9
|
+
}
|
|
10
|
+
export interface NativeComponents {
|
|
11
|
+
readonly AppControl: string;
|
|
12
|
+
readonly TextRaster: string;
|
|
13
|
+
readonly TextRasterTask: string;
|
|
14
|
+
readonly DeviceFacts: string;
|
|
15
|
+
readonly DeviceFactsTask: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const nativeComponents: NativeComponents;
|
|
18
|
+
export declare function prepareNativeComponents(generatedDirectory: string): {
|
|
19
|
+
components: NativeComponents;
|
|
20
|
+
files: RuntimeInput[];
|
|
21
|
+
};
|
|
22
|
+
export declare function runtimeInputs(): RuntimeInput[];
|