@dxos/shell 0.6.11-staging.e6894a4 → 0.6.12-main.5cc132e
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 +22252 -26602
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +97 -170
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/bundle/style.css +1 -1
- package/dist/lib/browser/{chunk-ZSTKOCBT.mjs → chunk-J5LGTIGS.mjs} +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +7 -13
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.js +12 -14
- package/dist/types/src/components/InvitationList/InvitationList.stories.js.map +1 -1
- package/dist/types/src/composites/Shell/Shell.js +1 -1
- package/dist/types/src/composites/Shell/Shell.js.map +1 -1
- package/dist/types/src/composites/Shell/run-shell.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/run-shell.js +1 -3
- package/dist/types/src/composites/Shell/run-shell.js.map +1 -1
- package/dist/types/src/playwright/invitations-manager.d.ts +1 -1
- package/dist/types/src/playwright/invitations-manager.d.ts.map +1 -1
- package/dist/types/src/playwright/invitations-manager.js +4 -10
- package/dist/types/src/playwright/invitations-manager.js.map +1 -1
- package/dist/types/src/playwright/invitations.spec.js +31 -32
- package/dist/types/src/playwright/invitations.spec.js.map +1 -1
- package/dist/types/src/playwright/playwright.config.d.ts +2 -2
- package/dist/types/src/playwright/playwright.config.d.ts.map +1 -1
- package/dist/types/src/playwright/playwright.config.js +12 -2
- package/dist/types/src/playwright/playwright.config.js.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.js +2 -3
- package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
- package/package.json +25 -24
- package/src/components/InvitationList/InvitationList.stories.tsx +17 -20
- package/src/composites/Shell/Shell.tsx +1 -1
- package/src/composites/Shell/run-shell.tsx +3 -13
- package/src/playwright/invitations-manager.ts +4 -8
- package/src/playwright/invitations.spec.ts +32 -33
- package/src/playwright/playwright.config.ts +13 -2
- package/src/stories/Invitations.e2e-stories.tsx +4 -6
- /package/dist/lib/browser/{chunk-ZSTKOCBT.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J5LGTIGS.mjs";
|
|
4
4
|
|
|
5
5
|
// packages/sdk/shell/src/components/AgentConfig.tsx
|
|
6
6
|
import { ArrowsClockwise, Database, Plus, Power } from "@phosphor-icons/react";
|
|
@@ -3852,7 +3852,7 @@ var JoinDialog = (joinPanelProps) => {
|
|
|
3852
3852
|
import React47, { StrictMode } from "react";
|
|
3853
3853
|
import { createRoot } from "react-dom/client";
|
|
3854
3854
|
import { DEFAULT_CLIENT_CHANNEL, DEFAULT_SHELL_CHANNEL } from "@dxos/client-protocol";
|
|
3855
|
-
import { AgentHostingProvider,
|
|
3855
|
+
import { AgentHostingProvider, ClientProvider, ClientServicesProxy, Config, ShellDisplay as ShellDisplay2 } from "@dxos/react-client";
|
|
3856
3856
|
import { Button as Button11, Dialog as Dialog3, ThemeProvider, Tooltip as Tooltip8, useTranslation as useTranslation26 } from "@dxos/react-ui";
|
|
3857
3857
|
import { defaultTx } from "@dxos/react-ui-theme";
|
|
3858
3858
|
import { createIFramePort } from "@dxos/rpc-tunnel";
|
|
@@ -3914,7 +3914,7 @@ var Shell = ({ runtime }) => {
|
|
|
3914
3914
|
spaceInvitationParam: runtime.spaceInvitationParam
|
|
3915
3915
|
});
|
|
3916
3916
|
const client = useClient7();
|
|
3917
|
-
const space = useSpace2(
|
|
3917
|
+
const space = useSpace2(spaceId ?? spaceKey);
|
|
3918
3918
|
const createDeviceInvitationUrl = (invitationCode2) => {
|
|
3919
3919
|
const baseUrl = new URL(invitationUrl);
|
|
3920
3920
|
baseUrl.searchParams.set(deviceInvitationParam, invitationCode2);
|
|
@@ -4331,21 +4331,15 @@ var runShell = async (config = new Config()) => {
|
|
|
4331
4331
|
const services = new ClientServicesProxy(createIFramePort({
|
|
4332
4332
|
channel: DEFAULT_CLIENT_CHANNEL
|
|
4333
4333
|
}));
|
|
4334
|
-
const client = new Client({
|
|
4335
|
-
config,
|
|
4336
|
-
services
|
|
4337
|
-
});
|
|
4338
|
-
await client.initialize();
|
|
4339
4334
|
createRoot(document.getElementById("root")).render(/* @__PURE__ */ React47.createElement(StrictMode, null, /* @__PURE__ */ React47.createElement(ThemeProvider, {
|
|
4340
4335
|
tx: defaultTx,
|
|
4341
4336
|
resourceExtensions: [
|
|
4342
4337
|
osTranslations
|
|
4343
4338
|
]
|
|
4344
|
-
}, /* @__PURE__ */ React47.createElement(
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
}
|
|
4339
|
+
}, /* @__PURE__ */ React47.createElement(ClientProvider, {
|
|
4340
|
+
config,
|
|
4341
|
+
services,
|
|
4342
|
+
disableBanner: true
|
|
4349
4343
|
}, /* @__PURE__ */ React47.createElement(ClipboardProvider, null, /* @__PURE__ */ React47.createElement(Tooltip8.Provider, null, /* @__PURE__ */ React47.createElement(AgentHostingProvider, null, /* @__PURE__ */ React47.createElement(Shell, {
|
|
4350
4344
|
runtime
|
|
4351
4345
|
}))))))));
|