basalt-core 0.0.0-rc5 → 0.1.0
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/cli/basalt.d.ts.map +1 -1
- package/dist/cli/basalt.js +18 -1
- package/dist/cli/basalt.js.map +1 -1
- package/dist/cli/bundle-cli.js +0 -0
- package/dist/cli/packageApp.d.ts.map +1 -1
- package/dist/cli/packageApp.js +7 -1
- package/dist/cli/packageApp.js.map +1 -1
- package/dist/metro-config.d.ts.map +1 -1
- package/dist/metro-config.js +53 -5
- package/dist/metro-config.js.map +1 -1
- package/dist/src/KeyHandler.d.ts +1 -1
- package/dist/src/KeyHandler.d.ts.map +1 -1
- package/dist/src/KeyHandler.js.map +1 -1
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/overrides/Alert.d.ts +1 -1
- package/dist/src/overrides/Alert.js +1 -1
- package/dist/src/overrides/BaseViewConfig.d.ts +10 -3
- package/dist/src/overrides/BaseViewConfig.d.ts.map +1 -1
- package/dist/src/overrides/BaseViewConfig.js +21 -3
- package/dist/src/overrides/BaseViewConfig.js.map +1 -1
- package/dist/src/overrides/Button.d.ts +81 -0
- package/dist/src/overrides/Button.d.ts.map +1 -0
- package/dist/src/overrides/Button.js +109 -0
- package/dist/src/overrides/Button.js.map +1 -0
- package/dist/src/overrides/ScrollView.d.ts +25 -2
- package/dist/src/overrides/ScrollView.d.ts.map +1 -1
- package/dist/src/overrides/ScrollView.js +64 -7
- package/dist/src/overrides/ScrollView.js.map +1 -1
- package/dist/src/overrides/Settings.d.ts +81 -0
- package/dist/src/overrides/Settings.d.ts.map +1 -0
- package/dist/src/overrides/Settings.js +120 -0
- package/dist/src/overrides/Settings.js.map +1 -0
- package/dist/src/overrides/processDecelerationRate.d.ts +20 -0
- package/dist/src/overrides/processDecelerationRate.d.ts.map +1 -0
- package/dist/src/overrides/processDecelerationRate.js +31 -0
- package/dist/src/overrides/processDecelerationRate.js.map +1 -0
- package/dist/src/useContextMenu.d.ts +57 -6
- package/dist/src/useContextMenu.d.ts.map +1 -1
- package/dist/src/useContextMenu.js +34 -1
- package/dist/src/useContextMenu.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/native/CMakeLists.txt +51 -0
- package/native/core/ActionSheet.cpp +75 -0
- package/native/core/ActionSheet.h +90 -0
- package/native/core/AppStateHost.cpp +76 -0
- package/native/core/AppStateHost.h +68 -0
- package/native/core/BackgroundLayers.h +282 -0
- package/native/core/BlendModes.h +67 -0
- package/native/core/CoreModules.cpp +380 -11
- package/native/core/CoreModules.h +140 -4
- package/native/core/CrashHandler.cpp +246 -0
- package/native/core/CrashHandler.h +65 -0
- package/native/core/CursorNames.h +110 -0
- package/native/core/DevMenu.cpp +6 -5
- package/native/core/DeviceMetrics.cpp +87 -0
- package/native/core/DeviceMetrics.h +80 -0
- package/native/core/Filters.h +336 -0
- package/native/core/FontFitting.h +183 -0
- package/native/core/FontScaling.h +153 -0
- package/native/core/FontVariants.h +148 -0
- package/native/core/Gradients.h +523 -0
- package/native/core/ImageAnimation.h +109 -0
- package/native/core/ImageBytes.cpp +28 -1
- package/native/core/ImageBytes.h +17 -1
- package/native/core/ImageProgress.h +85 -0
- package/native/core/LabelRegistry.h +189 -0
- package/native/core/LegacyShadow.h +90 -0
- package/native/core/LiveRegions.h +114 -0
- package/native/core/MenuModule.cpp +35 -4
- package/native/core/MountingWalk.h +125 -2
- package/native/core/PlatformServices.h +187 -3
- package/native/core/SafeAreaComponent.cpp +115 -0
- package/native/core/SafeAreaComponent.h +105 -0
- package/native/core/ScreensComponent.cpp +201 -0
- package/native/core/ScreensComponent.h +216 -0
- package/native/core/ScrollBounds.cpp +8 -0
- package/native/core/ScrollBounds.h +14 -0
- package/native/core/ScrollIndicator.h +67 -0
- package/native/core/ScrollMomentum.cpp +24 -0
- package/native/core/ScrollMomentum.h +14 -0
- package/native/core/ScrollSnap.cpp +121 -12
- package/native/core/ScrollSnap.h +45 -0
- package/native/core/ScrollVisiblePosition.cpp +68 -0
- package/native/core/ScrollVisiblePosition.h +101 -0
- package/native/core/SettingsStore.cpp +199 -0
- package/native/core/SettingsStore.h +127 -0
- package/native/core/ShadowShape.h +38 -0
- package/native/core/SystemLocale.cpp +103 -0
- package/native/core/SystemLocale.h +86 -0
- package/native/core/TestDialog.cpp +45 -6
- package/native/core/TestDialog.h +15 -0
- package/native/core/TextAlignments.h +240 -0
- package/native/core/TextChecking.h +133 -0
- package/native/core/TextColors.h +83 -0
- package/native/core/TextDecorations.h +101 -0
- package/native/core/TextDirection.cpp +242 -0
- package/native/core/TextDirection.h +88 -0
- package/native/core/TextHighlight.h +30 -0
- package/native/core/TextSelection.cpp +97 -0
- package/native/core/TextSelection.h +161 -0
- package/native/core/TextShadows.h +96 -0
- package/native/core/TextVerticalAlign.h +33 -0
- package/native/core/UIManagerAccess.cpp +36 -0
- package/native/core/UIManagerAccess.h +28 -0
- package/native/core/WindowBoundsCache.cpp +58 -1
- package/native/core/WindowControl.h +24 -0
- package/native/core/WritingDirections.h +52 -0
- package/native/core/portability_probe.cpp +7 -0
- package/native/tests/RenamedFontFile.h +161 -0
- package/native/tests/TestHarness.cpp +18 -0
- package/native/tests/test_action_sheet.cpp +157 -0
- package/native/tests/test_app_state.cpp +60 -0
- package/native/tests/test_background_layers.cpp +281 -0
- package/native/tests/test_blend_modes.cpp +79 -0
- package/native/tests/test_blobs.cpp +1 -1
- package/native/tests/test_device_metrics.cpp +126 -0
- package/native/tests/test_filters.cpp +271 -0
- package/native/tests/test_font_fitting.cpp +172 -0
- package/native/tests/test_font_scaling.cpp +127 -0
- package/native/tests/test_font_variants.cpp +84 -0
- package/native/tests/test_gradients.cpp +390 -0
- package/native/tests/test_image_animation.cpp +105 -0
- package/native/tests/test_image_progress.cpp +94 -0
- package/native/tests/test_label_registry.cpp +262 -0
- package/native/tests/test_legacy_shadow.cpp +165 -0
- package/native/tests/test_live_regions.cpp +108 -0
- package/native/tests/test_menu_entries.cpp +192 -0
- package/native/tests/test_momentum.cpp +45 -0
- package/native/tests/test_scroll_bounds.cpp +42 -0
- package/native/tests/test_scroll_indicator.cpp +61 -0
- package/native/tests/test_scroll_snap.cpp +129 -0
- package/native/tests/test_scroll_visible_position.cpp +121 -0
- package/native/tests/test_settings_store.cpp +257 -0
- package/native/tests/test_shadow_shape.cpp +47 -0
- package/native/tests/test_system_locale.cpp +36 -0
- package/native/tests/test_text_alignment.cpp +299 -0
- package/native/tests/test_text_checking.cpp +31 -0
- package/native/tests/test_text_colors.cpp +92 -0
- package/native/tests/test_text_decorations.cpp +100 -0
- package/native/tests/test_text_selection.cpp +168 -0
- package/native/tests/test_text_shadows.cpp +132 -0
- package/package.json +4 -2
package/dist/cli/basalt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basalt.d.ts","sourceRoot":"","sources":["../../cli/basalt.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"basalt.d.ts","sourceRoot":"","sources":["../../cli/basalt.ts"],"names":[],"mappings":";AA0CA,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAqB3C"}
|
package/dist/cli/basalt.js
CHANGED
|
@@ -17,10 +17,27 @@ const VERBS = {
|
|
|
17
17
|
init: init_1.main,
|
|
18
18
|
doctor: doctor_1.main,
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
// The binary, not the package. They differ: the package had to be basalt-core
|
|
21
|
+
// because the bare name was taken on npm, and bin names are a separate
|
|
22
|
+
// namespace where it was not. The rename rewrote this string along with every
|
|
23
|
+
// other mention of the old package name, and it is the one place that wanted
|
|
24
|
+
// the command a person types.
|
|
25
|
+
//
|
|
26
|
+
// Both names run this file, and that is not tidiness. `npx <name>` resolves a
|
|
27
|
+
// *package*, and runs its bin only when one of them is named after it -- with
|
|
28
|
+
// `basalt` and `basalt-bundle` alone, `npx basalt-core init` answered "could
|
|
29
|
+
// not determine executable to run", which is how the release rehearsal
|
|
30
|
+
// failed. The other spelling is worse: `basalt` is a real package on npm, a
|
|
31
|
+
// BSON parser belonging to somebody else, so `npx basalt init` in an app that
|
|
32
|
+
// has not installed this one yet offers to fetch *that*. So the documented
|
|
33
|
+
// command is `npx basalt-core`, which can only mean this package, and
|
|
34
|
+
// `basalt` stays for the local bin an installed app already has on its path.
|
|
35
|
+
const USAGE = `npx basalt-core <command> [directory]
|
|
21
36
|
|
|
22
37
|
init configure an app to build for the desktop
|
|
23
38
|
doctor report what a build needs, changing nothing
|
|
39
|
+
|
|
40
|
+
Once the package is installed, \`basalt\` is the same command.
|
|
24
41
|
`;
|
|
25
42
|
function main(argv) {
|
|
26
43
|
const verb = argv[0];
|
package/dist/cli/basalt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basalt.js","sourceRoot":"","sources":["../../cli/basalt.ts"],"names":[],"mappings":";;AACA,4BAA4B;AAC5B,EAAE;AACF,4EAA4E;AAC5E,4EAA4E;AAC5E,8EAA8E;AAC9E,4BAA4B;AAC5B,EAAE;AACF,4EAA4E;AAC5E,+EAA+E;;
|
|
1
|
+
{"version":3,"file":"basalt.js","sourceRoot":"","sources":["../../cli/basalt.ts"],"names":[],"mappings":";;AACA,4BAA4B;AAC5B,EAAE;AACF,4EAA4E;AAC5E,4EAA4E;AAC5E,8EAA8E;AAC9E,4BAA4B;AAC5B,EAAE;AACF,4EAA4E;AAC5E,+EAA+E;;AAiC/E,oBAqBC;AApDD,iCAAwC;AACxC,qCAA4C;AAE5C,MAAM,KAAK,GAAyD;IAClE,IAAI,EAAE,WAAQ;IACd,MAAM,EAAE,aAAU;CACnB,CAAC;AAEF,8EAA8E;AAC9E,uEAAuE;AACvE,8EAA8E;AAC9E,6EAA6E;AAC7E,8BAA8B;AAC9B,EAAE;AACF,8EAA8E;AAC9E,8EAA8E;AAC9E,6EAA6E;AAC7E,uEAAuE;AACvE,4EAA4E;AAC5E,8EAA8E;AAC9E,2EAA2E;AAC3E,sEAAsE;AACtE,6EAA6E;AAC7E,MAAM,KAAK,GAAG;;;;;;CAMb,CAAC;AAEF,SAAgB,IAAI,CAAC,IAAc;IACjC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IAErB,IAAI,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACvD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5B,qEAAqE;QACrE,OAAO,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;IACxB,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAChB,wEAAwE;QACxE,uEAAuE;QACvE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,gCAAgC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,KAAK,EAAE,CAAC,CAAC;QACzF,OAAO,CAAC,CAAC;IACX,CAAC;IAED,yEAAyE;IACzE,0EAA0E;IAC1E,qBAAqB;IACrB,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC;AACnB,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC"}
|
package/dist/cli/bundle-cli.js
CHANGED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageApp.d.ts","sourceRoot":"","sources":["../../cli/packageApp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAQH,+CAA+C;AAC/C,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,OAA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,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,eAAe,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,SAAS,CAAC;IAClB,oFAAoF;IACpF,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAgCF;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CA4D5D;AAUD,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAgD3E;AAwGD;;;;;;GAMG;AACH;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,MAAM,EAAE,SAAS,GAChB,MAAM,GAAG,IAAI,CAoBf;AAED,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,GACX,EAAE,cAAc,GAAG,aAAa,CAehC"}
|
package/dist/cli/packageApp.js
CHANGED
|
@@ -117,7 +117,13 @@ function readAppConfig(projectRoot) {
|
|
|
117
117
|
`com.basalt.${String(slug).replace(/[^A-Za-z0-9-]/g, '-').toLowerCase()}`;
|
|
118
118
|
// `expo.scheme` is a string or a list of them. Everything downstream wants a
|
|
119
119
|
// list, so it becomes one here.
|
|
120
|
-
|
|
120
|
+
//
|
|
121
|
+
// `basalt.scheme` first, for the reason `basalt.identifier` is first above:
|
|
122
|
+
// the `basalt` key is this platform's override, and an app that sets one
|
|
123
|
+
// expects it to win. These two ran opposite ways until 2026-10-02, so an app
|
|
124
|
+
// that set both got its identifier honoured and its scheme ignored, with
|
|
125
|
+
// nothing to say which had happened.
|
|
126
|
+
const scheme = appJson.basalt?.scheme ?? exp?.scheme ?? null;
|
|
121
127
|
const schemes = scheme == null ? [] : Array.isArray(scheme) ? scheme : [scheme];
|
|
122
128
|
return {
|
|
123
129
|
name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageApp.js","sourceRoot":"","sources":["../../cli/packageApp.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0FH,
|
|
1
|
+
{"version":3,"file":"packageApp.js","sourceRoot":"","sources":["../../cli/packageApp.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0FH,sCA4DC;AAUD,8BAgDC;AAuHD,sCAuBC;AAED,gCAqBC;AAlXD,4CAA8B;AAC9B,gDAAkC;AAClC,2DAA6C;AAC7C,6CAA0C;AA4E1C;;;;;;;GAOG;AACH,SAAgB,aAAa,CAAC,WAAmB;IAC/C,IAAI,GAAG,GAAsB,IAAI,CAAC;IAClC,IAAI,CAAC;QACH,MAAM,EAAC,SAAS,EAAC,GAAG,IAAA,2BAAa,EAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,CACvE,aAAa,CAMd,CAAC;QACF,GAAG,GAAG,SAAS,CAAC,WAAW,EAAE;YAC3B,yBAAyB,EAAE,IAAI;YAC/B,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC,GAAG,CAAC;IACT,CAAC;IAAC,MAAM,CAAC;QACP,2EAA2E;IAC7E,CA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ED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,WAAgB,GAAG,WAAW,CAEvE"}
|
package/dist/metro-config.js
CHANGED
|
@@ -213,6 +213,15 @@ exports.PLATFORM_OVERRIDES = [
|
|
|
213
213
|
path.join('Libraries', 'Share', 'Share.js'),
|
|
214
214
|
path.join(OVERRIDE_DIR, 'Share.js'),
|
|
215
215
|
],
|
|
216
|
+
[
|
|
217
|
+
// Also not a shim, and the same shape as Share: `Settings.js` branches on
|
|
218
|
+
// `Platform.OS === 'ios'` and hands everything else `SettingsFallback`,
|
|
219
|
+
// which is four methods that warn and answer null -- so `SettingsManager`
|
|
220
|
+
// was never reached and the audit's note that it threw was wrong. See the
|
|
221
|
+
// header of the replacement.
|
|
222
|
+
path.join('Libraries', 'Settings', 'Settings.js'),
|
|
223
|
+
path.join(OVERRIDE_DIR, 'Settings.js'),
|
|
224
|
+
],
|
|
216
225
|
[
|
|
217
226
|
// React Native's own file, plus the listener the host's developer menu
|
|
218
227
|
// needs: `DevSettings.reload()` is the only way into ReactHost's private
|
|
@@ -247,6 +256,25 @@ exports.PLATFORM_OVERRIDES = [
|
|
|
247
256
|
path.join('Libraries', 'Components', 'View', 'View.js'),
|
|
248
257
|
path.join(OVERRIDE_DIR, 'View.js'),
|
|
249
258
|
],
|
|
259
|
+
[
|
|
260
|
+
// The same missing key as Button's, in two tables of two: `'normal'` and
|
|
261
|
+
// `'fast'` are the two documented spellings of `decelerationRate` and both
|
|
262
|
+
// resolve to `undefined` here, so `BaseScrollViewProps` keeps its own
|
|
263
|
+
// default and a fast scroll view scrolled at the normal rate. See the
|
|
264
|
+
// header of the replacement for why it answers with iOS's pair.
|
|
265
|
+
path.join('Libraries', 'Components', 'ScrollView', 'processDecelerationRate.js'),
|
|
266
|
+
path.join(OVERRIDE_DIR, 'processDecelerationRate.js'),
|
|
267
|
+
],
|
|
268
|
+
[
|
|
269
|
+
// Also not a shim, and this one is a missing *key* rather than a missing
|
|
270
|
+
// branch: React Native's `Button.js` builds its look out of four
|
|
271
|
+
// `Platform.select({ios, android})` tables, and a platform that is neither
|
|
272
|
+
// gets `undefined` from all four -- so `<Button>` renders as black centred
|
|
273
|
+
// text on no background, and a disabled one looks enabled. Measured in a
|
|
274
|
+
// picture on 2026-10-10; see the header of the replacement.
|
|
275
|
+
path.join('Libraries', 'Components', 'Button.js'),
|
|
276
|
+
path.join(OVERRIDE_DIR, 'Button.js'),
|
|
277
|
+
],
|
|
250
278
|
[
|
|
251
279
|
// Also not a shim. `fetch` is broken on this platform without it: every
|
|
252
280
|
// request asks for a blob response, which ReactCxxPlatform's
|
|
@@ -564,7 +592,11 @@ function withDesktopPlatforms(config = {}, options = {}) {
|
|
|
564
592
|
// neither Babel's deep-import plugin nor Metro's package-exports check
|
|
565
593
|
// has anything to warn about, and resolution is otherwise Metro's.
|
|
566
594
|
let request = moduleName;
|
|
567
|
-
|
|
595
|
+
// `basalt-core/upstream/...` means React Native's own file and never an
|
|
596
|
+
// override of it, which is why this is remembered rather than inferred
|
|
597
|
+
// from the path below. See the override guard at the end.
|
|
598
|
+
const upstream = request.startsWith(UPSTREAM_PREFIX);
|
|
599
|
+
if (upstream) {
|
|
568
600
|
const root = reactNativeRoot(() => resolveName('react-native', platform));
|
|
569
601
|
const within = request.slice(UPSTREAM_PREFIX.length);
|
|
570
602
|
const absolute = path.join(root, within);
|
|
@@ -647,12 +679,28 @@ function withDesktopPlatforms(config = {}, options = {}) {
|
|
|
647
679
|
if (!ours || resolution?.type !== 'sourceFile') {
|
|
648
680
|
return resolution;
|
|
649
681
|
}
|
|
650
|
-
|
|
651
|
-
|
|
682
|
+
// An override importing the thing it overrides would loop forever, and
|
|
683
|
+
// `basalt-core/upstream/...` is how it says it wants the original. That
|
|
684
|
+
// is the whole meaning of the prefix, so it is honoured for every
|
|
685
|
+
// module rather than only for the override itself.
|
|
686
|
+
//
|
|
687
|
+
// It used to be the second of those: the redirect was skipped when the
|
|
688
|
+
// *origin* was the replacement. That held exactly as long as the
|
|
689
|
+
// override was the only module importing its own upstream specifier.
|
|
690
|
+
// A second one -- `Button.tsx`, importing
|
|
691
|
+
// `basalt-core/upstream/Libraries/Components/View/View` for the view it
|
|
692
|
+
// wraps -- resolved the same string from a different origin, and
|
|
693
|
+
// Metro's resolution cache then answered the override's own self-import
|
|
694
|
+
// with the override. `View.js` required itself, every `<View>` in the
|
|
695
|
+
// app became `undefined`, and the error path looped until Hermes ran
|
|
696
|
+
// out of heap: "Max heap size was exceeded", before the first frame.
|
|
697
|
+
// Nothing in the bundle looked wrong; the only visible symptom was that
|
|
698
|
+
// React Native's own View.js was missing from it.
|
|
699
|
+
if (upstream) {
|
|
652
700
|
return resolution;
|
|
653
701
|
}
|
|
654
|
-
|
|
655
|
-
if (
|
|
702
|
+
const replacement = replacementFor(resolution.filePath, platform);
|
|
703
|
+
if (replacement == null || replacement === resolution.filePath) {
|
|
656
704
|
return resolution;
|
|
657
705
|
}
|
|
658
706
|
return { type: 'sourceFile', filePath: replacement };
|
package/dist/metro-config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metro-config.js","sourceRoot":"","sources":["../metro-config.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+SH,4BAEC;AA+ID,oDA6PC;AAOD,8CAEC;AApsBD,4CAA8B;AAC9B,gDAAkC;AAgElC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;AAE9D;;;;;;;;GAQG;AACU,QAAA,iBAAiB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;AAE/D;;;;;;;;;;;;;;;;GAgBG;AACU,QAAA,oBAAoB,GAAG;IAClC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,oBAAoB,C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BAAgB,IAAI,GAAG,GAAG,CACxE,CAAC;wBACJ,CAAC;wBACD,MAAM;oBACR,CAAC;oBACD,IAAI,UAAU,IAAI,IAAI,EAAE,CAAC;wBACvB,MAAM,KAAK,CAAC;oBACd,CAAC;gBACH,CAAC;gBAED,IAAI,CAAC,IAAI,IAAI,UAAU,EAAE,IAAI,KAAK,YAAY,EAAE,CAAC;oBAC/C,OAAO,UAAU,CAAC;gBACpB,CAAC;gBAED,uEAAuE;gBACvE,wEAAwE;gBACxE,kEAAkE;gBAClE,mDAAmD;gBACnD,EAAE;gBACF,uEAAuE;gBACvE,iEAAiE;gBACjE,qEAAqE;gBACrE,0CAA0C;gBAC1C,wEAAwE;gBACxE,iEAAiE;gBACjE,wEAAwE;gBACxE,sEAAsE;gBACtE,qEAAqE;gBACrE,qEAAqE;gBACrE,wEAAwE;gBACxE,kDAAkD;gBAClD,IAAI,QAAQ,EAAE,CAAC;oBACb,OAAO,UAAU,CAAC;gBACpB,CAAC;gBAED,MAAM,WAAW,GAAG,cAAc,CAAC,UAAU,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;gBAClE,IAAI,WAAW,IAAI,IAAI,IAAI,WAAW,KAAK,UAAU,CAAC,QAAQ,EAAE,CAAC;oBAC/D,OAAO,UAAU,CAAC;gBACpB,CAAC;gBAED,OAAO,EAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAC,CAAC;YACrD,CAAC;SACF;KACF,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,SAAsB,EAAE;IACxD,OAAO,oBAAoB,CAAC,MAAM,EAAE,EAAC,SAAS,EAAE,CAAC,OAAO,CAAC,EAAC,CAAC,CAAC;AAC9D,CAAC"}
|
package/dist/src/KeyHandler.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ import React from 'react';
|
|
|
37
37
|
import { type ViewProps } from 'react-native';
|
|
38
38
|
import type { HandledKey, PressedKey } from './useHandledKeys';
|
|
39
39
|
export type { HandledKey, PressedKey } from './useHandledKeys';
|
|
40
|
-
export type KeyHandlerProps = ViewProps & {
|
|
40
|
+
export type KeyHandlerProps = Omit<ViewProps, 'onKeyDown'> & {
|
|
41
41
|
/** The combinations this view handles. Anything else passes through. */
|
|
42
42
|
keys: ReadonlyArray<HandledKey>;
|
|
43
43
|
onKeyDown?: (pressed: PressedKey) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyHandler.d.ts","sourceRoot":"","sources":["../../src/KeyHandler.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,cAAc,CAAC;AAIlD,OAAO,KAAK,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAG7D,YAAY,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"KeyHandler.d.ts","sourceRoot":"","sources":["../../src/KeyHandler.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAO,KAAK,SAAS,EAAC,MAAM,cAAc,CAAC;AAIlD,OAAO,KAAK,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAG7D,YAAY,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAO7D,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,GAAG;IAC3D,wEAAwE;IACxE,IAAI,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1C;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,SAAS,EACT,YAAmB,EACnB,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,eAAe,GAAG,KAAK,CAAC,YAAY,CAQtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyHandler.js","sourceRoot":"","sources":["../../src/KeyHandler.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"KeyHandler.js","sourceRoot":"","sources":["../../src/KeyHandler.tsx"],"names":[],"mappings":";;AAmEA,gCAcC;;AAjFD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,iCAAoC;AACpC,+CAAkD;AAKlD,qDAAgD;AA0BhD,SAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,SAAS,EACT,YAAY,GAAG,IAAI,EACnB,QAAQ,EACR,GAAG,SAAS,EACI;IAChB,MAAM,GAAG,GAAG,IAAA,cAAM,EAAyC,IAAI,CAAC,CAAC;IACjE,IAAA,+BAAc,EAAC,GAAG,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;IACrC,OAAO,CACL,uBAAC,mBAAI,IAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,YAAY,KAAM,SAAS,YACnD,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -42,4 +42,9 @@ export type { AllowQuit, QuitRequestHandler } from './quitRequest';
|
|
|
42
42
|
export type { CloseRequestHandler, UseWindow, WindowBounds, WindowCapabilities, WindowControl, WindowId, } from './useWindow';
|
|
43
43
|
export { TitleBar, useTitleBar, useTitleBarMetrics } from './TitleBar';
|
|
44
44
|
export type { TitleBarMetrics, TitleBarOptions, TitleBarStyle } from './TitleBar';
|
|
45
|
+
declare module 'react-native' {
|
|
46
|
+
interface ViewProps {
|
|
47
|
+
keyDownEvents?: ReadonlyArray<import('./useHandledKeys').HandledKey>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@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* with no `else`, so on a desktop it returns having done nothing at all -- no
|
|
10
10
|
* dialog, no error, no warning. `AlertManager` was implemented in phase 32 and
|
|
11
|
-
* was never once reached;
|
|
11
|
+
* was never once reached; e2e/alert.js logs "showing the alert" and then asserts
|
|
12
12
|
* only that the main queue kept running, which it does whether or not anything
|
|
13
13
|
* appeared. Found while implementing Share, which fails the same way for the
|
|
14
14
|
* same reason.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* with no `else`, so on a desktop it returns having done nothing at all -- no
|
|
10
10
|
* dialog, no error, no warning. `AlertManager` was implemented in phase 32 and
|
|
11
|
-
* was never once reached;
|
|
11
|
+
* was never once reached; e2e/alert.js logs "showing the alert" and then asserts
|
|
12
12
|
* only that the main queue kept running, which it does whether or not anything
|
|
13
13
|
* appeared. Found while implementing Share, which fails the same way for the
|
|
14
14
|
* same reason.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Native's own base view config, plus
|
|
2
|
+
* React Native's own base view config, plus the props it does not declare for
|
|
3
|
+
* this platform.
|
|
3
4
|
*
|
|
4
5
|
* `onPointerDown`, `onPointerUp` and `onPointerCancel` are registered in
|
|
5
6
|
* `bubblingEventTypes` -- `topPointerDown` and friends, with their bubbled and
|
|
@@ -18,8 +19,14 @@
|
|
|
18
19
|
* press. The effect here is that a right-click cannot be answered at all, which
|
|
19
20
|
* is what this platform needed them for; see core/PointerButtons.h.
|
|
20
21
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
22
|
+
* `accessibilityViewIsModal` is the second kind of gap and the simpler one:
|
|
23
|
+
* ReactCommon parses it for every platform and only the *iOS* view config
|
|
24
|
+
* declares it, so on a config built from Android's it never arrives. One line
|
|
25
|
+
* fixes that, and it is the line that lets a <Modal> tell a screen reader to
|
|
26
|
+
* stay inside it.
|
|
27
|
+
*
|
|
28
|
+
* Reported rather than forked: the whole file is React Native's, this adds six
|
|
29
|
+
* keys, and each goes away when upstream adds it. See docs/BACKLOG.md.
|
|
23
30
|
*
|
|
24
31
|
* @format
|
|
25
32
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseViewConfig.d.ts","sourceRoot":"","sources":["../../../src/overrides/BaseViewConfig.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"BaseViewConfig.d.ts","sourceRoot":"","sources":["../../../src/overrides/BaseViewConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;;AAiCH,wBA0BE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Native's own base view config, plus
|
|
2
|
+
* React Native's own base view config, plus the props it does not declare for
|
|
3
|
+
* this platform.
|
|
3
4
|
*
|
|
4
5
|
* `onPointerDown`, `onPointerUp` and `onPointerCancel` are registered in
|
|
5
6
|
* `bubblingEventTypes` -- `topPointerDown` and friends, with their bubbled and
|
|
@@ -18,8 +19,14 @@
|
|
|
18
19
|
* press. The effect here is that a right-click cannot be answered at all, which
|
|
19
20
|
* is what this platform needed them for; see core/PointerButtons.h.
|
|
20
21
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
22
|
+
* `accessibilityViewIsModal` is the second kind of gap and the simpler one:
|
|
23
|
+
* ReactCommon parses it for every platform and only the *iOS* view config
|
|
24
|
+
* declares it, so on a config built from Android's it never arrives. One line
|
|
25
|
+
* fixes that, and it is the line that lets a <Modal> tell a screen reader to
|
|
26
|
+
* stay inside it.
|
|
27
|
+
*
|
|
28
|
+
* Reported rather than forked: the whole file is React Native's, this adds six
|
|
29
|
+
* keys, and each goes away when upstream adds it. See docs/BACKLOG.md.
|
|
23
30
|
*
|
|
24
31
|
* @format
|
|
25
32
|
*/
|
|
@@ -67,6 +74,17 @@ exports.default = {
|
|
|
67
74
|
onPointerUpCapture: true,
|
|
68
75
|
onPointerCancel: true,
|
|
69
76
|
onPointerCancelCapture: true,
|
|
77
|
+
// `accessibilityViewIsModal`, which ReactCommon parses for every platform
|
|
78
|
+
// -- `AccessibilityProps.cpp` reads the raw prop with no condition on it --
|
|
79
|
+
// and which only `BaseViewConfig.ios.js` declares. Without the declaration
|
|
80
|
+
// React never sends it, so the three hosts read a prop that is always
|
|
81
|
+
// false and a <Modal> cannot tell a screen reader to stay inside it.
|
|
82
|
+
//
|
|
83
|
+
// A desktop needs it for the same reason iOS does, and more: every one of
|
|
84
|
+
// these platforms has a real modal window. GTK publishes it as
|
|
85
|
+
// `aria-modal`, AppKit as `accessibilityModal` and Win32 as UIA's
|
|
86
|
+
// `IsDialog`.
|
|
87
|
+
accessibilityViewIsModal: true,
|
|
70
88
|
},
|
|
71
89
|
};
|
|
72
90
|
//# sourceMappingURL=BaseViewConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseViewConfig.js","sourceRoot":"","sources":["../../../src/overrides/BaseViewConfig.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"BaseViewConfig.js","sourceRoot":"","sources":["../../../src/overrides/BaseViewConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,YAAY,CAAC;;AAEb,4EAA4E;AAC5E,+EAA+E;AAC/E,sEAAsE;AACtE,qBAAqB;AACrB,qEAAqE;AACrE,4EAA4E;AAC5E,4EAA4E;AAC5E,qBAAqB;AACrB,EAAE;AACF,4EAA4E;AAC5E,0EAA0E;AAC1E,kFAAkF;AAClF,4EAA4E;AAC5E,6EAA6E;AAC7E,+EAA+E;AAC/E,SAAS;AACT,8DAA8D;AAC9D,EAAE;AACF,2EAA2E;AAC3E,6EAA6E;AAC7E,2EAA2E;AAC3E,gFAAgF;AAChF,8EAA8E;AAC9E,+EAA+E;AAC/E,6EAA6E;AAC7E,UAAU;AACV,MAAM,QAAQ,GAAQ,OAAO,CAAC,uEAAuE,CAAC,CAAC;AACvG,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC;AAEpD,kBAAe;IACb,GAAG,cAAc;IACjB,eAAe,EAAE;QACf,GAAG,cAAc,CAAC,eAAe;QACjC,4EAA4E;QAC5E,yEAAyE;QACzE,uEAAuE;QACvE,iDAAiD;QACjD,aAAa,EAAE,IAAI;QACnB,oBAAoB,EAAE,IAAI;QAC1B,WAAW,EAAE,IAAI;QACjB,kBAAkB,EAAE,IAAI;QACxB,eAAe,EAAE,IAAI;QACrB,sBAAsB,EAAE,IAAI;QAC5B,0EAA0E;QAC1E,4EAA4E;QAC5E,2EAA2E;QAC3E,sEAAsE;QACtE,qEAAqE;QACrE,EAAE;QACF,0EAA0E;QAC1E,+DAA+D;QAC/D,kEAAkE;QAClE,cAAc;QACd,wBAAwB,EAAE,IAAI;KAC/B;CACF,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<Button>`, for a desktop React Native platform.
|
|
3
|
+
*
|
|
4
|
+
* Not a shim, and the failure is not a missing branch this time but a missing
|
|
5
|
+
* *key*. React Native's own `Button.js` builds its look out of four
|
|
6
|
+
* `Platform.select({ios, android})` tables, and a platform that is neither gets
|
|
7
|
+
* `undefined` from all four:
|
|
8
|
+
*
|
|
9
|
+
* button: undefined no background, no radius
|
|
10
|
+
* text: {textAlign: 'center', margin: 8} no colour, no size
|
|
11
|
+
* buttonDisabled: undefined a disabled button looks enabled
|
|
12
|
+
* textDisabled: undefined
|
|
13
|
+
*
|
|
14
|
+
* So `<Button title="Press me" />` renders as black centred text on nothing. It
|
|
15
|
+
* was measured that way on this platform on 2026-10-10, in a picture rather
|
|
16
|
+
* than an argument: see `BASALT_SNAPSHOT` in docs/TESTING.md.
|
|
17
|
+
*
|
|
18
|
+
* **Android's look, deliberately.** The two tables are a filled blue rectangle
|
|
19
|
+
* with white text, and a borderless blue-text button. Android's is the one that
|
|
20
|
+
* stays coherent here, because upstream's `color` prop already behaves the
|
|
21
|
+
* Android way on anything that is not iOS: it sets the *background*. Taking
|
|
22
|
+
* iOS's text styling with that would be black text on a coloured fill, which is
|
|
23
|
+
* exactly the picture the broken version produced.
|
|
24
|
+
*
|
|
25
|
+
* Everything else follows React Native's own file line for line, including
|
|
26
|
+
* which touchable: `Button.js` picks `TouchableNativeFeedback` on Android and
|
|
27
|
+
* `TouchableOpacity` on everything else, and the second is ordinary JavaScript
|
|
28
|
+
* that works here.
|
|
29
|
+
*
|
|
30
|
+
* Two deliberate differences, both from the same rule -- this platform is not
|
|
31
|
+
* Android, so the Android-only behaviour does not come with the Android look:
|
|
32
|
+
*
|
|
33
|
+
* - the title is not uppercased. Upstream uppercases it under
|
|
34
|
+
* `Platform.OS === 'android'`, which is a Material convention rather than
|
|
35
|
+
* part of the styling.
|
|
36
|
+
* - `touchSoundDisabled`, `hasTVPreferredFocus` and the four `nextFocus`
|
|
37
|
+
* props are dropped. They are Android and TV props; no desktop has a
|
|
38
|
+
* touch sound or a focus engine to hand them to, and passing them on would
|
|
39
|
+
* be a promise nothing keeps.
|
|
40
|
+
*
|
|
41
|
+
* @format
|
|
42
|
+
*/
|
|
43
|
+
type AccessibilityState = {
|
|
44
|
+
busy?: boolean;
|
|
45
|
+
checked?: boolean | 'mixed';
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
expanded?: boolean;
|
|
48
|
+
selected?: boolean;
|
|
49
|
+
};
|
|
50
|
+
export type ButtonProps = {
|
|
51
|
+
/** The label. Not uppercased here; see the header. */
|
|
52
|
+
title: string;
|
|
53
|
+
onPress?: (event?: unknown) => unknown;
|
|
54
|
+
/** The button's background, as on Android. Upstream tints the text instead on iOS. */
|
|
55
|
+
color?: string | null;
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
accessible?: boolean;
|
|
58
|
+
accessibilityLabel?: string;
|
|
59
|
+
accessibilityHint?: string;
|
|
60
|
+
accessibilityLanguage?: string;
|
|
61
|
+
accessibilityActions?: ReadonlyArray<{
|
|
62
|
+
name: string;
|
|
63
|
+
label?: string;
|
|
64
|
+
}>;
|
|
65
|
+
onAccessibilityAction?: (event: unknown) => void;
|
|
66
|
+
accessibilityState?: AccessibilityState;
|
|
67
|
+
importantForAccessibility?: 'auto' | 'yes' | 'no' | 'no-hide-descendants';
|
|
68
|
+
testID?: string;
|
|
69
|
+
'aria-busy'?: boolean;
|
|
70
|
+
'aria-checked'?: boolean | 'mixed';
|
|
71
|
+
'aria-disabled'?: boolean;
|
|
72
|
+
'aria-expanded'?: boolean;
|
|
73
|
+
'aria-label'?: string;
|
|
74
|
+
'aria-selected'?: boolean;
|
|
75
|
+
};
|
|
76
|
+
declare function Button(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
declare namespace Button {
|
|
78
|
+
var displayName: string;
|
|
79
|
+
}
|
|
80
|
+
export default Button;
|
|
81
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/overrides/Button.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAQH,KAAK,kBAAkB,GAAG;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;IACvC,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oBAAoB,CAAC,EAAE,aAAa,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC;IACrE,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,yBAAyB,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,qBAAqB,CAAC;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,iBAAS,MAAM,CAAC,KAAK,EAAE,WAAW,2CAuEjC;kBAvEQ,MAAM;;;AAmGf,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
/**
|
|
8
|
+
* `<Button>`, for a desktop React Native platform.
|
|
9
|
+
*
|
|
10
|
+
* Not a shim, and the failure is not a missing branch this time but a missing
|
|
11
|
+
* *key*. React Native's own `Button.js` builds its look out of four
|
|
12
|
+
* `Platform.select({ios, android})` tables, and a platform that is neither gets
|
|
13
|
+
* `undefined` from all four:
|
|
14
|
+
*
|
|
15
|
+
* button: undefined no background, no radius
|
|
16
|
+
* text: {textAlign: 'center', margin: 8} no colour, no size
|
|
17
|
+
* buttonDisabled: undefined a disabled button looks enabled
|
|
18
|
+
* textDisabled: undefined
|
|
19
|
+
*
|
|
20
|
+
* So `<Button title="Press me" />` renders as black centred text on nothing. It
|
|
21
|
+
* was measured that way on this platform on 2026-10-10, in a picture rather
|
|
22
|
+
* than an argument: see `BASALT_SNAPSHOT` in docs/TESTING.md.
|
|
23
|
+
*
|
|
24
|
+
* **Android's look, deliberately.** The two tables are a filled blue rectangle
|
|
25
|
+
* with white text, and a borderless blue-text button. Android's is the one that
|
|
26
|
+
* stays coherent here, because upstream's `color` prop already behaves the
|
|
27
|
+
* Android way on anything that is not iOS: it sets the *background*. Taking
|
|
28
|
+
* iOS's text styling with that would be black text on a coloured fill, which is
|
|
29
|
+
* exactly the picture the broken version produced.
|
|
30
|
+
*
|
|
31
|
+
* Everything else follows React Native's own file line for line, including
|
|
32
|
+
* which touchable: `Button.js` picks `TouchableNativeFeedback` on Android and
|
|
33
|
+
* `TouchableOpacity` on everything else, and the second is ordinary JavaScript
|
|
34
|
+
* that works here.
|
|
35
|
+
*
|
|
36
|
+
* Two deliberate differences, both from the same rule -- this platform is not
|
|
37
|
+
* Android, so the Android-only behaviour does not come with the Android look:
|
|
38
|
+
*
|
|
39
|
+
* - the title is not uppercased. Upstream uppercases it under
|
|
40
|
+
* `Platform.OS === 'android'`, which is a Material convention rather than
|
|
41
|
+
* part of the styling.
|
|
42
|
+
* - `touchSoundDisabled`, `hasTVPreferredFocus` and the four `nextFocus`
|
|
43
|
+
* props are dropped. They are Android and TV props; no desktop has a
|
|
44
|
+
* touch sound or a focus engine to hand them to, and passing them on would
|
|
45
|
+
* be a promise nothing keeps.
|
|
46
|
+
*
|
|
47
|
+
* @format
|
|
48
|
+
*/
|
|
49
|
+
const StyleSheet_1 = __importDefault(require("basalt-core/upstream/Libraries/StyleSheet/StyleSheet"));
|
|
50
|
+
const Text_1 = __importDefault(require("basalt-core/upstream/Libraries/Text/Text"));
|
|
51
|
+
const TouchableOpacity_1 = __importDefault(require("basalt-core/upstream/Libraries/Components/Touchable/TouchableOpacity"));
|
|
52
|
+
const View_1 = __importDefault(require("basalt-core/upstream/Libraries/Components/View/View"));
|
|
53
|
+
function Button(props) {
|
|
54
|
+
const { accessibilityActions, accessibilityHint, accessibilityLanguage, accessibilityLabel, accessibilityState, accessible, color, importantForAccessibility, onAccessibilityAction, onPress, testID, title, } = props;
|
|
55
|
+
// The aria-* names win over the accessibility* ones, which is the precedence
|
|
56
|
+
// React Native's own file applies.
|
|
57
|
+
const state = {
|
|
58
|
+
busy: props['aria-busy'] ?? accessibilityState?.busy,
|
|
59
|
+
checked: props['aria-checked'] ?? accessibilityState?.checked,
|
|
60
|
+
disabled: props['aria-disabled'] ?? accessibilityState?.disabled,
|
|
61
|
+
expanded: props['aria-expanded'] ?? accessibilityState?.expanded,
|
|
62
|
+
selected: props['aria-selected'] ?? accessibilityState?.selected,
|
|
63
|
+
};
|
|
64
|
+
const disabled = props.disabled != null ? props.disabled : state.disabled;
|
|
65
|
+
const buttonStyles = [styles.button];
|
|
66
|
+
const textStyles = [styles.text];
|
|
67
|
+
if (color) {
|
|
68
|
+
buttonStyles.push({ backgroundColor: color });
|
|
69
|
+
}
|
|
70
|
+
if (disabled === true) {
|
|
71
|
+
buttonStyles.push(styles.buttonDisabled);
|
|
72
|
+
textStyles.push(styles.textDisabled);
|
|
73
|
+
}
|
|
74
|
+
if (typeof title !== 'string') {
|
|
75
|
+
throw new Error('The title prop of a Button must be a string');
|
|
76
|
+
}
|
|
77
|
+
// A button whose own text is focusable would be two stops in the reading
|
|
78
|
+
// order for one control, which is the same correction upstream makes.
|
|
79
|
+
const importance = importantForAccessibility === 'no'
|
|
80
|
+
? 'no-hide-descendants'
|
|
81
|
+
: importantForAccessibility;
|
|
82
|
+
return ((0, jsx_runtime_1.jsx)(TouchableOpacity_1.default, { accessible: accessible, accessibilityActions: accessibilityActions, onAccessibilityAction: onAccessibilityAction, accessibilityLabel: props['aria-label'] || accessibilityLabel, accessibilityHint: accessibilityHint, accessibilityLanguage: accessibilityLanguage, accessibilityRole: "button", accessibilityState: disabled !== state.disabled ? { ...state, disabled } : state, importantForAccessibility: importance, testID: testID, disabled: disabled, onPress: onPress, children: (0, jsx_runtime_1.jsx)(View_1.default, { style: buttonStyles, children: (0, jsx_runtime_1.jsx)(Text_1.default, { style: textStyles, disabled: disabled, children: title }) }) }));
|
|
83
|
+
}
|
|
84
|
+
// Android's four tables, which are the ones that exist. The colours are
|
|
85
|
+
// React Native's own, copied rather than chosen: Material blue for the fill,
|
|
86
|
+
// and the greys it disables to.
|
|
87
|
+
const styles = StyleSheet_1.default.create({
|
|
88
|
+
button: {
|
|
89
|
+
elevation: 4,
|
|
90
|
+
backgroundColor: '#2196F3',
|
|
91
|
+
borderRadius: 2,
|
|
92
|
+
},
|
|
93
|
+
text: {
|
|
94
|
+
textAlign: 'center',
|
|
95
|
+
margin: 8,
|
|
96
|
+
color: 'white',
|
|
97
|
+
fontWeight: '500',
|
|
98
|
+
},
|
|
99
|
+
buttonDisabled: {
|
|
100
|
+
elevation: 0,
|
|
101
|
+
backgroundColor: '#dfdfdf',
|
|
102
|
+
},
|
|
103
|
+
textDisabled: {
|
|
104
|
+
color: '#a1a1a1',
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
Button.displayName = 'Button';
|
|
108
|
+
exports.default = Button;
|
|
109
|
+
//# sourceMappingURL=Button.js.map
|