@g9tm/lynxcontrols 2.5.9 → 2.5.10
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/catalog/cards/G9Anchor.md +1 -1
- package/catalog/cards/G9AppearancePage.md +2 -2
- package/catalog/cards/G9ContrastPanel.md +1 -0
- package/catalog/cards/G9DesignNode.md +1 -1
- package/catalog/cards/G9Keycap.md +1 -1
- package/catalog/cards/G9PersonalThemeSheet.md +3 -3
- package/catalog/cards/G9ShortcutList.md +1 -1
- package/catalog/cards/G9SwipeView.md +1 -1
- package/catalog/cards/G9ThemePreviewCard.md +1 -0
- package/catalog/cards/G9ThemeTokenEditor.md +17 -0
- package/catalog/cards/G9WallpaperSwatch.md +2 -1
- package/catalog/catalog.json +863 -81
- package/catalog/index.md +2 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/appearance/appearance.css +123 -0
- package/dist/appearance/appearance.css.map +1 -1
- package/dist/appearance/appearance.d.ts +46 -9
- package/dist/appearance/appearance.d.ts.map +1 -1
- package/dist/appearance/appearance.jsx +201 -31
- package/dist/appearance/index.d.ts +1 -0
- package/dist/appearance/index.d.ts.map +1 -1
- package/dist/appearance/index.jsx +1 -0
- package/dist/appearance/token-editor.d.ts +38 -0
- package/dist/appearance/token-editor.d.ts.map +1 -0
- package/dist/appearance/token-editor.jsx +170 -0
- package/dist/display/theme-preview.d.ts +2 -0
- package/dist/display/theme-preview.d.ts.map +1 -1
- package/dist/display/theme-preview.jsx +10 -4
- package/dist/provider/provider.d.ts.map +1 -1
- package/dist/provider/provider.jsx +3 -2
- package/dist/swipe/model.d.ts +7 -0
- package/dist/swipe/model.d.ts.map +1 -1
- package/dist/swipe/model.jsx +8 -1
- package/dist/swipe/swipe-view.d.ts +7 -0
- package/dist/swipe/swipe-view.d.ts.map +1 -1
- package/dist/swipe/swipe-view.jsx +34 -6
- package/package.json +2 -2
- package/skills/g9-lynx-app/SKILL.md +1 -0
- package/skills/g9-lynx-app/references/catalog-index.md +9 -5
- package/skills/g9-lynx-app/references/components/anchor.md +1 -1
- package/skills/g9-lynx-app/references/components/appearance.md +26 -6
- package/skills/g9-lynx-app/references/components/calendar-1.md +21 -37
- package/skills/g9-lynx-app/references/components/calendar-2.md +38 -1
- package/skills/g9-lynx-app/references/components/canvas.md +1 -1
- package/skills/g9-lynx-app/references/components/chat-1.md +58 -61
- package/skills/g9-lynx-app/references/components/chat-2.md +110 -34
- package/skills/g9-lynx-app/references/components/chat-3.md +50 -0
- package/skills/g9-lynx-app/references/components/commands.md +1 -1
- package/skills/g9-lynx-app/references/components/design.md +1 -1
- package/skills/g9-lynx-app/references/components/display-1.md +1 -1
- package/skills/g9-lynx-app/references/components/display-3.md +1 -0
- package/skills/g9-lynx-app/references/components/media-1.md +75 -77
- package/skills/g9-lynx-app/references/components/media-2.md +131 -3
- package/skills/g9-lynx-app/references/components/native-media.md +16 -0
- package/skills/g9-lynx-app/references/components/projects.md +91 -3
- package/skills/g9-lynx-app/references/components/swipe.md +1 -1
- package/skills/g9-lynx-app/references/hosting.md +83 -0
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
# `@g9tm/lynxcontrols-chat` (part 1 of
|
|
1
|
+
# `@g9tm/lynxcontrols-chat` (part 1 of 3) (generated)
|
|
2
|
+
|
|
3
|
+
# G9AckBar
|
|
4
|
+
|
|
5
|
+
`import { G9AckBar } from '@g9tm/lynxcontrols-chat';`
|
|
6
|
+
|
|
7
|
+
«Read and acknowledge» under a post (a bubble's `after`): one tap to confirm; the sender sees «n of m» and the list.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `state`: 'none' | 'done' | 'needed' | 'manage'
|
|
11
|
+
- `words`: object
|
|
12
|
+
- `onAck?`: () => void
|
|
13
|
+
- `onList?`: () => void
|
|
14
|
+
- `acked?`: number
|
|
15
|
+
- `busy?`: boolean
|
|
16
|
+
- `color?`: color
|
|
17
|
+
- `mine?`: boolean
|
|
18
|
+
|
|
19
|
+
Example: `<G9AckBar state="none" words={words} />`
|
|
2
20
|
|
|
3
21
|
# G9ChatComposer
|
|
4
22
|
|
|
@@ -31,8 +49,8 @@ Props:
|
|
|
31
49
|
- `onLoadOlder?`: () => void
|
|
32
50
|
- `onLongPress?`: (message: G9Message) => void
|
|
33
51
|
- `onRetry?`: (message: G9Message) => void
|
|
52
|
+
- `avatarOf?`: (from) => ReactNode
|
|
34
53
|
- `renderAttachment?`: (message) => ReactNode
|
|
35
|
-
- `bubble?`: object
|
|
36
54
|
|
|
37
55
|
Example: `<G9ChatThread me="me" messages={messages} />`
|
|
38
56
|
|
|
@@ -54,6 +72,21 @@ Props:
|
|
|
54
72
|
|
|
55
73
|
Example: `<G9ConversationRow at={1} name="name" preview="preview" />`
|
|
56
74
|
|
|
75
|
+
# G9EditHistorySheet
|
|
76
|
+
|
|
77
|
+
`import { G9EditHistorySheet } from '@g9tm/lynxcontrols-chat';`
|
|
78
|
+
|
|
79
|
+
The edit history of a message: the original, then each edit with what it changed.
|
|
80
|
+
|
|
81
|
+
Props:
|
|
82
|
+
- `onClose`: () => void
|
|
83
|
+
- `open`: boolean
|
|
84
|
+
- `versions`: object[]
|
|
85
|
+
- `title?`: string
|
|
86
|
+
- `originalLabel?`: string
|
|
87
|
+
|
|
88
|
+
Example: `<G9EditHistorySheet onClose={() => {}} open versions={versions} />`
|
|
89
|
+
|
|
57
90
|
# G9EmojiLibrary
|
|
58
91
|
|
|
59
92
|
`import { G9EmojiLibrary } from '@g9tm/lynxcontrols-chat';`
|
|
@@ -94,17 +127,17 @@ Example: `<G9EmojiPicker onPick={() => {}} />`
|
|
|
94
127
|
|
|
95
128
|
`import { G9FileCard } from '@g9tm/lynxcontrols-chat';`
|
|
96
129
|
|
|
97
|
-
A file in a message: its
|
|
130
|
+
A file in a message: its type icon, name and size, an upload's ring, or its download state, and the app's actions.
|
|
98
131
|
|
|
99
132
|
Props:
|
|
100
133
|
- `name`: string
|
|
101
134
|
- `size?`: number
|
|
102
135
|
- `icon?`: icon
|
|
103
136
|
- `onCancel?`: () => void
|
|
137
|
+
- `onDownload?`: () => void
|
|
104
138
|
- `onOpen?`: () => void
|
|
105
139
|
- `cancelLabel?`: string
|
|
106
|
-
- `
|
|
107
|
-
- `progress?`: number
|
|
140
|
+
- `actions?`: ReactNode
|
|
108
141
|
|
|
109
142
|
Example: `<G9FileCard name="name" />`
|
|
110
143
|
|
|
@@ -126,74 +159,38 @@ Props:
|
|
|
126
159
|
|
|
127
160
|
Example: `<G9GifPicker onPick={() => {}} packs={packs} />`
|
|
128
161
|
|
|
162
|
+
# G9KudosDialog
|
|
163
|
+
|
|
164
|
+
`import { G9KudosDialog } from '@g9tm/lynxcontrols-chat';`
|
|
165
|
+
|
|
166
|
+
«👏 Thanks» to a person: their avatar, an emoji and a short note (a sheet's content).
|
|
167
|
+
|
|
168
|
+
Props:
|
|
169
|
+
- `name`: string
|
|
170
|
+
- `onSend`: (emoji: string, note: string) => void
|
|
171
|
+
- `words`: object
|
|
172
|
+
- `onCancel?`: () => void
|
|
173
|
+
- `avatar?`: string
|
|
174
|
+
- `busy?`: boolean
|
|
175
|
+
- `emojis?`: string[]
|
|
176
|
+
- `maxLength?`: number = 280
|
|
177
|
+
|
|
178
|
+
Example: `<G9KudosDialog name="name" onSend={() => {}} words={words} />`
|
|
179
|
+
|
|
129
180
|
# G9LinkPreview
|
|
130
181
|
|
|
131
182
|
`import { G9LinkPreview } from '@g9tm/lynxcontrols-chat';`
|
|
132
183
|
|
|
133
|
-
A link's
|
|
184
|
+
A link's card: the site and its icon, the title, a description, the picture wide on top or as a thumbnail.
|
|
134
185
|
|
|
135
186
|
Props:
|
|
136
187
|
- `url`: string
|
|
137
188
|
- `title?`: string
|
|
138
189
|
- `onDismiss?`: () => void
|
|
190
|
+
- `onImageError?`: (src: string) => void
|
|
139
191
|
- `onOpen?`: (url: string) => void
|
|
140
192
|
- `description?`: string
|
|
141
193
|
- `dismissLabel?`: string
|
|
142
194
|
- `compact?`: boolean
|
|
143
|
-
- `image?`: string
|
|
144
195
|
|
|
145
196
|
Example: `<G9LinkPreview url="url" />`
|
|
146
|
-
|
|
147
|
-
# G9MessageBubble
|
|
148
|
-
|
|
149
|
-
`import { G9MessageBubble } from '@g9tm/lynxcontrols-chat';`
|
|
150
|
-
|
|
151
|
-
One message: mine on the end side in the primary container colour, theirs on the start side on the surface; the corner toward the sender is tightened inside a run (first/middle/last), the time and the status ticks under
|
|
152
|
-
|
|
153
|
-
Props:
|
|
154
|
-
- `message`: object
|
|
155
|
-
- `mine`: boolean
|
|
156
|
-
- `customEmoji?`: (shortcode: string) => void
|
|
157
|
-
- `forwardedLabel?`: (from: string) => void
|
|
158
|
-
- `onAddReaction?`: (message: G9Message) => void
|
|
159
|
-
- `onEdited?`: (message: G9Message) => void
|
|
160
|
-
- `onLongPress?`: (message: G9Message) => void
|
|
161
|
-
- `onMention?`: (id: string) => void
|
|
162
|
-
|
|
163
|
-
Example: `<G9MessageBubble message={message} mine />`
|
|
164
|
-
|
|
165
|
-
# G9MessageMenu
|
|
166
|
-
|
|
167
|
-
`import { G9MessageMenu } from '@g9tm/lynxcontrols-chat';`
|
|
168
|
-
|
|
169
|
-
A message's long-press menu: a row of quick reactions (and «+» for the full picker) above the actions.
|
|
170
|
-
|
|
171
|
-
Props:
|
|
172
|
-
- `items`: object[]
|
|
173
|
-
- `onClose`: () => void
|
|
174
|
-
- `onSelect`: (key: string) => void
|
|
175
|
-
- `open`: boolean
|
|
176
|
-
- `title?`: string
|
|
177
|
-
- `onReact?`: (emoji: string) => void
|
|
178
|
-
- `cancelText?`: string
|
|
179
|
-
- `moreLabel?`: string
|
|
180
|
-
|
|
181
|
-
Example: `<G9MessageMenu items={items} onClose={() => {}} onSelect={() => {}} open />`
|
|
182
|
-
|
|
183
|
-
# G9MessageMeta
|
|
184
|
-
|
|
185
|
-
`import { G9MessageMeta } from '@g9tm/lynxcontrols-chat';`
|
|
186
|
-
|
|
187
|
-
A message's meta line: marks (pinned, silent, reminder, waiting), «edited», the time and my ticks.
|
|
188
|
-
|
|
189
|
-
Props:
|
|
190
|
-
- `time`: string | number
|
|
191
|
-
- `onEdited?`: () => void
|
|
192
|
-
- `onRetry?`: () => void
|
|
193
|
-
- `editedLabel?`: string
|
|
194
|
-
- `markIcons?`: icon
|
|
195
|
-
- `edited?`: boolean
|
|
196
|
-
- `marks?`: 'pinned' | 'silent' | 'reminder' | 'waiting'[]
|
|
197
|
-
- `mine?`: boolean
|
|
198
|
-
|
|
199
|
-
Example: `<G9MessageMeta time={time} />`
|
|
@@ -1,4 +1,58 @@
|
|
|
1
|
-
# `@g9tm/lynxcontrols-chat` (part 2 of
|
|
1
|
+
# `@g9tm/lynxcontrols-chat` (part 2 of 3) (generated)
|
|
2
|
+
|
|
3
|
+
# G9MessageBubble
|
|
4
|
+
|
|
5
|
+
`import { G9MessageBubble } from '@g9tm/lynxcontrols-chat';`
|
|
6
|
+
|
|
7
|
+
One message: mine on the end side in the primary container colour, theirs on the start side on the surface; the corner toward the sender is tightened inside a run (first/middle/last), the time and the status ticks under
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `message`: object
|
|
11
|
+
- `mine`: boolean
|
|
12
|
+
- `commentsLabel?`: (count: number) => void
|
|
13
|
+
- `customEmoji?`: (shortcode: string) => void
|
|
14
|
+
- `forwardedLabel?`: (from: string) => void
|
|
15
|
+
- `onAddReaction?`: (message: G9Message) => void
|
|
16
|
+
- `onCallAction?`: (message: G9Message) => void
|
|
17
|
+
- `onContextMenu?`: (message: G9Message, point: { readonly x: number; readonly y: number; }) => void
|
|
18
|
+
|
|
19
|
+
Example: `<G9MessageBubble message={message} mine />`
|
|
20
|
+
|
|
21
|
+
# G9MessageMenu
|
|
22
|
+
|
|
23
|
+
`import { G9MessageMenu } from '@g9tm/lynxcontrols-chat';`
|
|
24
|
+
|
|
25
|
+
A message's long-press menu: a row of quick reactions (and «+» for the full picker) above the actions.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `items`: object[]
|
|
29
|
+
- `onClose`: () => void
|
|
30
|
+
- `onSelect`: (key: string) => void
|
|
31
|
+
- `open`: boolean
|
|
32
|
+
- `title?`: string
|
|
33
|
+
- `onReact?`: (emoji: string) => void
|
|
34
|
+
- `cancelText?`: string
|
|
35
|
+
- `moreLabel?`: string
|
|
36
|
+
|
|
37
|
+
Example: `<G9MessageMenu items={items} onClose={() => {}} onSelect={() => {}} open />`
|
|
38
|
+
|
|
39
|
+
# G9MessageMeta
|
|
40
|
+
|
|
41
|
+
`import { G9MessageMeta } from '@g9tm/lynxcontrols-chat';`
|
|
42
|
+
|
|
43
|
+
A message's meta line: marks (pinned, silent, reminder, waiting), «edited», the time and my ticks.
|
|
44
|
+
|
|
45
|
+
Props:
|
|
46
|
+
- `time`: string | number
|
|
47
|
+
- `onEdited?`: () => void
|
|
48
|
+
- `onRetry?`: () => void
|
|
49
|
+
- `editedLabel?`: string
|
|
50
|
+
- `markIcons?`: icon
|
|
51
|
+
- `edited?`: boolean
|
|
52
|
+
- `marks?`: 'pinned' | 'silent' | 'reminder' | 'waiting'[]
|
|
53
|
+
- `mine?`: boolean
|
|
54
|
+
|
|
55
|
+
Example: `<G9MessageMeta time={time} />`
|
|
2
56
|
|
|
3
57
|
# G9MessageText
|
|
4
58
|
|
|
@@ -31,8 +85,8 @@ Props:
|
|
|
31
85
|
- `errorText?`: (error: unknown) => void
|
|
32
86
|
- `onPick?`: (person: G9Person) => void
|
|
33
87
|
- `onSelectedChange?`: (people: G9Person[]) => void
|
|
88
|
+
- `autoFocus?`: boolean
|
|
34
89
|
- `exclude?`: string[]
|
|
35
|
-
- `multiple?`: boolean = false
|
|
36
90
|
|
|
37
91
|
Example: `<G9PersonPicker labels={labels} search={search} />`
|
|
38
92
|
|
|
@@ -52,6 +106,41 @@ Props:
|
|
|
52
106
|
|
|
53
107
|
Example: `<G9PinnedBar items={items} label="Label" onJump={() => {}} />`
|
|
54
108
|
|
|
109
|
+
# G9PollCard
|
|
110
|
+
|
|
111
|
+
`import { G9PollCard } from '@g9tm/lynxcontrols-chat';`
|
|
112
|
+
|
|
113
|
+
A poll in the thread: tap to vote, then live results with bars, my ticks, the leader and the latest voters.
|
|
114
|
+
|
|
115
|
+
Props:
|
|
116
|
+
- `poll`: object
|
|
117
|
+
- `words`: object
|
|
118
|
+
- `onAddOption?`: (text: string) => void
|
|
119
|
+
- `onClose?`: () => void
|
|
120
|
+
- `onRetract?`: () => void
|
|
121
|
+
- `onVote?`: (optionIds: readonly string[]) => void
|
|
122
|
+
- `onVoters?`: () => void
|
|
123
|
+
- `busy?`: boolean
|
|
124
|
+
|
|
125
|
+
Example: `<G9PollCard poll={poll} words={words} />`
|
|
126
|
+
|
|
127
|
+
# G9PollComposer
|
|
128
|
+
|
|
129
|
+
`import { G9PollComposer } from '@g9tm/lynxcontrols-chat';`
|
|
130
|
+
|
|
131
|
+
The poll's composer: a question, 2–12 answers (the action key moves on and adds one), multiple, anonymous, a close.
|
|
132
|
+
|
|
133
|
+
Props:
|
|
134
|
+
- `onSend`: (poll: G9PollDraft) => void
|
|
135
|
+
- `words`: object
|
|
136
|
+
- `busy?`: boolean
|
|
137
|
+
- `closeOptions?`: object[]
|
|
138
|
+
- `initial?`: object
|
|
139
|
+
- `maxOptions?`: number
|
|
140
|
+
- `minOptions?`: number = 2
|
|
141
|
+
|
|
142
|
+
Example: `<G9PollComposer onSend={() => {}} words={words} />`
|
|
143
|
+
|
|
55
144
|
# G9ReactionBar
|
|
56
145
|
|
|
57
146
|
`import { G9ReactionBar } from '@g9tm/lynxcontrols-chat';`
|
|
@@ -65,11 +154,29 @@ Props:
|
|
|
65
154
|
- `onDetails?`: (emoji: string) => void
|
|
66
155
|
- `onToggle?`: (emoji: string) => void
|
|
67
156
|
- `addLabel?`: string
|
|
157
|
+
- `hideSingleCount?`: boolean
|
|
68
158
|
- `mine?`: boolean
|
|
69
|
-
- `selectedWord?`: string
|
|
70
159
|
|
|
71
160
|
Example: `<G9ReactionBar reactions={reactions} />`
|
|
72
161
|
|
|
162
|
+
# G9SchedulePicker
|
|
163
|
+
|
|
164
|
+
`import { G9SchedulePicker } from '@g9tm/lynxcontrols-chat';`
|
|
165
|
+
|
|
166
|
+
Send later (presets, an exact date and time in the culture's calendar, a repeat) or a self-destruct timer.
|
|
167
|
+
|
|
168
|
+
Props:
|
|
169
|
+
- `confirmLabel`: string
|
|
170
|
+
- `onConfirm`: (at: number | null) => void
|
|
171
|
+
- `words`: object
|
|
172
|
+
- `value?`: number
|
|
173
|
+
- `onChange?`: (at: number) => void
|
|
174
|
+
- `repeat?`: ReactNode
|
|
175
|
+
- `destruct?`: object
|
|
176
|
+
- `mode?`: 'send' | 'destruct'
|
|
177
|
+
|
|
178
|
+
Example: `<G9SchedulePicker confirmLabel="confirmLabel" onConfirm={() => {}} words={words} />`
|
|
179
|
+
|
|
73
180
|
# G9SlashSuggestions
|
|
74
181
|
|
|
75
182
|
`import { G9SlashSuggestions } from '@g9tm/lynxcontrols-chat';`
|
|
@@ -86,34 +193,3 @@ Props:
|
|
|
86
193
|
- `keyboard?`: boolean = true
|
|
87
194
|
|
|
88
195
|
Example: `<G9SlashSuggestions commands={commands} onPick={() => {}} text="Label" />`
|
|
89
|
-
|
|
90
|
-
# G9StickerPicker
|
|
91
|
-
|
|
92
|
-
`import { G9StickerPicker } from '@g9tm/lynxcontrols-chat';`
|
|
93
|
-
|
|
94
|
-
Stickers by pack (tabs) or GIFs, in a virtual grid, with an optional search; each cell spoken by its label.
|
|
95
|
-
|
|
96
|
-
Props:
|
|
97
|
-
- `onPick`: (item: G9StickerItem, packId: string | null) => void
|
|
98
|
-
- `packs`: object[]
|
|
99
|
-
- `columns?`: number
|
|
100
|
-
- `variant?`: 'sticker' | 'gif'
|
|
101
|
-
- `onItemLongPress?`: (item: G9StickerItem, packId: string | null) => void
|
|
102
|
-
- `search?`: (query: string, signal: AbortSignal) => void
|
|
103
|
-
- `emptyText?`: string
|
|
104
|
-
- `errorText?`: string
|
|
105
|
-
|
|
106
|
-
Example: `<G9StickerPicker onPick={() => {}} packs={packs} />`
|
|
107
|
-
|
|
108
|
-
# G9TypingDots
|
|
109
|
-
|
|
110
|
-
`import { G9TypingDots } from '@g9tm/lynxcontrols-chat';`
|
|
111
|
-
|
|
112
|
-
Three dots that rise in turn (CSS animation: nothing runs in script).
|
|
113
|
-
|
|
114
|
-
Props:
|
|
115
|
-
- `label?`: string
|
|
116
|
-
- `variant?`: 'bubble' | 'inline'
|
|
117
|
-
- `color?`: color
|
|
118
|
-
|
|
119
|
-
Example: `<G9TypingDots />`
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# `@g9tm/lynxcontrols-chat` (part 3 of 3) (generated)
|
|
2
|
+
|
|
3
|
+
# G9StickerPicker
|
|
4
|
+
|
|
5
|
+
`import { G9StickerPicker } from '@g9tm/lynxcontrols-chat';`
|
|
6
|
+
|
|
7
|
+
Stickers by pack (tabs) or GIFs, in a virtual grid, with an optional search; each cell spoken by its label.
|
|
8
|
+
|
|
9
|
+
Props:
|
|
10
|
+
- `onPick`: (item: G9StickerItem, packId: string | null) => void
|
|
11
|
+
- `packs`: object[]
|
|
12
|
+
- `columns?`: number
|
|
13
|
+
- `variant?`: 'sticker' | 'gif'
|
|
14
|
+
- `onItemLongPress?`: (item: G9StickerItem, packId: string | null) => void
|
|
15
|
+
- `search?`: (query: string, signal: AbortSignal) => void
|
|
16
|
+
- `emptyText?`: string
|
|
17
|
+
- `errorText?`: string
|
|
18
|
+
|
|
19
|
+
Example: `<G9StickerPicker onPick={() => {}} packs={packs} />`
|
|
20
|
+
|
|
21
|
+
# G9ThreadSearch
|
|
22
|
+
|
|
23
|
+
`import { G9ThreadSearch } from '@g9tm/lynxcontrols-chat';`
|
|
24
|
+
|
|
25
|
+
A search bar over a thread: the query, «n of m», ↑ / ↓ through the matches (wrapping), close.
|
|
26
|
+
|
|
27
|
+
Props:
|
|
28
|
+
- `count`: number
|
|
29
|
+
- `index`: number
|
|
30
|
+
- `onClose`: () => void
|
|
31
|
+
- `onIndexChange`: (index: number) => void
|
|
32
|
+
- `onQueryChange`: (query: string) => void
|
|
33
|
+
- `query`: string
|
|
34
|
+
- `autoFocus?`: boolean = true
|
|
35
|
+
- `words?`: object
|
|
36
|
+
|
|
37
|
+
Example: `<G9ThreadSearch count={1} index={1} onClose={() => {}} onIndexChange={() => {}} onQueryChange={() => {}} query="query" />`
|
|
38
|
+
|
|
39
|
+
# G9TypingDots
|
|
40
|
+
|
|
41
|
+
`import { G9TypingDots } from '@g9tm/lynxcontrols-chat';`
|
|
42
|
+
|
|
43
|
+
Three dots that rise in turn (CSS animation: nothing runs in script).
|
|
44
|
+
|
|
45
|
+
Props:
|
|
46
|
+
- `label?`: string
|
|
47
|
+
- `variant?`: 'bubble' | 'inline'
|
|
48
|
+
- `color?`: color
|
|
49
|
+
|
|
50
|
+
Example: `<G9TypingDots />`
|
|
@@ -9,7 +9,7 @@ A layout-neutral box that is an anchor (the probe measures it, hit-tests it, fol
|
|
|
9
9
|
Props:
|
|
10
10
|
- `label?`: string
|
|
11
11
|
- `children?`: ReactNode
|
|
12
|
-
- `kind?`: 'label' | 'image' | 'button' | 'entry' | 'toggle' | 'picker' | '
|
|
12
|
+
- `kind?`: 'label' | 'chips' | 'image' | 'button' | 'entry' | 'toggle' | 'picker' | 'tab' | 'tab-view' | 'list' | 'scroll' | 'item' | 'card' | 'map' | 'view' = "view"
|
|
13
13
|
- `name?`: string
|
|
14
14
|
|
|
15
15
|
Example: `<G9DesignNode />`
|
|
@@ -17,6 +17,24 @@ Props:
|
|
|
17
17
|
|
|
18
18
|
Example: `<G9BlurhashView hash="hash" height={height} width={width} />`
|
|
19
19
|
|
|
20
|
+
# G9CallButton
|
|
21
|
+
|
|
22
|
+
`import { G9CallButton } from '@g9tm/lynxcontrols-media';`
|
|
23
|
+
|
|
24
|
+
One round call button: an icon, on/off/end/accept fills, busy, a badge (2.5.10).
|
|
25
|
+
|
|
26
|
+
Props:
|
|
27
|
+
- `label`: string
|
|
28
|
+
- `onPress`: () => void
|
|
29
|
+
- `size?`: number
|
|
30
|
+
- `icon?`: icon
|
|
31
|
+
- `disabled?`: boolean
|
|
32
|
+
- `onLongPress?`: () => void
|
|
33
|
+
- `caption?`: boolean
|
|
34
|
+
- `tone?`: 'end' | 'accept'
|
|
35
|
+
|
|
36
|
+
Example: `<G9CallButton label="Label" onPress={() => {}} />`
|
|
37
|
+
|
|
20
38
|
# G9CallControls
|
|
21
39
|
|
|
22
40
|
`import { G9CallControls } from '@g9tm/lynxcontrols-media';`
|
|
@@ -25,9 +43,30 @@ The control bar under a call: round buttons, the hang-up red.
|
|
|
25
43
|
|
|
26
44
|
Props:
|
|
27
45
|
- `controls`: object[]
|
|
46
|
+
- `size?`: number
|
|
47
|
+
- `captions?`: boolean
|
|
48
|
+
- `light?`: boolean
|
|
28
49
|
|
|
29
50
|
Example: `<G9CallControls controls={controls} />`
|
|
30
51
|
|
|
52
|
+
# G9CallPreview
|
|
53
|
+
|
|
54
|
+
`import { G9CallPreview } from '@g9tm/lynxcontrols-media';`
|
|
55
|
+
|
|
56
|
+
The pre-join screen (G9Hub PreJoin): the preview, the meter, the switches, a name, devices, the captcha, join.
|
|
57
|
+
|
|
58
|
+
Props:
|
|
59
|
+
- `cameraOn`: boolean
|
|
60
|
+
- `joinLabel`: string
|
|
61
|
+
- `micOn`: boolean
|
|
62
|
+
- `onCamera`: (on: boolean) => void
|
|
63
|
+
- `onJoin`: () => void
|
|
64
|
+
- `onMic`: (on: boolean) => void
|
|
65
|
+
- `words`: object
|
|
66
|
+
- `title?`: string
|
|
67
|
+
|
|
68
|
+
Example: `<G9CallPreview cameraOn joinLabel="joinLabel" micOn onCamera={() => {}} onJoin={() => {}} onMic={() => {}} words={words} />`
|
|
69
|
+
|
|
31
70
|
# G9CallStage
|
|
32
71
|
|
|
33
72
|
`import { G9CallStage } from '@g9tm/lynxcontrols-media';`
|
|
@@ -95,6 +134,24 @@ Props:
|
|
|
95
134
|
|
|
96
135
|
Example: `<G9ClipPlayer seconds={1} />`
|
|
97
136
|
|
|
137
|
+
# G9DeviceSettings
|
|
138
|
+
|
|
139
|
+
`import { G9DeviceSettings } from '@g9tm/lynxcontrols-media';`
|
|
140
|
+
|
|
141
|
+
The call's device settings (G9Hub DeviceSettings).
|
|
142
|
+
|
|
143
|
+
Props:
|
|
144
|
+
- `effects?`: ReactNode
|
|
145
|
+
- `audioOnly?`: object
|
|
146
|
+
- `camera?`: object
|
|
147
|
+
- `layout?`: object
|
|
148
|
+
- `microphone?`: object
|
|
149
|
+
- `route?`: object
|
|
150
|
+
- `speaker?`: object
|
|
151
|
+
- `speakerNote?`: string
|
|
152
|
+
|
|
153
|
+
Example: `<G9DeviceSettings />`
|
|
154
|
+
|
|
98
155
|
# G9DropZone
|
|
99
156
|
|
|
100
157
|
`import { G9DropZone } from '@g9tm/lynxcontrols-media';`
|
|
@@ -113,91 +170,32 @@ Props:
|
|
|
113
170
|
|
|
114
171
|
Example: `<G9DropZone label="Label" onFiles={() => {}} />`
|
|
115
172
|
|
|
116
|
-
#
|
|
173
|
+
# G9EffectsPicker
|
|
117
174
|
|
|
118
|
-
`import {
|
|
175
|
+
`import { G9EffectsPicker } from '@g9tm/lynxcontrols-media';`
|
|
119
176
|
|
|
120
|
-
|
|
177
|
+
Background and noise suppression (G9Hub EffectsPicker): a busy spinner on the tile while the engine applies it.
|
|
121
178
|
|
|
122
179
|
Props:
|
|
123
|
-
- `
|
|
124
|
-
- `
|
|
125
|
-
- `
|
|
126
|
-
- `
|
|
127
|
-
- `
|
|
128
|
-
- `
|
|
129
|
-
- `
|
|
130
|
-
- `
|
|
180
|
+
- `background`: object | object | object
|
|
181
|
+
- `onBackground`: (choice: G9BackgroundChoice) => void
|
|
182
|
+
- `words`: object
|
|
183
|
+
- `columns?`: number = 4
|
|
184
|
+
- `onNoise?`: (mode: G9NoiseMode) => void
|
|
185
|
+
- `backgroundSupported?`: boolean = true
|
|
186
|
+
- `noise?`: 'off' | 'strong' | 'browser'
|
|
187
|
+
- `pictures?`: object[]
|
|
131
188
|
|
|
132
|
-
Example: `<
|
|
189
|
+
Example: `<G9EffectsPicker background={background} onBackground={onBackground} words={words} />`
|
|
133
190
|
|
|
134
|
-
#
|
|
191
|
+
# G9HuddleBadge
|
|
135
192
|
|
|
136
|
-
`import {
|
|
193
|
+
`import { G9HuddleBadge } from '@g9tm/lynxcontrols-media';`
|
|
137
194
|
|
|
138
|
-
|
|
195
|
+
A live huddle's badge (a conversation row's `trailing`): headphones and the count.
|
|
139
196
|
|
|
140
197
|
Props:
|
|
141
|
-
- `
|
|
142
|
-
- `
|
|
143
|
-
- `onAccept`: (withVideo: boolean) => void
|
|
144
|
-
- `onDecline`: () => void
|
|
145
|
-
- `subtitle`: string
|
|
146
|
-
- `busy?`: boolean
|
|
147
|
-
- `canVideo?`: boolean
|
|
148
|
-
- `full?`: boolean
|
|
149
|
-
|
|
150
|
-
Example: `<G9IncomingCall labels={labels} name="name" onAccept={() => {}} onDecline={() => {}} subtitle="subtitle" />`
|
|
151
|
-
|
|
152
|
-
# G9Lightbox
|
|
153
|
-
|
|
154
|
-
`import { G9Lightbox } from '@g9tm/lynxcontrols-media';`
|
|
155
|
-
|
|
156
|
-
The photos full screen on black: swipe between them (Lynx's native `<viewpager>`, snapping), the position «۲ / ۵», a close button; fades in with opacity only.
|
|
157
|
-
|
|
158
|
-
Props:
|
|
159
|
-
- `index`: number
|
|
160
|
-
- `items`: object[]
|
|
161
|
-
- `onClose`: () => void
|
|
162
|
-
- `open`: boolean
|
|
163
|
-
- `renderItem?`: (item, index) => ReactNode
|
|
164
|
-
- `onError?`: (item: G9MediaItem, index: number) => void
|
|
165
|
-
- `onIndexChange?`: (index: number) => void
|
|
166
|
-
- `onPlay?`: (item: G9MediaItem, index: number) => void
|
|
167
|
-
|
|
168
|
-
Example: `<G9Lightbox index={1} items={items} onClose={() => {}} open />`
|
|
169
|
-
|
|
170
|
-
# G9MediaGrid
|
|
171
|
-
|
|
172
|
-
`import { G9MediaGrid } from '@g9tm/lynxcontrols-media';`
|
|
173
|
-
|
|
174
|
-
1–4 tiles (and «+k» on the fourth) in a chat or feed post; a tap opens the photo.
|
|
175
|
-
|
|
176
|
-
Props:
|
|
177
|
-
- `items`: object[]
|
|
178
|
-
- `width`: number
|
|
179
|
-
- `onCancel?`: (index: number) => void
|
|
180
|
-
- `onOpen?`: (index: number) => void
|
|
181
|
-
- `cancelLabel?`: string
|
|
182
|
-
- `radius?`: number
|
|
183
|
-
- `gap?`: number
|
|
184
|
-
- `height?`: number
|
|
185
|
-
|
|
186
|
-
Example: `<G9MediaGrid items={items} width={1} />`
|
|
187
|
-
|
|
188
|
-
# G9MediaPager
|
|
189
|
-
|
|
190
|
-
`import { G9MediaPager } from '@g9tm/lynxcontrols-media';`
|
|
191
|
-
|
|
192
|
-
Pictures one per page, swiped (Lynx's native `<viewpager>`, snapping), each fitted on the page.
|
|
198
|
+
- `count`: number
|
|
199
|
+
- `label?`: string
|
|
193
200
|
|
|
194
|
-
|
|
195
|
-
- `index`: number
|
|
196
|
-
- `items`: object[]
|
|
197
|
-
- `renderItem?`: (item, index) => ReactNode
|
|
198
|
-
- `onError?`: (item: G9MediaItem, index: number) => void
|
|
199
|
-
- `onIndexChange?`: (index: number) => void
|
|
200
|
-
- `onPlay?`: (item: G9MediaItem, index: number) => void
|
|
201
|
-
- `playLabel?`: string
|
|
202
|
-
|
|
203
|
-
Example: `<G9MediaPager index={1} items={items} />`
|
|
201
|
+
Example: `<G9HuddleBadge count={1} />`
|