@oxy.so/bloom 19.5.0 → 19.5.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/docs/adoption-matrix.mdx +7 -7
- package/docs/concentric.mdx +5 -0
- package/docs/connection-dots.mdx +5 -0
- package/docs/connection-status.mdx +4 -0
- package/docs/public-parts.mdx +7 -4
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/motion/use-eased-values.js +13 -3
- package/lib/commonjs/motion/use-eased-values.js.map +1 -1
- package/lib/module/motion/use-eased-values.js +13 -3
- package/lib/module/motion/use-eased-values.js.map +1 -1
- package/lib/typescript/commonjs/motion/use-eased-values.d.ts +8 -0
- package/lib/typescript/commonjs/motion/use-eased-values.d.ts.map +1 -1
- package/lib/typescript/module/motion/use-eased-values.d.ts +8 -0
- package/lib/typescript/module/motion/use-eased-values.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/support/public-part-classifications.json +42 -3
- package/src/motion/use-eased-values.ts +13 -3
package/docs/adoption-matrix.mdx
CHANGED
|
@@ -115,7 +115,7 @@ None.
|
|
|
115
115
|
| `animated-check` | `@oxy.so/bloom/animated-check` + barrel | universal | `animated-check.mdx` | yes | 2 | | | | |
|
|
116
116
|
| `announcement` | `@oxy.so/bloom/announcement` + barrel | universal | `announcement.mdx` | yes | 3 | | | | |
|
|
117
117
|
| `app-shell` | `@oxy.so/bloom/app-shell` + barrel | web fork | `app-shell.mdx` | yes | 51 | | | | reads |
|
|
118
|
-
| `appearance` | `@oxy.so/bloom/appearance` + barrel | universal | `composition.mdx` | yes |
|
|
118
|
+
| `appearance` | `@oxy.so/bloom/appearance` + barrel | universal | `composition.mdx` | yes | 55 | | reads | | |
|
|
119
119
|
| `aspect-ratio` | `@oxy.so/bloom/aspect-ratio` + barrel | universal | `aspect-ratio.mdx` | yes | 1 | | | | |
|
|
120
120
|
| `auth-card` | `@oxy.so/bloom/auth-card` + barrel | universal | `auth-card.mdx` | yes | 2 | | | | |
|
|
121
121
|
| `avatar` | `@oxy.so/bloom/avatar` + barrel | universal | `avatar.mdx` | yes | 11 | | reads | | |
|
|
@@ -128,7 +128,7 @@ None.
|
|
|
128
128
|
| `bottom-promo` | `@oxy.so/bloom/bottom-promo` + barrel | universal | `bottom-promo.mdx` | yes | 1 | | | | |
|
|
129
129
|
| `bottom-sheet` | `@oxy.so/bloom/bottom-sheet` + barrel | web fork | `bottom-sheet.mdx` | yes | 17 | | | | |
|
|
130
130
|
| `breadcrumb` | `@oxy.so/bloom/breadcrumb` + barrel | web fork | `breadcrumb.mdx` | yes | 4 | | reads | | |
|
|
131
|
-
| `button` | `@oxy.so/bloom/button` + barrel | web fork | `button.mdx` | yes |
|
|
131
|
+
| `button` | `@oxy.so/bloom/button` + barrel | web fork | `button.mdx` | yes | 83 | | reads | n/a¹ | |
|
|
132
132
|
| `button-group` | `@oxy.so/bloom/button-group` + barrel | web fork | `button-group.mdx` | yes | 12 | | reads | | |
|
|
133
133
|
| `calendar` | `@oxy.so/bloom/calendar` + barrel | universal | `calendar.mdx` | yes | 3 | | | | reads |
|
|
134
134
|
| `call-ui` | `@oxy.so/bloom/call-ui` + barrel | universal | `call-ui.mdx` | yes | 2 | | reads | | |
|
|
@@ -157,9 +157,9 @@ None.
|
|
|
157
157
|
| `composer-loader` | `@oxy.so/bloom/composer-loader` + barrel | web fork | `composer-loader.mdx` | yes | 5 | | | | |
|
|
158
158
|
| `composer-panel` | `@oxy.so/bloom/composer-panel` + barrel | web fork | `composer-panel.mdx` | yes | 12 | n/a¹ | | | reads |
|
|
159
159
|
| `composition-bar` | `@oxy.so/bloom/composition-bar` + barrel | universal | `composition-bar.mdx` | yes | 1 | | | | |
|
|
160
|
-
| `concentric` | `@oxy.so/bloom/concentric` + barrel | universal | `concentric.mdx` | yes |
|
|
161
|
-
| `connection-dots` | `@oxy.so/bloom/connection-dots` + barrel | web fork | `connection-dots.mdx` | yes |
|
|
162
|
-
| `connection-status` | `@oxy.so/bloom/connection-status` + barrel | web fork | `connection-status.mdx` | yes |
|
|
160
|
+
| `concentric` | `@oxy.so/bloom/concentric` + barrel | universal | `concentric.mdx` | yes | 5 | | | | |
|
|
161
|
+
| `connection-dots` | `@oxy.so/bloom/connection-dots` + barrel | web fork | `connection-dots.mdx` | yes | 4 | | | | |
|
|
162
|
+
| `connection-status` | `@oxy.so/bloom/connection-status` + barrel | web fork | `connection-status.mdx` | yes | 4 | | | | |
|
|
163
163
|
| `contact-card` | `@oxy.so/bloom/contact-card` + barrel | universal | `contact-card.mdx` | yes | 2 | | | | |
|
|
164
164
|
| `content-panel` | `@oxy.so/bloom/content-panel` + barrel | web fork | `content-panel.mdx` | yes | 12 | | | | |
|
|
165
165
|
| `context-menu` | `@oxy.so/bloom/context-menu` + barrel | web fork | `context-menu.mdx` | yes | 11 | | | reads | |
|
|
@@ -325,9 +325,9 @@ None.
|
|
|
325
325
|
| `tenancy` | `@oxy.so/bloom/tenancy` + barrel | universal | `tenancy.mdx` | yes | 5 | | reads | | |
|
|
326
326
|
| `text-field` | `@oxy.so/bloom/text-field` + barrel | universal | `text-field.mdx` | yes | 27 | reads | reads | | |
|
|
327
327
|
| `textarea` | `@oxy.so/bloom/textarea` + barrel | universal | `textarea.mdx` | yes | 6 | reads | reads | | n/a¹ |
|
|
328
|
-
| `theme` | `@oxy.so/bloom/theme` + barrel | web fork | `theme.mdx` | yes |
|
|
328
|
+
| `theme` | `@oxy.so/bloom/theme` + barrel | web fork | `theme.mdx` | yes | 656 | | | n/a¹ | reads |
|
|
329
329
|
| `theme-toggle` | `@oxy.so/bloom/theme-toggle` + barrel | universal | `theme-toggle.mdx` | yes | 2 | n/a¹ | | | |
|
|
330
|
-
| `toast` | `@oxy.so/bloom/toast` + barrel | universal | `toast.mdx` | yes |
|
|
330
|
+
| `toast` | `@oxy.so/bloom/toast` + barrel | universal | `toast.mdx` | yes | 21 | | | | |
|
|
331
331
|
| `tooltip` | `@oxy.so/bloom/tooltip` + barrel | web fork | `tooltip.mdx` | yes | 7 | | reads | | |
|
|
332
332
|
| `track-list` | `@oxy.so/bloom/track-list` + barrel | universal | `track-list.mdx` | yes | 3 | | | | reads |
|
|
333
333
|
| `typography` | `@oxy.so/bloom/typography` + barrel | universal | `typography.mdx` | yes | 31 | | | | |
|
package/docs/concentric.mdx
CHANGED
|
@@ -54,6 +54,11 @@ not inspected. Explicit `radius` takes precedence over utility classes.
|
|
|
54
54
|
|
|
55
55
|
## Scope
|
|
56
56
|
|
|
57
|
+
`ConcentricView` has no Bloom control-size prop and does not change the size
|
|
58
|
+
scope. Controls inside it inherit the closest `BloomScope` as usual; explicit
|
|
59
|
+
control sizes and nested scopes keep their normal precedence. Radius, padding,
|
|
60
|
+
and border geometry remain independent of control size.
|
|
61
|
+
|
|
57
62
|
The calculation models circular corners in normal nested layout. It does not
|
|
58
63
|
infer absolute-positioned offsets, sibling placement, transforms or elliptical
|
|
59
64
|
radii. Numeric React Native styles work on both platforms; web-only length
|
package/docs/connection-dots.mdx
CHANGED
|
@@ -28,6 +28,11 @@ import { ConnectionDots } from '@oxy.so/bloom/connection-dots';
|
|
|
28
28
|
| `accessibilityLabel` | what the whole illustration means |
|
|
29
29
|
| `reducedMotion` | render the dots static instead of animating |
|
|
30
30
|
|
|
31
|
+
The row has no Bloom control-size prop. Dot diameter and count are artwork
|
|
32
|
+
dimensions; they do not shrink under a surrounding `BloomScope`. The `left`
|
|
33
|
+
and `right` children are rendered as supplied, so their own controls inherit
|
|
34
|
+
the caller's scope or an explicit nested scope normally.
|
|
35
|
+
|
|
31
36
|
## It illustrates a relationship, not progress
|
|
32
37
|
|
|
33
38
|
The dots move continuously; they do not fill up. Nothing here says how far
|
|
@@ -14,6 +14,10 @@ import { ConnectionStatusToasts } from '@oxy.so/bloom/connection-status';
|
|
|
14
14
|
<ConnectionStatusToasts />
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
`ConnectionStatusToasts` renders no interface. It reports through Bloom's
|
|
18
|
+
shared `Toast` engine, which owns the visible notification and its sizing; a
|
|
19
|
+
`BloomScope` around this reporter does not set the toast's control size.
|
|
20
|
+
|
|
17
21
|
## Which prop decides what
|
|
18
22
|
|
|
19
23
|
| prop | decides |
|
package/docs/public-parts.mdx
CHANGED
|
@@ -19,6 +19,8 @@ Classification is an explicit equality-checked ledger keyed by part-contract ide
|
|
|
19
19
|
| group | status | parts | reason and evidence |
|
|
20
20
|
| --- | --- | ---: | --- |
|
|
21
21
|
| ui-indicators | applicable | 3 | Noninteractive UI status/count badges share surrounding UI proportions. Explicit size wins; PresenceDot maps xs to sm; two-rung UnreadBadge/EnergyBadge map xs/sm to sm and md/lg to md. Semantic status/rating colors remain independent of scope tone. Evidence: `src/__tests__/PublicPartScope.test.tsx`, `src/__tests__/PublicPartScope.web.test.tsx`, `scripts/verify-public-part-scope.mjs`. mock-rendered native and DOM web: default, nearest, explicit, nested, wrappers, actual portal; physical layout and device accessibility pending; Chromium actual geometry and accessible-name attributes: 16 hosts across xs/sm/md/lg plus explicit md, light/dark at 390/1100 CSS px (4 scenarios). |
|
|
22
|
+
| concentric-geometry | independent-scale | 1 | ConcentricView owns rounded-corner geometry derived from radius, padding, border and margin; it has no Bloom control-size prop. It renders children inside its geometry context without replacing BloomScope, so child controls keep the nearest scope and explicit size precedence. Evidence: `src/concentric/ConcentricView.tsx`, `docs/concentric.mdx`, `src/__tests__/ConcentricViewPublicPartScope.test.tsx`, `src/__tests__/ConcentricViewPublicPartScope.web.test.tsx`. native renderer and DOM web verify default md, nearest xs/lg, nested lg over xs, explicit md over xs through nested ConcentricView wrappers; fixed radius 32 remains geometry-owned. ConcentricView owns no portal or submenu. Physical-device geometry remains unverified. |
|
|
23
|
+
| connection-status-toasts | delegated | 1 | ConnectionStatusToasts renders null and sends only messages, intent and duration to Bloom's shared Toast engine. ToastHost owns the visible notification and its size contract; this reporter has no UI whose size scope it could consume. Evidence: `src/connection-status/shared.ts`, `src/toast/Toaster.tsx`, `src/toast/ToastHost.tsx`, `src/toast/ToastHost.native.tsx`, `docs/connection-status.mdx`, `src/__tests__/connection-status-netinfo.test.tsx`, `src/__tests__/ConnectionStatusToastsPublicPartScope.web.test.tsx`. native renderer and DOM web prove the reporter emits no view under xs scope and delegates an offline message without a size value; ToastHost owns the rendered surface. Platform-specific network signals remain tested at their respective boundaries. |
|
|
22
24
|
| code-document | independent-scale | 1 | CodeLines size selects code typography/line-number metrics (sm 11/18, md 13/23), not chrome or touch targets. CodeBlock passes its content size deliberately; surrounding control scope must not silently rewrite source-code reading density. Evidence: `src/code/CodeLines.tsx`, `src/code/CodeBlock.tsx`, `src/__tests__/PublicPartScope.test.tsx`, `src/__tests__/PublicPartScope.web.test.tsx`. native mock and DOM web verify independent defaults under xs/lg control scopes and explicit document/artwork sizes; physical-device rendering pending. |
|
|
23
25
|
| markdown-document | independent-scale | 1 | Markdown size sets a whole document reading recipe (body, heading hierarchy and block spacing). Its MarkdownProvider passes that explicit document size to blocks. A compact toolbar is not permission to shrink document text. Evidence: `src/markdown/Markdown.tsx`, `src/markdown/context.ts`, `docs/markdown.mdx`, `src/__tests__/PublicPartScope.test.tsx`, `src/__tests__/PublicPartScope.web.test.tsx`. native mock and DOM web verify independent defaults under xs/lg control scopes and explicit document/artwork sizes; physical-device rendering pending. |
|
|
24
26
|
| audio-art | independent-scale | 1 | AudioWaveVisualizer size sets waveform amplitude box/bar thickness (heights 24/40/72). It is hidden decorative signal artwork with data-driven levels, not a control or a status-label typography recipe. Keep explicit artwork dimensions rather than making control scope alter signal amplitude geometry. Evidence: `src/voice/AudioWaveVisualizer.tsx`, `src/voice/constants.ts`, `src/__tests__/PublicPartScope.test.tsx`, `src/__tests__/PublicPartScope.web.test.tsx`. native mock and DOM web verify independent defaults under xs/lg control scopes and explicit document/artwork sizes; physical-device rendering pending. |
|
|
@@ -30,7 +32,8 @@ Classification is an explicit equality-checked ledger keyed by part-contract ide
|
|
|
30
32
|
| accordion-trigger-part | applicable | 1 | AccordionTrigger is an interactive disclosure control. Its typography, vertical padding, icon and gap now follow the inherited or explicit Accordion size recipe while preserving the established md geometry. Evidence: `src/accordion/geometry.ts`, `src/accordion/Accordion.tsx`, `src/accordion/Accordion.web.tsx`, `src/__tests__/AccordionPublicPartScope.test.tsx`, `src/__tests__/AccordionPublicPartScope.web.test.tsx`. native mock and RNW DOM measure md 15/12/8px, xs 12/8/6px, sm 13/10/8px and lg 17/14/10px typography/padding/gap under inherited, nested and explicit sizes; native touch renderer keeps 44px minimum height; physical-device target fit pending. |
|
|
31
33
|
| accordion-content-part | applicable | 1 | AccordionContent owns measured disclosure-body spacing. Its trailing padding follows the same inherited size scale so the animated content measurement stays aligned with the trigger recipe. Evidence: `src/accordion/geometry.ts`, `src/accordion/Accordion.tsx`, `src/accordion/Accordion.web.tsx`, `src/__tests__/AccordionPublicPartScope.test.tsx`, `src/__tests__/AccordionPublicPartScope.web.test.tsx`. native mock measures body padding at xs 8px, sm 10px, md 12px and lg 14px; RNW DOM verifies the matching size-specific body CSS recipe under inherited, nested and explicit sizes; physical-device layout pending. |
|
|
32
34
|
| text-field-core | applicable | 2 | TextField owns the shared field shell and propagates its resolved size to TextFieldInput; standalone TextFieldInput owns its own standard control geometry. Both participate in BloomScope sizing, with explicit size taking precedence. Adornments and hosted parts remain separately classified. Evidence: `src/text-field/TextField.tsx`, `src/text-field/shared.ts`, `src/__tests__/TextFieldPublicPartScope.test.tsx`, `src/__tests__/TextFieldPublicPartScope.web.test.tsx`. native renderer and RNW DOM verify default md (36px), inherited xs (28px), inherited lg (44px), explicit field lg and standalone input md overrides inside xs, nested xs/lg, and actual native/web portals; physical-device layout and accessibility remain pending. |
|
|
33
|
-
|
|
|
35
|
+
| connection-dots-art | independent-scale | 1 | ConnectionDots is a relationship illustration, not a control. dotSize and dotCount are explicit artwork dimensions, so the row and dots do not consume BloomScope control size. The left/right endpoints are rendered as supplied and preserve caller and nested child-control scopes. Evidence: `src/connection-dots/ConnectionDots.tsx`, `src/connection-dots/ConnectionDots.web.tsx`, `src/connection-dots/ConnectionDotsBase.tsx`, `src/connection-dots/types.ts`, `docs/connection-dots.mdx`, `src/__tests__/ConnectionDotsPublicPartScope.test.tsx`, `src/__tests__/ConnectionDotsPublicPartScope.web.test.tsx`. Native-renderer and DOM web checks verify default md endpoints, inherited xs, nested lg, explicit child size, and independent dot diameter/count. This family does not own portals or submenus; physical-device geometry remains unverified.. |
|
|
36
|
+
| pending | pending | 832 | Public React identity and prop vocabulary are enumerated, but per-part applicability/delegation and complete runtime matrix have not yet been audited. Family hook imports and transitive reachability grant no conformance. Evidence: none yet. pending; not a passing adoption verdict. |
|
|
34
37
|
| navigation-layout | independent-scale | 3 | PageHeader, TabBar and BottomBar own screen chrome, measured edge claims, safe areas and expanded/minimized navigation geometry, not a canonical control-size prop. Preserve those role-specific layout recipes; their separately exported controls/parts still need their own applicability audit. Native and web runtime tests verify the fixed header/tab/navigation dimensions remain stable under xs and lg BloomScope; fixed chrome dimensions do not establish that targets inside or surrounding controls meet touch contracts. Evidence: `src/page-header/PageHeader.tsx`, `src/tab-bar/TabBarBase.tsx`, `src/bottom-bar/BottomBarBase.tsx`, `src/__tests__/NavigationPublicPartScope.test.tsx`, `src/__tests__/NavigationPublicPartScope.web.test.tsx`. mock-rendered native styles and DOM-computed web styles compare PageHeader navigation min-height 44, TabBar pill height 58 and BottomBar height 74 under xs and lg BloomScope; physical layout, control proportions and target matrix pending. |
|
|
35
38
|
| historical-scope-regression | applicable | 9 | These are the size-consuming parts repaired in #417, not new gaps inferred from the historical family table. The existing web regression checks defaults, inherited rungs, nested scopes and explicit overrides; Tooltip content parts also cross their real web portal. Keep each existing recipe and partial mapping. Evidence: `src/__tests__/InheritedControlSize.web.test.tsx`, `src/__tests__/Voice.test.tsx`, `src/__tests__/ChatPeople.test.tsx`, `src/__tests__/CreatorStudio.test.tsx`, `src/__tests__/OfferingBadge.test.tsx`. existing web scope regressions rerun; native family regressions rerun but complete per-part native scope/portal and device matrix remains pending. |
|
|
36
39
|
| external-router-parts | pending | 6 | Expo Router Link static parts are forwarded by Object.assign in the router adapter. Their declarations and implementations belong to the external package; inclusion records the public contract, not BloomScope adoption or a Bloom-owned implementation. Each part still needs semantic and platform review. Evidence: `src/panel-routing/expo-router/PanelRouterAdapter.tsx`, `src/__tests__/public-parts.test.ts`. Type-resolved native/web routes and declaration provenance only; external runtime behavior and size semantics remain unaudited. |
|
|
@@ -319,9 +322,9 @@ Routes use `native:` / `web:` followed by the package subpath and export name. `
|
|
|
319
322
|
| `src/composer-panel/ComposerStatusBar.tsx#ComposerStatusBar` (`src/composer-panel/ComposerStatusBar.tsx`, `src/composer-panel/ComposerStatusBar.web.tsx`) | `native:.#ComposerStatusBar` · `native:./composer-panel#ComposerStatusBar` · `web:.#ComposerStatusBar` · `web:./composer-panel#ComposerStatusBar` | no public size prop | pending |
|
|
320
323
|
| `src/composer-panel/ModelPicker.tsx#ModelPicker` (`src/composer-panel/ModelPicker.tsx`, `src/composer-panel/ModelPicker.web.tsx`) | `native:.#ModelPicker` · `native:./composer-panel#ModelPicker` · `web:.#ModelPicker` · `web:./composer-panel#ModelPicker` | no public size prop | pending |
|
|
321
324
|
| `src/composition-bar/CompositionBar.tsx#CompositionBar` (`src/composition-bar/CompositionBar.tsx`) | `native:.#CompositionBar` · `native:./composition-bar#CompositionBar` · `web:.#CompositionBar` · `web:./composition-bar#CompositionBar` | no public size prop | pending |
|
|
322
|
-
| `src/concentric/ConcentricView.tsx#ConcentricView` (`src/concentric/ConcentricView.tsx`) | `native:.#ConcentricView` · `native:./concentric#ConcentricView` · `web:.#ConcentricView` · `web:./concentric#ConcentricView` | no public size prop |
|
|
323
|
-
| `src/connection-dots/ConnectionDots.tsx#ConnectionDots` (`src/connection-dots/ConnectionDots.tsx`, `src/connection-dots/ConnectionDots.web.tsx`) | `native:.#ConnectionDots` · `native:./connection-dots#ConnectionDots` · `web:.#ConnectionDots` · `web:./connection-dots#ConnectionDots` | no public size prop |
|
|
324
|
-
| `src/connection-status/ConnectionStatusToasts.tsx#ConnectionStatusToasts` (`src/connection-status/ConnectionStatusToasts.tsx`, `src/connection-status/ConnectionStatusToasts.web.tsx`) | `native:.#ConnectionStatusToasts` · `native:./connection-status#ConnectionStatusToasts` · `web:.#ConnectionStatusToasts` · `web:./connection-status#ConnectionStatusToasts` | no public size prop |
|
|
325
|
+
| `src/concentric/ConcentricView.tsx#ConcentricView` (`src/concentric/ConcentricView.tsx`) | `native:.#ConcentricView` · `native:./concentric#ConcentricView` · `web:.#ConcentricView` · `web:./concentric#ConcentricView` | no public size prop | concentric-geometry |
|
|
326
|
+
| `src/connection-dots/ConnectionDots.tsx#ConnectionDots` (`src/connection-dots/ConnectionDots.tsx`, `src/connection-dots/ConnectionDots.web.tsx`) | `native:.#ConnectionDots` · `native:./connection-dots#ConnectionDots` · `web:.#ConnectionDots` · `web:./connection-dots#ConnectionDots` | no public size prop | connection-dots-art |
|
|
327
|
+
| `src/connection-status/ConnectionStatusToasts.tsx#ConnectionStatusToasts` (`src/connection-status/ConnectionStatusToasts.tsx`, `src/connection-status/ConnectionStatusToasts.web.tsx`) | `native:.#ConnectionStatusToasts` · `native:./connection-status#ConnectionStatusToasts` · `web:.#ConnectionStatusToasts` · `web:./connection-status#ConnectionStatusToasts` | no public size prop | connection-status-toasts |
|
|
325
328
|
| `src/contact-card/ContactProfileCard.tsx#ContactProfileCard` (`src/contact-card/ContactProfileCard.tsx`) | `native:.#ContactProfileCard` · `native:./contact-card#ContactProfileCard` · `web:.#ContactProfileCard` · `web:./contact-card#ContactProfileCard` | no public size prop | pending |
|
|
326
329
|
| `src/content-panel/ContentPanel.tsx#ContentPanel` (`src/content-panel/ContentPanel.tsx`, `src/content-panel/ContentPanel.web.tsx`) | `native:.#ContentPanel` · `native:./content-panel#ContentPanel` · `web:.#ContentPanel` · `web:./content-panel#ContentPanel` | no public size prop | pending |
|
|
327
330
|
| `src/context-menu/ContextMenu.tsx#ContextMenu` (`src/context-menu/ContextMenu.tsx`, `src/context-menu/ContextMenu.web.tsx`) | `native:.#ContextMenu` · `native:./context-menu#ContextMenu` · `web:.#ContextMenu` · `web:./context-menu#ContextMenu` | no public size prop | pending |
|
package/docs/task-catalog.json
CHANGED
package/docs/task-catalog.mdx
CHANGED
|
@@ -8,7 +8,7 @@ order: 1
|
|
|
8
8
|
|
|
9
9
|
# Choose an API by task
|
|
10
10
|
|
|
11
|
-
This guide belongs to **@oxy.so/bloom 19.5.
|
|
11
|
+
This guide belongs to **@oxy.so/bloom 19.5.1**. Read it from the installed package alongside [the structured index](./task-catalog.json). A source build version is not a registry-publication receipt. Use the containing package’s manifest for exact peer ranges.
|
|
12
12
|
|
|
13
13
|
Start under the application’s BloomProvider and follow [getting started](./getting-started.mdx) for CSS, fonts and platform setup. These examples accept domain content/actions and require a bounded host. They do not add a provider per route. For document scrolling, follow [the host contract](./compose-layouts.mdx); Expo’s bounded reset must not silently prevent document overflow.
|
|
14
14
|
|
|
@@ -19,6 +19,14 @@ const TAILWIND_EASE_OUT = exports.TAILWIND_EASE_OUT = _reactNative.Easing.bezier
|
|
|
19
19
|
* `transition-[stroke-opacity] duration-200 ease-out`); a change mid-flight
|
|
20
20
|
* restarts from the in-between values, as a CSS transition does. The first
|
|
21
21
|
* render, a change of length and reduced motion all snap.
|
|
22
|
+
*
|
|
23
|
+
* Its clock starts at its first frame (the first animation frame's
|
|
24
|
+
* timestamp), as a web animation's start time resolves at the first frame
|
|
25
|
+
* after it is played and Core Animation's begins as its transaction is shown:
|
|
26
|
+
* never when the change rendered. A loaded machine can run that render long
|
|
27
|
+
* before any frame (JavaScript preempted, the frame clock late), and a clock
|
|
28
|
+
* started then had spent the duration before its first frame was drawn: a
|
|
29
|
+
* menu bar's 150 ms crossfade showed both menus in one frame, or none.
|
|
22
30
|
*/
|
|
23
31
|
function useEasedValues(targets, durationMs, easing = TAILWIND_EASE_OUT) {
|
|
24
32
|
const reducedMotion = (0, _usePrefersReducedMotion.usePrefersReducedMotion)();
|
|
@@ -41,10 +49,12 @@ function useEasedValues(targets, durationMs, easing = TAILWIND_EASE_OUT) {
|
|
|
41
49
|
if (shownRef.current !== targets) snap();
|
|
42
50
|
return;
|
|
43
51
|
}
|
|
44
|
-
|
|
52
|
+
let start = null;
|
|
45
53
|
let raf = 0;
|
|
46
|
-
const tick =
|
|
47
|
-
const
|
|
54
|
+
const tick = frame => {
|
|
55
|
+
const now = typeof frame === 'number' ? frame : Date.now();
|
|
56
|
+
start ??= now;
|
|
57
|
+
const t = Math.min(1, (now - start) / durationMs);
|
|
48
58
|
const e = easing(t);
|
|
49
59
|
const next = targets.map((to, i) => from[i] + (to - from[i]) * e);
|
|
50
60
|
shownRef.current = next;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_usePrefersReducedMotion","TAILWIND_EASE_OUT","exports","Easing","bezier","useEasedValues","targets","durationMs","easing","reducedMotion","usePrefersReducedMotion","key","join","shown","setShown","useState","shownRef","useRef","useEffect","from","current","snap","requestAnimationFrame","length","every","v","i","start","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_usePrefersReducedMotion","TAILWIND_EASE_OUT","exports","Easing","bezier","useEasedValues","targets","durationMs","easing","reducedMotion","usePrefersReducedMotion","key","join","shown","setShown","useState","shownRef","useRef","useEffect","from","current","snap","requestAnimationFrame","length","every","v","i","start","raf","tick","frame","now","Date","t","Math","min","e","next","map","to","cancelAnimationFrame"],"sourceRoot":"../../../src","sources":["motion/use-eased-values.ts"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAEA;AACO,MAAMG,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAGE,mBAAM,CAACC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;;AAE5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,cAAcA,CAC5BC,OAA0B,EAC1BC,UAAkB,EAClBC,MAA6B,GAAGP,iBAAiB,EAC9B;EACnB,MAAMQ,aAAa,GAAG,IAAAC,gDAAuB,EAAC,CAAC;EAC/C,MAAMC,GAAG,GAAGL,OAAO,CAACM,IAAI,CAAC,GAAG,CAAC;EAC7B,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAAoBT,OAAO,CAAC;EAC9D,MAAMU,QAAQ,GAAG,IAAAC,aAAM,EAAoBX,OAAO,CAAC;;EAEnD;EACA,IAAAY,gBAAS,EAAC,MAAM;IACd,MAAMC,IAAI,GAAGH,QAAQ,CAACI,OAAO;IAC7B,MAAMC,IAAI,GAAGA,CAAA,KAAM;MACjBL,QAAQ,CAACI,OAAO,GAAGd,OAAO;MAC1BQ,QAAQ,CAACR,OAAO,CAAC;IACnB,CAAC;IACD,IACEG,aAAa,IACb,OAAOa,qBAAqB,KAAK,UAAU,IAC3CH,IAAI,CAACI,MAAM,KAAKjB,OAAO,CAACiB,MAAM,EAC9B;MACAF,IAAI,CAAC,CAAC;MACN;IACF;IACA,IAAIF,IAAI,CAACK,KAAK,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,KAAKnB,OAAO,CAACoB,CAAC,CAAC,CAAC,EAAE;MAC1C,IAAIV,QAAQ,CAACI,OAAO,KAAKd,OAAO,EAAEe,IAAI,CAAC,CAAC;MACxC;IACF;IACA,IAAIM,KAAoB,GAAG,IAAI;IAC/B,IAAIC,GAAG,GAAG,CAAC;IACX,MAAMC,IAAI,GAAIC,KAAc,IAAK;MAC/B,MAAMC,GAAG,GAAG,OAAOD,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAGE,IAAI,CAACD,GAAG,CAAC,CAAC;MAC1DJ,KAAK,KAAKI,GAAG;MACb,MAAME,CAAC,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAE,CAACJ,GAAG,GAAGJ,KAAK,IAAIpB,UAAU,CAAC;MACjD,MAAM6B,CAAC,GAAG5B,MAAM,CAACyB,CAAC,CAAC;MACnB,MAAMI,IAAI,GAAG/B,OAAO,CAACgC,GAAG,CAAC,CAACC,EAAE,EAAEb,CAAC,KAAKP,IAAI,CAACO,CAAC,CAAC,GAAI,CAACa,EAAE,GAAGpB,IAAI,CAACO,CAAC,CAAE,IAAIU,CAAC,CAAC;MACnEpB,QAAQ,CAACI,OAAO,GAAGiB,IAAI;MACvBvB,QAAQ,CAACuB,IAAI,CAAC;MACd,IAAIJ,CAAC,GAAG,CAAC,EAAEL,GAAG,GAAGN,qBAAqB,CAACO,IAAI,CAAC;IAC9C,CAAC;IACDD,GAAG,GAAGN,qBAAqB,CAACO,IAAI,CAAC;IACjC,OAAO,MAAMW,oBAAoB,CAACZ,GAAG,CAAC;EACxC,CAAC,EAAE,CAACjB,GAAG,EAAEF,aAAa,EAAEF,UAAU,CAAC,CAAC;EAEpC,IAAIE,aAAa,IAAII,KAAK,CAACU,MAAM,KAAKjB,OAAO,CAACiB,MAAM,EAAE,OAAOjB,OAAO;EACpE,OAAOO,KAAK;AACd","ignoreList":[]}
|
|
@@ -15,6 +15,14 @@ export const TAILWIND_EASE_OUT = Easing.bezier(0, 0, 0.2, 1);
|
|
|
15
15
|
* `transition-[stroke-opacity] duration-200 ease-out`); a change mid-flight
|
|
16
16
|
* restarts from the in-between values, as a CSS transition does. The first
|
|
17
17
|
* render, a change of length and reduced motion all snap.
|
|
18
|
+
*
|
|
19
|
+
* Its clock starts at its first frame (the first animation frame's
|
|
20
|
+
* timestamp), as a web animation's start time resolves at the first frame
|
|
21
|
+
* after it is played and Core Animation's begins as its transaction is shown:
|
|
22
|
+
* never when the change rendered. A loaded machine can run that render long
|
|
23
|
+
* before any frame (JavaScript preempted, the frame clock late), and a clock
|
|
24
|
+
* started then had spent the duration before its first frame was drawn: a
|
|
25
|
+
* menu bar's 150 ms crossfade showed both menus in one frame, or none.
|
|
18
26
|
*/
|
|
19
27
|
export function useEasedValues(targets, durationMs, easing = TAILWIND_EASE_OUT) {
|
|
20
28
|
const reducedMotion = usePrefersReducedMotion();
|
|
@@ -37,10 +45,12 @@ export function useEasedValues(targets, durationMs, easing = TAILWIND_EASE_OUT)
|
|
|
37
45
|
if (shownRef.current !== targets) snap();
|
|
38
46
|
return;
|
|
39
47
|
}
|
|
40
|
-
|
|
48
|
+
let start = null;
|
|
41
49
|
let raf = 0;
|
|
42
|
-
const tick =
|
|
43
|
-
const
|
|
50
|
+
const tick = frame => {
|
|
51
|
+
const now = typeof frame === 'number' ? frame : Date.now();
|
|
52
|
+
start ??= now;
|
|
53
|
+
const t = Math.min(1, (now - start) / durationMs);
|
|
44
54
|
const e = easing(t);
|
|
45
55
|
const next = targets.map((to, i) => from[i] + (to - from[i]) * e);
|
|
46
56
|
shownRef.current = next;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useRef","useState","Easing","usePrefersReducedMotion","TAILWIND_EASE_OUT","bezier","useEasedValues","targets","durationMs","easing","reducedMotion","key","join","shown","setShown","shownRef","from","current","snap","requestAnimationFrame","length","every","v","i","start","
|
|
1
|
+
{"version":3,"names":["useEffect","useRef","useState","Easing","usePrefersReducedMotion","TAILWIND_EASE_OUT","bezier","useEasedValues","targets","durationMs","easing","reducedMotion","key","join","shown","setShown","shownRef","from","current","snap","requestAnimationFrame","length","every","v","i","start","raf","tick","frame","now","Date","t","Math","min","e","next","map","to","cancelAnimationFrame"],"sourceRoot":"../../../src","sources":["motion/use-eased-values.ts"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,MAAM,QAAQ,cAAc;AACrC,SAASC,uBAAuB,QAAQ,wCAAqC;;AAE7E;AACA,OAAO,MAAMC,iBAAiB,GAAGF,MAAM,CAACG,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;;AAE5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAC5BC,OAA0B,EAC1BC,UAAkB,EAClBC,MAA6B,GAAGL,iBAAiB,EAC9B;EACnB,MAAMM,aAAa,GAAGP,uBAAuB,CAAC,CAAC;EAC/C,MAAMQ,GAAG,GAAGJ,OAAO,CAACK,IAAI,CAAC,GAAG,CAAC;EAC7B,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGb,QAAQ,CAAoBM,OAAO,CAAC;EAC9D,MAAMQ,QAAQ,GAAGf,MAAM,CAAoBO,OAAO,CAAC;;EAEnD;EACAR,SAAS,CAAC,MAAM;IACd,MAAMiB,IAAI,GAAGD,QAAQ,CAACE,OAAO;IAC7B,MAAMC,IAAI,GAAGA,CAAA,KAAM;MACjBH,QAAQ,CAACE,OAAO,GAAGV,OAAO;MAC1BO,QAAQ,CAACP,OAAO,CAAC;IACnB,CAAC;IACD,IACEG,aAAa,IACb,OAAOS,qBAAqB,KAAK,UAAU,IAC3CH,IAAI,CAACI,MAAM,KAAKb,OAAO,CAACa,MAAM,EAC9B;MACAF,IAAI,CAAC,CAAC;MACN;IACF;IACA,IAAIF,IAAI,CAACK,KAAK,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,KAAKf,OAAO,CAACgB,CAAC,CAAC,CAAC,EAAE;MAC1C,IAAIR,QAAQ,CAACE,OAAO,KAAKV,OAAO,EAAEW,IAAI,CAAC,CAAC;MACxC;IACF;IACA,IAAIM,KAAoB,GAAG,IAAI;IAC/B,IAAIC,GAAG,GAAG,CAAC;IACX,MAAMC,IAAI,GAAIC,KAAc,IAAK;MAC/B,MAAMC,GAAG,GAAG,OAAOD,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAGE,IAAI,CAACD,GAAG,CAAC,CAAC;MAC1DJ,KAAK,KAAKI,GAAG;MACb,MAAME,CAAC,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAE,CAACJ,GAAG,GAAGJ,KAAK,IAAIhB,UAAU,CAAC;MACjD,MAAMyB,CAAC,GAAGxB,MAAM,CAACqB,CAAC,CAAC;MACnB,MAAMI,IAAI,GAAG3B,OAAO,CAAC4B,GAAG,CAAC,CAACC,EAAE,EAAEb,CAAC,KAAKP,IAAI,CAACO,CAAC,CAAC,GAAI,CAACa,EAAE,GAAGpB,IAAI,CAACO,CAAC,CAAE,IAAIU,CAAC,CAAC;MACnElB,QAAQ,CAACE,OAAO,GAAGiB,IAAI;MACvBpB,QAAQ,CAACoB,IAAI,CAAC;MACd,IAAIJ,CAAC,GAAG,CAAC,EAAEL,GAAG,GAAGN,qBAAqB,CAACO,IAAI,CAAC;IAC9C,CAAC;IACDD,GAAG,GAAGN,qBAAqB,CAACO,IAAI,CAAC;IACjC,OAAO,MAAMW,oBAAoB,CAACZ,GAAG,CAAC;EACxC,CAAC,EAAE,CAACd,GAAG,EAAED,aAAa,EAAEF,UAAU,CAAC,CAAC;EAEpC,IAAIE,aAAa,IAAIG,KAAK,CAACO,MAAM,KAAKb,OAAO,CAACa,MAAM,EAAE,OAAOb,OAAO;EACpE,OAAOM,KAAK;AACd","ignoreList":[]}
|
|
@@ -8,6 +8,14 @@ export declare const TAILWIND_EASE_OUT: import("react-native").EasingFunction;
|
|
|
8
8
|
* `transition-[stroke-opacity] duration-200 ease-out`); a change mid-flight
|
|
9
9
|
* restarts from the in-between values, as a CSS transition does. The first
|
|
10
10
|
* render, a change of length and reduced motion all snap.
|
|
11
|
+
*
|
|
12
|
+
* Its clock starts at its first frame (the first animation frame's
|
|
13
|
+
* timestamp), as a web animation's start time resolves at the first frame
|
|
14
|
+
* after it is played and Core Animation's begins as its transaction is shown:
|
|
15
|
+
* never when the change rendered. A loaded machine can run that render long
|
|
16
|
+
* before any frame (JavaScript preempted, the frame clock late), and a clock
|
|
17
|
+
* started then had spent the duration before its first frame was drawn: a
|
|
18
|
+
* menu bar's 150 ms crossfade showed both menus in one frame, or none.
|
|
11
19
|
*/
|
|
12
20
|
export declare function useEasedValues(targets: readonly number[], durationMs: number, easing?: (t: number) => number): readonly number[];
|
|
13
21
|
//# sourceMappingURL=use-eased-values.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-eased-values.d.ts","sourceRoot":"","sources":["../../../../src/motion/use-eased-values.ts"],"names":[],"mappings":"AAIA,yDAAyD;AACzD,eAAO,MAAM,iBAAiB,uCAA8B,CAAC;AAE7D
|
|
1
|
+
{"version":3,"file":"use-eased-values.d.ts","sourceRoot":"","sources":["../../../../src/motion/use-eased-values.ts"],"names":[],"mappings":"AAIA,yDAAyD;AACzD,eAAO,MAAM,iBAAiB,uCAA8B,CAAC;AAE7D;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,UAAU,EAAE,MAAM,EAClB,MAAM,GAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAA0B,GAChD,SAAS,MAAM,EAAE,CA2CnB"}
|
|
@@ -8,6 +8,14 @@ export declare const TAILWIND_EASE_OUT: import("react-native").EasingFunction;
|
|
|
8
8
|
* `transition-[stroke-opacity] duration-200 ease-out`); a change mid-flight
|
|
9
9
|
* restarts from the in-between values, as a CSS transition does. The first
|
|
10
10
|
* render, a change of length and reduced motion all snap.
|
|
11
|
+
*
|
|
12
|
+
* Its clock starts at its first frame (the first animation frame's
|
|
13
|
+
* timestamp), as a web animation's start time resolves at the first frame
|
|
14
|
+
* after it is played and Core Animation's begins as its transaction is shown:
|
|
15
|
+
* never when the change rendered. A loaded machine can run that render long
|
|
16
|
+
* before any frame (JavaScript preempted, the frame clock late), and a clock
|
|
17
|
+
* started then had spent the duration before its first frame was drawn: a
|
|
18
|
+
* menu bar's 150 ms crossfade showed both menus in one frame, or none.
|
|
11
19
|
*/
|
|
12
20
|
export declare function useEasedValues(targets: readonly number[], durationMs: number, easing?: (t: number) => number): readonly number[];
|
|
13
21
|
//# sourceMappingURL=use-eased-values.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-eased-values.d.ts","sourceRoot":"","sources":["../../../../src/motion/use-eased-values.ts"],"names":[],"mappings":"AAIA,yDAAyD;AACzD,eAAO,MAAM,iBAAiB,uCAA8B,CAAC;AAE7D
|
|
1
|
+
{"version":3,"file":"use-eased-values.d.ts","sourceRoot":"","sources":["../../../../src/motion/use-eased-values.ts"],"names":[],"mappings":"AAIA,yDAAyD;AACzD,eAAO,MAAM,iBAAiB,uCAA8B,CAAC;AAE7D;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,UAAU,EAAE,MAAM,EAClB,MAAM,GAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAA0B,GAChD,SAAS,MAAM,EAAE,CA2CnB"}
|
package/package.json
CHANGED
|
@@ -14,6 +14,33 @@
|
|
|
14
14
|
"src/property-insights/EnergyBadge.tsx#EnergyBadge"
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
|
+
"concentric-geometry": {
|
|
18
|
+
"status": "independent-scale",
|
|
19
|
+
"reason": "ConcentricView owns rounded-corner geometry derived from radius, padding, border and margin; it has no Bloom control-size prop. It renders children inside its geometry context without replacing BloomScope, so child controls keep the nearest scope and explicit size precedence.",
|
|
20
|
+
"evidence": [
|
|
21
|
+
"src/concentric/ConcentricView.tsx",
|
|
22
|
+
"docs/concentric.mdx",
|
|
23
|
+
"src/__tests__/ConcentricViewPublicPartScope.test.tsx",
|
|
24
|
+
"src/__tests__/ConcentricViewPublicPartScope.web.test.tsx"
|
|
25
|
+
],
|
|
26
|
+
"verification": "native renderer and DOM web verify default md, nearest xs/lg, nested lg over xs, explicit md over xs through nested ConcentricView wrappers; fixed radius 32 remains geometry-owned. ConcentricView owns no portal or submenu. Physical-device geometry remains unverified",
|
|
27
|
+
"parts": ["src/concentric/ConcentricView.tsx#ConcentricView"]
|
|
28
|
+
},
|
|
29
|
+
"connection-status-toasts": {
|
|
30
|
+
"status": "delegated",
|
|
31
|
+
"reason": "ConnectionStatusToasts renders null and sends only messages, intent and duration to Bloom's shared Toast engine. ToastHost owns the visible notification and its size contract; this reporter has no UI whose size scope it could consume.",
|
|
32
|
+
"evidence": [
|
|
33
|
+
"src/connection-status/shared.ts",
|
|
34
|
+
"src/toast/Toaster.tsx",
|
|
35
|
+
"src/toast/ToastHost.tsx",
|
|
36
|
+
"src/toast/ToastHost.native.tsx",
|
|
37
|
+
"docs/connection-status.mdx",
|
|
38
|
+
"src/__tests__/connection-status-netinfo.test.tsx",
|
|
39
|
+
"src/__tests__/ConnectionStatusToastsPublicPartScope.web.test.tsx"
|
|
40
|
+
],
|
|
41
|
+
"verification": "native renderer and DOM web prove the reporter emits no view under xs scope and delegates an offline message without a size value; ToastHost owns the rendered surface. Platform-specific network signals remain tested at their respective boundaries",
|
|
42
|
+
"parts": ["src/connection-status/ConnectionStatusToasts.tsx#ConnectionStatusToasts"]
|
|
43
|
+
},
|
|
17
44
|
"code-document": {
|
|
18
45
|
"status": "independent-scale",
|
|
19
46
|
"reason": "CodeLines size selects code typography/line-number metrics (sm 11/18, md 13/23), not chrome or touch targets. CodeBlock passes its content size deliberately; surrounding control scope must not silently rewrite source-code reading density.",
|
|
@@ -744,6 +771,21 @@
|
|
|
744
771
|
"src/text-field/TextField.tsx#TextFieldInput"
|
|
745
772
|
]
|
|
746
773
|
},
|
|
774
|
+
"connection-dots-art": {
|
|
775
|
+
"status": "independent-scale",
|
|
776
|
+
"reason": "ConnectionDots is a relationship illustration, not a control. dotSize and dotCount are explicit artwork dimensions, so the row and dots do not consume BloomScope control size. The left/right endpoints are rendered as supplied and preserve caller and nested child-control scopes.",
|
|
777
|
+
"evidence": [
|
|
778
|
+
"src/connection-dots/ConnectionDots.tsx",
|
|
779
|
+
"src/connection-dots/ConnectionDots.web.tsx",
|
|
780
|
+
"src/connection-dots/ConnectionDotsBase.tsx",
|
|
781
|
+
"src/connection-dots/types.ts",
|
|
782
|
+
"docs/connection-dots.mdx",
|
|
783
|
+
"src/__tests__/ConnectionDotsPublicPartScope.test.tsx",
|
|
784
|
+
"src/__tests__/ConnectionDotsPublicPartScope.web.test.tsx"
|
|
785
|
+
],
|
|
786
|
+
"verification": "Native-renderer and DOM web checks verify default md endpoints, inherited xs, nested lg, explicit child size, and independent dot diameter/count. This family does not own portals or submenus; physical-device geometry remains unverified.",
|
|
787
|
+
"parts": ["src/connection-dots/ConnectionDots.tsx#ConnectionDots"]
|
|
788
|
+
},
|
|
747
789
|
"pending": {
|
|
748
790
|
"status": "pending",
|
|
749
791
|
"reason": "Public React identity and prop vocabulary are enumerated, but per-part applicability/delegation and complete runtime matrix have not yet been audited. Family hook imports and transitive reachability grant no conformance.",
|
|
@@ -975,9 +1017,6 @@
|
|
|
975
1017
|
"src/composer-panel/ComposerStatusBar.tsx#ComposerStatusBar",
|
|
976
1018
|
"src/composer-panel/ModelPicker.tsx#ModelPicker",
|
|
977
1019
|
"src/composition-bar/CompositionBar.tsx#CompositionBar",
|
|
978
|
-
"src/concentric/ConcentricView.tsx#ConcentricView",
|
|
979
|
-
"src/connection-dots/ConnectionDots.tsx#ConnectionDots",
|
|
980
|
-
"src/connection-status/ConnectionStatusToasts.tsx#ConnectionStatusToasts",
|
|
981
1020
|
"src/contact-card/ContactProfileCard.tsx#ContactProfileCard",
|
|
982
1021
|
"src/content-panel/ContentPanel.tsx#ContentPanel",
|
|
983
1022
|
"src/context-menu/ContextMenu.tsx#ContextMenu",
|
|
@@ -13,6 +13,14 @@ export const TAILWIND_EASE_OUT = Easing.bezier(0, 0, 0.2, 1);
|
|
|
13
13
|
* `transition-[stroke-opacity] duration-200 ease-out`); a change mid-flight
|
|
14
14
|
* restarts from the in-between values, as a CSS transition does. The first
|
|
15
15
|
* render, a change of length and reduced motion all snap.
|
|
16
|
+
*
|
|
17
|
+
* Its clock starts at its first frame (the first animation frame's
|
|
18
|
+
* timestamp), as a web animation's start time resolves at the first frame
|
|
19
|
+
* after it is played and Core Animation's begins as its transaction is shown:
|
|
20
|
+
* never when the change rendered. A loaded machine can run that render long
|
|
21
|
+
* before any frame (JavaScript preempted, the frame clock late), and a clock
|
|
22
|
+
* started then had spent the duration before its first frame was drawn: a
|
|
23
|
+
* menu bar's 150 ms crossfade showed both menus in one frame, or none.
|
|
16
24
|
*/
|
|
17
25
|
export function useEasedValues(
|
|
18
26
|
targets: readonly number[],
|
|
@@ -43,10 +51,12 @@ export function useEasedValues(
|
|
|
43
51
|
if (shownRef.current !== targets) snap();
|
|
44
52
|
return;
|
|
45
53
|
}
|
|
46
|
-
|
|
54
|
+
let start: number | null = null;
|
|
47
55
|
let raf = 0;
|
|
48
|
-
const tick = () => {
|
|
49
|
-
const
|
|
56
|
+
const tick = (frame?: number) => {
|
|
57
|
+
const now = typeof frame === 'number' ? frame : Date.now();
|
|
58
|
+
start ??= now;
|
|
59
|
+
const t = Math.min(1, (now - start) / durationMs);
|
|
50
60
|
const e = easing(t);
|
|
51
61
|
const next = targets.map((to, i) => from[i]! + (to - from[i]!) * e);
|
|
52
62
|
shownRef.current = next;
|