@g9tm/lynxcontrols 2.5.9 → 2.5.11

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.
Files changed (60) hide show
  1. package/catalog/cards/G9Anchor.md +1 -1
  2. package/catalog/cards/G9AppearancePage.md +2 -2
  3. package/catalog/cards/G9ContrastPanel.md +1 -0
  4. package/catalog/cards/G9DesignNode.md +1 -1
  5. package/catalog/cards/G9Keycap.md +1 -1
  6. package/catalog/cards/G9PersonalThemeSheet.md +3 -3
  7. package/catalog/cards/G9ShortcutList.md +1 -1
  8. package/catalog/cards/G9SwipeView.md +1 -1
  9. package/catalog/cards/G9ThemePreviewCard.md +1 -0
  10. package/catalog/cards/G9ThemeTokenEditor.md +17 -0
  11. package/catalog/cards/G9WallpaperSwatch.md +2 -1
  12. package/catalog/catalog.json +1172 -224
  13. package/catalog/index.md +2 -1
  14. package/dist/.tsbuildinfo +1 -1
  15. package/dist/appearance/appearance.css +201 -0
  16. package/dist/appearance/appearance.css.map +1 -1
  17. package/dist/appearance/appearance.d.ts +75 -9
  18. package/dist/appearance/appearance.d.ts.map +1 -1
  19. package/dist/appearance/appearance.jsx +333 -56
  20. package/dist/appearance/index.d.ts +1 -0
  21. package/dist/appearance/index.d.ts.map +1 -1
  22. package/dist/appearance/index.jsx +1 -0
  23. package/dist/appearance/token-editor.d.ts +52 -0
  24. package/dist/appearance/token-editor.d.ts.map +1 -0
  25. package/dist/appearance/token-editor.jsx +205 -0
  26. package/dist/display/theme-preview.d.ts +2 -0
  27. package/dist/display/theme-preview.d.ts.map +1 -1
  28. package/dist/display/theme-preview.jsx +10 -4
  29. package/dist/provider/provider.d.ts.map +1 -1
  30. package/dist/provider/provider.jsx +3 -2
  31. package/dist/swipe/index.d.ts +1 -1
  32. package/dist/swipe/index.d.ts.map +1 -1
  33. package/dist/swipe/index.jsx +1 -1
  34. package/dist/swipe/model.d.ts +7 -0
  35. package/dist/swipe/model.d.ts.map +1 -1
  36. package/dist/swipe/model.jsx +8 -1
  37. package/dist/swipe/swipe-view.d.ts +7 -0
  38. package/dist/swipe/swipe-view.d.ts.map +1 -1
  39. package/dist/swipe/swipe-view.jsx +34 -6
  40. package/package.json +2 -2
  41. package/skills/g9-lynx-app/SKILL.md +1 -0
  42. package/skills/g9-lynx-app/references/catalog-index.md +9 -5
  43. package/skills/g9-lynx-app/references/components/anchor.md +1 -1
  44. package/skills/g9-lynx-app/references/components/appearance.md +26 -6
  45. package/skills/g9-lynx-app/references/components/calendar-1.md +21 -37
  46. package/skills/g9-lynx-app/references/components/calendar-2.md +38 -1
  47. package/skills/g9-lynx-app/references/components/canvas.md +1 -1
  48. package/skills/g9-lynx-app/references/components/chat-1.md +58 -61
  49. package/skills/g9-lynx-app/references/components/chat-2.md +111 -34
  50. package/skills/g9-lynx-app/references/components/chat-3.md +61 -0
  51. package/skills/g9-lynx-app/references/components/commands.md +1 -1
  52. package/skills/g9-lynx-app/references/components/design.md +1 -1
  53. package/skills/g9-lynx-app/references/components/display-1.md +1 -1
  54. package/skills/g9-lynx-app/references/components/display-3.md +1 -0
  55. package/skills/g9-lynx-app/references/components/media-1.md +75 -77
  56. package/skills/g9-lynx-app/references/components/media-2.md +131 -3
  57. package/skills/g9-lynx-app/references/components/native-media.md +34 -0
  58. package/skills/g9-lynx-app/references/components/projects.md +91 -3
  59. package/skills/g9-lynx-app/references/components/swipe.md +1 -1
  60. package/skills/g9-lynx-app/references/hosting.md +83 -0
@@ -0,0 +1,52 @@
1
+ import './appearance.css';
2
+ import { type G9ColorScheme, type G9ThemeTokens, type G9TokenTheme, type G9TokenThemeOptions } from '@g9tm/lynxcontrols-foundation';
3
+ import { type ReactNode } from '@lynx-js/react';
4
+ import { type G9ContrastWords } from './appearance.js';
5
+ /** The words of {@link G9ThemeTokenEditor}. */
6
+ export interface G9ThemeTokenEditorWords {
7
+ readonly name?: string;
8
+ readonly scheme?: string;
9
+ readonly light?: string;
10
+ readonly dark?: string;
11
+ readonly changedOnly?: string;
12
+ readonly reset?: string;
13
+ readonly invalid?: string;
14
+ readonly preview?: string;
15
+ /** A group's title by its id (`surfaces`, `text`, `accent`, `chat`, `status`, `depth`, `shape`, `motion`). */
16
+ readonly groups?: Readonly<Partial<Record<string, string>>>;
17
+ readonly contrast?: G9ContrastWords;
18
+ /** «3 changes» (2.5.11): the count beside the filter. */
19
+ readonly changes?: (count: number) => string;
20
+ /** A row changed since `original` and not saved (2.5.11). */
21
+ readonly unsaved?: string;
22
+ }
23
+ /** Props of {@link G9ThemeTokenEditor}. */
24
+ export interface G9ThemeTokenEditorProps {
25
+ readonly id?: string;
26
+ /** The theme being edited (its tokens list only what it changes). */
27
+ readonly value: G9TokenTheme;
28
+ readonly onChange: (theme: G9TokenTheme) => void;
29
+ /** What each scheme inherits (G9Hub SCHEME_DEFAULTS): the fields' placeholders and the preview's fallbacks. */
30
+ readonly inherited?: Readonly<Partial<Record<G9ColorScheme, G9ThemeTokens>>>;
31
+ /** How the preview reads the theme (base shape and motion, the recipe). */
32
+ readonly options?: G9TokenThemeOptions;
33
+ /** The token list's height (dp). Default 480. */
34
+ readonly listHeight?: number;
35
+ /** A virtual list (default true); false draws every row in a scroll view (a short «changed only» list). */
36
+ readonly virtual?: boolean;
37
+ readonly language?: string;
38
+ readonly words?: G9ThemeTokenEditorWords;
39
+ /** The name's problem (empty, taken). */
40
+ readonly nameError?: string | null;
41
+ /** The theme as saved: rows that differ are marked, and the count says how many. */
42
+ readonly original?: G9TokenTheme;
43
+ /** Shown, not changed (while saving, or without the right to edit). */
44
+ readonly disabled?: boolean;
45
+ /** `'auto'` (default): the preview and the contrast beside the list on a wide window, under it on a phone. */
46
+ readonly layout?: 'auto' | 'stack' | 'side';
47
+ /** The list takes the height the editor is given (its parent's) instead of `listHeight`. */
48
+ readonly fill?: boolean;
49
+ }
50
+ /** The organisation theme editor: name, scheme, a row per token, a live preview and its contrast. */
51
+ export declare function G9ThemeTokenEditor(props: G9ThemeTokenEditorProps): ReactNode;
52
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C,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IACjD,+GAA+G;IAC/G,QAAQ,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC7E,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC;IACvC,iDAAiD;IACjD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,2GAA2G;IAC3G,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAEzC,yCAAyC;IACzC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,oFAAoF;IACpF,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACjC,uEAAuE;IACvE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,8GAA8G;IAC9G,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAC5C,4FAA4F;IAC5F,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB;AAMD,qGAAqG;AACrG,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,SAAS,CAkM5E"}
@@ -0,0 +1,205 @@
1
+ import "./appearance.css";
2
+ import { g9BackgroundStyle, g9ResolveThemeTokens, g9ThemeFromTokens, g9ThemeTokenGroups, g9TokenForPalette, g9TokenValueValid, previewThemeDefinition } from "@g9tm/lynxcontrols-foundation";
3
+ import { useMemo, useState } from "@lynx-js/react";
4
+ import { g9IdProps, g9SafeId } from "../base/control.jsx";
5
+ import { G9IconButton } from "../button/icon-button.jsx";
6
+ import { G9ThemePreviewCard } from "../display/theme-preview.jsx";
7
+ import { G9TextEntry } from "../fields/text-entry.jsx";
8
+ import { G9VirtualList } from "../list/virtual-list.jsx";
9
+ import { useG9Direction, useG9Layout } from "../provider/hooks.jsx";
10
+ import { G9Segmented } from "../toggle/choice.jsx";
11
+ import { G9Switch } from "../toggle/switch.jsx";
12
+ import { G9ContrastPanel } from "./appearance.jsx";
13
+ const EN = {
14
+ name: 'Name',
15
+ scheme: 'Scheme',
16
+ light: 'Light',
17
+ dark: 'Dark',
18
+ changedOnly: 'Changed only',
19
+ reset: 'Reset to inherited',
20
+ invalid: 'Not a valid value',
21
+ preview: 'Preview'
22
+ };
23
+ function G9ThemeTokenEditor(props) {
24
+ var _props_id, _ref, _theme_name_, _props_language, _theme_name_1, _props_language1, _props_listHeight;
25
+ var _props_inherited, _props_original, _props_words;
26
+ const w = {
27
+ ...EN,
28
+ ...props.words
29
+ };
30
+ const rtl = 'rtl' === useG9Direction();
31
+ const { wide } = useG9Layout();
32
+ const base = null != (_props_id = props.id) ? _props_id : 'G9TokenEditor';
33
+ const [changedOnly, setChangedOnly] = useState(false);
34
+ const theme = props.value;
35
+ const inherited = null != (_ref = null == (_props_inherited = props.inherited) ? void 0 : _props_inherited[theme.scheme]) ? _ref : {};
36
+ const options = {
37
+ ...props.options,
38
+ ...props.inherited ? {
39
+ defaults: props.inherited
40
+ } : {}
41
+ };
42
+ const resolved = useMemo(()=>g9ResolveThemeTokens(theme, options), [
43
+ theme,
44
+ props.inherited,
45
+ props.options
46
+ ]);
47
+ const preview = useMemo(()=>previewThemeDefinition(g9ThemeFromTokens(theme, options), theme.scheme), [
48
+ theme,
49
+ props.inherited,
50
+ props.options
51
+ ]);
52
+ const own = theme.tokens;
53
+ const saved = null == (_props_original = props.original) ? void 0 : _props_original.tokens;
54
+ const dirty = (name)=>{
55
+ var _own_name, _saved_name;
56
+ return void 0 !== saved && (null != (_own_name = own[name]) ? _own_name : '') !== (null != (_saved_name = saved[name]) ? _saved_name : '');
57
+ };
58
+ const changeCount = saved ? new Set([
59
+ ...Object.keys(own),
60
+ ...Object.keys(saved)
61
+ ]).size - [
62
+ ...new Set([
63
+ ...Object.keys(own),
64
+ ...Object.keys(saved)
65
+ ])
66
+ ].filter((k)=>!dirty(k)).length : Object.keys(own).length;
67
+ const side = 'side' === props.layout || 'stack' !== props.layout && wide;
68
+ const setToken = (name, value)=>{
69
+ if (props.disabled) return;
70
+ const next = {
71
+ ...theme.tokens
72
+ };
73
+ if (null !== value && value.trim()) next[name] = value;
74
+ else delete next[name];
75
+ props.onChange({
76
+ ...theme,
77
+ tokens: next
78
+ });
79
+ };
80
+ const items = useMemo(()=>{
81
+ const out = [];
82
+ for (const g of g9ThemeTokenGroups){
83
+ const tokens = g.tokens.filter((t)=>!changedOnly || void 0 !== own[t]);
84
+ if (tokens.length) {
85
+ out.push({
86
+ kind: 'group',
87
+ id: g.id
88
+ });
89
+ for (const t of tokens)out.push({
90
+ kind: 'token',
91
+ name: t,
92
+ group: g.id
93
+ });
94
+ }
95
+ }
96
+ return out;
97
+ }, [
98
+ changedOnly,
99
+ theme.tokens
100
+ ]);
101
+ const row = {
102
+ flexDirection: rtl ? 'row-reverse' : 'row',
103
+ direction: 'ltr'
104
+ };
105
+ const align = {
106
+ textAlign: rtl ? 'right' : 'left'
107
+ };
108
+ const renderItem = (item)=>{
109
+ var _ref, _own_name, _resolved_name, _w_unsaved, _ref1, _inherited_name;
110
+ var _props_words_groups, _props_words;
111
+ if ('group' === item.kind) return <text className="g9-token-editor__group" style={align}>
112
+ {null != (_ref = null == (_props_words = props.words) ? void 0 : null == (_props_words_groups = _props_words.groups) ? void 0 : _props_words_groups[item.id]) ? _ref : item.id}
113
+ </text>;
114
+ const name = item.name;
115
+ const value = null != (_own_name = own[name]) ? _own_name : '';
116
+ const valid = g9TokenValueValid(name, value);
117
+ const shown = null != (_resolved_name = resolved[name]) ? _resolved_name : '';
118
+ const swatch = shown ? g9BackgroundStyle(shown, resolved) : {
119
+ backgroundColor: 'transparent'
120
+ };
121
+ const pid = `${base}_${g9SafeId(name)}`;
122
+ const head = <view className="g9-token-editor__head" style={row}>
123
+ {dirty(name) ? <view className="g9-token-editor__dirty" accessibility-element={true} accessibility-label={null != (_w_unsaved = w.unsaved) ? _w_unsaved : '•'}/> : null}
124
+ <view className="g9-token-editor__swatch" style={swatch}/>
125
+ <text className="g9-token-editor__name g9-token-editor__mono" text-maxline="1" style={align}>
126
+ {name}
127
+ </text>
128
+ {void 0 !== own[name] && !props.disabled ? <G9IconButton id={`${pid}_Reset`} icon="close" isGhost buttonSize={32} accessibilityText={w.reset} onPress={()=>setToken(name, null)}/> : null}
129
+ </view>;
130
+ const field = <view className="g9-token-editor__field">
131
+ <G9TextEntry id={`${pid}_Value`} value={value} placeholder={null != (_ref1 = null != (_inherited_name = inherited[name]) ? _inherited_name : resolved[name]) ? _ref1 : ''} inputTextDirection="leftToRight" hasError={!valid} {...!valid ? {
132
+ errorText: w.invalid
133
+ } : {}} accessibilityLabel={name} {...props.disabled ? {
134
+ readOnly: true
135
+ } : {}} onValueChange={(v)=>setToken(name, v)}/>
136
+ </view>;
137
+ return <view className={wide ? 'g9-token-editor__row g9-token-editor__row--wide' : 'g9-token-editor__row'} style={wide ? row : {}} {...g9IdProps(pid)}>
138
+ {head}
139
+ {field}
140
+ </view>;
141
+ };
142
+ const previewPart = <>
143
+ <text className="g9-token-editor__group" style={align}>
144
+ {w.preview}
145
+ </text>
146
+ <G9ThemePreviewCard id={`${base}_Preview`} theme={preview} name={'string' == typeof theme.name ? theme.name : null != (_theme_name_ = theme.name[null != (_props_language = props.language) ? _props_language : 'en']) ? _theme_name_ : theme.id}/>
147
+ <G9ContrastPanel id={`${base}_Contrast`} palette={preview.palette} {...preview.appTokens ? {
148
+ appTokens: preview.appTokens
149
+ } : {}} onlyFailures onFix={(token, value)=>{
150
+ var _g9TokenForPalette;
151
+ return setToken(null != (_g9TokenForPalette = g9TokenForPalette(token)) ? _g9TokenForPalette : token, value);
152
+ }} {...(null == (_props_words = props.words) ? void 0 : _props_words.contrast) ? {
153
+ words: props.words.contrast
154
+ } : {}}/>
155
+ </>;
156
+ return <view className={`g9-token-editor${props.fill ? ' g9-token-editor--fill' : ''}${props.disabled ? ' g9-token-editor--disabled' : ''}`} {...g9IdProps(props.id)}>
157
+ <G9TextEntry id={`${base}_Name`} label={w.name} value={'string' == typeof theme.name ? theme.name : null != (_theme_name_1 = theme.name[null != (_props_language1 = props.language) ? _props_language1 : 'en']) ? _theme_name_1 : ''} maxLength={60} {...props.nameError ? {
158
+ errorText: props.nameError,
159
+ hasError: true
160
+ } : {}} {...props.disabled ? {
161
+ readOnly: true
162
+ } : {}} onValueChange={(name)=>{
163
+ if (!props.disabled) props.onChange({
164
+ ...theme,
165
+ name
166
+ });
167
+ }}/>
168
+ <view className="g9-token-editor__bar" style={row}>
169
+ <G9Segmented id={`${base}_Scheme`} size="sm" value={theme.scheme} items={[
170
+ {
171
+ key: 'light',
172
+ label: w.light
173
+ },
174
+ {
175
+ key: 'dark',
176
+ label: w.dark
177
+ }
178
+ ]} onChange={(s)=>{
179
+ if (!props.disabled) props.onChange({
180
+ ...theme,
181
+ scheme: s
182
+ });
183
+ }}/>
184
+ {w.changes && changeCount > 0 ? <text className="g9-token-editor__count">{w.changes(changeCount)}</text> : null}
185
+ <view className="g9-token-editor__filter" style={row}>
186
+ <text className="g9-token-editor__filter-text">{w.changedOnly}</text>
187
+ <G9Switch id={`${base}_Changed`} checked={changedOnly} accessibilityLabel={w.changedOnly} onCheckedChange={setChangedOnly}/>
188
+ </view>
189
+ </view>
190
+ <view className={`g9-token-editor__body${side ? ' g9-token-editor__body--side' : ''}${props.fill ? ' g9-token-editor__body--fill' : ''}`} style={side ? row : {}}>
191
+ <view className={props.fill ? 'g9-token-editor__list g9-token-editor__list--fill' : 'g9-token-editor__list'} style={props.fill ? {} : {
192
+ height: `${null != (_props_listHeight = props.listHeight) ? _props_listHeight : 480}px`
193
+ }}>
194
+ {false === props.virtual ? <scroll-view className="g9-token-editor__scroll" scroll-orientation="vertical">
195
+ {items.map((it)=><view key={'group' === it.kind ? `g:${it.id}` : `t:${it.name}`}>{renderItem(it)}</view>)}
196
+ </scroll-view> : <G9VirtualList {...props.id ? {
197
+ id: `${props.id}_List`
198
+ } : {}} items={items} getKey={(it)=>'group' === it.kind ? `g:${it.id}` : `t:${it.name}`} estimatedSize={(it)=>'group' === it.kind ? 32 : wide ? 64 : 112} renderItem={renderItem}/>}
199
+ </view>
200
+ {side ? <view className="g9-token-editor__side">{previewPart}</view> : null}
201
+ </view>
202
+ {side ? null : previewPart}
203
+ </view>;
204
+ }
205
+ export { G9ThemeTokenEditor };
@@ -13,6 +13,8 @@ export interface G9ThemePreviewCardProps {
13
13
  readonly selected?: boolean;
14
14
  readonly onSelect?: () => void;
15
15
  readonly className?: string;
16
+ /** Beside the name in the foot (2.5.10: a themes page's «default» tag or its menu button). */
17
+ readonly trailing?: ReactNode;
16
18
  }
17
19
  /** A card showing a theme as a small app (rail, two chat bubbles, a field), its name, and a check when chosen. */
18
20
  export declare function G9ThemePreviewCard(props: G9ThemePreviewCardProps): ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"theme-preview.d.ts","sourceRoot":"","sources":["../../src/display/theme-preview.tsx"],"names":[],"mappings":"AAIA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,eAAe,EAAyC,MAAM,+BAA+B,CAAC;AAC5G,OAAO,EAAE,KAAK,SAAS,EAAgC,MAAM,gBAAgB,CAAC;AAQ9E,2CAA2C;AAC3C,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,+FAA+F;IAC/F,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,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,5 +1,5 @@
1
1
  import "./theme-preview.css";
2
- import { toCssVariables, toDerivedCssVariables } from "@g9tm/lynxcontrols-foundation";
2
+ import { g9BackgroundStyle, toAppTokenCssVariables, toCssVariables, toDerivedCssVariables } from "@g9tm/lynxcontrols-foundation";
3
3
  import { useEffect, useMemo, useState } from "@lynx-js/react";
4
4
  import { useG9Anchor } from "../anchor/hooks.jsx";
5
5
  import { G9Icon } from "../icon/icon.jsx";
@@ -7,13 +7,18 @@ import { useG9Direction } from "../provider/hooks.jsx";
7
7
  import { applyThemeVariables } from "../provider/theme-root.jsx";
8
8
  let seq = 0;
9
9
  function G9ThemePreviewCard(props) {
10
+ var _props_trailing;
10
11
  const rtl = 'rtl' === useG9Direction();
11
12
  const vars = useMemo(()=>({
12
13
  ...toCssVariables(props.theme),
13
- ...toDerivedCssVariables(props.theme)
14
+ ...toDerivedCssVariables(props.theme),
15
+ ...toAppTokenCssVariables(props.theme)
14
16
  }), [
15
17
  props.theme
16
18
  ]);
19
+ const tokens = props.theme.appTokens;
20
+ const mineBubble = (null == tokens ? void 0 : tokens['bubble-mine']) ? g9BackgroundStyle(tokens['bubble-mine'], tokens) : null;
21
+ const otherBubble = (null == tokens ? void 0 : tokens['bubble-other']) ? g9BackgroundStyle(tokens['bubble-other'], tokens) : null;
17
22
  const side = rtl ? 'rtl' : 'ltr';
18
23
  const [themeId] = useState(()=>`g9-theme-card-${++seq}`);
19
24
  const [inline, setInline] = useState(vars);
@@ -48,7 +53,7 @@ function G9ThemePreviewCard(props) {
48
53
  <view className="g9-theme-card__nav"/>
49
54
  </view>
50
55
  <view className="g9-theme-card__chat">
51
- <view className={`g9-theme-card__bubble g9-theme-card__bubble--other-${side}`}>
56
+ <view className={`g9-theme-card__bubble g9-theme-card__bubble--other-${side}`} style={null != otherBubble ? otherBubble : {}}>
52
57
  <view className="g9-theme-card__line g9-theme-card__line--other" style={{
53
58
  width: '64px'
54
59
  }}/>
@@ -56,7 +61,7 @@ function G9ThemePreviewCard(props) {
56
61
  width: '40px'
57
62
  }}/>
58
63
  </view>
59
- <view className={`g9-theme-card__bubble g9-theme-card__bubble--mine-${side}`}>
64
+ <view className={`g9-theme-card__bubble g9-theme-card__bubble--mine-${side}`} style={null != mineBubble ? mineBubble : {}}>
60
65
  <view className="g9-theme-card__line g9-theme-card__line--mine" style={{
61
66
  width: '56px'
62
67
  }}/>
@@ -79,6 +84,7 @@ function G9ThemePreviewCard(props) {
79
84
  {props.hint}
80
85
  </text> : null}
81
86
  </view>
87
+ {null != (_props_trailing = props.trailing) ? _props_trailing : null}
82
88
  <view className={`g9-theme-card__check${props.selected ? ' g9-theme-card__check--on' : ''}`}>
83
89
  {props.selected ? <G9Icon icon="check" size={14} color={props.theme.palette.OnPrimary}/> : null}
84
90
  </view>
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/provider/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,UAAU,EAEf,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,eAAe,EAWrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,KAAK,SAAS,EAA8D,MAAM,gBAAgB,CAAC;AAqB5G,OAAO,EAAE,KAAK,UAAU,EAA4C,MAAM,YAAY,CAAC;AAEvF,OAAO,gBAAgB,CAAC;AACxB,OAAO,aAAa,CAAC;AAErB;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,8GAA8G;IAC9G,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC;IAChC,8HAA8H;IAC9H,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,+FAA+F;IAC/F,QAAQ,CAAC,MAAM,CAAC,EAAE;Q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EAAE,eAAe,GAAG,SAAS,CAiX5D"}
@@ -1,4 +1,4 @@
1
- import { aliasCssVariables, assertRequiredCapabilities, createCultureStore, createDiagnostics, createIconFontRegistry, createPreferences, createSafeExecutor, createStrings, createThemeStore, g9Breakpoints, g9MotionScale, resolveLayout, resolveShape, setG9Feedback, subscribeG9Motion, toCssVariables, toDerivedCssVariables, toRootCssVariables, toShapeCssVariables } from "@g9tm/lynxcontrols-foundation";
1
+ import { aliasCssVariables, assertRequiredCapabilities, createCultureStore, createDiagnostics, createIconFontRegistry, createPreferences, createSafeExecutor, createStrings, createThemeStore, g9Breakpoints, g9MotionScale, resolveLayout, resolveShape, setG9Feedback, subscribeG9Motion, toAppTokenCssVariables, toCssVariables, toDerivedCssVariables, toRootCssVariables, toShapeCssVariables } from "@g9tm/lynxcontrols-foundation";
2
2
  import { useEffect, useMemo, useRef, useState, useSyncExternalStore } from "@lynx-js/react";
3
3
  import { G9AnchorRegistryContext } from "../anchor/context.jsx";
4
4
  import { createAnchorRegistry } from "../anchor/registry.jsx";
@@ -69,7 +69,8 @@ function finite(value) {
69
69
  function themeVariables(theme) {
70
70
  return {
71
71
  ...toCssVariables(theme),
72
- ...toDerivedCssVariables(theme)
72
+ ...toDerivedCssVariables(theme),
73
+ ...toAppTokenCssVariables(theme)
73
74
  };
74
75
  }
75
76
  function G9Provider(props) {
@@ -1,3 +1,3 @@
1
- export { createSwipeGroup, type G9SwipeAction, type G9SwipeGroupStore, g9SwipeDefaultActionWidth, g9SwipeDefaultCornerRadius, g9SwipeSnapMs, swipeActionColors, swipeDragTarget, swipeDragTargetMT, swipePaneWidth, swipePhysicalWidths, swipeSnap, swipeSnapMT, } from './model.js';
1
+ export { createSwipeGroup, type G9SwipeAction, type G9SwipeGroupStore, g9SwipeDefaultActionWidth, g9SwipeDefaultCornerRadius, g9SwipeFullRatio, g9SwipeSnapMs, swipeActionColors, swipeDragTarget, swipeDragTargetMT, swipeFull, swipePaneWidth, swipePhysicalWidths, swipeSnap, swipeSnapMT, } from './model.js';
2
2
  export { G9SwipeGroup, G9SwipeView, type G9SwipeViewProps } from './swipe-view.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/swipe/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,SAAS,EACT,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/swipe/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,SAAS,EACT,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,2 +1,2 @@
1
- export { createSwipeGroup, g9SwipeDefaultActionWidth, g9SwipeDefaultCornerRadius, g9SwipeSnapMs, swipeActionColors, swipeDragTarget, swipeDragTargetMT, swipePaneWidth, swipePhysicalWidths, swipeSnap, swipeSnapMT } from "./model.jsx";
1
+ export { createSwipeGroup, g9SwipeDefaultActionWidth, g9SwipeDefaultCornerRadius, g9SwipeFullRatio, g9SwipeSnapMs, swipeActionColors, swipeDragTarget, swipeDragTargetMT, swipeFull, swipePaneWidth, swipePhysicalWidths, swipeSnap, swipeSnapMT } from "./model.jsx";
2
2
  export { G9SwipeGroup, G9SwipeView } from "./swipe-view.jsx";
@@ -58,6 +58,13 @@ export declare function swipeSnap(translate: number, leftWidth: number, rightWid
58
58
  export declare function swipeDragTarget(x: number, leftWidth: number, rightWidth: number): number;
59
59
  /** Main-thread twin of {@link swipeDragTarget}. */
60
60
  export declare function swipeDragTargetMT(x: number, leftWidth: number, rightWidth: number): number;
61
+ /** How far past the row's width a drag runs the outer action (2.5.10 full swipe). */
62
+ export declare const g9SwipeFullRatio = 0.6;
63
+ /**
64
+ * A full swipe (2.5.10): the drag went past {@link g9SwipeFullRatio} of the row's width on a side that has actions —
65
+ * `1` to the right, `-1` to the left, `0` not.
66
+ */
67
+ export declare function swipeFull(translate: number, width: number, leftWidth: number, rightWidth: number): 1 | -1 | 0;
61
68
  /** Main-thread twin of {@link swipeSnap} (plan/specs/02 §3). */
62
69
  export declare function swipeSnapMT(translate: number, leftWidth: number, rightWidth: number): number;
63
70
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/swipe/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,mFAAmF;AACnF,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,qEAAqE;AACrE,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC,iHAAiH;AACjH,MAAM,WAAW,aAAa;IAC5B,uDAAuD;IACvD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,iEAAiE;IACjE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,mFAAmF;IACnF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC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,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAI1F;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAExF;AAED,mDAAmD;AACnD,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAG1F;AAED,qFAAqF;AACrF,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC;;;GAGG;AACH,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAK7G;AAED,gEAAgE;AAChE,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAK5F;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,uDAAuD;IACvD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAC5C,kEAAkE;IAClE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mCAAmC;IACnC,QAAQ,IAAI,IAAI,CAAC;IACjB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,iBAAiB,CAmBpD"}
@@ -38,6 +38,13 @@ function swipeDragTargetMT(x, leftWidth, rightWidth) {
38
38
  'main thread';
39
39
  return Math.min(Math.max(x, -rightWidth), leftWidth);
40
40
  }
41
+ const g9SwipeFullRatio = 0.6;
42
+ function swipeFull(translate, width, leftWidth, rightWidth) {
43
+ if (width <= 0) return 0;
44
+ if (translate > 0 && leftWidth > 0 && translate > width * g9SwipeFullRatio) return 1;
45
+ if (translate < 0 && rightWidth > 0 && -translate > width * g9SwipeFullRatio) return -1;
46
+ return 0;
47
+ }
41
48
  function swipeSnapMT(translate, leftWidth, rightWidth) {
42
49
  'main thread';
43
50
  if (translate > 0 && leftWidth > 0 && translate > leftWidth / 2) return leftWidth;
@@ -68,4 +75,4 @@ function createSwipeGroup() {
68
75
  }
69
76
  };
70
77
  }
71
- export { createSwipeGroup, g9SwipeDefaultActionWidth, g9SwipeDefaultCornerRadius, g9SwipeSnapMs, swipeActionColors, swipeDragTarget, swipeDragTargetMT, swipePaneWidth, swipePhysicalWidths, swipeSnap, swipeSnapMT };
78
+ export { createSwipeGroup, g9SwipeDefaultActionWidth, g9SwipeDefaultCornerRadius, g9SwipeFullRatio, g9SwipeSnapMs, swipeActionColors, swipeDragTarget, swipeDragTargetMT, swipeFull, swipePaneWidth, swipePhysicalWidths, swipeSnap, swipeSnapMT };
@@ -28,6 +28,13 @@ export interface G9SwipeViewProps {
28
28
  /** Told when the row opens a side or closes. */
29
29
  readonly onOpenChange?: (side: 'leading' | 'trailing' | null) => void;
30
30
  readonly className?: string;
31
+ /**
32
+ * A full swipe runs the outer action (2.5.10, G9Hub): past 60 % of the row's width the edge action of that side runs
33
+ * at once (a haptic when the drag crosses the line), as a tap on it would. Default false.
34
+ */
35
+ readonly fullSwipe?: boolean;
36
+ /** The row can be swiped (2.5.10). Default true; false keeps it closed (a mouse host, a row being edited). */
37
+ readonly enabled?: boolean;
31
38
  }
32
39
  /**
33
40
  * A card row with swipe-to-reveal action panes on both edges (MAUI `G9SwipeView`). The panes sit behind the body, so
@@ -1 +1 @@
1
- {"version":3,"file":"swipe-view.d.ts","sourceRoot":"","sources":["../../src/swipe/swipe-view.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAEL,KAAK,SAAS,EAOf,MAAM,gBAAgB,CAAC;A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C,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,SAAS,CA+L9D"}
@@ -1,9 +1,10 @@
1
1
  import "./swipe.css";
2
+ import { g9Haptic } from "@g9tm/lynxcontrols-foundation";
2
3
  import { Draggable } from "@lynx-js/lynx-ui-draggable";
3
- import { createContext, runOnMainThread, useContext, useEffect, useMainThreadRef, useRef, useState } from "@lynx-js/react";
4
+ import { createContext, runOnBackground, runOnMainThread, useContext, useEffect, useMainThreadRef, useRef, useState } from "@lynx-js/react";
4
5
  import { G9Icon } from "../icon/icon.jsx";
5
6
  import { useG9Diagnostics, useG9Direction } from "../provider/hooks.jsx";
6
- import { createSwipeGroup, g9SwipeDefaultCornerRadius, g9SwipeSnapMs, swipeActionColors, swipeDragTargetMT, swipePaneWidth, swipePhysicalWidths, swipeSnap, swipeSnapMT } from "./model.jsx";
7
+ import { createSwipeGroup, g9SwipeDefaultCornerRadius, g9SwipeSnapMs, swipeActionColors, swipeDragTargetMT, swipeFull, swipePaneWidth, swipePhysicalWidths, swipeSnap, swipeSnapMT } from "./model.jsx";
7
8
  const defaultGroup = createSwipeGroup();
8
9
  let rowSequence = 0;
9
10
  const SwipeGroupContext = createContext(defaultGroup);
@@ -69,6 +70,12 @@ function G9SwipeView(props) {
69
70
  useEffect(()=>()=>group.closed(id), []);
70
71
  const leftWidth = widths.left;
71
72
  const rightWidth = widths.right;
73
+ const [rowWidth, setRowWidth] = useState(0);
74
+ const full = true === props.fullSwipe && rowWidth > 0;
75
+ const travelLeft = full && leftWidth > 0 ? rowWidth : leftWidth;
76
+ const travelRight = full && rightWidth > 0 ? rowWidth : rightWidth;
77
+ const crossed = useMainThreadRef(false);
78
+ const tick = ()=>g9Haptic('impact');
72
79
  const onMTSDragStart = ()=>{
73
80
  'main thread';
74
81
  var _dragRef_current;
@@ -79,19 +86,35 @@ function G9SwipeView(props) {
79
86
  const onMTSDragging = (translate)=>{
80
87
  'main thread';
81
88
  var _dragRef_current;
82
- const x = swipeDragTargetMT(translate.x, leftWidth, rightWidth);
89
+ const x = swipeDragTargetMT(translate.x, travelLeft, travelRight);
83
90
  if (x !== translate.x) null == (_dragRef_current = dragRef.current) || _dragRef_current.MTSSetTransform(x, 0);
91
+ if (full) {
92
+ const past = Math.abs(x) > 0.6 * rowWidth;
93
+ if (past !== crossed.current) {
94
+ crossed.current = past;
95
+ if (past) runOnBackground(tick)();
96
+ }
97
+ }
84
98
  };
85
99
  const onMTSDragEnd = (translate)=>{
86
100
  'main thread';
87
101
  var _dragRef_current, _dragRef_current1;
88
- const target = swipeSnapMT(translate.x, leftWidth, rightWidth);
102
+ crossed.current = false;
103
+ const past = full && Math.abs(translate.x) > 0.6 * rowWidth;
104
+ const target = past ? 0 : swipeSnapMT(translate.x, leftWidth, rightWidth);
89
105
  null == (_dragRef_current = dragRef.current) || _dragRef_current.MTSSetOtherStyles({
90
106
  transition: `transform ${g9SwipeSnapMs}ms ease-out`
91
107
  });
92
108
  null == (_dragRef_current1 = dragRef.current) || _dragRef_current1.MTSSetTransform(target, 0);
93
109
  };
94
110
  const onDragEnd = (translate)=>{
111
+ const side = full ? swipeFull(translate.x, rowWidth, leftWidth, rightWidth) : 0;
112
+ if (0 !== side) {
113
+ const action = side > 0 ? leftActions[0] : rightActions[rightActions.length - 1];
114
+ settle(0, true, true);
115
+ if (action) invoke(action);
116
+ return;
117
+ }
95
118
  settle(swipeSnap(translate.x, leftWidth, rightWidth), true, true);
96
119
  };
97
120
  const invoke = (action)=>{
@@ -143,7 +166,12 @@ function G9SwipeView(props) {
143
166
  </view> : null;
144
167
  const radius = null != (_props_cornerRadius = props.cornerRadius) ? _props_cornerRadius : g9SwipeDefaultCornerRadius;
145
168
  const thickness = null != (_props_cardStrokeThickness = props.cardStrokeThickness) ? _props_cardStrokeThickness : 0;
146
- return <view className={`g9-swipe${0 !== offset ? ' g9-swipe--open' : ''} ${null != (_props_className = props.className) ? _props_className : ''}`} style={{
169
+ return <view className={`g9-swipe${0 !== offset ? ' g9-swipe--open' : ''} ${null != (_props_className = props.className) ? _props_className : ''}`} {...props.fullSwipe ? {
170
+ bindlayoutchange: (e)=>{
171
+ const w = Math.round(e.detail.width);
172
+ if (w !== rowWidth) setRowWidth(w);
173
+ }
174
+ } : {}} style={{
147
175
  borderRadius: `${radius}px`,
148
176
  backgroundColor: null != (_props_cardBackground = props.cardBackground) ? _props_cardBackground : 'transparent',
149
177
  ...props.cardStroke && thickness > 0 ? {
@@ -157,7 +185,7 @@ function G9SwipeView(props) {
157
185
  <Draggable className="g9-swipe__body" MTSRef={dragRef} trigger="immediate" allowedDirection={[
158
186
  'left',
159
187
  'right'
160
- ]} enableDragging={leftWidth > 0 || rightWidth > 0} minTranslateX={-(leftWidth + rightWidth)} maxTranslateX={leftWidth + rightWidth} minTranslateY={0} maxTranslateY={0} resetOnEnd={false} onMTSDragStart={onMTSDragStart} onMTSDragging={onMTSDragging} onMTSDragEnd={onMTSDragEnd} onDragEnd={onDragEnd} draggableProps={{
188
+ ]} enableDragging={false !== props.enabled && (leftWidth > 0 || rightWidth > 0)} minTranslateX={-(travelLeft + travelRight)} maxTranslateX={travelLeft + travelRight} minTranslateY={0} maxTranslateY={0} resetOnEnd={false} onMTSDragStart={onMTSDragStart} onMTSDragging={onMTSDragging} onMTSDragEnd={onMTSDragEnd} onDragEnd={onDragEnd} draggableProps={{
161
189
  bindtap: 0 !== offset ? ()=>settle(0, true, false) : void 0
162
190
  }}>
163
191
  {null != (_props_cardContent = props.cardContent) ? _props_cardContent : props.children}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@g9tm/lynxcontrols",
3
- "version": "2.5.9",
3
+ "version": "2.5.11",
4
4
  "description": "ReactLynx controls and overlay infrastructure: provider/host, sheets, popups, toasts, fields, buttons, pickers, tab view, tab bar, edge panel, swipe rows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -234,7 +234,7 @@
234
234
  "build": "rslib build"
235
235
  },
236
236
  "dependencies": {
237
- "@g9tm/lynxcontrols-foundation": "2.5.9"
237
+ "@g9tm/lynxcontrols-foundation": "2.5.11"
238
238
  },
239
239
  "peerDependencies": {
240
240
  "@lynx-js/react": ">=0.129.3 <0.130.0",
@@ -23,6 +23,7 @@ disagree, trust `node_modules/@g9tm/lynxcontrols*/catalog/catalog.json` and the
23
23
  | Phone, tablet and desktop from one screen | `references/adaptive-layout.md` | — |
24
24
  | Test ids, a guided tour, an automation target | `references/anchors-guide.md` | `references/pilot.md` |
25
25
  | G9AppPilot (test builds, the watch, reports) | `references/pilot.md` | — |
26
+ | Host the native elements (rich text, canvas, video, call tracks) on iOS, Android, web, desktop | `references/hosting.md` | the library's `docs/integration/<platform>.md` |
26
27
  | Before you hand the work back | `references/common-mistakes.md` | run the app's own checks |
27
28
 
28
29
  ## Three rules most often broken
@@ -10,7 +10,7 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
10
10
 
11
11
  ## @g9tm/lynxcontrols-calendar
12
12
 
13
- - `@g9tm/lynxcontrols-calendar`: G9AgendaView, G9BirthdayField, G9DateInput, G9EventCard, G9FindTime, G9MiniMonth, G9MonthDayPicker, G9MonthView, G9RepeatPicker, G9TimeGrid, G9TimeListPicker, G9TodayWidget, G9WorkingHoursEditor, G9ZonePicker → `components/calendar-1.md`, `components/calendar-2.md`
13
+ - `@g9tm/lynxcontrols-calendar`: G9AgendaView, G9BirthdayField, G9DateField, G9DateInput, G9EventCard, G9FindTime, G9MiniMonth, G9MonthDayPicker, G9MonthView, G9RepeatPicker, G9TimeGrid, G9TimeListPicker, G9TodayWidget, G9WorkingHoursEditor, G9ZonePicker → `components/calendar-1.md`, `components/calendar-2.md`
14
14
 
15
15
  ## @g9tm/lynxcontrols-canvas
16
16
 
@@ -22,7 +22,7 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
22
22
 
23
23
  ## @g9tm/lynxcontrols-chat
24
24
 
25
- - `@g9tm/lynxcontrols-chat`: G9ChatComposer, G9ChatThread, G9ConversationRow, G9EmojiLibrary, G9EmojiPicker, G9FileCard, G9GifPicker, G9LinkPreview, G9MessageBubble, G9MessageMenu, G9MessageMeta, G9MessageText, G9PersonPicker, G9PinnedBar, G9ReactionBar, G9SlashSuggestions, G9StickerPicker, G9TypingDots → `components/chat-1.md`, `components/chat-2.md`
25
+ - `@g9tm/lynxcontrols-chat`: G9AckBar, G9ChatComposer, G9ChatThread, G9ConversationRow, G9EditHistorySheet, G9EmojiLibrary, G9EmojiPicker, G9FileCard, G9GifPicker, G9KudosDialog, G9LinkPreview, G9MessageBubble, G9MessageMenu, G9MessageMeta, G9MessageText, G9PersonPicker, G9PinnedBar, G9PollCard, G9PollComposer, G9ReactionBar, G9SchedulePicker, G9SlashSuggestions, G9StickerPicker, G9SystemPill, G9ThreadSearch, G9TypingDots → `components/chat-1.md`, `components/chat-2.md`, `components/chat-3.md`
26
26
 
27
27
  ## @g9tm/lynxcontrols-commerce
28
28
 
@@ -31,7 +31,7 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
31
31
  ## @g9tm/lynxcontrols
32
32
 
33
33
  - `@g9tm/lynxcontrols/anchor`: G9Anchor, G9ScrollerScope → `components/anchor.md`
34
- - `@g9tm/lynxcontrols/appearance`: G9AppearancePage, G9ContrastPanel, G9PersonalThemeSheet, G9WallpaperSwatch → `components/appearance.md`
34
+ - `@g9tm/lynxcontrols/appearance`: G9AppearancePage, G9ContrastPanel, G9PersonalThemeSheet, G9ThemeTokenEditor, G9WallpaperSwatch → `components/appearance.md`
35
35
  - `@g9tm/lynxcontrols/base`: G9CornerBadge, G9Pressable → `components/base.md`
36
36
  - `@g9tm/lynxcontrols/button`: G9Button, G9HeaderActionButton, G9IconButton, G9NavCard, G9SafeButton, G9SafeIconButton, G9VerticalIconTextButton → `components/button.md`
37
37
  - `@g9tm/lynxcontrols/cascade`: G9CascadePanel → `components/cascade.md`
@@ -81,7 +81,11 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
81
81
 
82
82
  ## @g9tm/lynxcontrols-media
83
83
 
84
- - `@g9tm/lynxcontrols-media`: G9BlurhashView, G9CallControls, G9CallStage, G9CallTileView, G9Captcha, G9ClipPlayer, G9DropZone, G9ImageCropper, G9IncomingCall, G9Lightbox, G9MediaGrid, G9MediaPager, G9QualityBars, G9SelfPip, G9VideoNote, G9VoicePlayer → `components/media-1.md`, `components/media-2.md`
84
+ - `@g9tm/lynxcontrols-media`: G9BlurhashView, G9CallButton, G9CallControls, G9CallPreview, G9CallStage, G9CallTileView, G9Captcha, G9ClipPlayer, G9DeviceSettings, G9DropZone, G9EffectsPicker, G9HuddleBadge, G9HuddleStrip, G9ImageCropper, G9IncomingCall, G9Lightbox, G9MediaGrid, G9MediaPager, G9MiniCall, G9QualityBars, G9SelfPip, G9VideoNote, G9VoicePlayer → `components/media-1.md`, `components/media-2.md`
85
+
86
+ ## @g9tm/lynxcontrols-native
87
+
88
+ - `@g9tm/lynxcontrols-native/media`: G9TrackVideo, G9VideoPlayer → `components/native-media.md`
85
89
 
86
90
  ## @g9tm/lynxcontrols-pilot
87
91
 
@@ -89,7 +93,7 @@ Generated from the installed packages' catalogs (`<package>/catalog`): one line
89
93
 
90
94
  ## @g9tm/lynxcontrols-projects
91
95
 
92
- - `@g9tm/lynxcontrols-projects`: G9Board, G9RuleBuilder, G9TaskCard, G9Timeline → `components/projects.md`
96
+ - `@g9tm/lynxcontrols-projects`: G9ActivityFeed, G9Board, G9FileBrowser, G9FormBuilder, G9OrgChart, G9QuestionField, G9RuleBuilder, G9TaskCard, G9Timeline → `components/projects.md`
93
97
 
94
98
  ## @g9tm/lynxcontrols-richtext
95
99
 
@@ -13,7 +13,7 @@ Props:
13
13
  - `changes?`: () => void
14
14
  - `enabled?`: () => void
15
15
  - `capabilities?`: object
16
- - `kind?`: 'label' | 'image' | 'button' | 'entry' | 'toggle' | 'picker' | 'chips' | 'tab' | 'tab-view' | 'list' | 'scroll' | 'item' | 'card' | 'map' | 'view'
16
+ - `kind?`: 'label' | 'chips' | 'image' | 'button' | 'entry' | 'toggle' | 'picker' | 'tab' | 'tab-view' | 'list' | 'scroll' | 'item' | 'card' | 'map' | 'view'
17
17
  - `secret?`: boolean = false
18
18
 
19
19
  Example: `<G9Anchor id="id" />`