@oxy.so/bloom 23.8.0 → 23.8.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/android/src/main/java/so/oxy/bloom/AvatarLoops.kt +293 -0
- package/android/src/main/java/so/oxy/bloom/AvatarSurface.kt +351 -0
- package/android/src/main/java/so/oxy/bloom/BloomPackage.kt +1 -1
- package/docs/agent-avatar.mdx +77 -1
- package/docs/no-nativewind.mdx +3 -1
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/docs/theme.mdx +21 -0
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +267 -111
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/commonjs/agent-avatar/VectorNativeSurface.js +75 -0
- package/lib/commonjs/agent-avatar/VectorNativeSurface.js.map +1 -0
- package/lib/commonjs/agent-avatar/vector-loop.js +161 -0
- package/lib/commonjs/agent-avatar/vector-loop.js.map +1 -0
- package/lib/commonjs/agent-avatar/vector-visibility.js +4 -1
- package/lib/commonjs/agent-avatar/vector-visibility.js.map +1 -1
- package/lib/commonjs/blur/BlurIsland.js +112 -118
- package/lib/commonjs/blur/BlurIsland.js.map +1 -1
- package/lib/commonjs/button/Button.js +12 -22
- package/lib/commonjs/button/Button.js.map +1 -1
- package/lib/commonjs/button/GroupBase.js +35 -50
- package/lib/commonjs/button/GroupBase.js.map +1 -1
- package/lib/commonjs/floating/lens/lens-frame.js +286 -0
- package/lib/commonjs/floating/lens/lens-frame.js.map +1 -0
- package/lib/commonjs/floating/lens/lens-material.js +1 -1
- package/lib/commonjs/page-header/PageHeader.js +24 -15
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/panel-routing/expo-router/StackScene.js +1 -0
- package/lib/commonjs/panel-routing/expo-router/StackScene.js.map +1 -1
- package/lib/commonjs/surface/Surface.js +64 -193
- package/lib/commonjs/surface/Surface.js.map +1 -1
- package/lib/commonjs/tab-bar/TabBarBase.js +18 -15
- package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -1
- package/lib/module/agent-avatar/VectorCharacterAvatar.js +268 -112
- package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/module/agent-avatar/VectorNativeSurface.js +66 -0
- package/lib/module/agent-avatar/VectorNativeSurface.js.map +1 -0
- package/lib/module/agent-avatar/vector-loop.js +150 -0
- package/lib/module/agent-avatar/vector-loop.js.map +1 -0
- package/lib/module/agent-avatar/vector-visibility.js +3 -1
- package/lib/module/agent-avatar/vector-visibility.js.map +1 -1
- package/lib/module/blur/BlurIsland.js +112 -116
- package/lib/module/blur/BlurIsland.js.map +1 -1
- package/lib/module/button/Button.js +13 -23
- package/lib/module/button/Button.js.map +1 -1
- package/lib/module/button/GroupBase.js +37 -52
- package/lib/module/button/GroupBase.js.map +1 -1
- package/lib/module/floating/lens/lens-frame.js +282 -0
- package/lib/module/floating/lens/lens-frame.js.map +1 -0
- package/lib/module/floating/lens/lens-material.js +1 -1
- package/lib/module/page-header/PageHeader.js +24 -15
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/panel-routing/expo-router/StackScene.js +1 -0
- package/lib/module/panel-routing/expo-router/StackScene.js.map +1 -1
- package/lib/module/surface/Surface.js +65 -194
- package/lib/module/surface/Surface.js.map +1 -1
- package/lib/module/tab-bar/TabBarBase.js +18 -15
- package/lib/module/tab-bar/TabBarBase.js.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorNativeSurface.d.ts +75 -0
- package/lib/typescript/commonjs/agent-avatar/VectorNativeSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/vector-loop.d.ts +93 -0
- package/lib/typescript/commonjs/agent-avatar/vector-loop.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/vector-visibility.d.ts +2 -0
- package/lib/typescript/commonjs/agent-avatar/vector-visibility.d.ts.map +1 -1
- package/lib/typescript/commonjs/blur/BlurIsland.d.ts +1 -1
- package/lib/typescript/commonjs/blur/BlurIsland.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/Button.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/GroupBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/lens/lens-frame.d.ts +52 -0
- package/lib/typescript/commonjs/floating/lens/lens-frame.d.ts.map +1 -0
- package/lib/typescript/commonjs/floating/lens/lens-material.d.ts +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts.map +1 -1
- package/lib/typescript/commonjs/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorNativeSurface.d.ts +75 -0
- package/lib/typescript/module/agent-avatar/VectorNativeSurface.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/vector-loop.d.ts +93 -0
- package/lib/typescript/module/agent-avatar/vector-loop.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/vector-visibility.d.ts +2 -0
- package/lib/typescript/module/agent-avatar/vector-visibility.d.ts.map +1 -1
- package/lib/typescript/module/blur/BlurIsland.d.ts +1 -1
- package/lib/typescript/module/blur/BlurIsland.d.ts.map +1 -1
- package/lib/typescript/module/button/Button.d.ts.map +1 -1
- package/lib/typescript/module/button/GroupBase.d.ts.map +1 -1
- package/lib/typescript/module/floating/lens/lens-frame.d.ts +52 -0
- package/lib/typescript/module/floating/lens/lens-frame.d.ts.map +1 -0
- package/lib/typescript/module/floating/lens/lens-material.d.ts +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts.map +1 -1
- package/lib/typescript/module/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/agent-avatar/VectorCharacterAvatar.tsx +327 -120
- package/src/agent-avatar/VectorNativeSurface.tsx +117 -0
- package/src/agent-avatar/vector-loop.ts +213 -0
- package/src/agent-avatar/vector-visibility.ts +3 -1
- package/src/blur/BlurIsland.tsx +16 -14
- package/src/button/Button.tsx +19 -36
- package/src/button/GroupBase.tsx +42 -56
- package/src/floating/lens/lens-frame.tsx +195 -0
- package/src/floating/lens/lens-material.ts +1 -1
- package/src/page-header/PageHeader.tsx +26 -13
- package/src/panel-routing/expo-router/StackScene.tsx +9 -0
- package/src/surface/Surface.tsx +13 -28
- package/src/tab-bar/TabBarBase.tsx +13 -8
- package/lib/commonjs/floating/lens/lens-button-host.js +0 -218
- package/lib/commonjs/floating/lens/lens-button-host.js.map +0 -1
- package/lib/module/floating/lens/lens-button-host.js +0 -214
- package/lib/module/floating/lens/lens-button-host.js.map +0 -1
- package/lib/typescript/commonjs/floating/lens/lens-button-host.d.ts +0 -34
- package/lib/typescript/commonjs/floating/lens/lens-button-host.d.ts.map +0 -1
- package/lib/typescript/module/floating/lens/lens-button-host.d.ts +0 -34
- package/lib/typescript/module/floating/lens/lens-button-host.d.ts.map +0 -1
- package/src/floating/lens/lens-button-host.tsx +0 -148
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one material decision for every Bloom control the lens can draw (a Button, a Button.Group, a
|
|
3
|
+
* Surface, a BlurIsland, the tab bar). Where the device has the native lens (Android
|
|
4
|
+
* 33+ with `@oxy.so/bloom-lens`), the control asks for it and it is not inside a lens base or a
|
|
5
|
+
* separate window (a Dialog, a BottomSheet), the lens base draws the material (the fill, tinted,
|
|
6
|
+
* its shadow and light), springs under the finger and runs on the UI thread; the control only draws
|
|
7
|
+
* its content and handles the press. Everywhere else (the web, iOS, Android without the lens or
|
|
8
|
+
* below API 33, a Modal's window) the control paints Bloom's own material (`SurfacePaint`).
|
|
9
|
+
*
|
|
10
|
+
* const frame = useLensFrame(material === 'lens', style);
|
|
11
|
+
* // The control takes `frame.style`, and paints `SurfacePaint` only when `frame.lens` is false.
|
|
12
|
+
* return withLens(frame, control, { radius });
|
|
13
|
+
*
|
|
14
|
+
* The control gives its paint and its lens the same fill and radius, so the two never diverge. In
|
|
15
|
+
* the page's content the lens is drawn in its place, against the surface the control sits on; in a
|
|
16
|
+
* floating region (or for a control that floats by itself) the window draws it.
|
|
17
|
+
*/
|
|
18
|
+
import type { ReactElement } from 'react';
|
|
19
|
+
import { useMemo } from 'react';
|
|
20
|
+
import { StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
21
|
+
|
|
22
|
+
import { useTheme } from '../../theme/use-theme';
|
|
23
|
+
import { useSurfaceFillForSnapshot, useSurfaceSnapshot } from '../../styles/surface-levels';
|
|
24
|
+
import { LENS_FROST } from './lens-frost';
|
|
25
|
+
import { LENS_FILL_TINT } from './lens-tint';
|
|
26
|
+
import { useInFloatingRegion, useLensAvailable } from './lens-material';
|
|
27
|
+
import { getNativeLens } from './native-lens';
|
|
28
|
+
|
|
29
|
+
/** The style keys that place a control among its siblings: they belong to the lens host. */
|
|
30
|
+
const PLACEMENT_KEYS = [
|
|
31
|
+
'position',
|
|
32
|
+
'top',
|
|
33
|
+
'right',
|
|
34
|
+
'bottom',
|
|
35
|
+
'left',
|
|
36
|
+
'start',
|
|
37
|
+
'end',
|
|
38
|
+
'zIndex',
|
|
39
|
+
'alignSelf',
|
|
40
|
+
'flex',
|
|
41
|
+
'flexGrow',
|
|
42
|
+
'flexShrink',
|
|
43
|
+
'flexBasis',
|
|
44
|
+
'margin',
|
|
45
|
+
'marginTop',
|
|
46
|
+
'marginRight',
|
|
47
|
+
'marginBottom',
|
|
48
|
+
'marginLeft',
|
|
49
|
+
'marginHorizontal',
|
|
50
|
+
'marginVertical',
|
|
51
|
+
'marginStart',
|
|
52
|
+
'marginEnd',
|
|
53
|
+
] as const;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Splits a control's style in two: where it sits (the host's) and what it looks like and how big
|
|
57
|
+
* it is (the control's). Size stays with both so the host and the control are the same box.
|
|
58
|
+
*/
|
|
59
|
+
function splitLensStyle(style: StyleProp<ViewStyle>): {
|
|
60
|
+
host: ViewStyle;
|
|
61
|
+
control: ViewStyle;
|
|
62
|
+
} {
|
|
63
|
+
const flat = StyleSheet.flatten(style) ?? {};
|
|
64
|
+
const { position, top, right, bottom, left, start, end, zIndex, alignSelf } = flat;
|
|
65
|
+
const { flex, flexGrow, flexShrink, flexBasis } = flat;
|
|
66
|
+
const { margin, marginTop, marginRight, marginBottom, marginLeft } = flat;
|
|
67
|
+
const { marginHorizontal, marginVertical, marginStart, marginEnd } = flat;
|
|
68
|
+
const { width, height, minWidth, minHeight, maxWidth, maxHeight } = flat;
|
|
69
|
+
const host: ViewStyle = {
|
|
70
|
+
position,
|
|
71
|
+
top,
|
|
72
|
+
right,
|
|
73
|
+
bottom,
|
|
74
|
+
left,
|
|
75
|
+
start,
|
|
76
|
+
end,
|
|
77
|
+
zIndex,
|
|
78
|
+
alignSelf,
|
|
79
|
+
flex,
|
|
80
|
+
flexGrow,
|
|
81
|
+
flexShrink,
|
|
82
|
+
flexBasis,
|
|
83
|
+
margin,
|
|
84
|
+
marginTop,
|
|
85
|
+
marginRight,
|
|
86
|
+
marginBottom,
|
|
87
|
+
marginLeft,
|
|
88
|
+
marginHorizontal,
|
|
89
|
+
marginVertical,
|
|
90
|
+
marginStart,
|
|
91
|
+
marginEnd,
|
|
92
|
+
// Size stays with both, so the host and the control are the same box.
|
|
93
|
+
width,
|
|
94
|
+
height,
|
|
95
|
+
minWidth,
|
|
96
|
+
minHeight,
|
|
97
|
+
maxWidth,
|
|
98
|
+
maxHeight,
|
|
99
|
+
};
|
|
100
|
+
const control: ViewStyle = { ...flat };
|
|
101
|
+
for (const key of PLACEMENT_KEYS) delete control[key];
|
|
102
|
+
return { host: definedOnly(host), control };
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function definedOnly(style: ViewStyle): ViewStyle {
|
|
106
|
+
return Object.fromEntries(Object.entries(style).filter(([, value]) => value !== undefined));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** Whether the lens draws a control, and the control's style for it. */
|
|
110
|
+
export interface LensFrame {
|
|
111
|
+
/** The native lens draws the material: the control paints none of its own. */
|
|
112
|
+
lens: boolean;
|
|
113
|
+
/** The control's own style: on the lens, without the placement the lens host takes. */
|
|
114
|
+
style: StyleProp<ViewStyle>;
|
|
115
|
+
/** Where the control sits, on the lens host; `undefined` off the lens. */
|
|
116
|
+
host: ViewStyle | undefined;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Whether the native lens draws this control (`wanted`: the control's material is the lens), and
|
|
121
|
+
* its style split for it: the lens host takes the placement, the control keeps its look and size.
|
|
122
|
+
*/
|
|
123
|
+
export function useLensFrame(wanted: boolean, style: StyleProp<ViewStyle>): LensFrame {
|
|
124
|
+
const lens = useLensAvailable() && wanted;
|
|
125
|
+
if (!lens) return { lens, style, host: undefined };
|
|
126
|
+
const split = splitLensStyle(style);
|
|
127
|
+
return { lens, style: split.control, host: split.host };
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/** How the lens draws a control: the same fill and radius the control paints off the lens. */
|
|
131
|
+
export interface LensLook {
|
|
132
|
+
/** `#rrggbb` or `rgb(...)`, a solid control's fill; omitted, the lens stays neutral. */
|
|
133
|
+
tint?: string;
|
|
134
|
+
/** The corner radius in dp; omitted, the shape is a capsule. */
|
|
135
|
+
radius?: number;
|
|
136
|
+
/** How far the press and the drag deform the lens, a multiplier of the engine's own (1). */
|
|
137
|
+
jelly?: number;
|
|
138
|
+
/**
|
|
139
|
+
* The control floats by itself (the tab bar, an island over a map): the window draws its lens over
|
|
140
|
+
* what moves behind, wherever it is. Any other control is drawn by the window only in a floating
|
|
141
|
+
* region (a floating header, a toolbar, a bar, a FAB); in the page's content its lens is drawn in
|
|
142
|
+
* its place, against the surface it sits on, so it scrolls and stacks with the page.
|
|
143
|
+
*/
|
|
144
|
+
floating?: boolean;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** On the lens, the control inside its lens host; off it, the control as it is. */
|
|
148
|
+
export function withLens(frame: LensFrame, control: ReactElement, look: LensLook): ReactElement {
|
|
149
|
+
if (!frame.lens) return control;
|
|
150
|
+
return (
|
|
151
|
+
<LensButtonHost {...look} style={frame.host}>
|
|
152
|
+
{control}
|
|
153
|
+
</LensButtonHost>
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
interface LensButtonHostProps extends LensLook {
|
|
158
|
+
style?: ViewStyle;
|
|
159
|
+
children: ReactElement;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** The lens base around a control its frame put on the lens (`withLens`). */
|
|
163
|
+
function LensButtonHost({ tint, radius, jelly, floating, style, children }: LensButtonHostProps) {
|
|
164
|
+
const theme = useTheme();
|
|
165
|
+
const inFloatingRegion = useInFloatingRegion();
|
|
166
|
+
const backing = useSurfaceFillForSnapshot(theme, useSurfaceSnapshot());
|
|
167
|
+
// The same lens keeps the same config, so a render that changes nothing sends the engine nothing.
|
|
168
|
+
const config = useMemo(
|
|
169
|
+
() => ({
|
|
170
|
+
blur: LENS_FROST.control,
|
|
171
|
+
...(tint ? { tintColor: tint, tintOpacity: LENS_FILL_TINT } : null),
|
|
172
|
+
...(jelly === undefined ? null : { jelly }),
|
|
173
|
+
}),
|
|
174
|
+
[tint, jelly],
|
|
175
|
+
);
|
|
176
|
+
const native = getNativeLens();
|
|
177
|
+
if (!native) return children;
|
|
178
|
+
const { LensBase } = native;
|
|
179
|
+
// The one lens base (the upstream app's lens trigger): what it holds draws no lens of its own,
|
|
180
|
+
// and a menu opened from inside it grows out of it. In the page it samples the surface it sits
|
|
181
|
+
// on, not the window, and shares one still with every control that looks the same.
|
|
182
|
+
return (
|
|
183
|
+
<LensBase
|
|
184
|
+
colorScheme={theme.isDark ? 'dark' : 'light'}
|
|
185
|
+
cornerRadius={radius}
|
|
186
|
+
config={config}
|
|
187
|
+
restBackdrop={floating || inFloatingRegion ? undefined : backing}
|
|
188
|
+
style={[HOST, style]}
|
|
189
|
+
>
|
|
190
|
+
{children}
|
|
191
|
+
</LensBase>
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
const HOST = { alignSelf: 'flex-start' } as const;
|
|
@@ -39,7 +39,7 @@ export function useFloatingControl(material: string | undefined): boolean {
|
|
|
39
39
|
/**
|
|
40
40
|
* Whether the region is a floating one (a floating header, a toolbar, a bar, a FAB): a fixed layer the
|
|
41
41
|
* window draws the lens of. Outside one a control on the lens is in the page's content, and its lens is
|
|
42
|
-
* drawn in its own place (`
|
|
42
|
+
* drawn in its own place (`withLens`, `lens-frame.tsx`), so it scrolls and stacks with the page instead of
|
|
43
43
|
* being drawn above it by the window.
|
|
44
44
|
*/
|
|
45
45
|
export function useInFloatingRegion(): boolean {
|
|
@@ -127,15 +127,17 @@ const TITLE_PADDING = 4;
|
|
|
127
127
|
const DEFAULT_THRESHOLD = 20;
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
|
-
* The narrowest the centred title
|
|
131
|
-
* to the two sides.
|
|
130
|
+
* The narrowest the centred title is squeezed to before it stops yielding the
|
|
131
|
+
* centre to the two sides.
|
|
132
132
|
*
|
|
133
133
|
* Without a floor the centring inset is `max(startWidth, endWidth)` applied to
|
|
134
134
|
* BOTH sides, so on a narrow container two wide sides can ask for more than the
|
|
135
135
|
* container has — and `left + right > width` is a box of negative width, which
|
|
136
136
|
* on web collapses the title to nothing and on native logs a layout error. The
|
|
137
|
-
* title stops centring before that happens and
|
|
138
|
-
* the
|
|
137
|
+
* title stops centring before that happens and sits off-centre, in the room
|
|
138
|
+
* between the sides. It never takes a side's own room to keep this width: a
|
|
139
|
+
* title laid out under a side's controls is drawn behind them, and a lens
|
|
140
|
+
* control refracts it (Mention's logo under its Spanish "Pregunta a Alia" pill).
|
|
139
141
|
*/
|
|
140
142
|
const MIN_CENTERED_TITLE_WIDTH = 96;
|
|
141
143
|
/** The widths where search and actions change presentation (`sm`, `xl`). */
|
|
@@ -161,8 +163,8 @@ const PAGE_HEADER_LAYOUT_CSS = `
|
|
|
161
163
|
inset-inline-end: var(--bloom-page-header-inset) !important;
|
|
162
164
|
}
|
|
163
165
|
[data-bloom-page-header-center] {
|
|
164
|
-
margin-
|
|
165
|
-
margin-
|
|
166
|
+
margin-inline-start: max(calc(var(--bloom-page-header-start-width, 0px) + ${ROW_GAP}px), clamp(0px, calc(var(--bloom-page-header-side-width, 0px) + ${ROW_GAP}px), max(0px, calc(50% - ${MIN_CENTERED_TITLE_WIDTH / 2}px)))) !important;
|
|
167
|
+
margin-inline-end: max(calc(var(--bloom-page-header-end-width, 0px) + ${ROW_GAP}px), clamp(0px, calc(var(--bloom-page-header-side-width, 0px) + ${ROW_GAP}px), max(0px, calc(50% - ${MIN_CENTERED_TITLE_WIDTH / 2}px)))) !important;
|
|
166
168
|
}
|
|
167
169
|
`;
|
|
168
170
|
|
|
@@ -647,13 +649,17 @@ function PageHeaderComponent({
|
|
|
647
649
|
containerType: 'inline-size',
|
|
648
650
|
containerName: 'bloom-page-header',
|
|
649
651
|
'--bloom-page-header-side-width': `${Math.max(startWidth, endWidth)}px`,
|
|
652
|
+
'--bloom-page-header-start-width': `${startWidth}px`,
|
|
653
|
+
'--bloom-page-header-end-width': `${endWidth}px`,
|
|
650
654
|
}
|
|
651
655
|
: null;
|
|
652
|
-
// A centred title clears the wider side,
|
|
653
|
-
//
|
|
654
|
-
//
|
|
655
|
-
//
|
|
656
|
-
//
|
|
656
|
+
// A centred title clears the wider side on both sides, so it sits on the
|
|
657
|
+
// container's centre. As the room narrows it gives up the centre, never the
|
|
658
|
+
// clearance of its own side: each spacer shrinks to its side's width and no
|
|
659
|
+
// further, so the title slides off-centre into the room the two sides leave
|
|
660
|
+
// and is never laid out under their controls, as Apple's bar places a title
|
|
661
|
+
// that does not fit centred. The web's `clamp()` margins (above), as flex on
|
|
662
|
+
// native, so Yoga resolves it in the pass that lays the window out.
|
|
657
663
|
const centerClearance = Math.max(startWidth, endWidth) + ROW_GAP;
|
|
658
664
|
const centerSpacer = (side: 'before' | 'after') =>
|
|
659
665
|
!isWeb ? (
|
|
@@ -661,7 +667,12 @@ function PageHeaderComponent({
|
|
|
661
667
|
testID={testID ? `${testID}-center-${side}` : undefined}
|
|
662
668
|
// Its basis as a `width` (shrinking): Yoga reads a definite width on
|
|
663
669
|
// every layout, where a changed `flexBasis` keeps the size it computed.
|
|
664
|
-
style={{
|
|
670
|
+
style={{
|
|
671
|
+
flexGrow: 0,
|
|
672
|
+
flexShrink: 1,
|
|
673
|
+
width: centerClearance,
|
|
674
|
+
minWidth: (side === 'before' ? startWidth : endWidth) + ROW_GAP,
|
|
675
|
+
}}
|
|
665
676
|
/>
|
|
666
677
|
) : null;
|
|
667
678
|
|
|
@@ -1172,11 +1183,13 @@ function PageHeaderComponent({
|
|
|
1172
1183
|
[
|
|
1173
1184
|
styles.centerSlot,
|
|
1174
1185
|
searchOccupiesRow && { display: 'none' },
|
|
1186
|
+
// Its minimum while the sides leave room for it; past
|
|
1187
|
+
// that it narrows with the room, so it stays between them.
|
|
1175
1188
|
!isWeb &&
|
|
1176
1189
|
!searchOccupiesRow && {
|
|
1177
1190
|
flexBasis: MIN_CENTERED_TITLE_WIDTH,
|
|
1178
1191
|
flexGrow: 1,
|
|
1179
|
-
flexShrink:
|
|
1192
|
+
flexShrink: 1,
|
|
1180
1193
|
},
|
|
1181
1194
|
],
|
|
1182
1195
|
pointerEventsStyle('box-none'),
|
|
@@ -50,6 +50,15 @@ export function StackScene({ children, navigation, routeKey }: StackSceneProps)
|
|
|
50
50
|
const entered = useSceneEntered(navigation, routeKey);
|
|
51
51
|
return (
|
|
52
52
|
<View
|
|
53
|
+
// Always its own native parent. Fabric mounts the children of a view that
|
|
54
|
+
// only paints (a fill, no stacking context) straight into the view above
|
|
55
|
+
// it, and the accessibility props below make it a stacking context while
|
|
56
|
+
// the scene is covered: a push then moved the whole covered screen from
|
|
57
|
+
// the native screen into this view, and Back moved it out again, each a
|
|
58
|
+
// detach and an attach of every view in it, which draws it all again
|
|
59
|
+
// (Mention's Home, about a thousand views: some 50 ms of a push's mount
|
|
60
|
+
// frame on a Pixel 8a). Unflattened, a push only updates these props.
|
|
61
|
+
collapsable={false}
|
|
53
62
|
style={[styles.scene, { backgroundColor: fill }]}
|
|
54
63
|
importantForAccessibility={focused ? 'auto' : 'no-hide-descendants'}
|
|
55
64
|
accessibilityElementsHidden={!focused}
|
package/src/surface/Surface.tsx
CHANGED
|
@@ -2,16 +2,14 @@ import { ConcentricProvider } from '../concentric/ConcentricProvider';
|
|
|
2
2
|
import { useConcentricGeometry } from '../concentric/use-concentric-geometry';
|
|
3
3
|
import { resolveSurfaceGeometry } from './resolve-surface-geometry';
|
|
4
4
|
import { SURFACE_SHAPES } from '../design-tokens/shapes';
|
|
5
|
-
import type React from 'react';
|
|
6
5
|
import { forwardRef, memo } from 'react';
|
|
7
6
|
import type { ComponentRef } from 'react';
|
|
8
|
-
import {
|
|
7
|
+
import { StyleSheet, View } from 'react-native';
|
|
9
8
|
import { borderRadius } from '../styles/tokens';
|
|
10
|
-
import { SurfaceLevelProvider
|
|
9
|
+
import { SurfaceLevelProvider } from '../styles/surface-levels';
|
|
11
10
|
import { useResolvedSurface } from './use-resolved-surface';
|
|
12
11
|
import { SurfacePaint } from './SurfacePaint';
|
|
13
|
-
import {
|
|
14
|
-
import { useInFloatingRegion, useLensAvailable } from '../floating/lens/lens-material';
|
|
12
|
+
import { useLensFrame, withLens } from '../floating/lens/lens-frame';
|
|
15
13
|
import type { SurfaceProps } from './types';
|
|
16
14
|
import type { MemoRefComponent } from '../styles/native-refs';
|
|
17
15
|
|
|
@@ -67,15 +65,11 @@ const SurfaceComponent = forwardRef<ComponentRef<typeof View>, SurfaceProps>(
|
|
|
67
65
|
const material = useResolvedSurface({
|
|
68
66
|
fill: override === undefined ? undefined : String(override),
|
|
69
67
|
});
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
//
|
|
73
|
-
//
|
|
74
|
-
|
|
75
|
-
// and the status bar as the feed scrolled (Mention's Home, Pixel 8a).
|
|
76
|
-
const backing = useSurfaceFill();
|
|
77
|
-
const restBackdrop = useInFloatingRegion() ? undefined : backing;
|
|
78
|
-
const split = lens ? splitLensStyle(style) : null;
|
|
68
|
+
// On the lens (`material="lens"` where the device has it) the native lens is the material: it
|
|
69
|
+
// draws behind the content. In the page's content it is drawn in its place, so it scrolls and
|
|
70
|
+
// clips with the page; drawn by the window, a feed's compose prompt slid over the header and the
|
|
71
|
+
// status bar as the feed scrolled (Mention's Home, Pixel 8a).
|
|
72
|
+
const frame = useLensFrame(materialProp === 'lens', style);
|
|
79
73
|
const surface = (
|
|
80
74
|
<View
|
|
81
75
|
{...hostProps}
|
|
@@ -84,7 +78,7 @@ const SurfaceComponent = forwardRef<ComponentRef<typeof View>, SurfaceProps>(
|
|
|
84
78
|
testID={testID}
|
|
85
79
|
style={[
|
|
86
80
|
{ position: 'relative' },
|
|
87
|
-
|
|
81
|
+
frame.style,
|
|
88
82
|
{
|
|
89
83
|
backgroundColor: 'transparent',
|
|
90
84
|
...material.vars,
|
|
@@ -93,7 +87,7 @@ const SurfaceComponent = forwardRef<ComponentRef<typeof View>, SurfaceProps>(
|
|
|
93
87
|
},
|
|
94
88
|
]}
|
|
95
89
|
>
|
|
96
|
-
{material.painted && !lens ? (
|
|
90
|
+
{material.painted && !frame.lens ? (
|
|
97
91
|
<SurfacePaint
|
|
98
92
|
rim={rim}
|
|
99
93
|
sheen={sheen}
|
|
@@ -108,18 +102,9 @@ const SurfaceComponent = forwardRef<ComponentRef<typeof View>, SurfaceProps>(
|
|
|
108
102
|
</SurfaceLevelProvider>
|
|
109
103
|
</View>
|
|
110
104
|
);
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return (
|
|
115
|
-
<LensButtonHost
|
|
116
|
-
radius={typeof geometry.radius === 'number' ? geometry.radius : undefined}
|
|
117
|
-
restBackdrop={restBackdrop}
|
|
118
|
-
style={split.host}
|
|
119
|
-
>
|
|
120
|
-
{surface}
|
|
121
|
-
</LensButtonHost>
|
|
122
|
-
);
|
|
105
|
+
return withLens(frame, surface, {
|
|
106
|
+
radius: typeof geometry.radius === 'number' ? geometry.radius : undefined,
|
|
107
|
+
});
|
|
123
108
|
},
|
|
124
109
|
);
|
|
125
110
|
|
|
@@ -5,8 +5,7 @@ import { resolveTabBarTheme } from './shared';
|
|
|
5
5
|
import { pointerEventsStyle } from '../styles/pointer-events';
|
|
6
6
|
import { resolveSurfaceMaterial } from '../surface/resolve-surface-material';
|
|
7
7
|
import { TabBarSurface } from './surface';
|
|
8
|
-
import {
|
|
9
|
-
import { useLensAvailable } from '../floating/lens/lens-material';
|
|
8
|
+
import { useLensFrame, withLens } from '../floating/lens/lens-frame';
|
|
10
9
|
import { SurfacePaint } from '../surface/SurfacePaint';
|
|
11
10
|
import { IS_WEB } from '../styles/platform';
|
|
12
11
|
import { borderRadius } from '../styles/tokens';
|
|
@@ -142,6 +141,9 @@ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
|
142
141
|
*/
|
|
143
142
|
const BAR_JELLY = 0.35;
|
|
144
143
|
|
|
144
|
+
/** Where the bar's lens host sits: across the bar. */
|
|
145
|
+
const BAR_LENS_HOST = { alignSelf: 'stretch', flex: 1 } as const;
|
|
146
|
+
|
|
145
147
|
const BarContext = createContext<BarContextValue | null>(null);
|
|
146
148
|
const subscribeHydration = () => () => {};
|
|
147
149
|
const hydratedSnapshot = () => true;
|
|
@@ -555,8 +557,9 @@ function TabBarBody({
|
|
|
555
557
|
// Native (plugin present) auto-tracks and ignores the extra deps, so listing
|
|
556
558
|
// them is correct on both platforms. Same rule as `BottomSheetBase` and
|
|
557
559
|
// `ZoomableMediaGallery`. Do NOT strip these.
|
|
558
|
-
// The bar's material: the native lens behind the items where the device has it, else the shared
|
|
559
|
-
|
|
560
|
+
// The bar's material: the native lens behind the items where the device has it, else the shared
|
|
561
|
+
// surface. The bar floats over the content, so the window draws its lens.
|
|
562
|
+
const lensFrame = useLensFrame(true, BAR_LENS_HOST);
|
|
560
563
|
const barStyle = useAnimatedStyle(() => {
|
|
561
564
|
const height = interpolate(
|
|
562
565
|
progress.value,
|
|
@@ -829,10 +832,11 @@ function TabBarBody({
|
|
|
829
832
|
>
|
|
830
833
|
<OptionalGesture enabled={!scrollable && !collapseActive} gesture={gesture}>
|
|
831
834
|
<Animated.View style={[barStyle, surfaceFillVars(recipe.paint.material.publishedFill)]}>
|
|
832
|
-
{lens ? (
|
|
833
|
-
<
|
|
834
|
-
|
|
835
|
-
|
|
835
|
+
{lensFrame.lens ? (
|
|
836
|
+
withLens(lensFrame, <View style={styles.lensContent}>{barContent}</View>, {
|
|
837
|
+
jelly: BAR_JELLY,
|
|
838
|
+
floating: true,
|
|
839
|
+
})
|
|
836
840
|
) : (
|
|
837
841
|
<>
|
|
838
842
|
<TabBarSurface
|
|
@@ -1105,6 +1109,7 @@ export function createTabBarButton(Glyph: ComponentType<TabBarGlyphProps>) {
|
|
|
1105
1109
|
}
|
|
1106
1110
|
|
|
1107
1111
|
const styles = StyleSheet.create({
|
|
1112
|
+
lensContent: { flex: 1 },
|
|
1108
1113
|
root: {
|
|
1109
1114
|
// The shared compiled pointer stylesheet keeps the bar's gaps transparent
|
|
1110
1115
|
// to input while its children stay interactive, without deprecated props.
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.LensButtonHost = LensButtonHost;
|
|
7
|
-
exports.splitLensStyle = splitLensStyle;
|
|
8
|
-
var _compilerRuntime = require("react/compiler-runtime");
|
|
9
|
-
var _react = require("react");
|
|
10
|
-
var _reactNative = require("react-native");
|
|
11
|
-
var _useTheme = require("../../theme/use-theme.js");
|
|
12
|
-
var _lensFrost = require("./lens-frost.js");
|
|
13
|
-
var _lensTint = require("./lens-tint.js");
|
|
14
|
-
var _lensMaterial = require("./lens-material.js");
|
|
15
|
-
var _nativeLens = require("./native-lens.js");
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
/**
|
|
18
|
-
* The native lens material for a control: the lens base (see `@oxy.so/bloom-lens`), the same
|
|
19
|
-
* lens a menu grows out of. It draws the fill (the lens, tinted), springs under the finger and runs on the
|
|
20
|
-
* UI thread; the control inside only draws its content and handles the press.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/** The style keys that place a control among its siblings: they belong to the lens host. */const PLACEMENT_KEYS = ['position', 'top', 'right', 'bottom', 'left', 'start', 'end', 'zIndex', 'alignSelf', 'flex', 'flexGrow', 'flexShrink', 'flexBasis', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginHorizontal', 'marginVertical', 'marginStart', 'marginEnd'];
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Splits a control's style in two: where it sits (the host's) and what it looks like and how big
|
|
27
|
-
* it is (the control's). Size stays with both so the host and the control are the same box.
|
|
28
|
-
*/
|
|
29
|
-
function splitLensStyle(style) {
|
|
30
|
-
const flat = _reactNative.StyleSheet.flatten(style) ?? {};
|
|
31
|
-
const {
|
|
32
|
-
position,
|
|
33
|
-
top,
|
|
34
|
-
right,
|
|
35
|
-
bottom,
|
|
36
|
-
left,
|
|
37
|
-
start,
|
|
38
|
-
end,
|
|
39
|
-
zIndex,
|
|
40
|
-
alignSelf
|
|
41
|
-
} = flat;
|
|
42
|
-
const {
|
|
43
|
-
flex,
|
|
44
|
-
flexGrow,
|
|
45
|
-
flexShrink,
|
|
46
|
-
flexBasis
|
|
47
|
-
} = flat;
|
|
48
|
-
const {
|
|
49
|
-
margin,
|
|
50
|
-
marginTop,
|
|
51
|
-
marginRight,
|
|
52
|
-
marginBottom,
|
|
53
|
-
marginLeft
|
|
54
|
-
} = flat;
|
|
55
|
-
const {
|
|
56
|
-
marginHorizontal,
|
|
57
|
-
marginVertical,
|
|
58
|
-
marginStart,
|
|
59
|
-
marginEnd
|
|
60
|
-
} = flat;
|
|
61
|
-
const {
|
|
62
|
-
width,
|
|
63
|
-
height,
|
|
64
|
-
minWidth,
|
|
65
|
-
minHeight,
|
|
66
|
-
maxWidth,
|
|
67
|
-
maxHeight
|
|
68
|
-
} = flat;
|
|
69
|
-
const host = {
|
|
70
|
-
position,
|
|
71
|
-
top,
|
|
72
|
-
right,
|
|
73
|
-
bottom,
|
|
74
|
-
left,
|
|
75
|
-
start,
|
|
76
|
-
end,
|
|
77
|
-
zIndex,
|
|
78
|
-
alignSelf,
|
|
79
|
-
flex,
|
|
80
|
-
flexGrow,
|
|
81
|
-
flexShrink,
|
|
82
|
-
flexBasis,
|
|
83
|
-
margin,
|
|
84
|
-
marginTop,
|
|
85
|
-
marginRight,
|
|
86
|
-
marginBottom,
|
|
87
|
-
marginLeft,
|
|
88
|
-
marginHorizontal,
|
|
89
|
-
marginVertical,
|
|
90
|
-
marginStart,
|
|
91
|
-
marginEnd,
|
|
92
|
-
// Size stays with both, so the host and the control are the same box.
|
|
93
|
-
width,
|
|
94
|
-
height,
|
|
95
|
-
minWidth,
|
|
96
|
-
minHeight,
|
|
97
|
-
maxWidth,
|
|
98
|
-
maxHeight
|
|
99
|
-
};
|
|
100
|
-
const control = {
|
|
101
|
-
...flat
|
|
102
|
-
};
|
|
103
|
-
for (const key of PLACEMENT_KEYS) delete control[key];
|
|
104
|
-
return {
|
|
105
|
-
host: definedOnly(host),
|
|
106
|
-
control
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
function definedOnly(style) {
|
|
110
|
-
return Object.fromEntries(Object.entries(style).filter(([, value]) => value !== undefined));
|
|
111
|
-
}
|
|
112
|
-
function LensButtonHost(t0) {
|
|
113
|
-
const $ = (0, _compilerRuntime.c)(21);
|
|
114
|
-
const {
|
|
115
|
-
tint,
|
|
116
|
-
radius,
|
|
117
|
-
jelly,
|
|
118
|
-
restBackdrop,
|
|
119
|
-
style,
|
|
120
|
-
children
|
|
121
|
-
} = t0;
|
|
122
|
-
const native = (0, _lensMaterial.useLensAvailable)() ? (0, _nativeLens.getNativeLens)() : null;
|
|
123
|
-
const dark = (0, _useTheme.useTheme)().isDark;
|
|
124
|
-
let t1;
|
|
125
|
-
if ($[0] !== tint) {
|
|
126
|
-
t1 = tint ? {
|
|
127
|
-
tintColor: tint,
|
|
128
|
-
tintOpacity: _lensTint.LENS_FILL_TINT
|
|
129
|
-
} : null;
|
|
130
|
-
$[0] = tint;
|
|
131
|
-
$[1] = t1;
|
|
132
|
-
} else {
|
|
133
|
-
t1 = $[1];
|
|
134
|
-
}
|
|
135
|
-
let t2;
|
|
136
|
-
if ($[2] !== jelly) {
|
|
137
|
-
t2 = jelly === undefined ? null : {
|
|
138
|
-
jelly
|
|
139
|
-
};
|
|
140
|
-
$[2] = jelly;
|
|
141
|
-
$[3] = t2;
|
|
142
|
-
} else {
|
|
143
|
-
t2 = $[3];
|
|
144
|
-
}
|
|
145
|
-
let t3;
|
|
146
|
-
if ($[4] !== t1 || $[5] !== t2) {
|
|
147
|
-
t3 = {
|
|
148
|
-
blur: _lensFrost.LENS_FROST.control,
|
|
149
|
-
...t1,
|
|
150
|
-
...t2
|
|
151
|
-
};
|
|
152
|
-
$[4] = t1;
|
|
153
|
-
$[5] = t2;
|
|
154
|
-
$[6] = t3;
|
|
155
|
-
} else {
|
|
156
|
-
t3 = $[6];
|
|
157
|
-
}
|
|
158
|
-
const config = t3;
|
|
159
|
-
if (!native) {
|
|
160
|
-
let t4;
|
|
161
|
-
if ($[7] !== children) {
|
|
162
|
-
t4 = _react.Children.only(children);
|
|
163
|
-
$[7] = children;
|
|
164
|
-
$[8] = t4;
|
|
165
|
-
} else {
|
|
166
|
-
t4 = $[8];
|
|
167
|
-
}
|
|
168
|
-
let t5;
|
|
169
|
-
if ($[9] !== t4) {
|
|
170
|
-
t5 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
171
|
-
children: t4
|
|
172
|
-
});
|
|
173
|
-
$[9] = t4;
|
|
174
|
-
$[10] = t5;
|
|
175
|
-
} else {
|
|
176
|
-
t5 = $[10];
|
|
177
|
-
}
|
|
178
|
-
return t5;
|
|
179
|
-
}
|
|
180
|
-
const {
|
|
181
|
-
LensBase
|
|
182
|
-
} = native;
|
|
183
|
-
const t4 = dark ? "dark" : "light";
|
|
184
|
-
let t5;
|
|
185
|
-
if ($[11] !== style) {
|
|
186
|
-
t5 = [HOST, style];
|
|
187
|
-
$[11] = style;
|
|
188
|
-
$[12] = t5;
|
|
189
|
-
} else {
|
|
190
|
-
t5 = $[12];
|
|
191
|
-
}
|
|
192
|
-
let t6;
|
|
193
|
-
if ($[13] !== LensBase || $[14] !== children || $[15] !== config || $[16] !== radius || $[17] !== restBackdrop || $[18] !== t4 || $[19] !== t5) {
|
|
194
|
-
t6 = /*#__PURE__*/(0, _jsxRuntime.jsx)(LensBase, {
|
|
195
|
-
colorScheme: t4,
|
|
196
|
-
cornerRadius: radius,
|
|
197
|
-
config: config,
|
|
198
|
-
restBackdrop: restBackdrop,
|
|
199
|
-
style: t5,
|
|
200
|
-
children: children
|
|
201
|
-
});
|
|
202
|
-
$[13] = LensBase;
|
|
203
|
-
$[14] = children;
|
|
204
|
-
$[15] = config;
|
|
205
|
-
$[16] = radius;
|
|
206
|
-
$[17] = restBackdrop;
|
|
207
|
-
$[18] = t4;
|
|
208
|
-
$[19] = t5;
|
|
209
|
-
$[20] = t6;
|
|
210
|
-
} else {
|
|
211
|
-
t6 = $[20];
|
|
212
|
-
}
|
|
213
|
-
return t6;
|
|
214
|
-
}
|
|
215
|
-
const HOST = {
|
|
216
|
-
alignSelf: 'flex-start'
|
|
217
|
-
};
|
|
218
|
-
//# sourceMappingURL=lens-button-host.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_useTheme","_lensFrost","_lensTint","_lensMaterial","_nativeLens","_jsxRuntime","PLACEMENT_KEYS","splitLensStyle","style","flat","StyleSheet","flatten","position","top","right","bottom","left","start","end","zIndex","alignSelf","flex","flexGrow","flexShrink","flexBasis","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","marginStart","marginEnd","width","height","minWidth","minHeight","maxWidth","maxHeight","host","control","key","definedOnly","Object","fromEntries","entries","filter","value","undefined","LensButtonHost","t0","$","_compilerRuntime","c","tint","radius","jelly","restBackdrop","children","native","useLensAvailable","getNativeLens","dark","useTheme","isDark","t1","tintColor","tintOpacity","LENS_FILL_TINT","t2","t3","blur","LENS_FROST","config","t4","Children","only","t5","jsx","Fragment","LensBase","HOST","t6","colorScheme"],"sourceRoot":"../../../../src","sources":["floating/lens/lens-button-host.tsx"],"mappings":";;;;;;;;AAKA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAA8C,IAAAO,WAAA,GAAAP,OAAA;AAZ9C;AACA;AACA;AACA;AACA;;AAUA,4FACA,MAAMQ,cAAc,GAAG,CACrB,UAAU,EACV,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAAW,EACX,MAAM,EACN,UAAU,EACV,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,WAAW,EACX,aAAa,EACb,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,WAAW,CACH;;AAEV;AACA;AACA;AACA;AACO,SAASC,cAAcA,CAACC,KAA2B,EAGxD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