@dxos/react-ui 0.1.23 → 0.1.24
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 +1781 -57
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/components/{IdentityListItem → IdentityList}/IdentityListItem.d.ts +0 -0
- package/dist/types/src/components/IdentityList/IdentityListItem.d.ts.map +1 -0
- package/dist/types/src/components/{IdentityListItem → IdentityList}/IdentityListItem.stories.d.ts +0 -0
- package/dist/types/src/components/IdentityList/IdentityListItem.stories.d.ts.map +1 -0
- package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts +6 -0
- package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts.map +1 -0
- package/dist/types/src/components/IdentityList/SpaceMemberListContainer.d.ts +7 -0
- package/dist/types/src/components/IdentityList/SpaceMemberListContainer.d.ts.map +1 -0
- package/dist/types/src/components/IdentityList/index.d.ts +4 -0
- package/dist/types/src/components/IdentityList/index.d.ts.map +1 -0
- package/dist/types/src/components/InvitationList/InvitationList.d.ts +7 -0
- package/dist/types/src/components/InvitationList/InvitationList.d.ts.map +1 -0
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts +10 -0
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts.map +1 -0
- package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts +7 -0
- package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts.map +1 -0
- package/dist/types/src/components/InvitationList/InvitationListItem.d.ts +9 -0
- package/dist/types/src/components/InvitationList/InvitationListItem.d.ts.map +1 -0
- package/dist/types/src/components/InvitationList/InvitationListProps.d.ts +4 -0
- package/dist/types/src/components/InvitationList/InvitationListProps.d.ts.map +1 -0
- package/dist/types/src/components/InvitationList/InvitationStatusAvatar.d.ts +9 -0
- package/dist/types/src/components/InvitationList/InvitationStatusAvatar.d.ts.map +1 -0
- package/dist/types/src/components/InvitationList/InvitationStatusAvatar.stories.d.ts +9 -0
- package/dist/types/src/components/InvitationList/InvitationStatusAvatar.stories.d.ts.map +1 -0
- package/dist/types/src/components/InvitationList/index.d.ts +5 -0
- package/dist/types/src/components/InvitationList/index.d.ts.map +1 -0
- package/dist/types/src/components/PanelSeparator/PanelSeparator.d.ts +3 -0
- package/dist/types/src/components/PanelSeparator/PanelSeparator.d.ts.map +1 -0
- package/dist/types/src/components/PanelSeparator/index.d.ts +2 -0
- package/dist/types/src/components/PanelSeparator/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +4 -0
- package/dist/types/src/components/index.d.ts.map +1 -0
- package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts +6 -0
- package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts.map +1 -0
- package/dist/types/src/composites/JoinDialog/JoinDialog.stories.d.ts +10 -0
- package/dist/types/src/composites/JoinDialog/JoinDialog.stories.d.ts.map +1 -0
- package/dist/types/src/composites/JoinDialog/index.d.ts +2 -0
- package/dist/types/src/composites/JoinDialog/index.d.ts.map +1 -0
- package/dist/types/src/composites/index.d.ts +1 -0
- package/dist/types/src/composites/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/layouts/PanelAlertDialog/PanelAlertDialog.d.ts +14 -0
- package/dist/types/src/layouts/PanelAlertDialog/PanelAlertDialog.d.ts.map +1 -0
- package/dist/types/src/layouts/PanelAlertDialog/index.d.ts +2 -0
- package/dist/types/src/layouts/PanelAlertDialog/index.d.ts.map +1 -0
- package/dist/types/src/layouts/PanelSidebar/PanelSidebar.d.ts +2 -3
- package/dist/types/src/layouts/PanelSidebar/PanelSidebar.d.ts.map +1 -1
- package/dist/types/src/layouts/index.d.ts +1 -0
- package/dist/types/src/layouts/index.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinHeading.d.ts +10 -0
- package/dist/types/src/panels/JoinPanel/JoinHeading.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts +3 -0
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/JoinPanelProps.d.ts +53 -0
- package/dist/types/src/panels/JoinPanel/JoinPanelProps.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/index.d.ts +3 -0
- package/dist/types/src/panels/JoinPanel/index.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/view-states/AdditionMethodSelector.d.ts +7 -0
- package/dist/types/src/panels/JoinPanel/view-states/AdditionMethodSelector.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/view-states/IdentityAdded.d.ts +7 -0
- package/dist/types/src/panels/JoinPanel/view-states/IdentityAdded.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/view-states/IdentityInput.d.ts +6 -0
- package/dist/types/src/panels/JoinPanel/view-states/IdentityInput.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/view-states/IdentitySelector.d.ts +7 -0
- package/dist/types/src/panels/JoinPanel/view-states/IdentitySelector.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/view-states/InvitationAccepted.d.ts +10 -0
- package/dist/types/src/panels/JoinPanel/view-states/InvitationAccepted.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/view-states/InvitationAuthenticator.d.ts +7 -0
- package/dist/types/src/panels/JoinPanel/view-states/InvitationAuthenticator.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/view-states/InvitationInput.d.ts +6 -0
- package/dist/types/src/panels/JoinPanel/view-states/InvitationInput.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/view-states/InvitationRescuer.d.ts +6 -0
- package/dist/types/src/panels/JoinPanel/view-states/InvitationRescuer.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/view-states/ViewState.d.ts +12 -0
- package/dist/types/src/panels/JoinPanel/view-states/ViewState.d.ts.map +1 -0
- package/dist/types/src/panels/JoinPanel/view-states/index.d.ts +9 -0
- package/dist/types/src/panels/JoinPanel/view-states/index.d.ts.map +1 -0
- package/dist/types/src/panels/index.d.ts +1 -0
- package/dist/types/src/panels/index.d.ts.map +1 -1
- package/dist/types/src/styles/index.d.ts +1 -0
- package/dist/types/src/styles/index.d.ts.map +1 -1
- package/dist/types/src/styles/invitationStatusStyles.d.ts +20 -0
- package/dist/types/src/styles/invitationStatusStyles.d.ts.map +1 -0
- package/dist/types/src/styles/panelStyles.d.ts +2 -1
- package/dist/types/src/styles/panelStyles.d.ts.map +1 -1
- package/dist/types/src/translations/locales/en-US.d.ts +41 -0
- package/dist/types/src/translations/locales/en-US.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +2 -0
- package/dist/types/src/util/index.d.ts.map +1 -0
- package/dist/types/src/util/invitationStatusValue.d.ts +8 -0
- package/dist/types/src/util/invitationStatusValue.d.ts.map +1 -0
- package/package.json +18 -11
- package/src/components/{IdentityListItem → IdentityList}/IdentityListItem.stories.tsx +0 -0
- package/src/components/{IdentityListItem → IdentityList}/IdentityListItem.tsx +4 -3
- package/src/components/IdentityList/SpaceMemberList.tsx +31 -0
- package/src/components/IdentityList/SpaceMemberListContainer.tsx +27 -0
- package/src/components/IdentityList/index.ts +7 -0
- package/src/components/InvitationList/InvitationList.stories.tsx +65 -0
- package/src/components/InvitationList/InvitationList.tsx +24 -0
- package/src/components/InvitationList/InvitationListContainer.tsx +27 -0
- package/src/components/InvitationList/InvitationListItem.tsx +95 -0
- package/src/components/InvitationList/InvitationListProps.ts +7 -0
- package/src/components/InvitationList/InvitationStatusAvatar.stories.tsx +52 -0
- package/src/components/InvitationList/InvitationStatusAvatar.tsx +75 -0
- package/src/components/InvitationList/index.ts +8 -0
- package/src/components/PanelSeparator/PanelSeparator.tsx +17 -0
- package/src/components/PanelSeparator/index.ts +5 -0
- package/src/components/index.ts +7 -0
- package/src/composites/JoinDialog/JoinDialog.stories.tsx +80 -0
- package/src/composites/JoinDialog/JoinDialog.tsx +31 -0
- package/src/composites/JoinDialog/index.ts +5 -0
- package/src/composites/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/layouts/PanelAlertDialog/PanelAlertDialog.tsx +44 -0
- package/src/layouts/PanelAlertDialog/index.ts +5 -0
- package/src/layouts/PanelPopover/PanelPopover.tsx +2 -2
- package/src/layouts/PanelSidebar/PanelSidebar.tsx +17 -25
- package/src/layouts/index.ts +1 -0
- package/src/panels/JoinPanel/JoinHeading.tsx +57 -0
- package/src/panels/JoinPanel/JoinPanel.tsx +303 -0
- package/src/panels/JoinPanel/JoinPanelProps.ts +94 -0
- package/src/panels/JoinPanel/index.ts +6 -0
- package/src/panels/JoinPanel/view-states/AdditionMethodSelector.tsx +69 -0
- package/src/panels/JoinPanel/view-states/IdentityAdded.tsx +60 -0
- package/src/panels/JoinPanel/view-states/IdentityInput.tsx +72 -0
- package/src/panels/JoinPanel/view-states/IdentitySelector.tsx +98 -0
- package/src/panels/JoinPanel/view-states/InvitationAccepted.tsx +69 -0
- package/src/panels/JoinPanel/view-states/InvitationAuthenticator.tsx +139 -0
- package/src/panels/JoinPanel/view-states/InvitationInput.tsx +68 -0
- package/src/panels/JoinPanel/view-states/InvitationRescuer.tsx +95 -0
- package/src/panels/JoinPanel/view-states/ViewState.tsx +204 -0
- package/src/panels/JoinPanel/view-states/index.ts +12 -0
- package/src/panels/index.ts +1 -0
- package/src/styles/index.ts +1 -0
- package/src/styles/invitationStatusStyles.ts +42 -0
- package/src/styles/panelStyles.ts +2 -1
- package/src/testing/ClientProvider.tsx +1 -1
- package/src/translations/locales/en-US.ts +42 -1
- package/src/util/index.ts +5 -0
- package/src/util/invitationStatusValue.ts +21 -0
- package/theme-extensions.js +11 -0
- package/dist/types/src/components/IdentityListItem/IdentityListItem.d.ts.map +0 -1
- package/dist/types/src/components/IdentityListItem/IdentityListItem.stories.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/IdentityList/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CancellableInvitationObservable } from '@dxos/client';
|
|
2
|
+
import { InvitationListItemProps } from './InvitationListItem';
|
|
3
|
+
export interface InvitationListProps extends Omit<InvitationListItemProps, 'invitation' | 'value'> {
|
|
4
|
+
invitations: CancellableInvitationObservable[];
|
|
5
|
+
}
|
|
6
|
+
export declare const InvitationList: ({ invitations, ...invitationProps }: InvitationListProps) => JSX.Element;
|
|
7
|
+
//# sourceMappingURL=InvitationList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationList.d.ts","sourceRoot":"","sources":["../../../../../src/components/InvitationList/InvitationList.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,EAAsB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEnF,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,uBAAuB,EAAE,YAAY,GAAG,OAAO,CAAC;IAChG,WAAW,EAAE,+BAA+B,EAAE,CAAC;CAChD;AAED,eAAO,MAAM,cAAc,wCAAyC,mBAAmB,gBAStF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@dxosTheme';
|
|
2
|
+
import { StoryFn } from '@storybook/react';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
component: ({ invitations, ...invitationProps }: import("./InvitationList").InvitationListProps) => JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: {
|
|
8
|
+
decorators: ((Story: StoryFn) => JSX.Element)[];
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=InvitationList.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationList.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/InvitationList/InvitationList.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;;;;AAa3C,wBAEE;AAEF,eAAO,MAAM,OAAO;yBAER,OAAO;CAuClB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PublicKey } from '@dxos/keys';
|
|
2
|
+
import { SharedInvitationListProps } from './InvitationListProps';
|
|
3
|
+
export interface InvitationListContainerProps extends SharedInvitationListProps {
|
|
4
|
+
spaceKey: PublicKey;
|
|
5
|
+
}
|
|
6
|
+
export declare const InvitationListContainer: ({ spaceKey, createInvitationUrl }: InvitationListContainerProps) => JSX.Element;
|
|
7
|
+
//# sourceMappingURL=InvitationListContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationListContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/InvitationList/InvitationListContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAElE,MAAM,WAAW,4BAA6B,SAAQ,yBAAyB;IAC7E,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,uBAAuB,sCAAuC,4BAA4B,gBAUtG,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CancellableInvitationObservable } from '@dxos/client';
|
|
2
|
+
import { SharedInvitationListProps } from './InvitationListProps';
|
|
3
|
+
export interface InvitationListItemProps extends SharedInvitationListProps {
|
|
4
|
+
invitation: CancellableInvitationObservable;
|
|
5
|
+
value: string;
|
|
6
|
+
onClickRemove: (invitation: CancellableInvitationObservable) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const InvitationListItem: ({ invitation, value, onClickRemove, createInvitationUrl }: InvitationListItemProps) => JSX.Element;
|
|
9
|
+
//# sourceMappingURL=InvitationListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationListItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/InvitationList/InvitationListItem.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AAK/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAGlE,MAAM,WAAW,uBAAwB,SAAQ,yBAAyB;IACxE,UAAU,EAAE,+BAA+B,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,UAAU,EAAE,+BAA+B,KAAK,IAAI,CAAC;CACtE;AAED,eAAO,MAAM,kBAAkB,8DAK5B,uBAAuB,gBAmEzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationListProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/InvitationList/InvitationListProps.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,yBAAyB;IACxC,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CACzD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Invitation } from '@dxos/client';
|
|
2
|
+
import { Size } from '@dxos/react-components';
|
|
3
|
+
export interface InvitationStatusAvatarProps {
|
|
4
|
+
size?: Size;
|
|
5
|
+
status: Invitation.State;
|
|
6
|
+
haltedAt?: Invitation.State;
|
|
7
|
+
}
|
|
8
|
+
export declare const InvitationStatusAvatar: ({ size, status, haltedAt }: InvitationStatusAvatarProps) => JSX.Element;
|
|
9
|
+
//# sourceMappingURL=InvitationStatusAvatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationStatusAvatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/InvitationList/InvitationStatusAvatar.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAW,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAKvD,MAAM,WAAW,2BAA2B;IAC1C,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC;IACzB,QAAQ,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC;CAC7B;AAqBD,eAAO,MAAM,sBAAsB,+BAAqC,2BAA2B,gBAqClG,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StoryFn } from '@storybook/react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
component: ({ size, status, haltedAt }: import("./InvitationStatusAvatar").InvitationStatusAvatarProps) => JSX.Element;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
decorators: ((Story: StoryFn) => JSX.Element)[];
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=InvitationStatusAvatar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationStatusAvatar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/InvitationList/InvitationStatusAvatar.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;;;;AAsB3C,wBAEE;AAEF,eAAO,MAAM,OAAO;yBAER,OAAO;CAoBlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/InvitationList/index.ts"],"names":[],"mappings":"AAIA,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanelSeparator.d.ts","sourceRoot":"","sources":["../../../../../src/components/PanelSeparator/PanelSeparator.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI9C,eAAO,MAAM,cAAc,4BAA6B,eAAe,MAAM,CAAC,gBAQ7E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/PanelSeparator/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PanelAlertDialogProps } from '../../layouts';
|
|
2
|
+
import { JoinPanelProps } from '../../panels';
|
|
3
|
+
export interface JoinDialogProps extends Omit<PanelAlertDialogProps, 'titleId' | 'children'>, JoinPanelProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const JoinDialog: ({ slots, ...joinPanelProps }: JoinDialogProps) => JSX.Element;
|
|
6
|
+
//# sourceMappingURL=JoinDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoinDialog.d.ts","sourceRoot":"","sources":["../../../../../src/composites/JoinDialog/JoinDialog.tsx"],"names":[],"mappings":"AASA,OAAO,EAAoB,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,SAAS,GAAG,UAAU,CAAC,EAAE,cAAc;CAAG;AAE/G,eAAO,MAAM,UAAU,iCAAkC,eAAe,gBAgBvE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@dxosTheme';
|
|
2
|
+
import { StoryFn } from '@storybook/react';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
component: ({ slots, ...joinPanelProps }: import("./JoinDialog").JoinDialogProps) => JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: {
|
|
8
|
+
decorators: ((Story: StoryFn) => JSX.Element)[];
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=JoinDialog.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoinDialog.stories.d.ts","sourceRoot":"","sources":["../../../../../src/composites/JoinDialog/JoinDialog.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;;;;AAY3C,wBAEE;AACF,eAAO,MAAM,OAAO;yBAER,OAAO;CAwDlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/composites/JoinDialog/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/composites/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/composites/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as AlertDialog from '@radix-ui/react-alert-dialog';
|
|
2
|
+
import { ComponentPropsWithoutRef, PropsWithChildren } from 'react';
|
|
3
|
+
export interface PanelAlertDialogSlots {
|
|
4
|
+
root: ComponentPropsWithoutRef<typeof AlertDialog.Root>;
|
|
5
|
+
overlay: ComponentPropsWithoutRef<typeof AlertDialog.Overlay>;
|
|
6
|
+
content: ComponentPropsWithoutRef<typeof AlertDialog.Content>;
|
|
7
|
+
trigger: ComponentPropsWithoutRef<typeof AlertDialog.Trigger>;
|
|
8
|
+
}
|
|
9
|
+
export declare type PanelAlertDialogProps = PropsWithChildren<{
|
|
10
|
+
titleId: string;
|
|
11
|
+
slots?: Partial<PanelAlertDialogSlots>;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const PanelAlertDialog: ({ titleId, slots, children }: PanelAlertDialogProps) => JSX.Element;
|
|
14
|
+
//# sourceMappingURL=PanelAlertDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanelAlertDialog.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/PanelAlertDialog/PanelAlertDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,8BAA8B,CAAC;AAC5D,OAAc,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI3E,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,wBAAwB,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;IACxD,OAAO,EAAE,wBAAwB,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9D,OAAO,EAAE,wBAAwB,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9D,OAAO,EAAE,wBAAwB,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC;CAC/D;AAED,oBAAY,qBAAqB,GAAG,iBAAiB,CAAC;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACxC,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,iCAAuC,qBAAqB,gBAsBxF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/PanelAlertDialog/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC"}
|
|
@@ -9,12 +9,11 @@ export declare const PanelSidebarContext: React.Context<PanelSidebarContextValue
|
|
|
9
9
|
export declare const useTogglePanelSidebar: () => () => void;
|
|
10
10
|
export interface PanelSidebarProviderSlots {
|
|
11
11
|
content?: ComponentProps<typeof DialogPrimitive.Content>;
|
|
12
|
-
|
|
13
|
-
fixedBlockEnd?: ComponentProps<'div'>;
|
|
12
|
+
main?: ComponentProps<'div'>;
|
|
14
13
|
}
|
|
15
14
|
export interface PanelSidebarProviderProps {
|
|
16
15
|
inlineStart?: boolean;
|
|
17
16
|
slots?: PanelSidebarProviderSlots;
|
|
18
17
|
}
|
|
19
|
-
export declare const PanelSidebarProvider: ({ children,
|
|
18
|
+
export declare const PanelSidebarProvider: ({ children, slots }: PropsWithChildren<PanelSidebarProviderProps>) => JSX.Element;
|
|
20
19
|
//# sourceMappingURL=PanelSidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelSidebar.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/PanelSidebar/PanelSidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,EACZ,cAAc,EAEd,QAAQ,EACR,iB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AAyB,kBAAkB,yBAAyB,CAAC,gBA0ErG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layouts/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layouts/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { cloneElement } from 'react';
|
|
2
|
+
import { AuthenticatingInvitationObservable } from '@dxos/client';
|
|
3
|
+
export interface JoinSpaceHeadingProps {
|
|
4
|
+
titleId: string;
|
|
5
|
+
invitation?: AuthenticatingInvitationObservable;
|
|
6
|
+
onExit?: () => void;
|
|
7
|
+
exitActionParent?: Parameters<typeof cloneElement>[0];
|
|
8
|
+
}
|
|
9
|
+
export declare const JoinHeading: React.ForwardRefExoticComponent<JoinSpaceHeadingProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
//# sourceMappingURL=JoinHeading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoinHeading.d.ts","sourceRoot":"","sources":["../../../../../src/panels/JoinPanel/JoinHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,YAAY,EAA4B,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AAMlE,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,kCAAkC,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;CACvD;AAED,eAAO,MAAM,WAAW,8FAqCvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoinPanel.d.ts","sourceRoot":"","sources":["../../../../../src/panels/JoinPanel/JoinPanel.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAc,cAAc,EAAa,MAAM,kBAAkB,CAAC;AAYzE,eAAO,MAAM,SAAS,yGAOnB,cAAc,gBAgRhB,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { cloneElement, Dispatch } from 'react';
|
|
2
|
+
import type { AuthenticatingInvitationObservable, Profile as NaturalProfile, Space as NaturalSpace } from '@dxos/client';
|
|
3
|
+
import { InvitationResult } from '@dxos/react-client';
|
|
4
|
+
export declare type Space = Pick<NaturalSpace, 'properties'>;
|
|
5
|
+
export declare type Profile = Pick<NaturalProfile, 'displayName' | 'identityKey'>;
|
|
6
|
+
export interface JoinPanelProps {
|
|
7
|
+
initialInvitationCode?: string;
|
|
8
|
+
titleId?: string;
|
|
9
|
+
exitActionParent?: Parameters<typeof cloneElement>[0];
|
|
10
|
+
onExit?: () => void;
|
|
11
|
+
doneActionParent?: Parameters<typeof cloneElement>[0];
|
|
12
|
+
onDone?: (result: InvitationResult | null) => void;
|
|
13
|
+
parseInvitationCodeInput?: (invitationCodeInput: string) => string;
|
|
14
|
+
}
|
|
15
|
+
export interface IdentityAction {
|
|
16
|
+
type: 'select identity' | 'added identity';
|
|
17
|
+
identity: Profile;
|
|
18
|
+
}
|
|
19
|
+
export interface EmptyJoinAction {
|
|
20
|
+
type: 'deselect identity' | 'cancel addition' | 'add identity';
|
|
21
|
+
}
|
|
22
|
+
export interface EmptyInvitationAction {
|
|
23
|
+
type: 'authenticating invitation' | 'authenticate invitation' | 'cancel invitation' | 'cancelled invitation' | 'connect invitation' | 'fail invitation' | 'accepted invitation' | 'timeout invitation' | 'reset invitation';
|
|
24
|
+
from: 'space' | 'halo';
|
|
25
|
+
}
|
|
26
|
+
export interface InvitationCodeAction {
|
|
27
|
+
type: 'connecting invitation';
|
|
28
|
+
from: 'space' | 'halo';
|
|
29
|
+
invitation: AuthenticatingInvitationObservable;
|
|
30
|
+
}
|
|
31
|
+
export declare type InvitationAction = EmptyInvitationAction | InvitationCodeAction;
|
|
32
|
+
export interface AdditionMethodAction {
|
|
33
|
+
type: 'select addition method';
|
|
34
|
+
method: 'recover identity' | 'accept device invitation' | 'create identity';
|
|
35
|
+
}
|
|
36
|
+
export declare type JoinAction = IdentityAction | EmptyJoinAction | AdditionMethodAction | InvitationAction;
|
|
37
|
+
export declare type JoinDispatch = Dispatch<JoinAction>;
|
|
38
|
+
export declare type InvitationView = 'invitation input' | 'invitation rescuer' | 'invitation authenticator' | 'invitation accepted';
|
|
39
|
+
export declare type JoinView = 'identity selector' | 'addition method selector' | 'identity input' | 'identity added' | 'space invitation acceptor' | 'halo invitation acceptor';
|
|
40
|
+
export interface JoinState {
|
|
41
|
+
activeView: JoinView;
|
|
42
|
+
unredeemedSpaceInvitationCode?: string;
|
|
43
|
+
spaceInvitation?: AuthenticatingInvitationObservable;
|
|
44
|
+
spaceViewState: InvitationView;
|
|
45
|
+
spaceInvitationAnnotation?: 'authenticating' | 'authentication failed';
|
|
46
|
+
unredeemedHaloInvitationCode?: string;
|
|
47
|
+
haloInvitation?: AuthenticatingInvitationObservable;
|
|
48
|
+
haloViewState: InvitationView;
|
|
49
|
+
haloInvitationAnnotation?: 'authenticating' | 'authentication failed';
|
|
50
|
+
selectedIdentity?: Profile;
|
|
51
|
+
additionMethod?: AdditionMethodAction['method'];
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=JoinPanelProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoinPanelProps.d.ts","sourceRoot":"","sources":["../../../../../src/panels/JoinPanel/JoinPanelProps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE/C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,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Profile } from '../JoinPanelProps';
|
|
2
|
+
import { ViewStateProps } from './ViewState';
|
|
3
|
+
export interface AdditionMethodSelectorProps extends ViewStateProps {
|
|
4
|
+
availableIdentities: Profile[];
|
|
5
|
+
}
|
|
6
|
+
export declare const AdditionMethodSelector: ({ availableIdentities, ...viewStateProps }: AdditionMethodSelectorProps) => JSX.Element;
|
|
7
|
+
//# sourceMappingURL=AdditionMethodSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdditionMethodSelector.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/view-states/AdditionMethodSelector.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAA+B,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1E,MAAM,WAAW,2BAA4B,SAAQ,cAAc;IACjE,mBAAmB,EAAE,OAAO,EAAE,CAAC;CAChC;AAED,eAAO,MAAM,sBAAsB,+CAAgD,2BAA2B,gBAoD7G,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Profile } from '@dxos/client';
|
|
2
|
+
import { ViewStateProps } from './ViewState';
|
|
3
|
+
export interface IdentityAddedProps extends ViewStateProps {
|
|
4
|
+
addedIdentity?: Profile;
|
|
5
|
+
}
|
|
6
|
+
export declare const IdentityAdded: ({ addedIdentity, ...viewStateProps }: IdentityAddedProps) => JSX.Element;
|
|
7
|
+
//# sourceMappingURL=IdentityAdded.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityAdded.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/view-states/IdentityAdded.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG5C,OAAO,EAA+B,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1E,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,aAAa,yCAA0C,kBAAkB,gBA2CrF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ViewStateProps } from './ViewState';
|
|
2
|
+
export interface IdentityCreatorProps extends ViewStateProps {
|
|
3
|
+
method: 'recover identity' | 'create identity';
|
|
4
|
+
}
|
|
5
|
+
export declare const IdentityInput: ({ method, ...viewStateProps }: IdentityCreatorProps) => JSX.Element;
|
|
6
|
+
//# sourceMappingURL=IdentityInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityInput.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/view-states/IdentityInput.tsx"],"names":[],"mappings":"AAUA,OAAO,EAA+B,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1E,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,MAAM,EAAE,kBAAkB,GAAG,iBAAiB,CAAC;CAChD;AAED,eAAO,MAAM,aAAa,kCAAmC,oBAAoB,gBAuDhF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Profile } from '../JoinPanelProps';
|
|
2
|
+
import { ViewStateProps } from './ViewState';
|
|
3
|
+
export interface IdentitySelectorProps extends ViewStateProps {
|
|
4
|
+
availableIdentities: Profile[];
|
|
5
|
+
}
|
|
6
|
+
export declare const IdentitySelector: ({ availableIdentities, ...viewStateProps }: IdentitySelectorProps) => JSX.Element;
|
|
7
|
+
//# sourceMappingURL=IdentitySelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentitySelector.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/view-states/IdentitySelector.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAA+B,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1E,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D,mBAAmB,EAAE,OAAO,EAAE,CAAC;CAChC;AAED,eAAO,MAAM,gBAAgB,+CAAgD,qBAAqB,gBAgFjG,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { cloneElement } from 'react';
|
|
2
|
+
import { InvitationResult } from '@dxos/react-client';
|
|
3
|
+
import { ViewStateProps } from './ViewState';
|
|
4
|
+
export interface InvitationAcceptedProps extends ViewStateProps {
|
|
5
|
+
invitationType: 'space' | 'halo';
|
|
6
|
+
doneActionParent?: Parameters<typeof cloneElement>[0];
|
|
7
|
+
onDone?: (result: InvitationResult | null) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const InvitationAccepted: (props: InvitationAcceptedProps) => JSX.Element;
|
|
10
|
+
//# sourceMappingURL=InvitationAccepted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationAccepted.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/view-states/InvitationAccepted.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,gBAAgB,EAAuB,MAAM,oBAAoB,CAAC;AAG3E,OAAO,EAAa,cAAc,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,cAAc,EAAE,OAAO,GAAG,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;CACpD;AAiCD,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,gBAkBhE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ViewStateProps } from './ViewState';
|
|
2
|
+
export interface InvitationAuthenticatorProps extends ViewStateProps {
|
|
3
|
+
invitationType: 'space' | 'halo';
|
|
4
|
+
failed?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const InvitationAuthenticator: ({ invitationType, failed, ...viewStateProps }: InvitationAuthenticatorProps) => JSX.Element;
|
|
7
|
+
//# sourceMappingURL=InvitationAuthenticator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationAuthenticator.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/view-states/InvitationAuthenticator.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAa,cAAc,EAAE,MAAM,aAAa,CAAC;AAIxD,MAAM,WAAW,4BAA6B,SAAQ,cAAc;IAClE,cAAc,EAAE,OAAO,GAAG,MAAM,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAoGD,eAAO,MAAM,uBAAuB,kDAIjC,4BAA4B,gBAgB9B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ViewStateProps } from './ViewState';
|
|
2
|
+
export interface InvitationInputProps extends ViewStateProps {
|
|
3
|
+
invitationType: 'space' | 'halo';
|
|
4
|
+
}
|
|
5
|
+
export declare const InvitationInput: ({ invitationType, ...viewStateProps }: InvitationInputProps) => JSX.Element;
|
|
6
|
+
//# sourceMappingURL=InvitationInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationInput.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/view-states/InvitationInput.tsx"],"names":[],"mappings":"AAWA,OAAO,EAA+B,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1E,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,cAAc,EAAE,OAAO,GAAG,MAAM,CAAC;CAClC;AAED,eAAO,MAAM,eAAe,0CAA2C,oBAAoB,gBAkD1F,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ViewStateProps } from './ViewState';
|
|
2
|
+
export interface InvitationConnectorProps extends ViewStateProps {
|
|
3
|
+
invitationType: 'space' | 'halo';
|
|
4
|
+
}
|
|
5
|
+
export declare const InvitationRescuer: ({ invitationType, ...viewStateProps }: InvitationConnectorProps) => JSX.Element;
|
|
6
|
+
//# sourceMappingURL=InvitationRescuer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvitationRescuer.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/view-states/InvitationRescuer.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAa,cAAc,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC9D,cAAc,EAAE,OAAO,GAAG,MAAM,CAAC;CAClC;AA0DD,eAAO,MAAM,iBAAiB,0CAA2C,wBAAwB,gBAqBhG,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { AuthenticatingInvitationObservable, Profile } from '@dxos/client';
|
|
3
|
+
import { JoinDispatch } from '../JoinPanelProps';
|
|
4
|
+
export interface ViewStateProps extends ComponentProps<'div'> {
|
|
5
|
+
active: boolean;
|
|
6
|
+
dispatch: JoinDispatch;
|
|
7
|
+
selectedIdentity?: true | Profile;
|
|
8
|
+
activeInvitation?: true | AuthenticatingInvitationObservable;
|
|
9
|
+
}
|
|
10
|
+
export declare const ViewStateHeading: ({ children, className, ...props }: ComponentPropsWithoutRef<'h2'>) => JSX.Element;
|
|
11
|
+
export declare const ViewState: ({ active, children, className, dispatch, selectedIdentity, activeInvitation, ...props }: ViewStateProps) => JSX.Element;
|
|
12
|
+
//# sourceMappingURL=ViewState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewState.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/view-states/ViewState.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,wBAAwB,EAAsB,MAAM,OAAO,CAAC;AAE5F,OAAO,KAAK,EAAE,kCAAkC,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAOhF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC3D,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,YAAY,CAAC;IACvB,gBAAgB,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC;IAClC,gBAAgB,CAAC,EAAE,IAAI,GAAG,kCAAkC,CAAC;CAC9D;AAID,eAAO,MAAM,gBAAgB,sCAAuC,yBAAyB,IAAI,CAAC,gBAMjG,CAAC;AA2GF,eAAO,MAAM,SAAS,4FAQnB,cAAc,gBAyDhB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './AdditionMethodSelector';
|
|
2
|
+
export * from './IdentityAdded';
|
|
3
|
+
export * from './IdentitySelector';
|
|
4
|
+
export * from './IdentityInput';
|
|
5
|
+
export * from './InvitationAccepted';
|
|
6
|
+
export * from './InvitationInput';
|
|
7
|
+
export * from './InvitationRescuer';
|
|
8
|
+
export * from './InvitationAuthenticator';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/view-states/index.ts"],"names":[],"mappings":"AAIA,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/panels/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/panels/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/styles/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/styles/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Invitation } from '@dxos/client';
|
|
2
|
+
export declare const inactiveBgColor = "bg-neutral-100 dark:bg-neutral-600";
|
|
3
|
+
export declare const activeBgColor = "bg-primary-500 dark:bg-primary-400";
|
|
4
|
+
export declare const successBgColor = "bg-success-500 dark:bg-success-400";
|
|
5
|
+
export declare const errorBgColor = "bg-error-500 dark:bg-error-400";
|
|
6
|
+
export declare const cancelledBgColor = "bg-warning-500 dark:bg-warning-400";
|
|
7
|
+
export declare const inactiveTextColor = "text-neutral-100 dark:text-neutral-600";
|
|
8
|
+
export declare const activeTextColor = "text-primary-400 dark:text-primary-500";
|
|
9
|
+
export declare const successTextColor = "text-success-400 dark:text-success-500";
|
|
10
|
+
export declare const errorTextColor = "text-error-400 dark:text-error-500";
|
|
11
|
+
export declare const cancelledTextColor = "text-warning-400 dark:text-warning-500";
|
|
12
|
+
export declare const inactiveStrokeColor = "stroke-neutral-100 dark:stroke-neutral-700";
|
|
13
|
+
export declare const activeStrokeColor = "stroke-primary-500 dark:stroke-primary-150";
|
|
14
|
+
export declare const successStrokeColor = "stroke-success-400 dark:stroke-primary-400";
|
|
15
|
+
export declare const errorStrokeColor = "stroke-error-400 dark:stroke-error-500";
|
|
16
|
+
export declare const cancelledStrokeColor = "stroke-warning-400 dark:stroke-warning-500";
|
|
17
|
+
export declare const resolvedStrokeColor: (status: Invitation.State) => "stroke-success-400 dark:stroke-primary-400" | "stroke-error-400 dark:stroke-error-500" | "stroke-warning-400 dark:stroke-warning-500";
|
|
18
|
+
export declare const resolvedBgColor: (status: Invitation.State) => "bg-success-500 dark:bg-success-400" | "bg-error-500 dark:bg-error-400" | "bg-warning-500 dark:bg-warning-400";
|
|
19
|
+
export declare const resolvedTextColor: (status: Invitation.State) => "text-success-400 dark:text-success-500" | "text-error-400 dark:text-error-500" | "text-warning-400 dark:text-warning-500";
|
|
20
|
+
//# sourceMappingURL=invitationStatusStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invitationStatusStyles.d.ts","sourceRoot":"","sources":["../../../../src/styles/invitationStatusStyles.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,eAAe,uCAAuC,CAAC;AACpE,eAAO,MAAM,aAAa,uCAAuC,CAAC;AAClE,eAAO,MAAM,cAAc,uCAAuC,CAAC;AACnE,eAAO,MAAM,YAAY,mCAAmC,CAAC;AAC7D,eAAO,MAAM,gBAAgB,uCAAuC,CAAC;AAErE,eAAO,MAAM,iBAAiB,2CAA2C,CAAC;AAC1E,eAAO,MAAM,eAAe,2CAA2C,CAAC;AACxE,eAAO,MAAM,gBAAgB,2CAA2C,CAAC;AACzE,eAAO,MAAM,cAAc,uCAAuC,CAAC;AACnE,eAAO,MAAM,kBAAkB,2CAA2C,CAAC;AAE3E,eAAO,MAAM,mBAAmB,+CAA+C,CAAC;AAChF,eAAO,MAAM,iBAAiB,+CAA+C,CAAC;AAC9E,eAAO,MAAM,kBAAkB,+CAA+C,CAAC;AAC/E,eAAO,MAAM,gBAAgB,2CAA2C,CAAC;AACzE,eAAO,MAAM,oBAAoB,+CAA+C,CAAC;AAEjF,eAAO,MAAM,mBAAmB,WAAY,WAAW,KAAK,2IAKpC,CAAC;AACzB,eAAO,MAAM,eAAe,WAAY,WAAW,KAAK,mHAKpC,CAAC;AACrB,eAAO,MAAM,iBAAiB,WAAY,WAAW,KAAK,+HAKpC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const defaultSurface = "bg-neutral-50/[.72] dark:bg-neutral-950/[.72]";
|
|
2
|
+
export declare const subduedSurface = "bg-neutral-100/[.66] dark:bg-neutral-900/[.66]";
|
|
2
3
|
export declare const defaultArrow = "text-neutral-50/[.66] dark:text-neutral-950/[.66]";
|
|
3
4
|
//# sourceMappingURL=panelStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panelStyles.d.ts","sourceRoot":"","sources":["../../../../src/styles/panelStyles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"panelStyles.d.ts","sourceRoot":"","sources":["../../../../src/styles/panelStyles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,kDAAkD,CAAC;AAC9E,eAAO,MAAM,cAAc,mDAAmD,CAAC;AAC/E,eAAO,MAAM,YAAY,sDAAsD,CAAC"}
|