@oxy.so/bloom 23.9.1 → 23.10.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/docs/bloom-lang-spec.mdx +730 -0
- package/docs/bloom-language-for-agents.mdx +18 -4
- package/docs/bloom-language-getting-started.mdx +2 -1
- package/docs/bloom-language-modifiers.mdx +16 -6
- package/docs/bloom-language-nodes.mdx +1296 -435
- package/docs/bloom-language-tour.mdx +54 -9
- package/docs/bloom-language.mdx +30 -2
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +18 -10
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/commonjs/agent-avatar/VectorStaticPortrait.js +102 -77
- package/lib/commonjs/agent-avatar/VectorStaticPortrait.js.map +1 -1
- package/lib/commonjs/agent-avatar/vector-halo.js +57 -0
- package/lib/commonjs/agent-avatar/vector-halo.js.map +1 -0
- package/lib/commonjs/avatar/Avatar.js +65 -62
- package/lib/commonjs/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/avatar/CharacterFace.js +50 -45
- package/lib/commonjs/avatar/CharacterFace.js.map +1 -1
- package/lib/commonjs/avatar-group/AvatarGroupBase.js +311 -244
- package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/module/agent-avatar/VectorCharacterAvatar.js +18 -10
- package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/module/agent-avatar/VectorStaticPortrait.js +103 -78
- package/lib/module/agent-avatar/VectorStaticPortrait.js.map +1 -1
- package/lib/module/agent-avatar/vector-halo.js +52 -0
- package/lib/module/agent-avatar/vector-halo.js.map +1 -0
- package/lib/module/avatar/Avatar.js +65 -62
- package/lib/module/avatar/Avatar.js.map +1 -1
- package/lib/module/avatar/CharacterFace.js +50 -45
- package/lib/module/avatar/CharacterFace.js.map +1 -1
- package/lib/module/avatar-group/AvatarGroupBase.js +311 -244
- package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorStaticPortrait.d.ts +2 -2
- package/lib/typescript/commonjs/agent-avatar/VectorStaticPortrait.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/types.d.ts +6 -0
- package/lib/typescript/commonjs/agent-avatar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/vector-halo.d.ts +32 -0
- package/lib/typescript/commonjs/agent-avatar/vector-halo.d.ts.map +1 -0
- package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/CharacterFace.d.ts +4 -1
- package/lib/typescript/commonjs/avatar/CharacterFace.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/types.d.ts +9 -0
- package/lib/typescript/commonjs/avatar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar-group/AvatarGroupBase.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorStaticPortrait.d.ts +2 -2
- package/lib/typescript/module/agent-avatar/VectorStaticPortrait.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/types.d.ts +6 -0
- package/lib/typescript/module/agent-avatar/types.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/vector-halo.d.ts +32 -0
- package/lib/typescript/module/agent-avatar/vector-halo.d.ts.map +1 -0
- package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/module/avatar/CharacterFace.d.ts +4 -1
- package/lib/typescript/module/avatar/CharacterFace.d.ts.map +1 -1
- package/lib/typescript/module/avatar/types.d.ts +9 -0
- package/lib/typescript/module/avatar/types.d.ts.map +1 -1
- package/lib/typescript/module/avatar-group/AvatarGroupBase.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/agent-avatar/VectorCharacterAvatar.tsx +26 -7
- package/src/agent-avatar/VectorStaticPortrait.tsx +18 -5
- package/src/agent-avatar/types.ts +6 -0
- package/src/agent-avatar/vector-halo.ts +52 -0
- package/src/avatar/Avatar.tsx +2 -0
- package/src/avatar/CharacterFace.tsx +6 -0
- package/src/avatar/types.ts +6 -0
- package/src/avatar-group/AvatarGroupBase.tsx +36 -4
|
@@ -42,11 +42,21 @@ the `check` blocks); the full lists are in the generated reference:
|
|
|
42
42
|
|
|
43
43
|
## Imports
|
|
44
44
|
|
|
45
|
+
The root, `@oxy.so/bloom-language`, is the language: its layout, text, media and navigation views,
|
|
46
|
+
modifiers and values. Each family of nodes is an entry of its own, `@oxy.so/bloom-language/<family>`
|
|
47
|
+
(`/inputs`, `/list`, `/containers`, `/overlays`, `/chart-cards`…), so an app's bundle carries only the
|
|
48
|
+
families it imports. The reference names each node's module ([nodes](bloom-language-nodes.mdx)); the
|
|
49
|
+
codemod writes these imports.
|
|
50
|
+
|
|
45
51
|
```ts
|
|
46
52
|
import { view, HStack, VStack, ZStack, Spacer, Group, Text, Icon, Image, Button, Avatar, Badge,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
ScrollView, regular, clear, defineTokens, defineModifier, defineEnvironment, useEnvironment,
|
|
54
|
+
useNamespace, useMotionValue, animate, toast, Embed, toElement } from '@oxy.so/bloom-language';
|
|
55
|
+
import { Card } from '@oxy.so/bloom-language/containers';
|
|
56
|
+
import { GlassGroup } from '@oxy.so/bloom-language/glass-group';
|
|
57
|
+
import { TextField, Toggle, Picker, Option, Segmented, Field } from '@oxy.so/bloom-language/inputs';
|
|
58
|
+
import { ListItem, List, VirtualList } from '@oxy.so/bloom-language/list';
|
|
59
|
+
import { Alert, Dialog, Popover } from '@oxy.so/bloom-language/overlays';
|
|
50
60
|
import { layout, screen, Stack, TabView, Sheet, AppLayout, navigate } from '@oxy.so/bloom-language/router';
|
|
51
61
|
import { entity, list, source, action, useEntity, useList } from '@oxy.so/bloom-data';
|
|
52
62
|
```
|
|
@@ -55,7 +65,9 @@ import { entity, list, source, action, useEntity, useList } from '@oxy.so/bloom-
|
|
|
55
65
|
|
|
56
66
|
```tsx check
|
|
57
67
|
import { useState } from 'react';
|
|
58
|
-
import { Button,
|
|
68
|
+
import { Button, HStack, Icon, ScrollView, Spacer, Text, VStack } from '@oxy.so/bloom-language';
|
|
69
|
+
import { Field, TextField, Toggle } from '@oxy.so/bloom-language/inputs';
|
|
70
|
+
import { ListItem } from '@oxy.so/bloom-language/list';
|
|
59
71
|
import { navigate, screen } from '@oxy.so/bloom-language/router';
|
|
60
72
|
import { RiAddLine } from '@oxy.so/bloom/icons/RiAddLine';
|
|
61
73
|
|
|
@@ -108,6 +120,8 @@ export default screen(function Items() {
|
|
|
108
120
|
| `.onPress(() => router.push('/x'))` | `.onPress(navigate('/x'))` | the panel-aware navigator |
|
|
109
121
|
| `<Link asChild>` around a span in a text | `Embed((render) => <Link href={h} asChild>{render(Text(…))}</Link>)` as a run | the Link hands the span's host its href and press |
|
|
110
122
|
| `.plainRun((t) => Text(...linkify(t)))` | `.plainRun(linkify)` returning strings and spans | runs, no extra span around the prose |
|
|
123
|
+
| `<Screen>` in one branch of a `screen()`, a call surface in another | `CallScreen(…).ownScreen()` in that branch, `null` for nothing | `screen()` draws a Screen around every other branch |
|
|
124
|
+
| `cond ? list : <Provider value={v}>{list}</Provider>` | `.provider(cond ? undefined : Provider, { value: v })` on the root | a screen's providers are modifiers |
|
|
111
125
|
| `.when('hover', …)` | `.when('hovered', …)` | condition names |
|
|
112
126
|
| `.when('md', v => v.onPress(…))` | handlers outside `when()` | variants change style only |
|
|
113
127
|
| `.opacity('half')` on a glass | no opacity on glass | a material is never faded |
|
|
@@ -186,7 +186,8 @@ tree. Inside JSX, `toElement(node)` draws a language node.
|
|
|
186
186
|
```tsx check
|
|
187
187
|
// app/(app)/index.tsx
|
|
188
188
|
import { useState } from 'react';
|
|
189
|
-
import { Button,
|
|
189
|
+
import { Button, Text, HStack, Spacer, VStack } from '@oxy.so/bloom-language';
|
|
190
|
+
import { Field, TextField, Toggle } from '@oxy.so/bloom-language/inputs';
|
|
190
191
|
import { screen } from '@oxy.so/bloom-language/router';
|
|
191
192
|
|
|
192
193
|
export default screen(function Welcome() {
|
|
@@ -7,13 +7,13 @@ description: Every modifier of the Bloom language: its parameters and their toke
|
|
|
7
7
|
|
|
8
8
|
# Bloom language modifiers
|
|
9
9
|
|
|
10
|
-
Every modifier the language has (
|
|
10
|
+
Every modifier the language has (668). Each lists its parameters as the spec types them (a token set, an object of tokens, or a free value such as a string, a callback or a binding), its TypeScript signature where the package declares it, and which nodes take it. A token set links to its values in [the tokens reference](bloom-language-tokens.mdx). How modifiers combine (order is nesting, the environment, variants) is in [the tour](bloom-language-tour.mdx#modifiers-and-order).
|
|
11
11
|
|
|
12
12
|
## Universal modifiers
|
|
13
13
|
|
|
14
14
|
Every node takes these, except the 65 nodes that take only their own ([menuItem](bloom-language-nodes.mdx#menuitem), [menuSubmenu](bloom-language-nodes.mdx#menusubmenu), [menuSection](bloom-language-nodes.mdx#menusection), [alert](bloom-language-nodes.mdx#alert), [dialog](bloom-language-nodes.mdx#dialog), [popover](bloom-language-nodes.mdx#popover), [connectionStatus](bloom-language-nodes.mdx#connectionstatus), [menuContent](bloom-language-nodes.mdx#menucontent), [menuActions](bloom-language-nodes.mdx#menuactions), [header](bloom-language-nodes.mdx#header), [bottomBar](bloom-language-nodes.mdx#bottombar), [tab](bloom-language-nodes.mdx#tab), [cardTitle](bloom-language-nodes.mdx#cardtitle), [cardDescription](bloom-language-nodes.mdx#carddescription), [groupedSectionItem](bloom-language-nodes.mdx#groupedsectionitem), [tabItem](bloom-language-nodes.mdx#tabitem), [errorBoundary](bloom-language-nodes.mdx#errorboundary), [group](bloom-language-nodes.mdx#group), [appLayout](bloom-language-nodes.mdx#applayout), [navStack](bloom-language-nodes.mdx#navstack), [route](bloom-language-nodes.mdx#route), [tabView](bloom-language-nodes.mdx#tabview), [option](bloom-language-nodes.mdx#option), [optionGroup](bloom-language-nodes.mdx#optiongroup), [groupedSectionIcon](bloom-language-nodes.mdx#groupedsectionicon), [groupedSectionDivider](bloom-language-nodes.mdx#groupedsectiondivider), [groupedSectionCollapse](bloom-language-nodes.mdx#groupedsectioncollapse), [bottomSheet](bloom-language-nodes.mdx#bottomsheet), [sidebar](bloom-language-nodes.mdx#sidebar), [navItem](bloom-language-nodes.mdx#navitem), [treeSection](bloom-language-nodes.mdx#treesection), [treeFolder](bloom-language-nodes.mdx#treefolder), [treeItem](bloom-language-nodes.mdx#treeitem), [rail](bloom-language-nodes.mdx#rail), [railItem](bloom-language-nodes.mdx#railitem), [command](bloom-language-nodes.mdx#command), [commandItem](bloom-language-nodes.mdx#commanditem), [commandGroup](bloom-language-nodes.mdx#commandgroup), [settings](bloom-language-nodes.mdx#settings), [settingsGroup](bloom-language-nodes.mdx#settingsgroup), [settingsItem](bloom-language-nodes.mdx#settingsitem), [panel](bloom-language-nodes.mdx#panel), [destination](bloom-language-nodes.mdx#destination), [toolbarView](bloom-language-nodes.mdx#toolbarview), [stickySection](bloom-language-nodes.mdx#stickysection), [pageFooter](bloom-language-nodes.mdx#pagefooter), [autoHideBar](bloom-language-nodes.mdx#autohidebar), [resizeHandle](bloom-language-nodes.mdx#resizehandle), [sidebarMode](bloom-language-nodes.mdx#sidebarmode), [settingsTextField](bloom-language-nodes.mdx#settingstextfield), [settingsDateField](bloom-language-nodes.mdx#settingsdatefield), [fact](bloom-language-nodes.mdx#fact), [videoPlayback](bloom-language-nodes.mdx#videoplayback), [videoViewability](bloom-language-nodes.mdx#videoviewability), [videoViewabilityScope](bloom-language-nodes.mdx#videoviewabilityscope), [menubarMenu](bloom-language-nodes.mdx#menubarmenu), [mediaFlightLayer](bloom-language-nodes.mdx#mediaflightlayer), [avatarFlightLayer](bloom-language-nodes.mdx#avatarflightlayer), [gallery](bloom-language-nodes.mdx#gallery), [dataColumn](bloom-language-nodes.mdx#datacolumn), [sortableChip](bloom-language-nodes.mdx#sortablechip), [viewport](bloom-language-nodes.mdx#viewport), [toolbarGroup](bloom-language-nodes.mdx#toolbargroup), [toolbarSpacer](bloom-language-nodes.mdx#toolbarspacer), [confirmationDialog](bloom-language-nodes.mdx#confirmationdialog)):
|
|
15
15
|
|
|
16
|
-
[`.padding()`](#padding), [`.safeAreaPadding()`](#safeareapadding), [`.frame()`](#frame), [`.aspectRatio()`](#aspectratio), [`.grow()`](#grow), [`.shrink()`](#shrink), [`.alignSelf()`](#alignself), [`.position()`](#position), [`.sticky()`](#sticky), [`.cursor()`](#cursor), [`.offset()`](#offset), [`.zIndex()`](#zindex), [`.hidden()`](#hidden), [`.basis()`](#basis), [`.flex()`](#flex), [`.margin()`](#margin), [`.scale()`](#scale), [`.allowsHitTesting()`](#allowshittesting), [`.accessibilityOnly()`](#accessibilityonly), [`.background()`](#background), [`.overlay()`](#overlay), [`.border()`](#border), [`.borderStyle()`](#borderstyle), [`.ring()`](#ring), [`.corner()`](#corner), [`.cornerCurve()`](#cornercurve), [`.clipped()`](#clipped), [`.opacity()`](#opacity), [`.shadow()`](#shadow), [`.glass()`](#glass), [`.blur()`](#blur), [`.foreground()`](#foreground), [`.font()`](#font), [`.weight()`](#weight), [`.leading()`](#leading), [`.tracking()`](#tracking), [`.onPress()`](#onpress), [`.onLongPress()`](#onlongpress), [`.onHover()`](#onhover), [`.hoverGroup()`](#hovergroup), [`.pressScale()`](#pressscale), [`.pressFade()`](#pressfade), [`.label()`](#label), [`.hint()`](#hint), [`.role()`](#role), [`.accessibilityState()`](#accessibilitystate), [`.accessibilityValue()`](#accessibilityvalue), [`.liveRegion()`](#liveregion), [`.accessibilityHidden()`](#accessibilityhidden), [`.accessibilityElement()`](#accessibilityelement), [`.focusable()`](#focusable), [`.collapsable()`](#collapsable), [`.hitSlop()`](#hitslop), [`.testID()`](#testid), [`.ref()`](#ref), [`.onLayout()`](#onlayout), [`.badge()`](#badge), [`.id()`](#id), [`.title()`](#title), [`.titleDisplay()`](#titledisplay), [`.subtitle()`](#subtitle), [`.header()`](#header), [`.toolbar()`](#toolbar), [`.toolbarLeading()`](#toolbarleading), [`.onBack()`](#onback), [`.backLabel()`](#backlabel), [`.headingLevel()`](#headinglevel), [`.footer()`](#footer), [`.sheet()`](#sheet), [`.alert()`](#alert), [`.dialog()`](#dialog), [`.popover()`](#popover), [`.onReselect()`](#onreselect), [`.when()`](#when), [`.rotation()`](#rotation), [`.animation()`](#animation), [`.animatesColors()`](#animatescolors), [`.transition()`](#transition), [`.keyframes()`](#keyframes), [`.repeatForever()`](#repeatforever), [`.delay()`](#delay), [`.anchor()`](#anchor), [`.matchedGeometry()`](#matchedgeometry), [`.drag()`](#drag), [`.swipe()`](#swipe), [`.pinch()`](#pinch), [`.onDoubleTap()`](#ondoubletap), [`.screenKind()`](#screenkind), [`.screenScroll()`](#screenscroll), [`.documentScroll()`](#documentscroll), [`.headerPlacement()`](#headerplacement), [`.scrollEdge()`](#scrolledge), [`.underlay()`](#underlay), [`.floatingAction()`](#floatingaction), [`.contentClearance()`](#contentclearance), [`.navigationScope()`](#navigationscope), [`.colorPreset()`](#colorpreset), [`.seed()`](#seed), [`.screenActive()`](#screenactive), [`.replacesBottomBar()`](#replacesbottombar), [`.screenBackground()`](#screenbackground), [`.reselectTop()`](#reselecttop), [`.initialHeaderHeight()`](#initialheaderheight), [`.initialFooterHeight()`](#initialfooterheight), [`.colorScope()`](#colorscope), [`.keyboardAvoiding()`](#keyboardavoiding), [`.provider()`](#provider), [`.fullScreenCover()`](#fullscreencover), [`.glassID()`](#glassid), [`.glassUnion()`](#glassunion), [`.glassTransition()`](#glasstransition), [`.inContent()`](#incontent), [`.disabled()`](#disabled), [`.environment()`](#environment), [`.controlSize()`](#controlsize), [`.buttonStyle()`](#buttonstyle), [`.modifier()`](#modifier), [`.confirmationDialog()`](#confirmationdialog), [`.phases()`](#phases)
|
|
16
|
+
[`.padding()`](#padding), [`.safeAreaPadding()`](#safeareapadding), [`.frame()`](#frame), [`.aspectRatio()`](#aspectratio), [`.grow()`](#grow), [`.shrink()`](#shrink), [`.alignSelf()`](#alignself), [`.position()`](#position), [`.sticky()`](#sticky), [`.cursor()`](#cursor), [`.offset()`](#offset), [`.zIndex()`](#zindex), [`.hidden()`](#hidden), [`.basis()`](#basis), [`.flex()`](#flex), [`.margin()`](#margin), [`.scale()`](#scale), [`.allowsHitTesting()`](#allowshittesting), [`.accessibilityOnly()`](#accessibilityonly), [`.background()`](#background), [`.overlay()`](#overlay), [`.border()`](#border), [`.borderStyle()`](#borderstyle), [`.ring()`](#ring), [`.corner()`](#corner), [`.cornerCurve()`](#cornercurve), [`.clipped()`](#clipped), [`.opacity()`](#opacity), [`.shadow()`](#shadow), [`.glass()`](#glass), [`.blur()`](#blur), [`.foreground()`](#foreground), [`.font()`](#font), [`.weight()`](#weight), [`.leading()`](#leading), [`.tracking()`](#tracking), [`.onPress()`](#onpress), [`.onLongPress()`](#onlongpress), [`.onHover()`](#onhover), [`.hoverGroup()`](#hovergroup), [`.pressScale()`](#pressscale), [`.pressFade()`](#pressfade), [`.label()`](#label), [`.hint()`](#hint), [`.role()`](#role), [`.accessibilityState()`](#accessibilitystate), [`.accessibilityValue()`](#accessibilityvalue), [`.liveRegion()`](#liveregion), [`.accessibilityHidden()`](#accessibilityhidden), [`.accessibilityElement()`](#accessibilityelement), [`.focusable()`](#focusable), [`.collapsable()`](#collapsable), [`.hitSlop()`](#hitslop), [`.testID()`](#testid), [`.ref()`](#ref), [`.onLayout()`](#onlayout), [`.badge()`](#badge), [`.id()`](#id), [`.title()`](#title), [`.titleDisplay()`](#titledisplay), [`.subtitle()`](#subtitle), [`.header()`](#header), [`.toolbar()`](#toolbar), [`.toolbarLeading()`](#toolbarleading), [`.onBack()`](#onback), [`.backLabel()`](#backlabel), [`.headingLevel()`](#headinglevel), [`.footer()`](#footer), [`.sheet()`](#sheet), [`.alert()`](#alert), [`.dialog()`](#dialog), [`.popover()`](#popover), [`.onReselect()`](#onreselect), [`.when()`](#when), [`.rotation()`](#rotation), [`.animation()`](#animation), [`.animatesColors()`](#animatescolors), [`.transition()`](#transition), [`.keyframes()`](#keyframes), [`.repeatForever()`](#repeatforever), [`.delay()`](#delay), [`.anchor()`](#anchor), [`.matchedGeometry()`](#matchedgeometry), [`.drag()`](#drag), [`.swipe()`](#swipe), [`.pinch()`](#pinch), [`.onDoubleTap()`](#ondoubletap), [`.screenKind()`](#screenkind), [`.screenScroll()`](#screenscroll), [`.documentScroll()`](#documentscroll), [`.headerPlacement()`](#headerplacement), [`.scrollEdge()`](#scrolledge), [`.underlay()`](#underlay), [`.floatingAction()`](#floatingaction), [`.contentClearance()`](#contentclearance), [`.navigationScope()`](#navigationscope), [`.colorPreset()`](#colorpreset), [`.seed()`](#seed), [`.screenActive()`](#screenactive), [`.replacesBottomBar()`](#replacesbottombar), [`.screenBackground()`](#screenbackground), [`.reselectTop()`](#reselecttop), [`.initialHeaderHeight()`](#initialheaderheight), [`.initialFooterHeight()`](#initialfooterheight), [`.colorScope()`](#colorscope), [`.keyboardAvoiding()`](#keyboardavoiding), [`.provider()`](#provider), [`.ownScreen()`](#ownscreen), [`.fullScreenCover()`](#fullscreencover), [`.glassID()`](#glassid), [`.glassUnion()`](#glassunion), [`.glassTransition()`](#glasstransition), [`.inContent()`](#incontent), [`.disabled()`](#disabled), [`.environment()`](#environment), [`.controlSize()`](#controlsize), [`.buttonStyle()`](#buttonstyle), [`.modifier()`](#modifier), [`.confirmationDialog()`](#confirmationdialog), [`.phases()`](#phases)
|
|
17
17
|
|
|
18
18
|
## Modifiers
|
|
19
19
|
|
|
@@ -891,8 +891,10 @@ The pointer's shape over the view, on the web (CSS's `cursor`: `grab` over a row
|
|
|
891
891
|
|
|
892
892
|
### `role`
|
|
893
893
|
|
|
894
|
+
What the view is to assistive technology (`accessibilityRole`, or a web role as React Native's `role`). `undefined` is none, a role chosen at render that may be none (`.role(href ? 'link' : undefined)`): a pressable with `.pressScale()`, a button by default, then names itself nothing, as Bloom's `PressableScale` with `accessibilityRole={undefined}` does.
|
|
895
|
+
|
|
894
896
|
- Parameters: [role](bloom-language-tokens.mdx#role)
|
|
895
|
-
- Signature: `.role(value: Role)`
|
|
897
|
+
- Signature: `.role(value: Role | undefined)`
|
|
896
898
|
- Taken by: every node (universal)
|
|
897
899
|
- `role` tokens: `'button'`, `'link'`, `'header'`, `'image'`, `'text'`, `'none'`, `'checkbox'`, `'radio'`, `'tab'`, `'radiogroup'`, `'tablist'`, `'list'`, `'alert'`, `'progressbar'`, `'imagebutton'`, `'summary'`, `'option'`, `'listbox'`
|
|
898
900
|
|
|
@@ -3097,10 +3099,18 @@ The screen kept above the keyboard: React Native's `KeyboardAvoidingView` around
|
|
|
3097
3099
|
|
|
3098
3100
|
### `provider`
|
|
3099
3101
|
|
|
3100
|
-
A provider around the screen (a React component that draws its children: Bloom's `HeaderDockProvider`, an app's own context the screen's header and content share). Each of these three wraps what the root's modifiers before it drew, in chain order, as SwiftUI's modifiers do: the last one is outermost.
|
|
3102
|
+
A provider around the screen (a React component that draws its children: Bloom's `HeaderDockProvider`, an app's own context the screen's header and content share), with the props it takes besides its children. `undefined` draws none: a provider only some people get (`supervised ? undefined : AskProvider`), the screen drawn again inside it when that changes, as JSX that wraps an element in a branch is. Each of these three wraps what the root's modifiers before it drew, in chain order, as SwiftUI's modifiers do: the last one is outermost.
|
|
3101
3103
|
|
|
3102
|
-
- Parameters: a value
|
|
3103
|
-
- Signature: `.provider(component: ScreenProvider)`
|
|
3104
|
+
- Parameters: a value; a value (optional)
|
|
3105
|
+
- Signature: `.provider(component: ScreenProvider | undefined)` or `.provider(component: ComponentType<P & { children?: ReactNode }> | undefined, props: P)`
|
|
3106
|
+
- Taken by: every node (universal), and [group](bloom-language-nodes.mdx#group)
|
|
3107
|
+
|
|
3108
|
+
### `ownScreen`
|
|
3109
|
+
|
|
3110
|
+
The root is a full-screen surface of its own (Bloom's `CallScreen` or `IncomingCallScreen`, a story viewer): a `screen()` branch that returns it draws it as it is, with no Bloom `Screen` around it, as a route that returns that surface in JSX does. Its screen chrome (title, header, footer, floating action) is the Screen's and is not drawn; its sheets, colour scope, keyboard avoidance and providers are. Another branch of the same body can still be a Screen (a call route's no-call notice), and a branch that returns `null` draws nothing. `true` by default.
|
|
3111
|
+
|
|
3112
|
+
- Parameters: a value (optional)
|
|
3113
|
+
- Signature: `.ownScreen(value?: boolean)`
|
|
3104
3114
|
- Taken by: every node (universal), and [group](bloom-language-nodes.mdx#group)
|
|
3105
3115
|
|
|
3106
3116
|
### `scrollbar`
|