@dxos/react-ui 0.1.32-next.77d513e → 0.1.32-next.86f5578
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/lib/browser/index.mjs +8 -19
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/composites/DevicesDialog/DevicesDialog.d.ts.map +1 -1
- package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/view-states/InvitationAuthenticator.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/composites/DevicesDialog/DevicesDialog.tsx +2 -3
- package/src/composites/JoinDialog/JoinDialog.tsx +2 -4
- package/src/composites/SpaceDialog/SpaceDialog.tsx +2 -3
- package/src/panels/IdentityPanel/IdentityPanel.tsx +2 -4
- package/src/panels/JoinPanel/JoinPanel.tsx +3 -4
- package/src/panels/JoinPanel/view-states/InvitationAuthenticator.tsx +0 -1
|
@@ -777,12 +777,11 @@ var DevicesPanel = (props) => {
|
|
|
777
777
|
// packages/apps/patterns/react-ui/src/panels/IdentityPanel/IdentityPanel.tsx
|
|
778
778
|
import React16 from "react";
|
|
779
779
|
import { useClient as useClient3 } from "@dxos/react-client";
|
|
780
|
-
import { Avatar as Avatar3, Button as Button3, DensityProvider as DensityProvider3, ThemeContext,
|
|
780
|
+
import { Avatar as Avatar3, Button as Button3, DensityProvider as DensityProvider3, ThemeContext, useTranslation as useTranslation6 } from "@dxos/react-components";
|
|
781
781
|
var IdentityPanel = ({ identity, onClickManageProfile }) => {
|
|
782
782
|
var _a, _b;
|
|
783
783
|
const { t } = useTranslation6("os");
|
|
784
784
|
const client = useClient3();
|
|
785
|
-
const themeContextValue = useThemeContext();
|
|
786
785
|
const defaultManageProfile = () => {
|
|
787
786
|
const remoteSource = new URL((client == null ? void 0 : client.config.get("runtime.client.remoteSource")) || "https://halo.dxos.org");
|
|
788
787
|
const tab = window.open(remoteSource.origin, "_blank");
|
|
@@ -790,7 +789,6 @@ var IdentityPanel = ({ identity, onClickManageProfile }) => {
|
|
|
790
789
|
};
|
|
791
790
|
return /* @__PURE__ */ React16.createElement(ThemeContext.Provider, {
|
|
792
791
|
value: {
|
|
793
|
-
...themeContextValue,
|
|
794
792
|
themeVariant: "os"
|
|
795
793
|
}
|
|
796
794
|
}, /* @__PURE__ */ React16.createElement(DensityProvider3, {
|
|
@@ -812,7 +810,7 @@ var IdentityPanel = ({ identity, onClickManageProfile }) => {
|
|
|
812
810
|
import React26, { useEffect as useEffect2 } from "react";
|
|
813
811
|
import { log as log2 } from "@dxos/log";
|
|
814
812
|
import { useClient as useClient5, useIdentity as useIdentity2 } from "@dxos/react-client";
|
|
815
|
-
import { DensityProvider as DensityProvider4, useId as useId4
|
|
813
|
+
import { DensityProvider as DensityProvider4, useId as useId4 } from "@dxos/react-components";
|
|
816
814
|
|
|
817
815
|
// packages/apps/patterns/react-ui/src/panels/JoinPanel/JoinHeading.tsx
|
|
818
816
|
import { X as X3 } from "@phosphor-icons/react";
|
|
@@ -1881,7 +1879,6 @@ var PureInvitationAuthenticatorContent = ({ disabled, failed, joinSend, joinStat
|
|
|
1881
1879
|
autoComplete: "off",
|
|
1882
1880
|
pattern: "\\d*",
|
|
1883
1881
|
"data-autofocus": `connecting${Domain}Invitation inputting${Domain}VerificationCode authenticationFailing${Domain}VerificationCode authenticating${Domain}VerificationCode`,
|
|
1884
|
-
"data-prevent-ios-autofocus": true,
|
|
1885
1882
|
"data-testid": `${invitationType}-auth-code-input`,
|
|
1886
1883
|
"data-1p-ignore": true
|
|
1887
1884
|
}
|
|
@@ -2001,7 +1998,6 @@ var JoinPanel = ({ mode = "default", initialInvitationCode, exitActionParent, on
|
|
|
2001
1998
|
const client = useClient5();
|
|
2002
1999
|
const identity = useIdentity2();
|
|
2003
2000
|
const titleId = useId4("joinPanel__title");
|
|
2004
|
-
const { hasIosKeyboard } = useThemeContext2();
|
|
2005
2001
|
const [joinState, joinSend, joinService] = useJoinMachine(client, {
|
|
2006
2002
|
context: {
|
|
2007
2003
|
mode,
|
|
@@ -2017,7 +2013,7 @@ var JoinPanel = ({ mode = "default", initialInvitationCode, exitActionParent, on
|
|
|
2017
2013
|
const subscription = joinService.subscribe((state) => {
|
|
2018
2014
|
log2("[state]", state, {
|
|
2019
2015
|
file: "JoinPanel.tsx",
|
|
2020
|
-
line:
|
|
2016
|
+
line: 48,
|
|
2021
2017
|
scope: void 0,
|
|
2022
2018
|
callSite: (f, a) => f(...a)
|
|
2023
2019
|
});
|
|
@@ -2031,12 +2027,11 @@ var JoinPanel = ({ mode = "default", initialInvitationCode, exitActionParent, on
|
|
|
2031
2027
|
const innermostState = stateStack[stateStack.length - 1];
|
|
2032
2028
|
const autoFocusValue = innermostState === "finishingJoining" ? "successSpaceInvitation" : innermostState;
|
|
2033
2029
|
const $nextAutofocus = document.querySelector(`[data-autofocus~="${autoFocusValue}"]`);
|
|
2034
|
-
if ($nextAutofocus
|
|
2030
|
+
if ($nextAutofocus) {
|
|
2035
2031
|
$nextAutofocus.focus();
|
|
2036
2032
|
}
|
|
2037
2033
|
}, [
|
|
2038
|
-
joinState.value
|
|
2039
|
-
hasIosKeyboard
|
|
2034
|
+
joinState.value
|
|
2040
2035
|
]);
|
|
2041
2036
|
return /* @__PURE__ */ React26.createElement(DensityProvider4, {
|
|
2042
2037
|
density: "fine"
|
|
@@ -2336,7 +2331,7 @@ var IdentityPopover = ({ identity, openTrigger, slots, triggerIsInToolbar = true
|
|
|
2336
2331
|
// packages/apps/patterns/react-ui/src/composites/JoinDialog/JoinDialog.tsx
|
|
2337
2332
|
import { Action, Cancel } from "@radix-ui/react-alert-dialog";
|
|
2338
2333
|
import React29 from "react";
|
|
2339
|
-
import { ThemeContext as ThemeContext2, useId as useId5
|
|
2334
|
+
import { ThemeContext as ThemeContext2, useId as useId5 } from "@dxos/react-components";
|
|
2340
2335
|
function _extends25() {
|
|
2341
2336
|
_extends25 = Object.assign || function(target) {
|
|
2342
2337
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -2353,13 +2348,11 @@ function _extends25() {
|
|
|
2353
2348
|
}
|
|
2354
2349
|
var JoinDialog = ({ slots, ...joinPanelProps }) => {
|
|
2355
2350
|
const titleId = useId5("joinDialog__title");
|
|
2356
|
-
const themeContextValue = useThemeContext3();
|
|
2357
2351
|
return /* @__PURE__ */ React29.createElement(PanelAlertDialog, _extends25({}, {
|
|
2358
2352
|
slots,
|
|
2359
2353
|
titleId
|
|
2360
2354
|
}), /* @__PURE__ */ React29.createElement(ThemeContext2.Provider, {
|
|
2361
2355
|
value: {
|
|
2362
|
-
...themeContextValue,
|
|
2363
2356
|
themeVariant: "os"
|
|
2364
2357
|
}
|
|
2365
2358
|
}, /* @__PURE__ */ React29.createElement(JoinPanel, _extends25({}, {
|
|
@@ -2383,7 +2376,7 @@ import { useClient as useClient6, useSpace as useSpace3, useSpaces } from "@dxos
|
|
|
2383
2376
|
// packages/apps/patterns/react-ui/src/composites/DevicesDialog/DevicesDialog.tsx
|
|
2384
2377
|
import { Close } from "@radix-ui/react-dialog";
|
|
2385
2378
|
import React30 from "react";
|
|
2386
|
-
import { ThemeContext as ThemeContext3, useId as useId6
|
|
2379
|
+
import { ThemeContext as ThemeContext3, useId as useId6 } from "@dxos/react-components";
|
|
2387
2380
|
function _extends26() {
|
|
2388
2381
|
_extends26 = Object.assign || function(target) {
|
|
2389
2382
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -2400,7 +2393,6 @@ function _extends26() {
|
|
|
2400
2393
|
}
|
|
2401
2394
|
var DevicesDialog = ({ slots, ...devicesDialogProps }) => {
|
|
2402
2395
|
const titleId = useId6("spaceDialog__title");
|
|
2403
|
-
const themeContextValue = useThemeContext4();
|
|
2404
2396
|
return /* @__PURE__ */ React30.createElement(PanelDialog, _extends26({}, {
|
|
2405
2397
|
slots: {
|
|
2406
2398
|
...slots,
|
|
@@ -2415,7 +2407,6 @@ var DevicesDialog = ({ slots, ...devicesDialogProps }) => {
|
|
|
2415
2407
|
titleId
|
|
2416
2408
|
}), /* @__PURE__ */ React30.createElement(ThemeContext3.Provider, {
|
|
2417
2409
|
value: {
|
|
2418
|
-
...themeContextValue,
|
|
2419
2410
|
themeVariant: "os"
|
|
2420
2411
|
}
|
|
2421
2412
|
}, /* @__PURE__ */ React30.createElement(DevicesPanel, _extends26({}, {
|
|
@@ -2430,7 +2421,7 @@ var DevicesDialog = ({ slots, ...devicesDialogProps }) => {
|
|
|
2430
2421
|
// packages/apps/patterns/react-ui/src/composites/SpaceDialog/SpaceDialog.tsx
|
|
2431
2422
|
import { Close as Close2 } from "@radix-ui/react-dialog";
|
|
2432
2423
|
import React31 from "react";
|
|
2433
|
-
import { ThemeContext as ThemeContext4, useId as useId7
|
|
2424
|
+
import { ThemeContext as ThemeContext4, useId as useId7 } from "@dxos/react-components";
|
|
2434
2425
|
function _extends27() {
|
|
2435
2426
|
_extends27 = Object.assign || function(target) {
|
|
2436
2427
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -2447,7 +2438,6 @@ function _extends27() {
|
|
|
2447
2438
|
}
|
|
2448
2439
|
var SpaceDialog = ({ slots, ...spacePanelProps }) => {
|
|
2449
2440
|
const titleId = useId7("spaceDialog__title");
|
|
2450
|
-
const themeContextValue = useThemeContext5();
|
|
2451
2441
|
return /* @__PURE__ */ React31.createElement(PanelDialog, _extends27({}, {
|
|
2452
2442
|
slots: {
|
|
2453
2443
|
...slots,
|
|
@@ -2462,7 +2452,6 @@ var SpaceDialog = ({ slots, ...spacePanelProps }) => {
|
|
|
2462
2452
|
titleId
|
|
2463
2453
|
}), /* @__PURE__ */ React31.createElement(ThemeContext4.Provider, {
|
|
2464
2454
|
value: {
|
|
2465
|
-
...themeContextValue,
|
|
2466
2455
|
themeVariant: "os"
|
|
2467
2456
|
}
|
|
2468
2457
|
}, /* @__PURE__ */ React31.createElement(SpacePanel, _extends27({}, {
|