@dxos/shell 0.7.5-main.ff8607b → 0.7.5-staging.2ff1350
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/dist/bundle/{shell.mjs → shell.js} +8603 -8542
- package/dist/bundle/shell.js.map +1 -0
- package/dist/bundle/shell.umd.cjs +1045 -0
- package/dist/bundle/shell.umd.cjs.map +1 -0
- package/dist/bundle/style.css +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +36 -30
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react.cjs +25 -19
- package/dist/lib/node/react.cjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react.mjs +36 -30
- package/dist/lib/node-esm/react.mjs.map +3 -3
- package/dist/types/src/components/AgentConfig.d.ts +1 -2
- package/dist/types/src/components/AgentConfig.d.ts.map +1 -1
- package/dist/types/src/components/AgentConfig.js +17 -43
- package/dist/types/src/components/AgentConfig.js.map +1 -1
- package/dist/types/src/components/AuthCode.d.ts +2 -2
- package/dist/types/src/components/AuthCode.d.ts.map +1 -1
- package/dist/types/src/components/AuthCode.js +5 -39
- package/dist/types/src/components/AuthCode.js.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.d.ts +2 -2
- package/dist/types/src/components/CompoundButton/CompoundButton.d.ts.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.js +2 -13
- package/dist/types/src/components/CompoundButton/CompoundButton.js.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts +7 -8
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.js +9 -14
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.js.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceList.d.ts +1 -2
- package/dist/types/src/components/DeviceList/DeviceList.d.ts.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceList.js +6 -16
- package/dist/types/src/components/DeviceList/DeviceList.js.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceListItem.js +6 -58
- package/dist/types/src/components/DeviceList/DeviceListItem.js.map +1 -1
- package/dist/types/src/components/IdentityList/IdentityListItem.js +5 -41
- package/dist/types/src/components/IdentityList/IdentityListItem.js.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts +2 -3
- package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.js +8 -41
- package/dist/types/src/components/IdentityList/SpaceMemberList.js.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts +2 -3
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js +4 -7
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.d.ts +2 -2
- package/dist/types/src/components/InvitationList/InvitationList.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.js +5 -11
- package/dist/types/src/components/InvitationList/InvitationList.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts +2 -3
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.js +4 -7
- package/dist/types/src/components/InvitationList/InvitationList.stories.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts +1 -2
- package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListContainer.js +3 -35
- package/dist/types/src/components/InvitationList/InvitationListContainer.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListItem.d.ts +3 -3
- package/dist/types/src/components/InvitationList/InvitationListItem.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListItem.js +5 -67
- package/dist/types/src/components/InvitationList/InvitationListItem.js.map +1 -1
- package/dist/types/src/components/Panel/Action.js +8 -58
- package/dist/types/src/components/Panel/Action.js.map +1 -1
- package/dist/types/src/components/Panel/Actions.js +5 -37
- package/dist/types/src/components/Panel/Actions.js.map +1 -1
- package/dist/types/src/components/Panel/CloseButton.d.ts +1 -2
- package/dist/types/src/components/Panel/CloseButton.d.ts.map +1 -1
- package/dist/types/src/components/Panel/CloseButton.js +4 -9
- package/dist/types/src/components/Panel/CloseButton.js.map +1 -1
- package/dist/types/src/components/Panel/Emoji.d.ts +3 -3
- package/dist/types/src/components/Panel/Emoji.d.ts.map +1 -1
- package/dist/types/src/components/Panel/Emoji.js +3 -11
- package/dist/types/src/components/Panel/Emoji.js.map +1 -1
- package/dist/types/src/components/Panel/Heading.js +5 -41
- package/dist/types/src/components/Panel/Heading.js.map +1 -1
- package/dist/types/src/components/Panel/Input.d.ts +2 -2
- package/dist/types/src/components/Panel/Input.d.ts.map +1 -1
- package/dist/types/src/components/Panel/Input.js +2 -11
- package/dist/types/src/components/Panel/Input.js.map +1 -1
- package/dist/types/src/components/Panel/Label.d.ts +2 -2
- package/dist/types/src/components/Panel/Label.d.ts.map +1 -1
- package/dist/types/src/components/Panel/Label.js +2 -8
- package/dist/types/src/components/Panel/Label.js.map +1 -1
- package/dist/types/src/components/Panel/Panel.stories.d.ts +3 -4
- package/dist/types/src/components/Panel/Panel.stories.d.ts.map +1 -1
- package/dist/types/src/components/Panel/Panel.stories.js +5 -20
- package/dist/types/src/components/Panel/Panel.stories.js.map +1 -1
- package/dist/types/src/components/Panel/StepHeading.js +5 -37
- package/dist/types/src/components/Panel/StepHeading.js.map +1 -1
- package/dist/types/src/components/SpaceListItem.js +5 -41
- package/dist/types/src/components/SpaceListItem.js.map +1 -1
- package/dist/types/src/components/StorybookDialog.d.ts +2 -2
- package/dist/types/src/components/StorybookDialog.d.ts.map +1 -1
- package/dist/types/src/components/StorybookDialog.js +2 -11
- package/dist/types/src/components/StorybookDialog.js.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.d.ts +2 -2
- package/dist/types/src/components/Viewport/Viewport.js +7 -40
- package/dist/types/src/components/Viewport/Viewport.js.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.stories.d.ts +1 -2
- package/dist/types/src/components/Viewport/Viewport.stories.d.ts.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.stories.js +5 -27
- package/dist/types/src/components/Viewport/Viewport.stories.js.map +1 -1
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts +1 -2
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts.map +1 -1
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.js +3 -14
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.js.map +1 -1
- package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts +1 -2
- package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/composites/JoinDialog/JoinDialog.js +4 -14
- package/dist/types/src/composites/JoinDialog/JoinDialog.js.map +1 -1
- package/dist/types/src/composites/Shell/Shell.d.ts +1 -2
- package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/Shell.js +9 -41
- package/dist/types/src/composites/Shell/Shell.js.map +1 -1
- package/dist/types/src/composites/Shell/ShellContext.d.ts +2 -2
- package/dist/types/src/composites/Shell/ShellContext.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/ShellContext.js +5 -40
- package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
- package/dist/types/src/composites/Shell/run-shell.js +7 -52
- package/dist/types/src/composites/Shell/run-shell.js.map +1 -1
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts +1 -2
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts.map +1 -1
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.js +3 -14
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.js.map +1 -1
- package/dist/types/src/composites/StatusDialog/StatusDialog.d.ts +1 -2
- package/dist/types/src/composites/StatusDialog/StatusDialog.d.ts.map +1 -1
- package/dist/types/src/composites/StatusDialog/StatusDialog.js +2 -12
- package/dist/types/src/composites/StatusDialog/StatusDialog.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts +2 -3
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +18 -94
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts +10 -11
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js +8 -10
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts +2 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts +2 -3
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js +3 -11
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts +1 -2
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js +13 -55
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinHeading.js +6 -40
- package/dist/types/src/panels/JoinPanel/JoinHeading.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts +2 -3
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.js +6 -63
- package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +14 -15
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js +17 -21
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts +1 -2
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js +5 -13
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts +1 -2
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js +6 -46
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts +2 -3
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js +7 -43
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.d.ts +2 -2
- package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js +6 -41
- package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts +1 -2
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js +16 -63
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts +1 -2
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js +12 -49
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts +1 -2
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js +8 -27
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js.map +1 -1
- package/dist/types/src/panels/Panels.stories.d.ts +3 -3
- package/dist/types/src/panels/Panels.stories.d.ts.map +1 -1
- package/dist/types/src/panels/Panels.stories.js +6 -14
- package/dist/types/src/panels/Panels.stories.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts +2 -3
- package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.js +8 -50
- package/dist/types/src/panels/SpacePanel/SpacePanel.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts +17 -18
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js +37 -43
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts +3 -3
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +6 -49
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
- package/dist/types/src/panels/StatusPanel/StatusPanel.d.ts +1 -2
- package/dist/types/src/panels/StatusPanel/StatusPanel.d.ts.map +1 -1
- package/dist/types/src/panels/StatusPanel/StatusPanel.js +2 -10
- package/dist/types/src/panels/StatusPanel/StatusPanel.js.map +1 -1
- package/dist/types/src/steps/ConfirmReset.d.ts +2 -3
- package/dist/types/src/steps/ConfirmReset.d.ts.map +1 -1
- package/dist/types/src/steps/ConfirmReset.js +12 -54
- package/dist/types/src/steps/ConfirmReset.js.map +1 -1
- package/dist/types/src/steps/InvitationManager.d.ts +1 -2
- package/dist/types/src/steps/InvitationManager.d.ts.map +1 -1
- package/dist/types/src/steps/InvitationManager.js +6 -56
- package/dist/types/src/steps/InvitationManager.js.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts +1 -2
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.js +15 -75
- package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
- package/dist/types/src/testing/fixtures/identities.d.ts.map +1 -1
- package/dist/types/src/testing/fixtures/identities.js +2 -0
- package/dist/types/src/testing/fixtures/identities.js.map +1 -1
- package/dist/types/src/translations/locales/en-US.d.ts +4 -1
- package/dist/types/src/translations/locales/en-US.d.ts.map +1 -1
- package/dist/types/src/translations/locales/en-US.js +5 -1
- package/dist/types/src/translations/locales/en-US.js.map +1 -1
- package/package.json +28 -27
- package/src/panels/IdentityPanel/IdentityPanel.stories.tsx +3 -0
- package/src/panels/IdentityPanel/IdentityPanel.tsx +31 -29
- package/src/panels/IdentityPanel/IdentityPanelProps.ts +8 -1
- package/src/panels/IdentityPanel/steps/ProfileForm.tsx +2 -7
- package/src/panels/JoinPanel/steps/IdentityInput.tsx +1 -1
- package/src/panels/SpacePanel/SpacePanel.stories.tsx +6 -1
- package/src/testing/fixtures/identities.ts +2 -0
- package/src/translations/locales/en-US.ts +7 -1
- package/dist/bundle/shell.mjs.map +0 -1
- package/dist/bundle/shell.umd.js +0 -1045
- package/dist/bundle/shell.umd.js.map +0 -1
- package/dist/types/src/playwright/playwright.config.d.ts +0 -3
- package/dist/types/src/playwright/playwright.config.d.ts.map +0 -1
- package/dist/types/src/playwright/playwright.config.js +0 -18
- package/dist/types/src/playwright/playwright.config.js.map +0 -1
- /package/src/playwright/{playwright.config.ts → playwright.config.cts} +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type AgentFormProps } from './DeviceList';
|
|
3
|
-
export declare const AgentConfig: ({ agentStatus, validationMessage, onAgentDestroy, onAgentCreate, onAgentRefresh, }: Omit<AgentFormProps, "agentHostingEnabled">) =>
|
|
2
|
+
export declare const AgentConfig: ({ agentStatus, validationMessage, onAgentDestroy, onAgentCreate, onAgentRefresh, }: Omit<AgentFormProps, "agentHostingEnabled">) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=AgentConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/AgentConfig.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgentConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/AgentConfig.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,eAAO,MAAM,WAAW,uFAMrB,IAAI,CAAC,cAAc,EAAE,qBAAqB,CAAC,4CA4G7C,CAAC"}
|
|
@@ -1,55 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentConfig = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
5
|
//
|
|
3
6
|
// Copyright 2024 DXOS.org
|
|
4
7
|
//
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.AgentConfig = void 0;
|
|
10
8
|
const react_1 = require("@phosphor-icons/react");
|
|
11
|
-
const react_2 = __importDefault(require("react"));
|
|
12
9
|
const react_ui_1 = require("@dxos/react-ui");
|
|
13
10
|
const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
14
11
|
const AgentConfig = ({ agentStatus, validationMessage, onAgentDestroy, onAgentCreate, onAgentRefresh, }) => {
|
|
15
12
|
const { t } = (0, react_ui_1.useTranslation)('os');
|
|
16
|
-
return (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
? 'creating agent label'
|
|
31
|
-
: agentStatus === 'destroying'
|
|
32
|
-
? 'destroying agent label'
|
|
33
|
-
: 'getting agent label'))),
|
|
34
|
-
agentStatus === 'created' && (react_2.default.createElement(react_ui_1.Tooltip.Root, null,
|
|
35
|
-
react_2.default.createElement(react_ui_1.Tooltip.Trigger, { asChild: true },
|
|
36
|
-
react_2.default.createElement(react_ui_1.Button, { variant: 'ghost', classNames: 'pli-0 is-[--rail-action] bs-[--rail-action]', "data-testid": 'agent.destroy', onClick: onAgentDestroy },
|
|
37
|
-
react_2.default.createElement("span", { className: 'sr-only' }, t('destroy agent label')),
|
|
38
|
-
react_2.default.createElement(react_1.Power, { className: (0, react_ui_theme_1.getSize)(5) }))),
|
|
39
|
-
react_2.default.createElement(react_ui_1.Tooltip.Portal, null,
|
|
40
|
-
react_2.default.createElement(react_ui_1.Tooltip.Content, { side: 'bottom' }, t('destroy agent label')))))),
|
|
41
|
-
agentStatus === 'created' && (react_2.default.createElement("p", { id: 'devices-panel.create-agent.description', className: (0, react_ui_theme_1.mx)(react_ui_theme_1.descriptionText, 'mlb-2') }, t('agent requested description'))))) : (react_2.default.createElement(react_2.default.Fragment, null,
|
|
42
|
-
react_2.default.createElement(react_ui_1.Button, { variant: 'ghost', classNames: 'mlb-2 is-full justify-start gap-2 pis-0 pie-3', "data-testid": agentStatus === 'creatable' ? 'devices-panel.create-agent' : 'devices-panel.agent-error', onClick: agentStatus === 'creatable' ? onAgentCreate : onAgentRefresh, "aria-describedby": 'devices-panel.create-agent.description' },
|
|
43
|
-
react_2.default.createElement("div", { role: 'img', className: (0, react_ui_theme_1.mx)((0, react_ui_theme_1.getSize)(8), 'm-1 rounded-sm bg-input grid place-items-center') }, agentStatus === 'creatable' ? (react_2.default.createElement(react_1.Plus, { weight: 'light', className: (0, react_ui_theme_1.getSize)(6) })) : (react_2.default.createElement(react_1.ArrowsClockwise, { weight: 'light', className: (0, react_ui_theme_1.getSize)(6) }))),
|
|
44
|
-
react_2.default.createElement("span", { className: 'grow font-medium text-start' }, t(agentStatus === 'creatable' ? 'create agent label' : ''))),
|
|
45
|
-
agentStatus === 'creatable' && (react_2.default.createElement("div", { role: 'none', className: 'space-y-2', id: 'devices-panel.create-agent.description' },
|
|
46
|
-
react_2.default.createElement("p", { className: react_ui_theme_1.descriptionText },
|
|
47
|
-
react_2.default.createElement(react_ui_1.Trans, { t,
|
|
48
|
-
i18nKey: 'create agent clickwrap',
|
|
49
|
-
components: {
|
|
50
|
-
tosLink: react_2.default.createElement(react_ui_1.Link, { target: '_blank', rel: 'noreferrer' }),
|
|
51
|
-
} })),
|
|
52
|
-
react_2.default.createElement("p", { className: react_ui_theme_1.descriptionText }, t('create agent description'))))))));
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", { role: 'none', className: 'p-1', children: [(0, jsx_runtime_1.jsx)("h2", { className: (0, react_ui_theme_1.mx)(react_ui_theme_1.descriptionText, 'text-center mbs-2'), children: t('agent heading') }), validationMessage && ((0, jsx_runtime_1.jsx)("p", { role: 'alert', className: (0, react_ui_theme_1.mx)((0, react_ui_theme_1.valenceColorText)('error'), 'mlb-2'), children: validationMessage })), agentStatus === 'created' ||
|
|
14
|
+
agentStatus === 'creating' ||
|
|
15
|
+
agentStatus === 'getting' ||
|
|
16
|
+
agentStatus === 'destroying' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { role: 'group', className: 'mlb-2 flex gap-2 items-center', "aria-describedby": 'devices-panel.create-agent.description', children: [(0, jsx_runtime_1.jsxs)(react_ui_1.Avatar.Root, { status: agentStatus === 'created' ? 'warning' : 'inactive', variant: 'square', children: [(0, jsx_runtime_1.jsx)(react_ui_1.Avatar.Frame, { classNames: 'place-self-center', children: (0, jsx_runtime_1.jsx)(react_1.Database, { weight: 'duotone', width: 24, height: 24, x: 8, y: 8, ...(agentStatus !== 'created' && { className: 'opacity-50' }) }) }), (0, jsx_runtime_1.jsx)(react_ui_1.Avatar.Label, { classNames: 'flex-1 text-sm truncate', children: t(agentStatus === 'created'
|
|
17
|
+
? 'agent requested label'
|
|
18
|
+
: agentStatus === 'creating'
|
|
19
|
+
? 'creating agent label'
|
|
20
|
+
: agentStatus === 'destroying'
|
|
21
|
+
? 'destroying agent label'
|
|
22
|
+
: 'getting agent label') })] }), agentStatus === 'created' && ((0, jsx_runtime_1.jsxs)(react_ui_1.Tooltip.Root, { children: [(0, jsx_runtime_1.jsx)(react_ui_1.Tooltip.Trigger, { asChild: true, children: (0, jsx_runtime_1.jsxs)(react_ui_1.Button, { variant: 'ghost', classNames: 'pli-0 is-[--rail-action] bs-[--rail-action]', "data-testid": 'agent.destroy', onClick: onAgentDestroy, children: [(0, jsx_runtime_1.jsx)("span", { className: 'sr-only', children: t('destroy agent label') }), (0, jsx_runtime_1.jsx)(react_1.Power, { className: (0, react_ui_theme_1.getSize)(5) })] }) }), (0, jsx_runtime_1.jsx)(react_ui_1.Tooltip.Portal, { children: (0, jsx_runtime_1.jsx)(react_ui_1.Tooltip.Content, { side: 'bottom', children: t('destroy agent label') }) })] }))] }), agentStatus === 'created' && ((0, jsx_runtime_1.jsx)("p", { id: 'devices-panel.create-agent.description', className: (0, react_ui_theme_1.mx)(react_ui_theme_1.descriptionText, 'mlb-2'), children: t('agent requested description') }))] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(react_ui_1.Button, { variant: 'ghost', classNames: 'mlb-2 is-full justify-start gap-2 pis-0 pie-3', "data-testid": agentStatus === 'creatable' ? 'devices-panel.create-agent' : 'devices-panel.agent-error', onClick: agentStatus === 'creatable' ? onAgentCreate : onAgentRefresh, "aria-describedby": 'devices-panel.create-agent.description', children: [(0, jsx_runtime_1.jsx)("div", { role: 'img', className: (0, react_ui_theme_1.mx)((0, react_ui_theme_1.getSize)(8), 'm-1 rounded-sm bg-input grid place-items-center'), children: agentStatus === 'creatable' ? ((0, jsx_runtime_1.jsx)(react_1.Plus, { weight: 'light', className: (0, react_ui_theme_1.getSize)(6) })) : ((0, jsx_runtime_1.jsx)(react_1.ArrowsClockwise, { weight: 'light', className: (0, react_ui_theme_1.getSize)(6) })) }), (0, jsx_runtime_1.jsx)("span", { className: 'grow font-medium text-start', children: t(agentStatus === 'creatable' ? 'create agent label' : '') })] }), agentStatus === 'creatable' && ((0, jsx_runtime_1.jsxs)("div", { role: 'none', className: 'space-y-2', id: 'devices-panel.create-agent.description', children: [(0, jsx_runtime_1.jsx)("p", { className: react_ui_theme_1.descriptionText, children: (0, jsx_runtime_1.jsx)(react_ui_1.Trans, { t,
|
|
23
|
+
i18nKey: 'create agent clickwrap',
|
|
24
|
+
components: {
|
|
25
|
+
tosLink: (0, jsx_runtime_1.jsx)(react_ui_1.Link, { target: '_blank', rel: 'noreferrer' }),
|
|
26
|
+
} }) }), (0, jsx_runtime_1.jsx)("p", { className: react_ui_theme_1.descriptionText, children: t('create agent description') })] }))] }))] }));
|
|
53
27
|
};
|
|
54
28
|
exports.AgentConfig = AgentConfig;
|
|
55
29
|
//# sourceMappingURL=AgentConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentConfig.js","sourceRoot":"","sources":["../../../../src/components/AgentConfig.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgentConfig.js","sourceRoot":"","sources":["../../../../src/components/AgentConfig.tsx"],"names":[],"mappings":";;;;AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,iDAA+E;AAG/E,6CAAsF;AACtF,yDAAsF;AAI/E,MAAM,WAAW,GAAG,CAAC,EAC1B,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,cAAc,GAC8B,EAAE,EAAE;IAChD,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IACnC,OAAO,CACL,iCAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,KAAK,aAC9B,+BAAI,SAAS,EAAE,IAAA,mBAAE,EAAC,gCAAe,EAAE,mBAAmB,CAAC,YAAG,CAAC,CAAC,eAAe,CAAC,GAAM,EACjF,iBAAiB,IAAI,CACpB,8BAAG,IAAI,EAAC,OAAO,EAAC,SAAS,EAAE,IAAA,mBAAE,EAAC,IAAA,iCAAgB,EAAC,OAAO,CAAC,EAAE,OAAO,CAAC,YAC9D,iBAAiB,GAChB,CACL,EACA,WAAW,KAAK,SAAS;gBAC1B,WAAW,KAAK,UAAU;gBAC1B,WAAW,KAAK,SAAS;gBACzB,WAAW,KAAK,YAAY,CAAC,CAAC,CAAC,CAC7B,6DACE,iCACE,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,+BAA+B,sBACxB,wCAAwC,aAEzD,wBAAC,iBAAM,CAAC,IAAI,IAAC,MAAM,EAAE,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,EAAE,OAAO,EAAC,QAAQ,aACvF,uBAAC,iBAAM,CAAC,KAAK,IAAC,UAAU,EAAC,mBAAmB,YAC1C,uBAAC,gBAAQ,IACP,MAAM,EAAC,SAAS,EAChB,KAAK,EAAE,E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@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ComponentPropsWithoutRef, type PropsWithChildren } from 'react';
|
|
2
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
3
|
export type AuthCodeProps = ThemedClassName<ComponentPropsWithoutRef<'span'>> & {
|
|
4
4
|
code?: string;
|
|
5
5
|
large?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export declare const AuthCode: (props: PropsWithChildren<AuthCodeProps>) =>
|
|
7
|
+
export declare const AuthCode: (props: PropsWithChildren<AuthCodeProps>) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
//# sourceMappingURL=AuthCode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthCode.d.ts","sourceRoot":"","sources":["../../../../src/components/AuthCode.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"AuthCode.d.ts","sourceRoot":"","sources":["../../../../src/components/AuthCode.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,KAAK,wBAAwB,EAAE,KAAK,iBAAiB,EAAU,MAAM,OAAO,CAAC;AAE7F,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC,GAAG;IAC9E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,iBAAiB,CAAC,aAAa,CAAC,4CA0B/D,CAAC"}
|
|
@@ -1,44 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthCode = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
5
|
//
|
|
3
6
|
// Copyright 2023 DXOS.org
|
|
4
7
|
//
|
|
5
8
|
//
|
|
6
|
-
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(o, k2, desc);
|
|
13
|
-
}) : (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
o[k2] = m[k];
|
|
16
|
-
}));
|
|
17
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
-
}) : function(o, v) {
|
|
20
|
-
o["default"] = v;
|
|
21
|
-
});
|
|
22
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
-
var ownKeys = function(o) {
|
|
24
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
-
var ar = [];
|
|
26
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
-
return ar;
|
|
28
|
-
};
|
|
29
|
-
return ownKeys(o);
|
|
30
|
-
};
|
|
31
|
-
return function (mod) {
|
|
32
|
-
if (mod && mod.__esModule) return mod;
|
|
33
|
-
var result = {};
|
|
34
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
-
__setModuleDefault(result, mod);
|
|
36
|
-
return result;
|
|
37
|
-
};
|
|
38
|
-
})();
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.AuthCode = void 0;
|
|
41
|
-
const react_1 = __importStar(require("react"));
|
|
9
|
+
const react_1 = require("react");
|
|
42
10
|
const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
43
11
|
const AuthCode = (props) => {
|
|
44
12
|
var _a;
|
|
@@ -57,9 +25,7 @@ const AuthCode = (props) => {
|
|
|
57
25
|
}
|
|
58
26
|
void navigator.clipboard.writeText(code !== null && code !== void 0 ? code : '');
|
|
59
27
|
};
|
|
60
|
-
return (
|
|
61
|
-
react_1.default.createElement("span", { className: 'mie-[0.4em]' }, left),
|
|
62
|
-
react_1.default.createElement("span", null, right)));
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)("span", { className: (0, react_ui_theme_1.mx)(large ? 'text-6xl' : 'text-2xl', 'font-mono pli-2.5 rounded cursor-pointer', classNames), onClick: handleClick, ref: codeRef, children: [(0, jsx_runtime_1.jsx)("span", { className: 'mie-[0.4em]', children: left }), (0, jsx_runtime_1.jsx)("span", { children: right })] }));
|
|
63
29
|
};
|
|
64
30
|
exports.AuthCode = AuthCode;
|
|
65
31
|
//# sourceMappingURL=AuthCode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthCode.js","sourceRoot":"","sources":["../../../../src/components/AuthCode.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthCode.js","sourceRoot":"","sources":["../../../../src/components/AuthCode.tsx"],"names":[],"mappings":";;;;AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AACF,EAAE;AAEF,iCAA6F;AAG7F,yDAA0C;AAOnC,MAAM,QAAQ,GAAG,CAAC,KAAuC,EAAE,EAAE;;IAClE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC1C,MAAM,CAAC,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,mCAAI,CAAC,CAAC;IAC5B,MAAM,IAAI,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,MAAM,KAAK,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,MAAM,OAAO,GAAG,IAAA,cAAM,EAAyB,IAAI,CAAC,CAAC;IACrD,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC;YACxC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,eAAe,EAAE,CAAC;YAC7B,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;YACrC,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAC1C,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC;QACD,KAAK,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IACjD,CAAC,CAAC;IACF,OAAO,CACL,kCACE,SAAS,EAAE,IAAA,mBAAE,EAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EAAE,0CAA0C,EAAE,UAAU,CAAC,EACtG,OAAO,EAAE,WAAW,EACpB,GAAG,EAAE,OAAO,aAEZ,iCAAM,SAAS,EAAC,aAAa,YAAE,IAAI,GAAQ,EAC3C,2CAAO,KAAK,GAAQ,IACf,CACR,CAAC;AACJ,CAAC,CAAC;AA1BW,QAAA,QAAQ,YA0BnB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
2
|
import { type ButtonProps } from '@dxos/react-ui';
|
|
3
3
|
export interface CompoundButtonSlots {
|
|
4
4
|
root: ComponentPropsWithoutRef<'button'>;
|
|
@@ -13,5 +13,5 @@ export interface CompoundButtonProps extends ButtonProps {
|
|
|
13
13
|
after?: ReactNode;
|
|
14
14
|
slots?: Partial<CompoundButtonSlots>;
|
|
15
15
|
}
|
|
16
|
-
export declare const CompoundButton: ({ children, description, before, after, variant, elevation: propsElevation, slots, ...buttonProps }: Omit<CompoundButtonProps, "density">) =>
|
|
16
|
+
export declare const CompoundButton: ({ children, description, before, after, variant, elevation: propsElevation, slots, ...buttonProps }: Omit<CompoundButtonProps, "density">) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
//# sourceMappingURL=CompoundButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompoundButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/CompoundButton/CompoundButton.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"CompoundButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/CompoundButton/CompoundButton.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,wBAAwB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,EAA0B,KAAK,WAAW,EAAuB,MAAM,gBAAgB,CAAC;AAG/F,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,EAAE,wBAAwB,CAAC,KAAK,CAAC,CAAC;IACxC,KAAK,EAAE,wBAAwB,CAAC,GAAG,CAAC,CAAC;IACrC,WAAW,EAAE,wBAAwB,CAAC,GAAG,CAAC,CAAC;CAC5C;AAED,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACtC;AAED,eAAO,MAAM,cAAc,wGASxB,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,4CAuDtC,CAAC"}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//
|
|
3
|
-
// Copyright 2022 DXOS.org
|
|
4
|
-
//
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
3
|
exports.CompoundButton = void 0;
|
|
10
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
5
|
const react_ui_1 = require("@dxos/react-ui");
|
|
12
6
|
const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
13
7
|
const CompoundButton = ({ children, description, before, after, variant = 'default', elevation: propsElevation, slots = {}, ...buttonProps }) => {
|
|
@@ -18,12 +12,7 @@ const CompoundButton = ({ children, description, before, after, variant = 'defau
|
|
|
18
12
|
const elevation = (0, react_ui_1.useElevationContext)(propsElevation);
|
|
19
13
|
const styleProps = { ...buttonProps, variant, elevation, textWrap: true };
|
|
20
14
|
const buttonClassName = tx('button.root', 'button button--compound', styleProps, 'flex items-center gap-4 plb-2.5', (_a = slots.root) === null || _a === void 0 ? void 0 : _a.className);
|
|
21
|
-
return (
|
|
22
|
-
before && (react_1.default.createElement("div", { role: 'none', className: 'grow-0' }, before)),
|
|
23
|
-
react_1.default.createElement("div", { role: 'none', ...slots.middle, className: (0, react_ui_theme_1.mx)('grow whitespace-normal flex flex-col gap-1 text-left', (_b = slots.middle) === null || _b === void 0 ? void 0 : _b.className) },
|
|
24
|
-
react_1.default.createElement("p", { ...slots.label, id: labelId, className: (0, react_ui_theme_1.mx)((_c = slots.label) === null || _c === void 0 ? void 0 : _c.className) }, children),
|
|
25
|
-
description && (react_1.default.createElement("p", { id: descriptionId, ...slots.description, className: (0, react_ui_theme_1.mx)('text-xs mbe-1 font-normal', variant === 'primary' ? react_ui_theme_1.descriptionTextPrimary : react_ui_theme_1.descriptionText, (_d = slots.description) === null || _d === void 0 ? void 0 : _d.className) }, description))),
|
|
26
|
-
after && (react_1.default.createElement("div", { role: 'none', className: 'grow-0' }, after))));
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("button", { ...buttonProps, ...slots.root, className: buttonClassName, "aria-labelledby": labelId, ...(description && { 'aria-describedby': descriptionId }), children: [before && ((0, jsx_runtime_1.jsx)("div", { role: 'none', className: 'grow-0', children: before })), (0, jsx_runtime_1.jsxs)("div", { role: 'none', ...slots.middle, className: (0, react_ui_theme_1.mx)('grow whitespace-normal flex flex-col gap-1 text-left', (_b = slots.middle) === null || _b === void 0 ? void 0 : _b.className), children: [(0, jsx_runtime_1.jsx)("p", { ...slots.label, id: labelId, className: (0, react_ui_theme_1.mx)((_c = slots.label) === null || _c === void 0 ? void 0 : _c.className), children: children }), description && ((0, jsx_runtime_1.jsx)("p", { id: descriptionId, ...slots.description, className: (0, react_ui_theme_1.mx)('text-xs mbe-1 font-normal', variant === 'primary' ? react_ui_theme_1.descriptionTextPrimary : react_ui_theme_1.descriptionText, (_d = slots.description) === null || _d === void 0 ? void 0 : _d.className), children: description }))] }), after && ((0, jsx_runtime_1.jsx)("div", { role: 'none', className: 'grow-0', children: after }))] }));
|
|
27
16
|
};
|
|
28
17
|
exports.CompoundButton = CompoundButton;
|
|
29
18
|
//# sourceMappingURL=CompoundButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompoundButton.js","sourceRoot":"","sources":["../../../../../src/components/CompoundButton/CompoundButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CompoundButton.js","sourceRoot":"","sources":["../../../../../src/components/CompoundButton/CompoundButton.tsx"],"names":[],"mappings":";;;;AAMA,6CAA+F;AAC/F,yDAAmF;AAiB5E,MAAM,cAAc,GAAG,CAAC,EAC7B,QAAQ,EACR,WAAW,EACX,MAAM,EACN,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,SAAS,EAAE,cAAc,EACzB,KAAK,GAAG,E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CAAC,uCAAsB,CAAC,CAAC,CAAC,gCAAe,EAChE,MAAA,KAAK,CAAC,WAAW,0CAAE,SAAS,CAC7B,YAEA,WAAW,GACV,CACL,IACG,EACL,KAAK,IAAI,CACR,gCAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,QAAQ,YAChC,KAAK,GACF,CACP,IACM,CACV,CAAC;AACJ,CAAC,CAAC;AAhEW,QAAA,cAAc,kBAgEzB"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { type CompoundButtonProps } from './CompoundButton';
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component: ({ children, description, before, after, variant, elevation: propsElevation, slots, ...buttonProps }: Omit<CompoundButtonProps, "density">) =>
|
|
5
|
+
component: ({ children, description, before, after, variant, elevation: propsElevation, slots, ...buttonProps }: Omit<CompoundButtonProps, "density">) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
decorators: import("@storybook/react/*").Decorator[];
|
|
8
7
|
parameters: {
|
|
9
8
|
chromatic: {
|
|
@@ -13,12 +12,12 @@ declare const _default: {
|
|
|
13
12
|
};
|
|
14
13
|
export default _default;
|
|
15
14
|
export declare const Default: {
|
|
16
|
-
render: (args: Omit<CompoundButtonProps, "ref">) =>
|
|
15
|
+
render: (args: Omit<CompoundButtonProps, "ref">) => import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
args: {
|
|
18
17
|
children: string;
|
|
19
18
|
description: string;
|
|
20
|
-
before:
|
|
21
|
-
after:
|
|
19
|
+
before: import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
after: import("react/jsx-runtime").JSX.Element;
|
|
22
21
|
disabled: boolean;
|
|
23
22
|
};
|
|
24
23
|
};
|
|
@@ -26,11 +25,11 @@ export declare const Primary: {
|
|
|
26
25
|
args: {
|
|
27
26
|
children: string;
|
|
28
27
|
description: string;
|
|
29
|
-
before:
|
|
30
|
-
after:
|
|
28
|
+
before: import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
after: import("react/jsx-runtime").JSX.Element;
|
|
31
30
|
disabled: boolean;
|
|
32
31
|
variant: string;
|
|
33
32
|
};
|
|
34
|
-
render: (args: Omit<CompoundButtonProps, "ref">) =>
|
|
33
|
+
render: (args: Omit<CompoundButtonProps, "ref">) => import("react/jsx-runtime").JSX.Element;
|
|
35
34
|
};
|
|
36
35
|
//# sourceMappingURL=CompoundButton.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompoundButton.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/CompoundButton/CompoundButton.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"CompoundButton.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/CompoundButton/CompoundButton.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAOrB,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;;;;;;;;;;;AAE5E,wBAKE;AAIF,eAAO,MAAM,OAAO;mBACH,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC;;;;;;;;CAahD,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;mBAfH,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC;CAyBhD,CAAC"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Primary = exports.Default = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
5
|
//
|
|
3
6
|
// Copyright 2022 DXOS.org
|
|
4
7
|
//
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.Primary = exports.Default = void 0;
|
|
10
8
|
require("@dxos-theme");
|
|
11
9
|
const react_1 = require("@phosphor-icons/react");
|
|
12
|
-
const react_2 = __importDefault(require("react"));
|
|
13
10
|
const storybook_utils_1 = require("@dxos/storybook-utils");
|
|
14
11
|
const CompoundButton_1 = require("./CompoundButton");
|
|
15
12
|
exports.default = {
|
|
@@ -18,16 +15,14 @@ exports.default = {
|
|
|
18
15
|
decorators: [storybook_utils_1.withTheme],
|
|
19
16
|
parameters: { chromatic: { disableSnapshot: false } },
|
|
20
17
|
};
|
|
21
|
-
const Container = ({ children }) =>
|
|
18
|
+
const Container = ({ children }) => (0, jsx_runtime_1.jsx)("div", { className: 'flex gap-4', children: children });
|
|
22
19
|
exports.Default = {
|
|
23
|
-
render: (args) => (
|
|
24
|
-
react_2.default.createElement(CompoundButton_1.CompoundButton, { ...args }),
|
|
25
|
-
react_2.default.createElement(CompoundButton_1.CompoundButton, { ...args, disabled: true }))),
|
|
20
|
+
render: (args) => ((0, jsx_runtime_1.jsxs)(Container, { children: [(0, jsx_runtime_1.jsx)(CompoundButton_1.CompoundButton, { ...args }), (0, jsx_runtime_1.jsx)(CompoundButton_1.CompoundButton, { ...args, disabled: true })] })),
|
|
26
21
|
args: {
|
|
27
22
|
children: 'Hello',
|
|
28
23
|
description: 'This is a compound button',
|
|
29
|
-
before:
|
|
30
|
-
after:
|
|
24
|
+
before: (0, jsx_runtime_1.jsx)(react_1.ClockCounterClockwise, { className: 'w-5 h-5' }),
|
|
25
|
+
after: (0, jsx_runtime_1.jsx)(react_1.ArrowRight, { className: 'w-5 h-5' }),
|
|
31
26
|
disabled: false,
|
|
32
27
|
},
|
|
33
28
|
};
|
|
@@ -36,8 +31,8 @@ exports.Primary = {
|
|
|
36
31
|
args: {
|
|
37
32
|
children: 'Hello',
|
|
38
33
|
description: 'This is a compound button',
|
|
39
|
-
before:
|
|
40
|
-
after:
|
|
34
|
+
before: (0, jsx_runtime_1.jsx)(react_1.ClockCounterClockwise, { className: 'w-5 h-5' }),
|
|
35
|
+
after: (0, jsx_runtime_1.jsx)(react_1.ArrowRight, { className: 'w-5 h-5' }),
|
|
41
36
|
disabled: false,
|
|
42
37
|
variant: 'primary',
|
|
43
38
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompoundButton.stories.js","sourceRoot":"","sources":["../../../../../src/components/CompoundButton/CompoundButton.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CompoundButton.stories.js","sourceRoot":"","sources":["../../../../../src/components/CompoundButton/CompoundButton.stories.tsx"],"names":[],"mappings":";;;;AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,uBAAqB;AAErB,iDAA0E;AAG1E,2DAAkD;AAElD,qDAA4E;AAE5E,kBAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,+BAAc;IACzB,UAAU,EAAE,CAAC,2BAAS,CAAC;IACvB,UAAU,EAAE,EAAE,SAAS,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE;CACtD,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,EAAE,QAAQ,EAAyB,EAAE,EAAE,CAAC,gCAAK,SAAS,EAAC,YAAY,YAAE,QAAQ,GAAO,CAAC;AAE3F,QAAA,OAAO,GAAG;IACrB,MAAM,EAAE,CAAC,IAAsC,EAAE,EAAE,CAAC,CAClD,wBAAC,SAAS,eACR,uBAAC,+BAAc,OAAK,IAAI,GAAI,EAC5B,uBAAC,+BAAc,OAAK,IAAI,EAAE,QAAQ,SAAG,IAC3B,CACb;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,OAAO;QACjB,WAAW,EAAE,2BAA2B;QACxC,MAAM,EAAE,uBAAC,6BAAqB,IAAC,SAAS,EAAC,SAAS,GAAG;QACrD,KAAK,EAAE,uBAAC,kBAAU,IAAC,SAAS,EAAC,SAAS,GAAG;QACzC,QAAQ,EAAE,KAAK;KAChB;CACF,CAAC;AAEW,QAAA,OAAO,GAAG;IACrB,GAAG,eAAO;IACV,IAAI,EAAE;QACJ,QAAQ,EAAE,OAAO;QACjB,WAAW,EAAE,2BAA2B;QACxC,MAAM,EAAE,uBAAC,6BAAqB,IAAC,SAAS,EAAC,SAAS,GAAG;QACrD,KAAK,EAAE,uBAAC,kBAAU,IAAC,SAAS,EAAC,SAAS,GAAG;QACzC,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,SAAS;KACnB;CACF,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type AgentFormProps, type DeviceListProps } from './DeviceListProps';
|
|
3
|
-
export declare const DeviceList: ({ devices, connectionState, onClickAdd, onClickEdit, onClickReset, onClickRecover, onClickJoinExisting, onAgentDestroy, }: DeviceListProps & Pick<AgentFormProps, "onAgentDestroy">) =>
|
|
2
|
+
export declare const DeviceList: ({ devices, connectionState, onClickAdd, onClickEdit, onClickReset, onClickRecover, onClickJoinExisting, onAgentDestroy, }: DeviceListProps & Pick<AgentFormProps, "onAgentDestroy">) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=DeviceList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceList.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeviceList/DeviceList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeviceList.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeviceList/DeviceList.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9E,eAAO,MAAM,UAAU,8HASpB,eAAe,GAAG,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAC,4CAiC1D,CAAC"}
|
|
@@ -1,29 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceList = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
5
|
//
|
|
3
6
|
// Copyright 2023 DXOS.org
|
|
4
7
|
//
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.DeviceList = void 0;
|
|
10
8
|
const react_1 = require("@phosphor-icons/react");
|
|
11
|
-
const react_2 = __importDefault(require("react"));
|
|
12
9
|
const react_ui_1 = require("@dxos/react-ui");
|
|
13
10
|
const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
14
11
|
const DeviceListItem_1 = require("./DeviceListItem");
|
|
15
12
|
const DeviceList = ({ devices, connectionState, onClickAdd, onClickEdit, onClickReset, onClickRecover, onClickJoinExisting, onAgentDestroy, }) => {
|
|
16
13
|
const { t } = (0, react_ui_1.useTranslation)('os');
|
|
17
|
-
return (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return (react_2.default.createElement(DeviceListItem_1.DeviceListItem, { key: device.deviceKey.toHex(), device: device, onClickEdit: () => onClickEdit === null || onClickEdit === void 0 ? void 0 : onClickEdit(device), onClickReset, onClickRecover, onClickJoinExisting, connectionState, onAgentDestroy }));
|
|
21
|
-
}))),
|
|
22
|
-
react_2.default.createElement(react_ui_1.Button, { variant: 'ghost', classNames: 'justify-start gap-2 pis-0 pie-3 is-full', "data-testid": 'devices-panel.create-invitation', onClick: onClickAdd },
|
|
23
|
-
react_2.default.createElement("div", { role: 'img', className: (0, react_ui_theme_1.mx)((0, react_ui_theme_1.getSize)(8), 'm-1 rounded-sm bg-input grid place-items-center') },
|
|
24
|
-
react_2.default.createElement(react_1.Plus, { weight: 'light', className: (0, react_ui_theme_1.getSize)(6) })),
|
|
25
|
-
react_2.default.createElement("span", { className: 'grow font-medium text-start' }, t('choose add device label')),
|
|
26
|
-
react_2.default.createElement(react_1.CaretRight, { weight: 'bold', className: (0, react_ui_theme_1.getSize)(4) }))));
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { role: 'none', className: 'p-1', children: [(0, jsx_runtime_1.jsx)("h2", { className: (0, react_ui_theme_1.mx)(react_ui_theme_1.descriptionText, 'text-center mbs-2'), children: t('devices heading') }), devices.length > 0 && ((0, jsx_runtime_1.jsx)(react_ui_1.List, { children: devices.map((device) => {
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(DeviceListItem_1.DeviceListItem, { device: device, onClickEdit: () => onClickEdit === null || onClickEdit === void 0 ? void 0 : onClickEdit(device), onClickReset, onClickRecover, onClickJoinExisting, connectionState, onAgentDestroy }, device.deviceKey.toHex()));
|
|
16
|
+
}) })), (0, jsx_runtime_1.jsxs)(react_ui_1.Button, { variant: 'ghost', classNames: 'justify-start gap-2 pis-0 pie-3 is-full', "data-testid": 'devices-panel.create-invitation', onClick: onClickAdd, children: [(0, jsx_runtime_1.jsx)("div", { role: 'img', className: (0, react_ui_theme_1.mx)((0, react_ui_theme_1.getSize)(8), 'm-1 rounded-sm bg-input grid place-items-center'), children: (0, jsx_runtime_1.jsx)(react_1.Plus, { weight: 'light', className: (0, react_ui_theme_1.getSize)(6) }) }), (0, jsx_runtime_1.jsx)("span", { className: 'grow font-medium text-start', children: t('choose add device label') }), (0, jsx_runtime_1.jsx)(react_1.CaretRight, { weight: 'bold', className: (0, react_ui_theme_1.getSize)(4) })] })] }));
|
|
27
17
|
};
|
|
28
18
|
exports.DeviceList = DeviceList;
|
|
29
19
|
//# sourceMappingURL=DeviceList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceList.js","sourceRoot":"","sources":["../../../../../src/components/DeviceList/DeviceList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeviceList.js","sourceRoot":"","sources":["../../../../../src/components/DeviceList/DeviceList.tsx"],"names":[],"mappings":";;;;AAAA,EAAE;AACF,0BA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,SAAS,EAAC,6BAA6B,YAAE,CAAC,CAAC,yBAAyB,CAAC,GAAQ,EACnF,uBAAC,kBAAU,IAAC,MAAM,EAAC,MAAM,EAAC,SAAS,EAAE,IAAA,wBAAO,EAAC,CAAC,CAAC,GAAI,IAC5C,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AA1CW,QAAA,UAAU,cA0CrB"}
|
|
@@ -1,44 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceListItem = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
5
|
//
|
|
3
6
|
// Copyright 2023 DXOS.org
|
|
4
7
|
//
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.DeviceListItem = void 0;
|
|
40
8
|
const react_1 = require("@phosphor-icons/react");
|
|
41
|
-
const react_2 =
|
|
9
|
+
const react_2 = require("react");
|
|
42
10
|
const display_name_1 = require("@dxos/display-name");
|
|
43
11
|
const halo_1 = require("@dxos/react-client/halo");
|
|
44
12
|
const mesh_1 = require("@dxos/react-client/mesh");
|
|
@@ -61,30 +29,10 @@ exports.DeviceListItem = (0, react_2.forwardRef)(({ device, onClickAdd, onClickE
|
|
|
61
29
|
? t('device name placeholder', { os: device.profile.os, platform: device.profile.platform })
|
|
62
30
|
: (0, display_name_1.generateName)(device.deviceKey.toHex());
|
|
63
31
|
const isCurrent = device.kind === halo_1.DeviceKind.CURRENT;
|
|
64
|
-
return (
|
|
65
|
-
react_2.default.createElement(react_ui_1.Avatar.Root, { status: isCurrent && connectionState === mesh_1.ConnectionState.OFFLINE
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(react_ui_1.ListItem.Root, { ...props, classNames: ['flex gap-2 items-center mlb-2', classNames], "data-testid": `device-list-item${isCurrent ? '-current' : ''}`, labelId: labelId, ref: forwardedRef, children: (0, jsx_runtime_1.jsxs)(react_ui_1.Avatar.Root, { status: isCurrent && connectionState === mesh_1.ConnectionState.OFFLINE
|
|
66
33
|
? 'error'
|
|
67
34
|
: device.presence === halo_1.Device.PresenceState.ONLINE
|
|
68
35
|
? 'active'
|
|
69
|
-
: 'inactive', labelId: labelId, hue: fallbackValue.hue, variant: 'square' },
|
|
70
|
-
react_2.default.createElement(react_ui_1.Avatar.Frame, { classNames: 'place-self-center' }, ((_a = device.profile) === null || _a === void 0 ? void 0 : _a.type) ? (device.profile.type === halo_1.DeviceType.AGENT_MANAGED ? (react_2.default.createElement(react_1.Database, { ...iconProps })) : device.profile.type === halo_1.DeviceType.BROWSER ? (react_2.default.createElement(react_1.Compass, { ...iconProps })) : device.profile.type === halo_1.DeviceType.NATIVE ? (react_2.default.createElement(react_1.Desktop, { ...iconProps })) : [halo_1.DeviceType.AGENT, halo_1.DeviceType.AGENT_MANAGED].includes(device.profile.type) ? (react_2.default.createElement(react_1.Robot, { ...iconProps })) : device.profile.type === halo_1.DeviceType.MOBILE ? (react_2.default.createElement(react_1.DeviceMobile, { ...iconProps })) : (react_2.default.createElement(react_1.Devices, { ...iconProps }))) : (react_2.default.createElement(react_ui_1.Avatar.Fallback, { text: fallbackValue.emoji }))),
|
|
71
|
-
react_2.default.createElement(react_ui_1.Avatar.Label, { classNames: 'flex-1 text-sm truncate' }, displayName),
|
|
72
|
-
isCurrent && react_2.default.createElement(react_ui_1.Tag, { color: 'primary' }, t('current device tag label')),
|
|
73
|
-
device.kind === halo_1.DeviceKind.CURRENT && (react_2.default.createElement(react_ui_1.DropdownMenu.Root, null,
|
|
74
|
-
react_2.default.createElement(react_ui_1.DropdownMenu.Trigger, { asChild: true },
|
|
75
|
-
react_2.default.createElement(react_ui_1.Button, { variant: 'ghost', classNames: 'pli-0 is-[--rail-action] bs-[--rail-action]', "data-testid": `device-list-item${isCurrent ? '-current' : ''}.options` },
|
|
76
|
-
react_2.default.createElement("span", { className: 'sr-only' }, t('more options label')),
|
|
77
|
-
react_2.default.createElement(react_1.DotsThree, { className: (0, react_ui_theme_1.getSize)(5) }))),
|
|
78
|
-
react_2.default.createElement(react_ui_1.DropdownMenu.Content, null,
|
|
79
|
-
react_2.default.createElement(react_ui_1.DropdownMenu.Viewport, null,
|
|
80
|
-
react_2.default.createElement(react_ui_1.DropdownMenu.Item, { "data-testid": 'device-list-item-current.join-existing', onClick: onClickJoinExisting },
|
|
81
|
-
react_2.default.createElement(react_1.ShareFat, { className: (0, react_ui_theme_1.getSize)(5) }),
|
|
82
|
-
t('choose join new identity label')),
|
|
83
|
-
onClickRecover && (react_2.default.createElement(react_ui_1.DropdownMenu.Item, { "data-testid": 'device-list-item-current.recover', onClick: onClickRecover },
|
|
84
|
-
react_2.default.createElement(react_1.FirstAidKit, { className: (0, react_ui_theme_1.getSize)(5) }),
|
|
85
|
-
t('choose recover identity label'))),
|
|
86
|
-
react_2.default.createElement(react_ui_1.DropdownMenu.Item, { "data-testid": 'device-list-item-current.reset', onClick: onClickReset },
|
|
87
|
-
react_2.default.createElement(react_1.Power, { className: (0, react_ui_theme_1.getSize)(5) }),
|
|
88
|
-
t('reset device label')))))))));
|
|
36
|
+
: 'inactive', labelId: labelId, hue: fallbackValue.hue, variant: 'square', children: [(0, jsx_runtime_1.jsx)(react_ui_1.Avatar.Frame, { classNames: 'place-self-center', children: ((_a = device.profile) === null || _a === void 0 ? void 0 : _a.type) ? (device.profile.type === halo_1.DeviceType.AGENT_MANAGED ? ((0, jsx_runtime_1.jsx)(react_1.Database, { ...iconProps })) : device.profile.type === halo_1.DeviceType.BROWSER ? ((0, jsx_runtime_1.jsx)(react_1.Compass, { ...iconProps })) : device.profile.type === halo_1.DeviceType.NATIVE ? ((0, jsx_runtime_1.jsx)(react_1.Desktop, { ...iconProps })) : [halo_1.DeviceType.AGENT, halo_1.DeviceType.AGENT_MANAGED].includes(device.profile.type) ? ((0, jsx_runtime_1.jsx)(react_1.Robot, { ...iconProps })) : device.profile.type === halo_1.DeviceType.MOBILE ? ((0, jsx_runtime_1.jsx)(react_1.DeviceMobile, { ...iconProps })) : ((0, jsx_runtime_1.jsx)(react_1.Devices, { ...iconProps }))) : ((0, jsx_runtime_1.jsx)(react_ui_1.Avatar.Fallback, { text: fallbackValue.emoji })) }), (0, jsx_runtime_1.jsx)(react_ui_1.Avatar.Label, { classNames: 'flex-1 text-sm truncate', children: displayName }), isCurrent && (0, jsx_runtime_1.jsx)(react_ui_1.Tag, { color: 'primary', children: t('current device tag label') }), device.kind === halo_1.DeviceKind.CURRENT && ((0, jsx_runtime_1.jsxs)(react_ui_1.DropdownMenu.Root, { children: [(0, jsx_runtime_1.jsx)(react_ui_1.DropdownMenu.Trigger, { asChild: true, children: (0, jsx_runtime_1.jsxs)(react_ui_1.Button, { variant: 'ghost', classNames: 'pli-0 is-[--rail-action] bs-[--rail-action]', "data-testid": `device-list-item${isCurrent ? '-current' : ''}.options`, children: [(0, jsx_runtime_1.jsx)("span", { className: 'sr-only', children: t('more options label') }), (0, jsx_runtime_1.jsx)(react_1.DotsThree, { className: (0, react_ui_theme_1.getSize)(5) })] }) }), (0, jsx_runtime_1.jsx)(react_ui_1.DropdownMenu.Content, { children: (0, jsx_runtime_1.jsxs)(react_ui_1.DropdownMenu.Viewport, { children: [(0, jsx_runtime_1.jsxs)(react_ui_1.DropdownMenu.Item, { "data-testid": 'device-list-item-current.join-existing', onClick: onClickJoinExisting, children: [(0, jsx_runtime_1.jsx)(react_1.ShareFat, { className: (0, react_ui_theme_1.getSize)(5) }), t('choose join new identity label')] }), onClickRecover && ((0, jsx_runtime_1.jsxs)(react_ui_1.DropdownMenu.Item, { "data-testid": 'device-list-item-current.recover', onClick: onClickRecover, children: [(0, jsx_runtime_1.jsx)(react_1.FirstAidKit, { className: (0, react_ui_theme_1.getSize)(5) }), t('choose recover identity label')] })), (0, jsx_runtime_1.jsxs)(react_ui_1.DropdownMenu.Item, { "data-testid": 'device-list-item-current.reset', onClick: onClickReset, children: [(0, jsx_runtime_1.jsx)(react_1.Power, { className: (0, react_ui_theme_1.getSize)(5) }), t('reset device label')] })] }) })] }))] }) }));
|
|
89
37
|
});
|
|
90
38
|
//# sourceMappingURL=DeviceListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceListItem.js","sourceRoot":"","sources":["../../../../../src/components/DeviceList/DeviceListItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeviceListItem.js","sourceRoot":"","sources":["../../../../../src/components/DeviceList/DeviceListItem.tsx"],"names":[],"mappings":";;;;AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,iDAY+B;AAC/B,iCAAyE;AAEzE,qDAAkD;AAClD,kDAAyE;AACzE,kDAA0D;AAC1D,6CASwB;AACxB,yDAA+C;AAC/C,qCAA2C;AAI3C,MAAM,SAAS,GAAc;IAC3B,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;CACL,CAAC;AAEW,QAAA,cAAc,GAAG,IAAA,kBAAU,EAItC,CACE,EACE,MAAM,EACN,UAAU,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,cAAc,EAAE,CAAC,EACjB,GAAG,KAAK,EACT,EACD,YAAY,EACZ,EAAE;;IACF,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IACnC,MAAM,aAAa,GAAG,IAAA,oBAAa,EAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,IAAA,gBAAK,EAAC,yBAAyB,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO;QAChC,CAAC,CAAC,CAAC,CAAC,yBAAyB,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QAC5F,CAAC,CAAC,IAAA,2BAAY,EAAC,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC;IAC3C,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,KAAK,iBAAU,CAAC,OAAO,C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