@oxyhq/bloom 0.67.0 → 0.69.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/lib/commonjs/animated-check/AnimatedCheck.js +22 -93
- package/lib/commonjs/animated-check/AnimatedCheck.js.map +1 -1
- package/lib/commonjs/avatar/Avatar.js +6 -24
- package/lib/commonjs/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/avatar/AvatarRing.js +14 -30
- package/lib/commonjs/avatar/AvatarRing.js.map +1 -1
- package/lib/commonjs/bottom-sheet/index.js +9 -4
- package/lib/commonjs/bottom-sheet/index.js.map +1 -1
- package/lib/commonjs/connection-status/index.js +16 -7
- package/lib/commonjs/connection-status/index.js.map +1 -1
- package/lib/commonjs/connection-status/netinfo.js +119 -0
- package/lib/commonjs/connection-status/netinfo.js.map +1 -0
- package/lib/commonjs/hooks/haptics-module.js +109 -0
- package/lib/commonjs/hooks/haptics-module.js.map +1 -0
- package/lib/commonjs/hooks/useHaptics.js +6 -8
- package/lib/commonjs/hooks/useHaptics.js.map +1 -1
- package/lib/commonjs/loading/SpinnerIcon.js +22 -55
- package/lib/commonjs/loading/SpinnerIcon.js.map +1 -1
- package/lib/commonjs/theme/adaptive-colors.js +20 -4
- package/lib/commonjs/theme/adaptive-colors.js.map +1 -1
- package/lib/commonjs/theme/color-scope/style-builder.js +107 -6
- package/lib/commonjs/theme/color-scope/style-builder.js.map +1 -1
- package/lib/commonjs/theme/init-css-interop.js +13 -11
- package/lib/commonjs/theme/init-css-interop.js.map +1 -1
- package/lib/commonjs/toast/Toaster.js +5 -0
- package/lib/commonjs/toast/Toaster.js.map +1 -1
- package/lib/commonjs/toast/use-single-outlet-guard.js +72 -0
- package/lib/commonjs/toast/use-single-outlet-guard.js.map +1 -0
- package/lib/module/animated-check/AnimatedCheck.js +22 -91
- package/lib/module/animated-check/AnimatedCheck.js.map +1 -1
- package/lib/module/avatar/Avatar.js +1 -19
- package/lib/module/avatar/Avatar.js.map +1 -1
- package/lib/module/avatar/AvatarRing.js +7 -23
- package/lib/module/avatar/AvatarRing.js.map +1 -1
- package/lib/module/bottom-sheet/index.js +9 -4
- package/lib/module/bottom-sheet/index.js.map +1 -1
- package/lib/module/connection-status/index.js +16 -6
- package/lib/module/connection-status/index.js.map +1 -1
- package/lib/module/connection-status/netinfo.js +114 -0
- package/lib/module/connection-status/netinfo.js.map +1 -0
- package/lib/module/hooks/haptics-module.js +104 -0
- package/lib/module/hooks/haptics-module.js.map +1 -0
- package/lib/module/hooks/useHaptics.js +7 -11
- package/lib/module/hooks/useHaptics.js.map +1 -1
- package/lib/module/loading/SpinnerIcon.js +13 -46
- package/lib/module/loading/SpinnerIcon.js.map +1 -1
- package/lib/module/loading/index.web.js +2 -2
- package/lib/module/theme/adaptive-colors.js +20 -4
- package/lib/module/theme/adaptive-colors.js.map +1 -1
- package/lib/module/theme/color-scope/style-builder.js +107 -6
- package/lib/module/theme/color-scope/style-builder.js.map +1 -1
- package/lib/module/theme/init-css-interop.js +13 -11
- package/lib/module/theme/init-css-interop.js.map +1 -1
- package/lib/module/toast/Toaster.js +5 -0
- package/lib/module/toast/Toaster.js.map +1 -1
- package/lib/module/toast/use-single-outlet-guard.js +65 -0
- package/lib/module/toast/use-single-outlet-guard.js.map +1 -0
- package/lib/typescript/commonjs/animated-check/AnimatedCheck.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/AvatarRing.d.ts.map +1 -1
- package/lib/typescript/commonjs/bottom-sheet/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/connection-status/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/connection-status/netinfo.d.ts +69 -0
- package/lib/typescript/commonjs/connection-status/netinfo.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/haptics-module.d.ts +58 -0
- package/lib/typescript/commonjs/hooks/haptics-module.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useHaptics.d.ts.map +1 -1
- package/lib/typescript/commonjs/loading/SpinnerIcon.d.ts +9 -2
- package/lib/typescript/commonjs/loading/SpinnerIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/adaptive-colors.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/style-builder.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/init-css-interop.d.ts.map +1 -1
- package/lib/typescript/commonjs/toast/Toaster.d.ts.map +1 -1
- package/lib/typescript/commonjs/toast/use-single-outlet-guard.d.ts +9 -0
- package/lib/typescript/commonjs/toast/use-single-outlet-guard.d.ts.map +1 -0
- package/lib/typescript/module/animated-check/AnimatedCheck.d.ts.map +1 -1
- package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/module/avatar/AvatarRing.d.ts.map +1 -1
- package/lib/typescript/module/bottom-sheet/index.d.ts.map +1 -1
- package/lib/typescript/module/connection-status/index.d.ts.map +1 -1
- package/lib/typescript/module/connection-status/netinfo.d.ts +69 -0
- package/lib/typescript/module/connection-status/netinfo.d.ts.map +1 -0
- package/lib/typescript/module/hooks/haptics-module.d.ts +58 -0
- package/lib/typescript/module/hooks/haptics-module.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useHaptics.d.ts.map +1 -1
- package/lib/typescript/module/loading/SpinnerIcon.d.ts +9 -2
- package/lib/typescript/module/loading/SpinnerIcon.d.ts.map +1 -1
- package/lib/typescript/module/theme/adaptive-colors.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/style-builder.d.ts.map +1 -1
- package/lib/typescript/module/theme/init-css-interop.d.ts.map +1 -1
- package/lib/typescript/module/toast/Toaster.d.ts.map +1 -1
- package/lib/typescript/module/toast/use-single-outlet-guard.d.ts +9 -0
- package/lib/typescript/module/toast/use-single-outlet-guard.d.ts.map +1 -0
- package/package.json +348 -88
- package/src/__tests__/color-scope-nativewind.test.ts +135 -0
- package/src/__tests__/connection-status-netinfo.test.tsx +203 -0
- package/src/__tests__/exports-map-contract.test.ts +112 -0
- package/src/__tests__/optional-peer-imports.test.ts +406 -0
- package/src/__tests__/svg-required-peer.test.tsx +75 -0
- package/src/__tests__/toast-single-outlet-guard.test.tsx +176 -0
- package/src/__tests__/useHaptics.test.tsx +203 -16
- package/src/animated-check/AnimatedCheck.tsx +19 -86
- package/src/avatar/Avatar.tsx +1 -11
- package/src/avatar/AvatarRing.tsx +7 -15
- package/src/bottom-sheet/index.tsx +9 -4
- package/src/connection-status/index.tsx +16 -6
- package/src/connection-status/netinfo.ts +131 -0
- package/src/hooks/haptics-module.ts +118 -0
- package/src/hooks/useHaptics.tsx +6 -9
- package/src/loading/SpinnerIcon.tsx +13 -52
- package/src/loading/index.web.ts +2 -2
- package/src/theme/adaptive-colors.ts +20 -4
- package/src/theme/color-scope/style-builder.ts +118 -6
- package/src/theme/init-css-interop.ts +13 -11
- package/src/toast/Toaster.tsx +6 -0
- package/src/toast/use-single-outlet-guard.ts +72 -0
- package/lib/commonjs/avatar/svg-module.js +0 -15
- package/lib/commonjs/avatar/svg-module.js.map +0 -1
- package/lib/commonjs/utils/lazy-require.js +0 -37
- package/lib/commonjs/utils/lazy-require.js.map +0 -1
- package/lib/module/avatar/svg-module.js +0 -11
- package/lib/module/avatar/svg-module.js.map +0 -1
- package/lib/module/utils/lazy-require.js +0 -33
- package/lib/module/utils/lazy-require.js.map +0 -1
- package/lib/typescript/commonjs/avatar/svg-module.d.ts +0 -8
- package/lib/typescript/commonjs/avatar/svg-module.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/lazy-require.d.ts +0 -15
- package/lib/typescript/commonjs/utils/lazy-require.d.ts.map +0 -1
- package/lib/typescript/module/avatar/svg-module.d.ts +0 -8
- package/lib/typescript/module/avatar/svg-module.d.ts.map +0 -1
- package/lib/typescript/module/utils/lazy-require.d.ts +0 -15
- package/lib/typescript/module/utils/lazy-require.d.ts.map +0 -1
- package/src/avatar/svg-module.ts +0 -11
- package/src/utils/lazy-require.ts +0 -31
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.loadNetInfo = loadNetInfo;
|
|
7
|
+
exports.warnNetInfoUnavailable = warnNetInfoUnavailable;
|
|
8
|
+
/**
|
|
9
|
+
* The optional-peer boundary for `@react-native-community/netinfo`.
|
|
10
|
+
*
|
|
11
|
+
* netinfo is an OPTIONAL peer, and a static `import` contradicts that: an
|
|
12
|
+
* optional peer that is omitted does not degrade, it fails to RESOLVE, and Metro
|
|
13
|
+
* aborts the whole bundle with `Unable to resolve module
|
|
14
|
+
* @react-native-community/netinfo` — naming a package the app never mentions.
|
|
15
|
+
* Bloom's other optional-peer static imports are immune by accident (`expo-font`
|
|
16
|
+
* ships inside `expo`; `react-dom` is required by react-native-web), but netinfo
|
|
17
|
+
* arrives with nothing, so for this one the failure is real.
|
|
18
|
+
*
|
|
19
|
+
* Metro treats a `require()` of a STRING LITERAL inside a `try` block as an
|
|
20
|
+
* optional dependency: it resolves the real module when installed, and writes
|
|
21
|
+
* `null` into the dependency map when it is not, so the failure moves from build
|
|
22
|
+
* time to the `catch` below. Three constraints the shape has to respect, each
|
|
23
|
+
* checked against metro 0.83.5's own `collectDependencies`:
|
|
24
|
+
*
|
|
25
|
+
* - The specifier must be STATICALLY EVALUABLE, and a literal is the only form
|
|
26
|
+
* worth relying on. Metro rewrites a require it cannot evaluate — the
|
|
27
|
+
* specifier arriving as a function parameter, say — into a thrower ("Dynamic
|
|
28
|
+
* require defined at line N; not supported by Metro"), collecting no
|
|
29
|
+
* dependency at all, so it resolves nothing whether or not the package is
|
|
30
|
+
* installed. That is the defect that made Bloom's haptics, spinner and
|
|
31
|
+
* native color scoping silently dead before it was swept out.
|
|
32
|
+
* - The require must be a DIRECT statement of the try block.
|
|
33
|
+
* `isOptionalDependency` walks up from the call and returns at the first
|
|
34
|
+
* BlockStatement it meets, marking the dependency optional only if that
|
|
35
|
+
* block belongs to a `try`. One `if`/`else` of nesting is enough to lose it,
|
|
36
|
+
* and a non-optional dependency that cannot be resolved fails the BUILD —
|
|
37
|
+
* precisely what this boundary exists to avoid. Hence the `typeof require`
|
|
38
|
+
* guard below sits outside the try rather than inside it.
|
|
39
|
+
* - `require` may not exist at all (this file also backs the `import`
|
|
40
|
+
* condition, i.e. an ESM build under Node), hence that guard.
|
|
41
|
+
*
|
|
42
|
+
* The caller degrades to inert rather than throwing: an absent netinfo costs the
|
|
43
|
+
* outage toast and nothing else, and crashing an app root over a missing
|
|
44
|
+
* cosmetic affordance would be a worse trade than the build failure this
|
|
45
|
+
* replaces. The degradation is silent by construction — a connection toast that
|
|
46
|
+
* never appears looks exactly like a connection that never dropped — so
|
|
47
|
+
* {@link warnNetInfoUnavailable} names the missing package once, in dev.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Declared locally rather than taken from the ambient `NodeRequire`, which
|
|
52
|
+
* returns `any`: `unknown` forces the module handle to be narrowed below instead
|
|
53
|
+
* of leaking an untyped value into the caller.
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
/** The slice of netinfo's state this component reads. */
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The slice of netinfo's module surface this component calls.
|
|
60
|
+
*
|
|
61
|
+
* Hand-written rather than `typeof import('@react-native-community/netinfo')` so
|
|
62
|
+
* no netinfo type reaches Bloom's emitted declarations — a consumer that skips
|
|
63
|
+
* the optional peer must not inherit a TS7016 from Bloom's own `.d.ts`. The two
|
|
64
|
+
* are kept in step by the assignability check in
|
|
65
|
+
* `__tests__/connection-status-netinfo.test.tsx`, which is excluded from the
|
|
66
|
+
* build and so may name the real package.
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
/** `undefined` until the first load attempt, then the module or `null`. */
|
|
70
|
+
let netInfoModule;
|
|
71
|
+
/** Why the load failed, quoted verbatim in the dev warning. */
|
|
72
|
+
let unavailableReason = '';
|
|
73
|
+
let hasWarned = false;
|
|
74
|
+
|
|
75
|
+
/** The netinfo module, or `null` when the optional peer is not installed. */
|
|
76
|
+
function loadNetInfo() {
|
|
77
|
+
if (netInfoModule !== undefined) return netInfoModule;
|
|
78
|
+
netInfoModule = null;
|
|
79
|
+
|
|
80
|
+
// The `typeof require` guard sits OUTSIDE the try on purpose — see the second
|
|
81
|
+
// constraint above. Nested one `if`/`else` deeper, the require is no longer a
|
|
82
|
+
// direct statement of the try block, Metro stops marking it optional, and an
|
|
83
|
+
// app without netinfo fails to BUILD instead of losing the outage toast.
|
|
84
|
+
if (typeof require === 'undefined') {
|
|
85
|
+
unavailableReason = 'this bundle has no CommonJS `require`';
|
|
86
|
+
return netInfoModule;
|
|
87
|
+
}
|
|
88
|
+
try {
|
|
89
|
+
// netinfo exposes `addEventListener` both as a named export and on its
|
|
90
|
+
// default export; which one comes back depends on whether the bundler
|
|
91
|
+
// resolved the CommonJS build or the ESM/source entry.
|
|
92
|
+
const loaded = require('@react-native-community/netinfo');
|
|
93
|
+
const resolved = typeof loaded?.addEventListener === 'function' ? loaded : loaded?.default;
|
|
94
|
+
if (typeof resolved?.addEventListener === 'function') {
|
|
95
|
+
netInfoModule = resolved;
|
|
96
|
+
} else {
|
|
97
|
+
unavailableReason = 'the module resolved without an `addEventListener` export';
|
|
98
|
+
}
|
|
99
|
+
} catch (error) {
|
|
100
|
+
unavailableReason = error instanceof Error ? error.message : String(error);
|
|
101
|
+
}
|
|
102
|
+
return netInfoModule;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* One warning per module lifetime, and none in production — the same mechanism
|
|
107
|
+
* as `toast/use-single-outlet-guard.ts`. Metro and Vite/Rolldown both fold the
|
|
108
|
+
* `NODE_ENV` check statically, so a production bundle keeps neither the branch
|
|
109
|
+
* nor the message.
|
|
110
|
+
*/
|
|
111
|
+
function warnNetInfoUnavailable() {
|
|
112
|
+
if (process.env.NODE_ENV === 'production' || hasWarned) return;
|
|
113
|
+
hasWarned = true;
|
|
114
|
+
// Internal Bloom diagnostic: only the consumer's package.json can fix this,
|
|
115
|
+
// so it names the package, the install command and the alternative.
|
|
116
|
+
// eslint-disable-next-line no-console
|
|
117
|
+
console.warn('[Bloom] ConnectionStatusToasts is inert: the optional peer ' + '`@react-native-community/netinfo` could not be loaded, so connection changes ' + 'are never observed and no offline / reconnecting / restored toast will ever ' + 'appear. Install it (`npx expo install @react-native-community/netinfo`) or ' + `stop rendering <ConnectionStatusToasts>. Reason: ${unavailableReason}`);
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=netinfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["netInfoModule","unavailableReason","hasWarned","loadNetInfo","undefined","require","loaded","resolved","addEventListener","default","error","Error","message","String","warnNetInfoUnavailable","process","env","NODE_ENV","console","warn"],"sourceRoot":"../../../src","sources":["connection-status/netinfo.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAGA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACA,IAAIA,aAA6C;AACjD;AACA,IAAIC,iBAAiB,GAAG,EAAE;AAC1B,IAAIC,SAAS,GAAG,KAAK;;AAErB;AACO,SAASC,WAAWA,CAAA,EAAuB;EAChD,IAAIH,aAAa,KAAKI,SAAS,EAAE,OAAOJ,aAAa;EACrDA,aAAa,GAAG,IAAI;;EAEpB;EACA;EACA;EACA;EACA,IAAI,OAAOK,OAAO,KAAK,WAAW,EAAE;IAClCJ,iBAAiB,GAAG,uCAAuC;IAC3D,OAAOD,aAAa;EACtB;EAEA,IAAI;IACF;IACA;IACA;IACA,MAAMM,MAAM,GAAGD,OAAO,CAAC,iCAAiC,CAG3C;IACb,MAAME,QAAQ,GAAG,OAAOD,MAAM,EAAEE,gBAAgB,KAAK,UAAU,GAAGF,MAAM,GAAGA,MAAM,EAAEG,OAAO;IAE1F,IAAI,OAAOF,QAAQ,EAAEC,gBAAgB,KAAK,UAAU,EAAE;MACpDR,aAAa,GAAGO,QAAuB;IACzC,CAAC,MAAM;MACLN,iBAAiB,GAAG,0DAA0D;IAChF;EACF,CAAC,CAAC,OAAOS,KAAK,EAAE;IACdT,iBAAiB,GAAGS,KAAK,YAAYC,KAAK,GAAGD,KAAK,CAACE,OAAO,GAAGC,MAAM,CAACH,KAAK,CAAC;EAC5E;EAEA,OAAOV,aAAa;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASc,sBAAsBA,CAAA,EAAS;EAC7C,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,IAAIf,SAAS,EAAE;EACxDA,SAAS,GAAG,IAAI;EAChB;EACA;EACA;EACAgB,OAAO,CAACC,IAAI,CACV,6DAA6D,GAC3D,+EAA+E,GAC/E,8EAA8E,GAC9E,6EAA6E,GAC7E,oDAAoDlB,iBAAiB,EACzE,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.loadHaptics = loadHaptics;
|
|
7
|
+
exports.warnHapticsUnavailable = warnHapticsUnavailable;
|
|
8
|
+
/**
|
|
9
|
+
* The optional-peer boundary for `expo-haptics`.
|
|
10
|
+
*
|
|
11
|
+
* The load has to be dynamic — an optional peer that is omitted does not
|
|
12
|
+
* degrade when it is imported statically, it fails to RESOLVE and Metro aborts
|
|
13
|
+
* the whole bundle naming a package the app never mentions. But it also has to
|
|
14
|
+
* be dynamic in the ONE shape Metro understands: a `require()` of a STRING
|
|
15
|
+
* LITERAL inside a `try` block, which Metro collects as an optional dependency
|
|
16
|
+
* (resolving the real module when installed, writing `null` into the dependency
|
|
17
|
+
* map when it is not, so the failure lands in the `catch` below at evaluation
|
|
18
|
+
* time instead of at build time).
|
|
19
|
+
*
|
|
20
|
+
* The shape this replaced — the deleted `utils/lazy-require.ts`, which took the
|
|
21
|
+
* specifier as a function PARAMETER — satisfied neither. Metro can only collect
|
|
22
|
+
* a dependency whose specifier it can evaluate statically; a parameter it
|
|
23
|
+
* cannot, so it collected nothing and rewrote the call into a thrower ("Dynamic
|
|
24
|
+
* require defined at line N; not supported by Metro"). From a consumer's
|
|
25
|
+
* `node_modules` that resolved NOTHING, installed or not: `expo-haptics` was
|
|
26
|
+
* never loaded on any device and every haptic in Bloom was a silent no-op. It
|
|
27
|
+
* only ever worked under jest, which is CommonJS with a real dynamic `require`.
|
|
28
|
+
*
|
|
29
|
+
* `require` may also not exist at all (this file backs the `import` condition
|
|
30
|
+
* too, i.e. an ESM build under Node), hence the `typeof` guard.
|
|
31
|
+
*
|
|
32
|
+
* A missing haptic is invisible — indistinguishable from a device with haptics
|
|
33
|
+
* turned off — so {@link warnHapticsUnavailable} names the package once, in dev.
|
|
34
|
+
*
|
|
35
|
+
* @see connection-status/netinfo.ts — the same boundary for netinfo.
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Declared locally rather than taken from the ambient `NodeRequire`, which
|
|
40
|
+
* returns `any`: `unknown` forces the module handle to be narrowed below instead
|
|
41
|
+
* of leaking an untyped value into the caller.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The slice of expo-haptics' module surface this hook calls.
|
|
46
|
+
*
|
|
47
|
+
* Hand-written rather than `typeof import('expo-haptics')` so no expo-haptics
|
|
48
|
+
* type reaches Bloom's emitted declarations — a consumer that skips the optional
|
|
49
|
+
* peer must not inherit a TS7016 from Bloom's own `.d.ts`. The two are kept in
|
|
50
|
+
* step by the assignability check in `__tests__/useHaptics.test.tsx`, which is
|
|
51
|
+
* excluded from the build and so may name the real package.
|
|
52
|
+
*
|
|
53
|
+
* `impactAsync` is declared in METHOD syntax deliberately: `strictFunctionTypes`
|
|
54
|
+
* exempts method parameters from contravariance, which is what keeps the real
|
|
55
|
+
* `(style?: ImpactFeedbackStyle) => Promise<void>` assignable to a `string`
|
|
56
|
+
* parameter here. The widening cannot admit a bad value in practice — the only
|
|
57
|
+
* arguments passed are read straight back out of `ImpactFeedbackStyle`.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
/** `undefined` until the first load attempt, then the module or `null`. */
|
|
61
|
+
let hapticsModule;
|
|
62
|
+
/** Why the load failed, quoted verbatim in the dev warning. */
|
|
63
|
+
let unavailableReason = '';
|
|
64
|
+
let hasWarned = false;
|
|
65
|
+
|
|
66
|
+
/** The expo-haptics module, or `null` when the optional peer is not installed. */
|
|
67
|
+
function loadHaptics() {
|
|
68
|
+
if (hapticsModule !== undefined) return hapticsModule;
|
|
69
|
+
hapticsModule = null;
|
|
70
|
+
|
|
71
|
+
// The `typeof require` guard sits OUTSIDE the try on purpose. Metro's
|
|
72
|
+
// `isOptionalDependency` walks up from the require call and returns as soon as
|
|
73
|
+
// it meets a BlockStatement, marking the dependency optional only if THAT
|
|
74
|
+
// block is a try block — so a require nested one `if`/`else` deeper is
|
|
75
|
+
// resolved eagerly like any other import, and an app without the peer fails to
|
|
76
|
+
// BUILD. Keeping the require a direct statement of the try block is the whole
|
|
77
|
+
// difference between degrading and not building.
|
|
78
|
+
if (typeof require === 'undefined') {
|
|
79
|
+
unavailableReason = 'this bundle has no CommonJS `require`';
|
|
80
|
+
return hapticsModule;
|
|
81
|
+
}
|
|
82
|
+
try {
|
|
83
|
+
const loaded = require('expo-haptics');
|
|
84
|
+
if (typeof loaded?.impactAsync === 'function' && typeof loaded.ImpactFeedbackStyle?.Light === 'string') {
|
|
85
|
+
hapticsModule = loaded;
|
|
86
|
+
} else {
|
|
87
|
+
unavailableReason = 'the module resolved without an `impactAsync` / `ImpactFeedbackStyle` export';
|
|
88
|
+
}
|
|
89
|
+
} catch (error) {
|
|
90
|
+
unavailableReason = error instanceof Error ? error.message : String(error);
|
|
91
|
+
}
|
|
92
|
+
return hapticsModule;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* One warning per module lifetime, and none in production — the same mechanism
|
|
97
|
+
* as `connection-status/netinfo.ts` and `toast/use-single-outlet-guard.ts`.
|
|
98
|
+
* Metro and Vite/Rolldown both fold the `NODE_ENV` check statically, so a
|
|
99
|
+
* production bundle keeps neither the branch nor the message.
|
|
100
|
+
*/
|
|
101
|
+
function warnHapticsUnavailable() {
|
|
102
|
+
if (process.env.NODE_ENV === 'production' || hasWarned) return;
|
|
103
|
+
hasWarned = true;
|
|
104
|
+
// Internal Bloom diagnostic: only the consumer's package.json can fix this,
|
|
105
|
+
// so it names the package, the install command and the alternative.
|
|
106
|
+
// eslint-disable-next-line no-console
|
|
107
|
+
console.warn('[Bloom] useHaptics is inert: the optional peer `expo-haptics` could not be ' + 'loaded, so every haptic in Bloom is a silent no-op. Install it ' + '(`npx expo install expo-haptics`) or disable haptics explicitly with ' + `<BloomHapticsProvider enabled={false}>. Reason: ${unavailableReason}`);
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=haptics-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["hapticsModule","unavailableReason","hasWarned","loadHaptics","undefined","require","loaded","impactAsync","ImpactFeedbackStyle","Light","error","Error","message","String","warnHapticsUnavailable","process","env","NODE_ENV","console","warn"],"sourceRoot":"../../../src","sources":["hooks/haptics-module.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA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|
|
7
7
|
exports.useHaptics = useHaptics;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
|
-
var
|
|
10
|
+
var _hapticsModule = require("./haptics-module.js");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
-
/**
|
|
14
|
-
* Lazily loads `expo-haptics`, returning `null` when it is not installed. The
|
|
15
|
-
* dependency is an optional peer, so calls degrade to a no-op when absent.
|
|
16
|
-
*/const getHapticsModule = (0, _lazyRequire.lazyRequire)('expo-haptics');
|
|
17
|
-
|
|
18
13
|
/** Impact strength requested by a caller. */
|
|
19
14
|
|
|
20
15
|
const BloomHapticsContext = /*#__PURE__*/(0, _react.createContext)({
|
|
@@ -54,8 +49,11 @@ function useHaptics() {
|
|
|
54
49
|
} = (0, _react.useContext)(BloomHapticsContext);
|
|
55
50
|
return (0, _react.useCallback)((strength = 'light') => {
|
|
56
51
|
if (!enabled || _reactNative.Platform.OS === 'web') return;
|
|
57
|
-
const haptics =
|
|
58
|
-
if (!haptics)
|
|
52
|
+
const haptics = (0, _hapticsModule.loadHaptics)();
|
|
53
|
+
if (!haptics) {
|
|
54
|
+
(0, _hapticsModule.warnHapticsUnavailable)();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
59
57
|
const {
|
|
60
58
|
ImpactFeedbackStyle
|
|
61
59
|
} = haptics;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_hapticsModule","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BloomHapticsContext","createContext","enabled","BloomHapticsProvider","children","value","useMemo","jsx","Provider","displayName","useHaptics","useContext","useCallback","strength","Platform","OS","haptics","loadHaptics","warnHapticsUnavailable","ImpactFeedbackStyle","style","Light","Medium","Heavy","impactAsync"],"sourceRoot":"../../../src","sources":["hooks/useHaptics.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA;AAAuE,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,C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oB,CAAC,GAAGH,OAAO;IACvC,IAAII,KAAK,GAAGD,mBAAmB,CAACE,KAAK;IACrC,IAAIP,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;MAC7B,IAAIF,QAAQ,KAAK,QAAQ,EAAEO,KAAK,GAAGD,mBAAmB,CAACG,MAAM,CAAC,KACzD,IAAIT,QAAQ,KAAK,OAAO,EAAEO,KAAK,GAAGD,mBAAmB,CAACI,KAAK;IAClE;IAEA,KAAKP,OAAO,CAACQ,WAAW,CAACJ,KAAK,CAAC;EACjC,CAAC,EACD,CAAClB,OAAO,CACV,CAAC;AACH","ignoreList":[]}
|
|
@@ -5,34 +5,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.SpinnerIcon = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
8
|
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
-
var
|
|
9
|
+
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
|
|
11
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
11
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
-
// react-native-svg is loaded lazily so the loading module can fall back to
|
|
14
|
-
// ActivityIndicator when the host app doesn't ship SVG support. Reanimated,
|
|
15
|
-
// by contrast, MUST be statically imported: the worklets Babel plugin
|
|
16
|
-
// performs build-time closure analysis (`__closure` metadata) that fails on
|
|
17
|
-
// runtime requires, which would crash the UI thread with
|
|
18
|
-
// "Tried to synchronously call a non-worklet function `addListener`".
|
|
19
|
-
|
|
20
|
-
const getSvgModule = (0, _lazyRequire.lazyRequire)('react-native-svg');
|
|
21
12
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
13
|
+
* iOS-style SVG spinner with 8 rotating rectangles and an opacity gradient trail.
|
|
14
|
+
*
|
|
15
|
+
* `react-native-svg` and `react-native-reanimated` are both REQUIRED peers and
|
|
16
|
+
* both are imported statically. Reanimated in particular must never be loaded at
|
|
17
|
+
* runtime: the worklets Babel plugin performs build-time closure analysis
|
|
18
|
+
* (`__closure` metadata) that fails on a runtime require, which crashes the UI
|
|
19
|
+
* thread with "Tried to synchronously call a non-worklet function `addListener`".
|
|
20
|
+
*
|
|
21
|
+
* Native only — `SpinnerIcon.web.tsx` draws the same shape with CSS, so this
|
|
22
|
+
* file is never reached by a web bundler.
|
|
24
23
|
*/
|
|
25
|
-
const
|
|
24
|
+
const SpinnerIcon = ({
|
|
26
25
|
color = 'currentColor',
|
|
27
26
|
size = 26,
|
|
28
27
|
className,
|
|
29
|
-
style
|
|
30
|
-
svg
|
|
28
|
+
style
|
|
31
29
|
}) => {
|
|
32
|
-
const {
|
|
33
|
-
default: Svg,
|
|
34
|
-
Rect
|
|
35
|
-
} = svg;
|
|
36
30
|
const rotation = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
37
31
|
(0, _react.useEffect)(() => {
|
|
38
32
|
rotation.value = (0, _reactNativeReanimated.withRepeat)((0, _reactNativeReanimated.withTiming)(360, {
|
|
@@ -59,14 +53,14 @@ const AnimatedSpinner = ({
|
|
|
59
53
|
alignItems: 'center',
|
|
60
54
|
justifyContent: 'center'
|
|
61
55
|
}, animatedStyle, style],
|
|
62
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
56
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
63
57
|
viewBox: "0 0 100 100",
|
|
64
58
|
width: size,
|
|
65
59
|
height: size,
|
|
66
60
|
...(className ? {
|
|
67
61
|
className
|
|
68
62
|
} : {}),
|
|
69
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Rect, {
|
|
63
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
70
64
|
fill: color,
|
|
71
65
|
height: "10",
|
|
72
66
|
opacity: "0",
|
|
@@ -76,7 +70,7 @@ const AnimatedSpinner = ({
|
|
|
76
70
|
width: "28",
|
|
77
71
|
x: "67",
|
|
78
72
|
y: "45"
|
|
79
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Rect, {
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
80
74
|
fill: color,
|
|
81
75
|
height: "10",
|
|
82
76
|
opacity: "0.125",
|
|
@@ -86,7 +80,7 @@ const AnimatedSpinner = ({
|
|
|
86
80
|
width: "28",
|
|
87
81
|
x: "67",
|
|
88
82
|
y: "45"
|
|
89
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Rect, {
|
|
83
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
90
84
|
fill: color,
|
|
91
85
|
height: "10",
|
|
92
86
|
opacity: "0.25",
|
|
@@ -96,7 +90,7 @@ const AnimatedSpinner = ({
|
|
|
96
90
|
width: "28",
|
|
97
91
|
x: "67",
|
|
98
92
|
y: "45"
|
|
99
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Rect, {
|
|
93
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
100
94
|
fill: color,
|
|
101
95
|
height: "10",
|
|
102
96
|
opacity: "0.375",
|
|
@@ -106,7 +100,7 @@ const AnimatedSpinner = ({
|
|
|
106
100
|
width: "28",
|
|
107
101
|
x: "67",
|
|
108
102
|
y: "45"
|
|
109
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Rect, {
|
|
103
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
110
104
|
fill: color,
|
|
111
105
|
height: "10",
|
|
112
106
|
opacity: "0.5",
|
|
@@ -116,7 +110,7 @@ const AnimatedSpinner = ({
|
|
|
116
110
|
width: "28",
|
|
117
111
|
x: "67",
|
|
118
112
|
y: "45"
|
|
119
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Rect, {
|
|
113
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
120
114
|
fill: color,
|
|
121
115
|
height: "10",
|
|
122
116
|
opacity: "0.625",
|
|
@@ -126,7 +120,7 @@ const AnimatedSpinner = ({
|
|
|
126
120
|
width: "28",
|
|
127
121
|
x: "67",
|
|
128
122
|
y: "45"
|
|
129
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Rect, {
|
|
123
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
130
124
|
fill: color,
|
|
131
125
|
height: "10",
|
|
132
126
|
opacity: "0.75",
|
|
@@ -136,7 +130,7 @@ const AnimatedSpinner = ({
|
|
|
136
130
|
width: "28",
|
|
137
131
|
x: "67",
|
|
138
132
|
y: "45"
|
|
139
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Rect, {
|
|
133
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
140
134
|
fill: color,
|
|
141
135
|
height: "10",
|
|
142
136
|
opacity: "0.875",
|
|
@@ -150,33 +144,6 @@ const AnimatedSpinner = ({
|
|
|
150
144
|
})
|
|
151
145
|
});
|
|
152
146
|
};
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* iOS-style SVG spinner with 8 rotating rectangles and an opacity gradient trail.
|
|
156
|
-
* Requires react-native-svg (lazy) and react-native-reanimated (static).
|
|
157
|
-
* Falls back to ActivityIndicator if react-native-svg is missing.
|
|
158
|
-
*/
|
|
159
|
-
const SpinnerIcon = ({
|
|
160
|
-
color = 'currentColor',
|
|
161
|
-
size = 26,
|
|
162
|
-
className,
|
|
163
|
-
style
|
|
164
|
-
}) => {
|
|
165
|
-
const svg = getSvgModule();
|
|
166
|
-
if (!svg) {
|
|
167
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
168
|
-
size: size > 30 ? 'large' : 'small',
|
|
169
|
-
color: color
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedSpinner, {
|
|
173
|
-
color: color,
|
|
174
|
-
size: size,
|
|
175
|
-
className: className,
|
|
176
|
-
style: style,
|
|
177
|
-
svg: svg
|
|
178
|
-
});
|
|
179
|
-
};
|
|
180
147
|
exports.SpinnerIcon = SpinnerIcon;
|
|
181
148
|
SpinnerIcon.displayName = 'SpinnerIcon';
|
|
182
149
|
//# sourceMappingURL=SpinnerIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeReanimated","_reactNativeSvg","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SpinnerIcon","color","size","className","style","rotation","useSharedValue","useEffect","value","withRepeat","withTiming","duration","easing","Easing","linear","animatedStyle","useAnimatedStyle","transform","rotate","jsx","View","width","height","alignItems","justifyContent","children","jsxs","viewBox","Rect","fill","opacity","rx","ry","x","y","exports","displayName"],"sourceRoot":"../../../src","sources":["loading/SpinnerIcon.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AA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AAC,IAAI;QAACY,CAAC,EAAC,IAAI;QAACC,CAAC,EAAC;MAAI,CAAE,CAAC,eACnH,IAAAtD,WAAA,CAAAuC,GAAA,EAACxC,eAAA,CAAAiD,IAAI;QAACC,IAAI,EAAE5B,KAAM;QAACqB,MAAM,EAAC,IAAI;QAACQ,OAAO,EAAC,OAAO;QAACC,EAAE,EAAC,GAAG;QAACC,EAAE,EAAC,GAAG;QAACf,SAAS,EAAC,mBAAmB;QAACI,KAAK,EAAC,IAAI;QAACY,CAAC,EAAC,IAAI;QAACC,CAAC,EAAC;MAAI,CAAE,CAAC,eACtH,IAAAtD,WAAA,CAAAuC,GAAA,EAACxC,eAAA,CAAAiD,IAAI;QAACC,IAAI,EAAE5B,KAAM;QAACqB,MAAM,EAAC,IAAI;QAACQ,OAAO,EAAC,MAAM;QAACC,EAAE,EAAC,GAAG;QAACC,EAAE,EAAC,GAAG;QAACf,SAAS,EAAC,mBAAmB;QAACI,KAAK,EAAC,IAAI;QAACY,CAAC,EAAC,IAAI;QAACC,CAAC,EAAC;MAAI,CAAE,CAAC,eACrH,IAAAtD,WAAA,CAAAuC,GAAA,EAACxC,eAAA,CAAAiD,IAAI;QAACC,IAAI,EAAE5B,KAAM;QAACqB,MAAM,EAAC,IAAI;QAACQ,OAAO,EAAC,OAAO;QAACC,EAAE,EAAC,GAAG;QAACC,EAAE,EAAC,GAAG;QAACf,SAAS,EAAC,mBAAmB;QAACI,KAAK,EAAC,IAAI;QAACY,CAAC,EAAC,IAAI;QAACC,CAAC,EAAC;MAAI,CAAE,CAAC;IAAA,CACnH;EAAC,CACO,CAAC;AAEpB,CAAC;AAACC,OAAA,CAAAnC,WAAA,GAAAA,WAAA;AAEFA,WAAW,CAACoC,WAAW,GAAG,aAAa","ignoreList":[]}
|
|
@@ -5,14 +5,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getAdaptiveColors = getAdaptiveColors;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
+
/**
|
|
9
|
+
* `expo-router`'s `Color` proxy is read through a `require()` of a STRING
|
|
10
|
+
* LITERAL as a direct statement of a `try` block — the shape Metro collects as
|
|
11
|
+
* an optional dependency, resolving the real module when installed and writing
|
|
12
|
+
* `null` into the dependency map when it is not, so an app without the optional
|
|
13
|
+
* `expo-router` peer loses the adaptive palette and nothing else.
|
|
14
|
+
*
|
|
15
|
+
* The specifier was previously bound to a local `const` first. That still
|
|
16
|
+
* worked — Metro evaluates the constant — but the literal is what the rule can
|
|
17
|
+
* be stated and checked as, and it does not rest on a constant-folding pass
|
|
18
|
+
* every bundler happens to share. What must never come back is a specifier
|
|
19
|
+
* Metro CANNOT evaluate (a function parameter, a computed value): it collects no
|
|
20
|
+
* dependency and rewrites the call into a thrower, so it resolves nothing on any
|
|
21
|
+
* device.
|
|
22
|
+
*
|
|
23
|
+
* @see connection-status/netinfo.ts — the same boundary, with the full rule.
|
|
24
|
+
*/
|
|
25
|
+
|
|
8
26
|
const c = v => v;
|
|
9
27
|
function getAndroidColors() {
|
|
10
28
|
try {
|
|
11
29
|
if (typeof require === 'undefined') return null;
|
|
12
|
-
const moduleName = 'expo-router';
|
|
13
30
|
const {
|
|
14
31
|
Color
|
|
15
|
-
} = require(
|
|
32
|
+
} = require('expo-router');
|
|
16
33
|
const d = Color.android.dynamic;
|
|
17
34
|
return {
|
|
18
35
|
background: c(d.surface),
|
|
@@ -56,10 +73,9 @@ function getAndroidColors() {
|
|
|
56
73
|
function getIOSColors() {
|
|
57
74
|
try {
|
|
58
75
|
if (typeof require === 'undefined') return null;
|
|
59
|
-
const moduleName = 'expo-router';
|
|
60
76
|
const {
|
|
61
77
|
Color
|
|
62
|
-
} = require(
|
|
78
|
+
} = require('expo-router');
|
|
63
79
|
const i = Color.ios;
|
|
64
80
|
return {
|
|
65
81
|
background: c(i.systemBackground),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","c","v","getAndroidColors","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","c","v","getAndroidColors","Color","d","android","dynamic","background","surface","backgroundSecondary","surfaceContainerLow","backgroundTertiary","surfaceContainer","text","onSurface","textSecondary","onSurfaceVariant","textTertiary","outline","border","outlineVariant","borderLight","primary","primaryForeground","onPrimary","primaryLight","primaryContainer","primaryDark","onPrimaryContainer","secondary","secondaryForeground","onSecondary","tertiary","tertiaryForeground","onTertiary","tint","icon","iconActive","success","error","warning","info","primarySubtle","primarySubtleForeground","negative","negativeForeground","negativeSubtle","errorContainer","negativeSubtleForeground","onErrorContainer","contrast50","card","shadow","overlay","getIOSColors","i","ios","systemBackground","secondarySystemBackground","tertiarySystemBackground","label","secondaryLabel","tertiaryLabel","separator","opaqueSeparator","systemBlue","systemGray6","systemPurple","systemTeal","systemGreen","systemRed","systemOrange","getAdaptiveColors","Platform","OS"],"sourceRoot":"../../../src","sources":["theme/adaptive-colors.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,CAAC,GAAIC,CAAU,IAAaA,CAAW;AAE7C,SAASC,gBAAgBA,CAAA,EAAuB;EAC9C,IAAI;IACF,IAAI,OAAOH,OAAO,KAAK,WAAW,EAAE,OAAO,IAAI;IAC/C,MAAM;MAAEI;IAAM,CAAC,GAAGJ,OAAO,CAAC,aAAa,CAAC;IACxC,MAAMK,CAAC,GAAGD,KAAK,CAACE,OAAO,CAACC,OAAO;IAC/B,OAAO;MACLC,UAAU,EAAEP,CAAC,CAACI,CAAC,CAACI,OAAO,CAAC;MACxBC,mBAAmB,EAAET,CAAC,CAACI,CAAC,CAACM,mBAAmB,CAAC;MAC7CC,kBAAkB,EAAEX,CAAC,CAACI,CAAC,CAACQ,gBAAgB,CAAC;MACzCC,IAAI,EAAEb,CAAC,CAACI,CAAC,CAACU,SAAS,CAAC;MACpBC,aAAa,E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