fix(web): float account notifications over the session list
The settings.notice row takes no height and anchors its content above the launcher row at full width, so a notification no longer shortens the session list while status indicators still cannot narrow it.
This commit is contained in:
1 parent
2703c9dcc9
commit
4002caa7ea
16 files changed
+50
-32
No files matched your search
@@ -698,7 +698,10 @@ describe.skipIf(MODE === 'record')('web e2e: bonus notice', () => {
|
||||
expect(taggedBox!.y + taggedBox!.height).toBeLessThanOrEqual(accountBox!.y)
|
||||
expect(tagBox!.y).toBeGreaterThanOrEqual(accountBox!.y)
|
||||
expect(tagBox!.y + tagBox!.height).toBeLessThanOrEqual(accountBox!.y + accountBox!.height)
|
||||
observations.push('stack.update-tag card=260 left-inset=10 card-above-account-row=true tag-in-account-row=true')
|
||||
// The card floats over the session list: the list still reaches down to the card's bottom edge.
|
||||
const listBottom = await stackPage.locator('[class*="scrollRegion"]').first().evaluate(element => element.getBoundingClientRect().bottom)
|
||||
expect(listBottom).toBeGreaterThanOrEqual(taggedBox!.y + taggedBox!.height - 1)
|
||||
observations.push('stack.update-tag card=260 left-inset=10 card-above-account-row=true tag-in-account-row=true floats-over-list=true')
|
||||
await publishUpdate({ phase: 'idle' })
|
||||
await updateTag.waitFor({ state: 'detached' })
|
||||
for (const [delta, width, edge] of [[80, 280, 360], [-80, 260, 280]] as const) {
|
||||
|
||||
@@ -36,7 +36,7 @@ en.get locale=en_US query=
|
||||
web.notice=赠金已到账 / 已赠送您 4.00 元 DSH 体验赠金。 acks=1
|
||||
stack.hidden cards=3 acks=0
|
||||
stack.initial cards=3 acks=stack-first widths=260,252 inset=10 offset=-4 transition=0.25s ease-out
|
||||
stack.update-tag card=260 left-inset=10 card-above-account-row=true tag-in-account-row=true
|
||||
stack.update-tag card=260 left-inset=10 card-above-account-row=true tag-in-account-row=true floats-over-list=true
|
||||
stack.resized sidebar=360 card=280 left-inset=10
|
||||
stack.resized sidebar=280 card=260 left-inset=10
|
||||
stack.rail cards=3 visible=false dismissed=0
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
en: af856ba79fe31b8e
|
||||
zh: c9b0188689359236
|
||||
/deepseek-ai-dsh-client-ui-account-notifications/use-this-package:
|
||||
en: 75473f596a5e4e34
|
||||
zh: a16ff3691c128936
|
||||
en: 8f7ef06952a4670a
|
||||
zh: 8602c70d9d01f027
|
||||
/deepseek-ai-dsh-client-ui-account-notifications/model-experience:
|
||||
en: 5fed5504300020e6
|
||||
zh: efd8e7c32b699e7e
|
||||
|
||||
@@ -26,7 +26,7 @@ Startup with a stored account, sign-in, and each Settings entry start a new poll
|
||||
|
||||
Account settings owns the sole account stream and exposes its current state and lifecycle events through `accountUi` and `account-ui/change`. Login-progress updates retain cards and polling. Credential replacement, disconnection, access revocation, sign-out, and plugin disposal clear cards, stop polling, and discard late replies. Notification requests do not wait for profile or avatar data. Notification state is not stored in the browser.
|
||||
|
||||
Cards render in their own sidebar row above the account launcher row, below menus and dialogs, without taking focus. Status indicators beside the launcher do not narrow them. Title and body text taller than 40% of the viewport scrolls inside the card, so the account row stays visible. Their width follows the expanded sidebar up to 280px, leaving 10px on the left and at least 10px on the right. Collapsing the sidebar hides the cards; expanding it restores them without another display report. Closing a card promotes the next with a 250ms position and scale transition, disabled by reduced-motion preferences.
|
||||
Cards float over the sidebar list, anchored 4px above the account launcher row at the sidebar's full width, below menus and dialogs, without taking focus or space from the list. Status indicators beside the launcher do not narrow them. Title and body text taller than 40% of the viewport scrolls inside the card, so the account row stays visible. Their width follows the expanded sidebar up to 280px, leaving 10px on the left and at least 10px on the right. Collapsing the sidebar hides the cards; expanding it restores them without another display report. Closing a card promotes the next with a 250ms position and scale transition, disabled by reduced-motion preferences.
|
||||
|
||||
Notifications wait for Desktop and model-credential onboarding to finish. Only the foreground card is interactive and reports `displayed`, once per mount after a painted frame while it intersects the viewport and the sidebar and document are visible. The Settings overlay does not exclude that frame. A displayed foreground card remains until close or expiry even when a later list omits it; waiting cards follow server order.
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ Web 组合将本插件与[账号设置](../ui-settings-account/README.zh.md)一
|
||||
|
||||
账号设置拥有唯一的账号流,通过 `accountUi` 和 `account-ui/change` 提供当前状态及生命周期事件。登录进度更新沿用卡片和轮询。凭据替换、断连、权限撤销、退出登录和插件卸载会清空卡片、停止轮询并丢弃迟到响应。通知请求不等待资料或头像。通知状态不写入浏览器存储。
|
||||
|
||||
卡片在侧栏中账号入口行上方的独立一行渲染,位于菜单和对话框之下,不抢占焦点。入口旁的状态指示器不会挤压卡片。标题和正文高度超过视口 40% 时在卡片内滚动,账号行保持可见。宽度跟随展开的侧栏,最大为 280px,左侧留 10px、右侧至少留 10px。收起侧栏会隐藏卡片;展开后恢复卡片,不重复上报展示。关闭卡片后,下一张通过 250ms 的位置和缩放过渡补位;偏好减少动态效果时禁用过渡。
|
||||
卡片浮在侧栏会话列表之上,以侧栏满宽锚定在账号入口行上方 4px,位于菜单和对话框之下,不抢占焦点,也不占用列表空间。入口旁的状态指示器不会挤压卡片。标题和正文高度超过视口 40% 时在卡片内滚动,账号行保持可见。宽度跟随展开的侧栏,最大为 280px,左侧留 10px、右侧至少留 10px。收起侧栏会隐藏卡片;展开后恢复卡片,不重复上报展示。关闭卡片后,下一张通过 250ms 的位置和缩放过渡补位;偏好减少动态效果时禁用过渡。
|
||||
|
||||
通知等待 Desktop 和模型凭据引导完成。只有前排卡片可交互并上报 `displayed`:卡片与视口相交、侧栏和文档可见并完成一帧绘制后,同一次挂载只上报一次。设置蒙层不排除该帧。已展示的前排卡片保留至关闭或过期,即使后续列表不再返回它;待展示卡片遵循服务端顺序。
|
||||
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
en: 7600861d064dbc99
|
||||
zh: a52ba446016e3a21
|
||||
/deepseek-ai-dsh-client-ui-settings-general/understand-the-implementation:
|
||||
en: d2a8762a74daa575
|
||||
zh: ed91910b4f8183cd
|
||||
en: 2ba62c7be5b79052
|
||||
zh: 9220e867a0e88076
|
||||
/deepseek-ai-dsh-client-ui-settings-general/understand-the-implementation/ledger-projections:
|
||||
en: fd99444278ab8530
|
||||
zh: 2efc5831c7e19be1
|
||||
|
||||
@@ -68,7 +68,7 @@ Desktop also contributes an **Update channel** row to General when the preload e
|
||||
<a id="understand-the-implementation"></a>
|
||||
## Understand the implementation
|
||||
|
||||
The shell declares settings.launcher for an account-owned sidebar menu and retains the Settings button as its fallback. The launcher receives settingsOpen, whose false-to-true edge marks one Settings entry, so a registrant acts once per entry instead of on every re-render inside one open. Closing the dialog returns focus to the active launcher. In the expanded sidebar, the fallback uses the navigation rows' compact icon-label alignment and inset hover fill. Contributed launchers own their insets; the shell keeps its row full-width and its status indicator's trailing edge independent of account state. The collapsed rail retains its centered 36 × 36 px control. The launcher can pass a section ID to openSettings to open that section directly; an absent ID uses the default section. The shell also declares settings.notice and renders it in a full-width row above the launcher row, so status indicators beside the launcher do not narrow its content; the collapsed rail hides that row without unmounting it.
|
||||
The shell declares settings.launcher for an account-owned sidebar menu and retains the Settings button as its fallback. The launcher receives settingsOpen, whose false-to-true edge marks one Settings entry, so a registrant acts once per entry instead of on every re-render inside one open. Closing the dialog returns focus to the active launcher. In the expanded sidebar, the fallback uses the navigation rows' compact icon-label alignment and inset hover fill. Contributed launchers own their insets; the shell keeps its row full-width and its status indicator's trailing edge independent of account state. The collapsed rail retains its centered 36 × 36 px control. The launcher can pass a section ID to openSettings to open that section directly; an absent ID uses the default section. The shell also declares settings.notice and renders it in a zero-height, full-width row above the launcher row; its content floats over the sidebar list, so status indicators beside the launcher do not narrow its content; the collapsed rail hides that row without unmounting it.
|
||||
|
||||
<details>
|
||||
<summary>Implementation internals — click to expand</summary>
|
||||
|
||||
@@ -68,7 +68,7 @@ Web 与桌面端的通用设置底部显示当前发布版本,使用构建注
|
||||
<a id="understand-the-implementation"></a>
|
||||
## 理解实现
|
||||
|
||||
外壳声明 settings.launcher,供账号功能提供侧边栏菜单,并以设置按钮作为回退。入口接收 settingsOpen,其 false→true 边沿代表一次进入设置页,因此注册方在每次进入时执行一次,而不是在同一次打开中的每次重渲染执行。关闭对话框后,焦点返回当前入口。侧栏展开时,回退按钮采用导航行的紧凑图文对齐及内缩悬停底色。贡献入口自行拥有内缩;外壳保持行宽占满可用空间,状态指示器的尾侧边缘不随账号状态移动。折叠轨道保留居中的 36 × 36 px 控件。 入口可以向 openSettings 传入分区 ID,直接打开对应分区;未传 ID 时使用默认分区。外壳还声明 settings.notice,并在入口行上方的满宽行中渲染它,因此入口旁的状态指示器不会挤压其内容;折叠轨道隐藏该行但不卸载它。
|
||||
外壳声明 settings.launcher,供账号功能提供侧边栏菜单,并以设置按钮作为回退。入口接收 settingsOpen,其 false→true 边沿代表一次进入设置页,因此注册方在每次进入时执行一次,而不是在同一次打开中的每次重渲染执行。关闭对话框后,焦点返回当前入口。侧栏展开时,回退按钮采用导航行的紧凑图文对齐及内缩悬停底色。贡献入口自行拥有内缩;外壳保持行宽占满可用空间,状态指示器的尾侧边缘不随账号状态移动。折叠轨道保留居中的 36 × 36 px 控件。 入口可以向 openSettings 传入分区 ID,直接打开对应分区;未传 ID 时使用默认分区。外壳还声明 settings.notice,并在入口行上方零高度的满宽行中渲染它,其内容浮在侧栏列表之上,因此入口旁的状态指示器不会挤压其内容;折叠轨道隐藏该行但不卸载它。
|
||||
|
||||
<details>
|
||||
<summary>实现细节——点击展开</summary>
|
||||
|
||||
@@ -8,6 +8,20 @@
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
/* The notice row takes no height: its content floats above the sidebar list at
|
||||
the row's full width, so status indicators in the trigger row do not narrow it. */
|
||||
.noticeRow {
|
||||
position: relative;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.notice {
|
||||
position: absolute;
|
||||
inset-inline: 0;
|
||||
bottom: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.triggerRow.railRow {
|
||||
width: 36px;
|
||||
margin: 8px 0 10px;
|
||||
|
||||
@@ -228,7 +228,7 @@ export function SettingsRoot(props: SettingsRootComponentProps) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div hidden={!wide}>{renderSlot('settings.notice', { openSettings })}</div>
|
||||
<div className={css.noticeRow} hidden={!wide}><div className={css.notice}>{renderSlot('settings.notice', { openSettings })}</div></div>
|
||||
<div className={clsx(css.triggerRow, !wide && css.railRow)}>
|
||||
{renderSlot('settings.launcher', {
|
||||
wide, settingsOpen: open, openSettings,
|
||||
|
||||
@@ -563,7 +563,7 @@ it('passes current Settings key labels to the launcher and removes them when unb
|
||||
|
||||
it('renders the notice row before the launcher row and opens the requested section', () => {
|
||||
const { renderSlot } = mount({ rows: [{ id: 'general', order: 0, label: 'General' }, { id: 'account', order: 1, label: 'Account' }] })
|
||||
const notice = screen.getByText('Account notice')
|
||||
const notice = screen.getByText('Account notice').parentElement!
|
||||
expect(notice.nextElementSibling?.contains(screen.getByRole('button', { name: 'Settings' }))).toBe(true)
|
||||
const owner = renderSlot.mock.calls.find(call => call[0] === 'settings.notice')!
|
||||
act(() => { (owner[1] as { openSettings: (sectionId?: string) => void }).openSettings('account') })
|
||||
@@ -572,12 +572,12 @@ it('renders the notice row before the launcher row and opens the requested secti
|
||||
|
||||
it('hides the notice row in the collapsed rail and keeps the same node', () => {
|
||||
const { setWide } = mount()
|
||||
const notice = screen.getByText('Account notice')
|
||||
const notice = screen.getByText('Account notice').parentElement!
|
||||
expect(notice.hidden).toBe(false)
|
||||
setWide(false)
|
||||
expect(screen.getByText('Account notice')).toBe(notice)
|
||||
expect(screen.getByText('Account notice').parentElement).toBe(notice)
|
||||
expect(notice.hidden).toBe(true)
|
||||
setWide(true)
|
||||
expect(screen.getByText('Account notice')).toBe(notice)
|
||||
expect(screen.getByText('Account notice').parentElement).toBe(notice)
|
||||
expect(notice.hidden).toBe(false)
|
||||
})
|
||||
@@ -30,8 +30,8 @@
|
||||
en: 9767f17ca0f02ae3
|
||||
zh: 8e475d6d3d670702
|
||||
/deepseek-ai-dsh-client-ui-settings/understand-the-implementation:
|
||||
en: 7a9fc968f3dd3f3c
|
||||
zh: 7b01a38e40fbed24
|
||||
en: 6741f576de0585c2
|
||||
zh: 5b621d137e52b63e
|
||||
/deepseek-ai-dsh-client-ui-settings/understand-the-implementation/the-describe-mirror:
|
||||
en: 0cd270ddcac46776
|
||||
zh: 4e03bf1d153b3f04
|
||||
|
||||
@@ -55,7 +55,7 @@ A committed write folds its answer into the shared mirror. Refused writes refres
|
||||
<a id="understand-the-implementation"></a>
|
||||
## Understand the implementation
|
||||
|
||||
The optional `settings.launcher` contribution receives sidebar geometry, whether the open Settings panel covers the sidebar, the settings navigation callbacks, and the effective Settings key labels and accessible combination. The shell omits shortcut presentation for an unbound command and retains its plain Settings trigger when no launcher is registered. The launcher can pass a section ID to openSettings to open that section directly; an absent ID uses the default section. The optional `settings.notice` contribution receives openSettings and renders in a full-width row above the launcher row; the shell hides that row in the collapsed rail without unmounting it.
|
||||
The optional `settings.launcher` contribution receives sidebar geometry, whether the open Settings panel covers the sidebar, the settings navigation callbacks, and the effective Settings key labels and accessible combination. The shell omits shortcut presentation for an unbound command and retains its plain Settings trigger when no launcher is registered. The launcher can pass a section ID to openSettings to open that section directly; an absent ID uses the default section. The optional `settings.notice` contribution receives openSettings and renders in a zero-height, full-width row above the launcher row, floating over the sidebar list; the shell hides that row in the collapsed rail without unmounting it.
|
||||
|
||||
<details>
|
||||
<summary>Implementation internals — click to expand</summary>
|
||||
|
||||
@@ -55,7 +55,7 @@ kind: "package-reference"
|
||||
<a id="understand-the-implementation"></a>
|
||||
## 理解实现
|
||||
|
||||
可选的 `settings.launcher` 贡献接收侧栏布局、设置面板是否覆盖侧栏、设置导航回调,以及有效的设置键位标签和无障碍组合。命令未绑定时,外壳不传快捷键展示信息;未注册入口时,外壳保留普通设置按钮。 入口可以向 openSettings 传入分区 ID,直接打开对应分区;未传 ID 时使用默认分区。可选的 `settings.notice` 贡献接收 openSettings,渲染在入口行上方的满宽行中;折叠轨道中外壳隐藏该行但不卸载它。
|
||||
可选的 `settings.launcher` 贡献接收侧栏布局、设置面板是否覆盖侧栏、设置导航回调,以及有效的设置键位标签和无障碍组合。命令未绑定时,外壳不传快捷键展示信息;未注册入口时,外壳保留普通设置按钮。 入口可以向 openSettings 传入分区 ID,直接打开对应分区;未传 ID 时使用默认分区。可选的 `settings.notice` 贡献接收 openSettings,渲染在入口行上方零高度的满宽行中,浮在侧栏列表之上;折叠轨道中外壳隐藏该行但不卸载它。
|
||||
|
||||
<details>
|
||||
<summary>实现细节——点击展开</summary>
|
||||
|
||||
@@ -31,8 +31,9 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
|
||||
/** Optional sidebar account launcher; opens the shell-owned settings panel. */
|
||||
'settings.launcher': { kind: 'single'; scope: 'root'; owner: SettingsLauncherOwnerProps }
|
||||
/**
|
||||
* Optional row above the launcher row, at the launcher row's full width;
|
||||
* the shell hides it in the rail without unmounting it.
|
||||
* Optional content anchored above the launcher row at its full width. The
|
||||
* row takes no height, so the content floats over the sidebar list; the
|
||||
* shell hides it in the rail without unmounting it.
|
||||
*/
|
||||
'settings.notice': { kind: 'single'; scope: 'root'; owner: SettingsNoticeOwnerProps }
|
||||
|
||||
|
||||
@@ -3952,7 +3952,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
],
|
||||
replaceRisk: 'none',
|
||||
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'settings.action\', () => ctx.slots.register(\n { name: \'settings.action\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:59',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:60',
|
||||
},
|
||||
{
|
||||
key: 'settings.close',
|
||||
@@ -3986,7 +3986,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
],
|
||||
replaceRisk: 'shadows-shipped-ui',
|
||||
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'settings.close\', () => ctx.slots.register(\n { name: \'settings.close\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:65',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:66',
|
||||
},
|
||||
{
|
||||
key: 'settings.general.item',
|
||||
@@ -4051,7 +4051,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
],
|
||||
replaceRisk: 'none',
|
||||
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'settings.general.item\', () => ctx.slots.register(\n { name: \'settings.general.item\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:114',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:115',
|
||||
},
|
||||
{
|
||||
key: 'settings.header',
|
||||
@@ -4085,7 +4085,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
],
|
||||
replaceRisk: 'shadows-shipped-ui',
|
||||
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'settings.header\', () => ctx.slots.register(\n { name: \'settings.header\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:53',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:54',
|
||||
},
|
||||
{
|
||||
key: 'settings.launcher',
|
||||
@@ -4283,8 +4283,8 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
key: 'settings.notice',
|
||||
kind: 'single',
|
||||
scope: 'root',
|
||||
summary: 'Optional row above the launcher row, at the launcher row\'s full width; the shell hides it in the rail without unmounting it.',
|
||||
doc: 'Optional row above the launcher row, at the launcher row\'s full width;\nthe shell hides it in the rail without unmounting it.',
|
||||
summary: 'Optional content anchored above the launcher row at its full width.',
|
||||
doc: 'Optional content anchored above the launcher row at its full width. The\nrow takes no height, so the content floats over the sidebar list; the\nshell hides it in the rail without unmounting it.',
|
||||
registerOptions: [],
|
||||
ownerProps: [
|
||||
'/** Settings navigation for the row above the launcher row. */\nexport interface SettingsNoticeOwnerProps {\n /** @param sectionId - section to open; absent uses the shell\'s default section. */\n openSettings: (sectionId?: string) => void\n}',
|
||||
@@ -4311,7 +4311,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
],
|
||||
replaceRisk: 'shadows-shipped-ui',
|
||||
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'settings.notice\', () => ctx.slots.register(\n { name: \'settings.notice\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:37',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:38',
|
||||
},
|
||||
{
|
||||
key: 'settings.onboarding',
|
||||
@@ -4365,7 +4365,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
],
|
||||
replaceRisk: 'none',
|
||||
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'settings.onboarding\', () => ctx.slots.register(\n { name: \'settings.onboarding\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:99',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:100',
|
||||
},
|
||||
{
|
||||
key: 'settings.section',
|
||||
@@ -4422,7 +4422,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
],
|
||||
replaceRisk: 'none',
|
||||
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'settings.section\', () => ctx.slots.register(\n { name: \'settings.section\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:80',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:81',
|
||||
},
|
||||
{
|
||||
key: 'settings.section.icon',
|
||||
@@ -4473,7 +4473,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
occupants: [],
|
||||
replaceRisk: 'none',
|
||||
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'settings.section.icon\', () => ctx.slots.register(\n { name: \'settings.section.icon\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:88',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:89',
|
||||
},
|
||||
{
|
||||
key: 'settings.trigger',
|
||||
@@ -4507,7 +4507,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
],
|
||||
replaceRisk: 'shadows-shipped-ui',
|
||||
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'settings.trigger\', () => ctx.slots.register(\n { name: \'settings.trigger\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:47',
|
||||
source: 'packages/client/ui-settings/src/client/contract/slots.ts:48',
|
||||
},
|
||||
{
|
||||
key: 'shell.bottom',
|
||||
|
||||
Reference in new issue
Block a user