@orthacms/workspaces-admin 0.4.3 → 0.5.0
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/application/useDeleteWorkspace/index.d.ts +1 -1
- package/dist/lib/application/useDeleteWorkspace/index.js +1 -1
- package/dist/lib/domain/slug/index.spec.d.ts +2 -0
- package/dist/lib/domain/slug/index.spec.d.ts.map +1 -0
- package/dist/lib/domain/slug/index.spec.js +50 -0
- package/dist/lib/presentation/components/WorkspaceMembersSettings/MemberListRow/index.d.ts.map +1 -1
- package/dist/lib/presentation/components/WorkspaceMembersSettings/MemberListRow/index.js +1 -1
- package/dist/lib/presentation/components/WorkspaceMembersSettings/index.d.ts.map +1 -1
- package/dist/lib/presentation/components/WorkspaceMembersSettings/index.js +40 -4
- package/dist/lib/presentation/components/WorkspacesEmpty/index.d.ts +1 -1
- package/dist/lib/presentation/components/WorkspacesEmpty/index.js +1 -1
- package/dist/lib/presentation/components/WorkspacesNavSection/index.d.ts.map +1 -1
- package/dist/lib/presentation/components/WorkspacesNavSection/index.js +18 -4
- package/dist/lib/presentation/pages/WorkspacesPage/index.d.ts +2 -2
- package/dist/lib/presentation/pages/WorkspacesPage/index.js +3 -3
- package/dist/lib/presentation/workspacesPlugin/index.d.ts +14 -7
- package/dist/lib/presentation/workspacesPlugin/index.d.ts.map +1 -1
- package/dist/lib/presentation/workspacesPlugin/index.js +14 -7
- package/package.json +6 -6
- package/dist/lib/api/useAddWorkspaceContent/index.d.ts +0 -15
- package/dist/lib/api/useAddWorkspaceContent/index.d.ts.map +0 -1
- package/dist/lib/api/useAddWorkspaceMember/index.d.ts +0 -14
- package/dist/lib/api/useAddWorkspaceMember/index.d.ts.map +0 -1
- package/dist/lib/api/useContentTypes/index.d.ts +0 -10
- package/dist/lib/api/useContentTypes/index.d.ts.map +0 -1
- package/dist/lib/api/useCreateWorkspace/index.d.ts +0 -20
- package/dist/lib/api/useCreateWorkspace/index.d.ts.map +0 -1
- package/dist/lib/api/useDeleteWorkspace/index.d.ts +0 -13
- package/dist/lib/api/useDeleteWorkspace/index.d.ts.map +0 -1
- package/dist/lib/api/useRemoveWorkspaceContent/index.d.ts +0 -15
- package/dist/lib/api/useRemoveWorkspaceContent/index.d.ts.map +0 -1
- package/dist/lib/api/useRemoveWorkspaceMember/index.d.ts +0 -13
- package/dist/lib/api/useRemoveWorkspaceMember/index.d.ts.map +0 -1
- package/dist/lib/api/useSetWorkspaceStatus/index.d.ts +0 -14
- package/dist/lib/api/useSetWorkspaceStatus/index.d.ts.map +0 -1
- package/dist/lib/api/useSlugAvailability/index.d.ts +0 -10
- package/dist/lib/api/useSlugAvailability/index.d.ts.map +0 -1
- package/dist/lib/api/useUpdateWorkspace/index.d.ts +0 -23
- package/dist/lib/api/useUpdateWorkspace/index.d.ts.map +0 -1
- package/dist/lib/api/useUsersSearch/index.d.ts +0 -17
- package/dist/lib/api/useUsersSearch/index.d.ts.map +0 -1
- package/dist/lib/api/useWorkspaceContentCount/index.d.ts +0 -8
- package/dist/lib/api/useWorkspaceContentCount/index.d.ts.map +0 -1
- package/dist/lib/api/useWorkspaceEntryCount/index.d.ts +0 -8
- package/dist/lib/api/useWorkspaceEntryCount/index.d.ts.map +0 -1
- package/dist/lib/api/useWorkspaces/index.d.ts +0 -30
- package/dist/lib/api/useWorkspaces/index.d.ts.map +0 -1
- package/dist/lib/components/BlockingConfirmDialog/index.d.ts +0 -41
- package/dist/lib/components/BlockingConfirmDialog/index.d.ts.map +0 -1
- package/dist/lib/components/ColorSwatchRow/index.d.ts +0 -15
- package/dist/lib/components/ColorSwatchRow/index.d.ts.map +0 -1
- package/dist/lib/components/CreateWorkspaceWizard/ColorSwatchRow/index.d.ts +0 -15
- package/dist/lib/components/CreateWorkspaceWizard/ColorSwatchRow/index.d.ts.map +0 -1
- package/dist/lib/components/CreateWorkspaceWizard/ContentStep/ModeTiles/index.d.ts +0 -11
- package/dist/lib/components/CreateWorkspaceWizard/ContentStep/ModeTiles/index.d.ts.map +0 -1
- package/dist/lib/components/CreateWorkspaceWizard/ContentStep/ResourceSection/index.d.ts +0 -48
- package/dist/lib/components/CreateWorkspaceWizard/ContentStep/ResourceSection/index.d.ts.map +0 -1
- package/dist/lib/components/CreateWorkspaceWizard/ContentStep/index.d.ts +0 -23
- package/dist/lib/components/CreateWorkspaceWizard/ContentStep/index.d.ts.map +0 -1
- package/dist/lib/components/CreateWorkspaceWizard/IdentityFields/index.d.ts +0 -17
- package/dist/lib/components/CreateWorkspaceWizard/IdentityFields/index.d.ts.map +0 -1
- package/dist/lib/components/CreateWorkspaceWizard/MembersStep/MemberRow/index.d.ts +0 -14
- package/dist/lib/components/CreateWorkspaceWizard/MembersStep/MemberRow/index.d.ts.map +0 -1
- package/dist/lib/components/CreateWorkspaceWizard/MembersStep/MemberTypeahead/index.d.ts +0 -15
- package/dist/lib/components/CreateWorkspaceWizard/MembersStep/MemberTypeahead/index.d.ts.map +0 -1
- package/dist/lib/components/CreateWorkspaceWizard/MembersStep/index.d.ts +0 -17
- package/dist/lib/components/CreateWorkspaceWizard/MembersStep/index.d.ts.map +0 -1
- package/dist/lib/components/CreateWorkspaceWizard/Monogram/index.d.ts +0 -17
- package/dist/lib/components/CreateWorkspaceWizard/Monogram/index.d.ts.map +0 -1
- package/dist/lib/components/CreateWorkspaceWizard/SlugField/index.d.ts +0 -23
- package/dist/lib/components/CreateWorkspaceWizard/SlugField/index.d.ts.map +0 -1
- package/dist/lib/components/StatusChip/index.d.ts +0 -9
- package/dist/lib/components/StatusChip/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceAvatar/index.d.ts +0 -20
- package/dist/lib/components/WorkspaceAvatar/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceCard/MemberStack/MemberListPopover/index.d.ts +0 -9
- package/dist/lib/components/WorkspaceCard/MemberStack/MemberListPopover/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceCard/MemberStack/index.d.ts +0 -11
- package/dist/lib/components/WorkspaceCard/MemberStack/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceCard/StatusChip/index.d.ts +0 -9
- package/dist/lib/components/WorkspaceCard/StatusChip/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceCard/index.d.ts +0 -15
- package/dist/lib/components/WorkspaceCard/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceCommands/index.d.ts +0 -8
- package/dist/lib/components/WorkspaceCommands/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceContentSettings/AddContentDialog/index.d.ts +0 -26
- package/dist/lib/components/WorkspaceContentSettings/AddContentDialog/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceContentSettings/GrantedContentGroup/index.d.ts +0 -21
- package/dist/lib/components/WorkspaceContentSettings/GrantedContentGroup/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceContentSettings/GrantedContentRow/index.d.ts +0 -26
- package/dist/lib/components/WorkspaceContentSettings/GrantedContentRow/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceContentSettings/RemoveContentDialog/index.d.ts +0 -25
- package/dist/lib/components/WorkspaceContentSettings/RemoveContentDialog/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceContentSettings/index.d.ts +0 -25
- package/dist/lib/components/WorkspaceContentSettings/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceDangerSettings/DeleteWorkspaceDialog/index.d.ts +0 -22
- package/dist/lib/components/WorkspaceDangerSettings/DeleteWorkspaceDialog/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceDangerSettings/index.d.ts +0 -18
- package/dist/lib/components/WorkspaceDangerSettings/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceGeneralSettings/index.d.ts +0 -18
- package/dist/lib/components/WorkspaceGeneralSettings/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceMembersSettings/MemberDirectorySearch/index.d.ts +0 -18
- package/dist/lib/components/WorkspaceMembersSettings/MemberDirectorySearch/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceMembersSettings/MemberListRow/index.d.ts +0 -17
- package/dist/lib/components/WorkspaceMembersSettings/MemberListRow/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceMembersSettings/index.d.ts +0 -16
- package/dist/lib/components/WorkspaceMembersSettings/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceNav/WorkspaceNavButton/index.d.ts +0 -14
- package/dist/lib/components/WorkspaceNav/WorkspaceNavButton/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceNav/WorkspaceSwitcher/index.d.ts +0 -16
- package/dist/lib/components/WorkspaceNav/WorkspaceSwitcher/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceNav/index.d.ts +0 -14
- package/dist/lib/components/WorkspaceNav/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceSettingsRail/index.d.ts +0 -14
- package/dist/lib/components/WorkspaceSettingsRail/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceSettingsTabs/index.d.ts +0 -14
- package/dist/lib/components/WorkspaceSettingsTabs/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceSettingsTopBar/index.d.ts +0 -8
- package/dist/lib/components/WorkspaceSettingsTopBar/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceShell/NewWorkspaceButton/index.d.ts +0 -7
- package/dist/lib/components/WorkspaceShell/NewWorkspaceButton/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceShell/RailTooltip/index.d.ts +0 -22
- package/dist/lib/components/WorkspaceShell/RailTooltip/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceShell/WorkspaceRail/index.d.ts +0 -17
- package/dist/lib/components/WorkspaceShell/WorkspaceRail/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceShell/WorkspaceSidebarButton/index.d.ts +0 -17
- package/dist/lib/components/WorkspaceShell/WorkspaceSidebarButton/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/WorkspaceSwitcherPopover/index.d.ts +0 -26
- package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/WorkspaceSwitcherPopover/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/index.d.ts +0 -17
- package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceShell/index.d.ts +0 -16
- package/dist/lib/components/WorkspaceShell/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceStats/index.d.ts +0 -9
- package/dist/lib/components/WorkspaceStats/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspaceToolbar/index.d.ts +0 -22
- package/dist/lib/components/WorkspaceToolbar/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspacesEmpty/index.d.ts +0 -18
- package/dist/lib/components/WorkspacesEmpty/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspacesHomePanel/index.d.ts +0 -7
- package/dist/lib/components/WorkspacesHomePanel/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspacesNavSection/index.d.ts +0 -9
- package/dist/lib/components/WorkspacesNavSection/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspacesSkeleton/index.d.ts +0 -36
- package/dist/lib/components/WorkspacesSkeleton/index.d.ts.map +0 -1
- package/dist/lib/components/WorkspacesTable/index.d.ts +0 -12
- package/dist/lib/components/WorkspacesTable/index.d.ts.map +0 -1
- package/dist/lib/hooks/useBasicsSchema/index.d.ts +0 -14
- package/dist/lib/hooks/useBasicsSchema/index.d.ts.map +0 -1
- package/dist/lib/hooks/useResourceSelection/index.d.ts +0 -21
- package/dist/lib/hooks/useResourceSelection/index.d.ts.map +0 -1
- package/dist/lib/hooks/useSlug/index.d.ts +0 -28
- package/dist/lib/hooks/useSlug/index.d.ts.map +0 -1
- package/dist/lib/hooks/useWizard/index.d.ts +0 -57
- package/dist/lib/hooks/useWizard/index.d.ts.map +0 -1
- package/dist/lib/hooks/useWorkspaceProfileSchema/index.d.ts +0 -13
- package/dist/lib/hooks/useWorkspaceProfileSchema/index.d.ts.map +0 -1
- package/dist/lib/pages/CreateWorkspacePage/index.d.ts +0 -7
- package/dist/lib/pages/CreateWorkspacePage/index.d.ts.map +0 -1
- package/dist/lib/pages/WorkspaceSettingsPage/index.d.ts +0 -12
- package/dist/lib/pages/WorkspaceSettingsPage/index.d.ts.map +0 -1
- package/dist/lib/pages/WorkspacesPage/index.d.ts +0 -7
- package/dist/lib/pages/WorkspacesPage/index.d.ts.map +0 -1
- package/dist/lib/slots/workspaceSlots/index.d.ts +0 -101
- package/dist/lib/slots/workspaceSlots/index.d.ts.map +0 -1
- package/dist/lib/types/wizard/index.d.ts +0 -119
- package/dist/lib/types/wizard/index.d.ts.map +0 -1
- package/dist/lib/types/workspace/index.d.ts +0 -42
- package/dist/lib/types/workspace/index.d.ts.map +0 -1
- package/dist/lib/utils/buildCreateWorkspaceBody/index.d.ts +0 -12
- package/dist/lib/utils/buildCreateWorkspaceBody/index.d.ts.map +0 -1
- package/dist/lib/utils/currentWorkspace/index.d.ts +0 -17
- package/dist/lib/utils/currentWorkspace/index.d.ts.map +0 -1
- package/dist/lib/utils/isActiveWorkspace/index.d.ts +0 -9
- package/dist/lib/utils/isActiveWorkspace/index.d.ts.map +0 -1
- package/dist/lib/utils/isConflict/index.d.ts +0 -8
- package/dist/lib/utils/isConflict/index.d.ts.map +0 -1
- package/dist/lib/utils/permissions/index.d.ts +0 -7
- package/dist/lib/utils/permissions/index.d.ts.map +0 -1
- package/dist/lib/utils/radioGroupKeydown/index.d.ts +0 -15
- package/dist/lib/utils/radioGroupKeydown/index.d.ts.map +0 -1
- package/dist/lib/utils/resourceSelection/index.d.ts +0 -18
- package/dist/lib/utils/resourceSelection/index.d.ts.map +0 -1
- package/dist/lib/utils/workspacesPlugin/index.d.ts +0 -31
- package/dist/lib/utils/workspacesPlugin/index.d.ts.map +0 -1
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/** Props for {@link RemoveContentDialog}. */
|
|
2
|
-
export type RemoveContentDialogProps = {
|
|
3
|
-
/** The workspace the grant belongs to. */
|
|
4
|
-
workspaceId: string;
|
|
5
|
-
/** The slug being revoked, or `null` when the dialog is closed. */
|
|
6
|
-
slug: string | null;
|
|
7
|
-
/** Human label for the type (falls back to the slug). */
|
|
8
|
-
label: string;
|
|
9
|
-
/** Close callback; ignored while a revoke is in flight. */
|
|
10
|
-
onClose: () => void;
|
|
11
|
-
/** Runs the revoke (only reachable when the type is empty). */
|
|
12
|
-
onConfirm: () => void;
|
|
13
|
-
/** Whether the revoke is in flight. */
|
|
14
|
-
busy?: boolean;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Confirm dialog for revoking a content-type grant. On open it reads the type's
|
|
18
|
-
* entry count in the workspace and **blocks** the Remove button with a warning
|
|
19
|
-
* when the type isn't empty — so the user learns *why* up front instead of
|
|
20
|
-
* hitting the server's 409. Remove is enabled only once the count is known to be
|
|
21
|
-
* zero. The checking / error / blocked chrome lives in the shared
|
|
22
|
-
* {@link BlockingConfirmDialog}.
|
|
23
|
-
*/
|
|
24
|
-
export declare function RemoveContentDialog({ workspaceId, slug, label, onClose, onConfirm, busy }: RemoveContentDialogProps): import("react").JSX.Element;
|
|
25
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceContentSettings/RemoveContentDialog/index.tsx"],"names":[],"mappings":"AAsCA,6CAA6C;AAC7C,MAAM,MAAM,wBAAwB,GAAG;IACnC,0CAA0C;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,+DAA+D;IAC/D,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,uCAAuC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,WAAW,EACX,IAAI,EACJ,KAAK,EACL,OAAO,EACP,SAAS,EACT,IAAY,EACf,EAAE,wBAAwB,+BA2B1B"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from '../../types/workspace';
|
|
2
|
-
import type { ContentType } from '../../types/wizard';
|
|
3
|
-
/**
|
|
4
|
-
* Classifies a content type as a **page** (a standalone `single`) rather than a
|
|
5
|
-
* multi-entry collection. The single source of this rule, shared by the granted
|
|
6
|
-
* rows and the add dialog. An unknown (stale) type is treated as a collection —
|
|
7
|
-
* the default bucket.
|
|
8
|
-
*/
|
|
9
|
-
export declare const isPage: (type?: ContentType) => boolean;
|
|
10
|
-
/** Props for {@link WorkspaceContentSettings}. */
|
|
11
|
-
export type WorkspaceContentSettingsProps = {
|
|
12
|
-
/** The workspace whose content grants are managed. */
|
|
13
|
-
workspace: Workspace;
|
|
14
|
-
/** Whether the current user may manage content (holds `workspaces:update`). */
|
|
15
|
-
canUpdate: boolean;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* The Content-types settings tab: the granted collections and pages shown as
|
|
19
|
-
* two titled groups (each row with its title + description), granted through a
|
|
20
|
-
* **separate search + multi-select dialog per kind** (Add collections / Add
|
|
21
|
-
* pages), and revoked through a dialog that **blocks** the action while the type
|
|
22
|
-
* still holds entries. Gated on `workspaces:update`.
|
|
23
|
-
*/
|
|
24
|
-
export declare function WorkspaceContentSettings({ workspace, canUpdate }: WorkspaceContentSettingsProps): import("react").JSX.Element;
|
|
25
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceContentSettings/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAuFtD;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,YAA4B,CAAC;AAEtE,kDAAkD;AAClD,MAAM,MAAM,6BAA6B,GAAG;IACxC,sDAAsD;IACtD,SAAS,EAAE,SAAS,CAAC;IACrB,+EAA+E;IAC/E,SAAS,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,SAAS,EACT,SAAS,EACZ,EAAE,6BAA6B,+BAmM/B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from '../../../types/workspace';
|
|
2
|
-
/** Props for {@link DeleteWorkspaceDialog}. */
|
|
3
|
-
export type DeleteWorkspaceDialogProps = {
|
|
4
|
-
/** The workspace being deleted, or `null` when the dialog is closed. */
|
|
5
|
-
workspace: Workspace | null;
|
|
6
|
-
/** Close callback; ignored while the delete is in flight. */
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
/** Runs the delete (only reachable once the workspace is empty). */
|
|
9
|
-
onConfirm: () => void;
|
|
10
|
-
/** Whether the delete is in flight. */
|
|
11
|
-
busy?: boolean;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Confirm dialog for permanently deleting a workspace. On open it reads the
|
|
15
|
-
* workspace's total content-entry count and **blocks** the Delete button with a
|
|
16
|
-
* warning while any content remains — so a delete can never orphan records (the
|
|
17
|
-
* server enforces the same rule with a 409). Delete is enabled only once the
|
|
18
|
-
* count is known to be zero. The checking / error / blocked chrome lives in the
|
|
19
|
-
* shared {@link BlockingConfirmDialog}.
|
|
20
|
-
*/
|
|
21
|
-
export declare function DeleteWorkspaceDialog({ workspace, onClose, onConfirm, busy }: DeleteWorkspaceDialogProps): import("react").JSX.Element;
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceDangerSettings/DeleteWorkspaceDialog/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAsC1D,+CAA+C;AAC/C,MAAM,MAAM,0BAA0B,GAAG;IACrC,wEAAwE;IACxE,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IAC5B,6DAA6D;IAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oEAAoE;IACpE,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,uCAAuC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,SAAS,EACT,OAAO,EACP,SAAS,EACT,IAAY,EACf,EAAE,0BAA0B,+BA+B5B"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from '../../types/workspace';
|
|
2
|
-
/** Props for {@link WorkspaceDangerSettings}. */
|
|
3
|
-
export type WorkspaceDangerSettingsProps = {
|
|
4
|
-
/** The workspace being managed. */
|
|
5
|
-
workspace: Workspace;
|
|
6
|
-
/** Whether the user may archive/unarchive (holds `workspaces:update`). */
|
|
7
|
-
canUpdate: boolean;
|
|
8
|
-
/** Whether the user may delete (holds `workspaces:delete`). */
|
|
9
|
-
canDelete: boolean;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* The Danger-zone settings tab: archive/unarchive (`workspaces:update`) and
|
|
13
|
-
* permanently delete (`workspaces:delete`), each behind a typed confirmation.
|
|
14
|
-
* On delete the user is sent back to the workspaces grid (the shell route is
|
|
15
|
-
* gone).
|
|
16
|
-
*/
|
|
17
|
-
export declare function WorkspaceDangerSettings({ workspace, canUpdate, canDelete }: WorkspaceDangerSettingsProps): import("react").JSX.Element;
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceDangerSettings/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AA2FvD,iDAAiD;AACjD,MAAM,MAAM,4BAA4B,GAAG;IACvC,mCAAmC;IACnC,SAAS,EAAE,SAAS,CAAC;IACrB,0EAA0E;IAC1E,SAAS,EAAE,OAAO,CAAC;IACnB,+DAA+D;IAC/D,SAAS,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACpC,SAAS,EACT,SAAS,EACT,SAAS,EACZ,EAAE,4BAA4B,+BAiJ9B"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from '../../types/workspace';
|
|
2
|
-
/** Props for {@link WorkspaceGeneralSettings}. */
|
|
3
|
-
export type WorkspaceGeneralSettingsProps = {
|
|
4
|
-
/** The workspace being edited. */
|
|
5
|
-
workspace: Workspace;
|
|
6
|
-
/** Whether the current user may edit (holds `workspaces:update`). */
|
|
7
|
-
canUpdate: boolean;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* The General settings tab: edit the workspace name, description, and avatar
|
|
11
|
-
* color. Name/description use TanStack Form + the localized
|
|
12
|
-
* {@link useWorkspaceProfileSchema}; the color is a small piece of local state
|
|
13
|
-
* (a radio row, not a text field). The slug is shown read-only (it's immutable).
|
|
14
|
-
* When the user lacks `workspaces:update` the fields are disabled and the save
|
|
15
|
-
* action is hidden.
|
|
16
|
-
*/
|
|
17
|
-
export declare function WorkspaceGeneralSettings({ workspace, canUpdate }: WorkspaceGeneralSettingsProps): import("react").JSX.Element;
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceGeneralSettings/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAmEvD,kDAAkD;AAClD,MAAM,MAAM,6BAA6B,GAAG;IACxC,kCAAkC;IAClC,SAAS,EAAE,SAAS,CAAC;IACrB,qEAAqE;IACrE,SAAS,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,SAAS,EACT,SAAS,EACZ,EAAE,6BAA6B,+BA+N/B"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { DirectoryUser } from '../../../types/wizard';
|
|
2
|
-
/** Props for {@link MemberDirectorySearch}. */
|
|
3
|
-
export type MemberDirectorySearchProps = {
|
|
4
|
-
/** Ids already members — excluded from results so they can't be re-added. */
|
|
5
|
-
excludeIds: Set<string>;
|
|
6
|
-
/** Called when a directory user is chosen. */
|
|
7
|
-
onSelect: (user: DirectoryUser) => void;
|
|
8
|
-
/** Disables the input while an add is in flight. */
|
|
9
|
-
busy?: boolean;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Searchable input that assigns **existing** directory users to the workspace.
|
|
13
|
-
* Unlike the create wizard's typeahead there is no invite-by-email path — the
|
|
14
|
-
* add-member endpoint links a real account by id — so a typed email that isn't
|
|
15
|
-
* in the directory simply yields no result.
|
|
16
|
-
*/
|
|
17
|
-
export declare function MemberDirectorySearch({ excludeIds, onSelect, busy }: MemberDirectorySearchProps): import("react").JSX.Element;
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceMembersSettings/MemberDirectorySearch/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAqB3D,+CAA+C;AAC/C,MAAM,MAAM,0BAA0B,GAAG;IACrC,6EAA6E;IAC7E,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,8CAA8C;IAC9C,QAAQ,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IACxC,oDAAoD;IACpD,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,UAAU,EACV,QAAQ,EACR,IAAY,EACf,EAAE,0BAA0B,+BAgF5B"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceMember } from '../../../types/workspace';
|
|
2
|
-
/** Props for {@link MemberListRow}. */
|
|
3
|
-
export type MemberListRowProps = {
|
|
4
|
-
/** The member to render. */
|
|
5
|
-
member: WorkspaceMember;
|
|
6
|
-
/** Whether a remove control should be offered. */
|
|
7
|
-
canRemove: boolean;
|
|
8
|
-
/** Called when the remove control is pressed. */
|
|
9
|
-
onRemove: () => void;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* One row in the members roster: avatar, name, email, and — when the current
|
|
13
|
-
* user may manage members — a remove button. Access is permission-based, so no
|
|
14
|
-
* member is special.
|
|
15
|
-
*/
|
|
16
|
-
export declare function MemberListRow({ member, canRemove, onRemove }: MemberListRowProps): import("react").JSX.Element;
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceMembersSettings/MemberListRow/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAUhE,uCAAuC;AACvC,MAAM,MAAM,kBAAkB,GAAG;IAC7B,4BAA4B;IAC5B,MAAM,EAAE,eAAe,CAAC;IACxB,kDAAkD;IAClD,SAAS,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC1B,MAAM,EACN,SAAS,EACT,QAAQ,EACX,EAAE,kBAAkB,+BAiCpB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from '../../types/workspace';
|
|
2
|
-
/** Props for {@link WorkspaceMembersSettings}. */
|
|
3
|
-
export type WorkspaceMembersSettingsProps = {
|
|
4
|
-
/** The workspace whose members are managed. */
|
|
5
|
-
workspace: Workspace;
|
|
6
|
-
/** Whether the current user may manage members (holds `workspaces:update`). */
|
|
7
|
-
canUpdate: boolean;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* The Members settings tab: assign existing directory users and remove members
|
|
11
|
-
* with a confirmation. Access is purely permission-based — every control is
|
|
12
|
-
* gated on `workspaces:update`, and no member is special; without the permission
|
|
13
|
-
* the roster is read-only.
|
|
14
|
-
*/
|
|
15
|
-
export declare function WorkspaceMembersSettings({ workspace, canUpdate }: WorkspaceMembersSettingsProps): import("react").JSX.Element;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceMembersSettings/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,uBAAuB,CAAC;AAwDxE,kDAAkD;AAClD,MAAM,MAAM,6BAA6B,GAAG;IACxC,+CAA+C;IAC/C,SAAS,EAAE,SAAS,CAAC;IACrB,+EAA+E;IAC/E,SAAS,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,SAAS,EACT,SAAS,EACZ,EAAE,6BAA6B,+BAqG/B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceNavItem } from '../../../slots/workspaceSlots';
|
|
2
|
-
type WorkspaceNavButtonProps = {
|
|
3
|
-
/** The workspace nav entry to render. */
|
|
4
|
-
item: WorkspaceNavItem;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* One row in the workspace sidebar's "Workspace" section: an icon + label link.
|
|
8
|
-
* The item's `to` is relative to the workspace, so this resolves it against the
|
|
9
|
-
* active `:id`, derives active state from the current route, and hides itself
|
|
10
|
-
* when the item is permission-gated and the user lacks the permission.
|
|
11
|
-
*/
|
|
12
|
-
export declare function WorkspaceNavButton({ item }: WorkspaceNavButtonProps): import("react").JSX.Element | null;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceNav/WorkspaceNavButton/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,KAAK,uBAAuB,GAAG;IAC3B,yCAAyC;IACzC,IAAI,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,EAAE,uBAAuB,sCA6BnE"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from '../../../types/workspace';
|
|
2
|
-
type WorkspaceSwitcherProps = {
|
|
3
|
-
/** The workspace currently open. */
|
|
4
|
-
current: Workspace;
|
|
5
|
-
/** Every workspace the switcher can jump to. */
|
|
6
|
-
workspaces: Workspace[];
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* The workspace sidebar's header control: a full-width row showing the current
|
|
10
|
-
* workspace (avatar + name + "Workspace" label) that opens a popover listing
|
|
11
|
-
* every workspace to jump to, plus a "New workspace" action. Switching
|
|
12
|
-
* navigates to the target's base, which redirects to its first section.
|
|
13
|
-
*/
|
|
14
|
-
export declare function WorkspaceSwitcher({ current, workspaces }: WorkspaceSwitcherProps): import("react").JSX.Element;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceNav/WorkspaceSwitcher/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AA2B1D,KAAK,sBAAsB,GAAG;IAC1B,oCAAoC;IACpC,OAAO,EAAE,SAAS,CAAC;IACnB,gDAAgD;IAChD,UAAU,EAAE,SAAS,EAAE,CAAC;CAC3B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,OAAO,EACP,UAAU,EACb,EAAE,sBAAsB,+BA0GxB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from '../../types/workspace';
|
|
2
|
-
/**
|
|
3
|
-
* The per-workspace sidebar content, injected into the app sidebar's contextual
|
|
4
|
-
* region by {@link WorkspaceShell} while a workspace is open. It replaces the
|
|
5
|
-
* global nav with: a back link to the top-level app, the workspace switcher, a
|
|
6
|
-
* search trigger, any custom sections (the Content Library's content-type list,
|
|
7
|
-
* from {@link WORKSPACE_SECTION_SLOT}), and the "Workspace" section (Media,
|
|
8
|
-
* Insights, Settings, from {@link WORKSPACE_NAV_SLOT}). The persistent account
|
|
9
|
-
* footer stays below, owned by the shell.
|
|
10
|
-
*/
|
|
11
|
-
export declare function WorkspaceNav({ workspace }: {
|
|
12
|
-
workspace: Workspace;
|
|
13
|
-
}): import("react").JSX.Element;
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceNav/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAcvD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,+BAkEnE"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The settings page's sticky left navigation — mirrors the user-detail side
|
|
3
|
-
* rail. Absolute links (`/workspaces/:id/settings/...`) so active state is
|
|
4
|
-
* unambiguous. The Danger-zone entry is included only when the user can act on
|
|
5
|
-
* it (its route redirects away otherwise), so a read-only viewer never sees a
|
|
6
|
-
* dead link.
|
|
7
|
-
*/
|
|
8
|
-
export declare function WorkspaceSettingsRail({ workspaceId, showDanger }: {
|
|
9
|
-
/** The open workspace id — the base for every link. */
|
|
10
|
-
workspaceId: string;
|
|
11
|
-
/** Whether to show the Danger-zone entry (update or delete permission). */
|
|
12
|
-
showDanger: boolean;
|
|
13
|
-
}): import("react").JSX.Element;
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceSettingsRail/index.tsx"],"names":[],"mappings":"AA0CA;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,WAAW,EACX,UAAU,EACb,EAAE;IACC,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,UAAU,EAAE,OAAO,CAAC;CACvB,+BAuDA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The settings page's horizontal tab navigation — underline tabs under the
|
|
3
|
-
* page header, mirroring the user-detail tabs. Absolute links
|
|
4
|
-
* (`/workspaces/:id/settings/...`) so active state is unambiguous. The
|
|
5
|
-
* Danger-zone entry is included only when the user can act on it (its route
|
|
6
|
-
* redirects away otherwise), so a read-only viewer never sees a dead link.
|
|
7
|
-
*/
|
|
8
|
-
export declare function WorkspaceSettingsTabs({ workspaceId, showDanger }: {
|
|
9
|
-
/** The open workspace id — the base for every link. */
|
|
10
|
-
workspaceId: string;
|
|
11
|
-
/** Whether to show the Danger-zone entry (update or delete permission). */
|
|
12
|
-
showDanger: boolean;
|
|
13
|
-
}): import("react").JSX.Element;
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceSettingsTabs/index.tsx"],"names":[],"mappings":"AA+CA;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,WAAW,EACX,UAAU,EACb,EAAE;IACC,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,UAAU,EAAE,OAAO,CAAC;CACvB,+BA2CA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The page-context bar over the workspace settings page: the same `Settings`
|
|
3
|
-
* icon the workspace sidebar nav uses, plus a "Settings › {section}"
|
|
4
|
-
* breadcrumb derived from the active nested route (the tab bar below owns
|
|
5
|
-
* navigation, so the crumbs are plain text).
|
|
6
|
-
*/
|
|
7
|
-
export declare function WorkspaceSettingsTopBar(): import("react").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceSettingsTopBar/index.tsx"],"names":[],"mappings":"AAqCA;;;;;GAKG;AACH,wBAAgB,uBAAuB,gCAyBtC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The rail's bottom action: a dashed 40×40 button that routes to the create
|
|
3
|
-
* wizard. Dashed + muted to read as *additive* — visually distinct from the
|
|
4
|
-
* solid section buttons above it. Pinned to the bottom by the rail's spacer.
|
|
5
|
-
*/
|
|
6
|
-
export declare function NewWorkspaceButton(): import("react").JSX.Element;
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceShell/NewWorkspaceButton/index.tsx"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,wBAAgB,kBAAkB,gCAiBjC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
type RailTooltipProps = {
|
|
3
|
-
/** Label text shown in the flyout (also the trigger's `aria-label`). */
|
|
4
|
-
label: string;
|
|
5
|
-
/**
|
|
6
|
-
* Hide the tooltip even on hover — used by the switcher so its tooltip
|
|
7
|
-
* doesn't compete with its open popover.
|
|
8
|
-
*/
|
|
9
|
-
suppressed?: boolean;
|
|
10
|
-
/** The rail trigger (a `<button>`); the tooltip reveals on its hover/focus. */
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Wraps a rail item with the spec's fly-out label: a `--primary` chip that
|
|
15
|
-
* slides out to the right on hover/focus, with a small rotated caret. The
|
|
16
|
-
* tooltip is decorative (`aria-hidden`) — the label is duplicated in the
|
|
17
|
-
* trigger's `aria-label`, so screen readers get it without the visual. Motion
|
|
18
|
-
* is dropped under `prefers-reduced-motion`.
|
|
19
|
-
*/
|
|
20
|
-
export declare function RailTooltip({ label, suppressed, children }: RailTooltipProps): import("react").JSX.Element;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceShell/RailTooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,gBAAgB,GAAG;IACpB,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+EAA+E;IAC/E,QAAQ,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EACxB,KAAK,EACL,UAAkB,EAClB,QAAQ,EACX,EAAE,gBAAgB,+BAuBlB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from '../../../types/workspace';
|
|
2
|
-
type WorkspaceRailProps = {
|
|
3
|
-
/** The workspace currently open. */
|
|
4
|
-
current: Workspace;
|
|
5
|
-
/** Every workspace the switcher can jump to. */
|
|
6
|
-
workspaces: Workspace[];
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* The workspace's compact left icon rail: the workspace switcher up top, a
|
|
10
|
-
* divider, then the section nav ({@link WORKSPACE_SIDEBAR_SLOT}, e.g. Content /
|
|
11
|
-
* Media / Insights / Settings). Creating a workspace lives in the switcher
|
|
12
|
-
* popover, so the rail carries no bottom action. Sticky under the shell's 48px
|
|
13
|
-
* navbar (nested chrome); off-white so it reads as chrome, not canvas.
|
|
14
|
-
*/
|
|
15
|
-
export declare function WorkspaceRail({ current, workspaces }: WorkspaceRailProps): import("react").JSX.Element;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceShell/WorkspaceRail/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAe1D,KAAK,kBAAkB,GAAG;IACtB,oCAAoC;IACpC,OAAO,EAAE,SAAS,CAAC;IACnB,gDAAgD;IAChD,UAAU,EAAE,SAAS,EAAE,CAAC;CAC3B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,kBAAkB,+BAkBxE"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceNavItem } from '../../../slots/workspaceSlots';
|
|
2
|
-
type WorkspaceSidebarButtonProps = {
|
|
3
|
-
/** The rail entry to render. */
|
|
4
|
-
item: WorkspaceNavItem;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Renders a single section as a 40×40 icon button. The item's `to` is relative
|
|
8
|
-
* to the workspace, so this resolves it against the active `:id`, derives active
|
|
9
|
-
* state from the current location, and navigates on click. At rest it's a muted
|
|
10
|
-
* icon; hover tints the background a faint neutral (`--accent/60`); active fills
|
|
11
|
-
* it the fuller neutral `--accent` with a solid black (`--foreground`) marker bar
|
|
12
|
-
* bleeding off the rail's left edge. Transitions colors only — no transform on
|
|
13
|
-
* press (Ortha rule).
|
|
14
|
-
*/
|
|
15
|
-
export declare function WorkspaceSidebarButton({ item }: WorkspaceSidebarButtonProps): import("react").JSX.Element | null;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceShell/WorkspaceSidebarButton/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGtE,KAAK,2BAA2B,GAAG;IAC/B,gCAAgC;IAChC,IAAI,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,IAAI,EAAE,EAAE,2BAA2B,sCA6C3E"}
|
package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/WorkspaceSwitcherPopover/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from '../../../../types/workspace';
|
|
2
|
-
type WorkspaceSwitcherPopoverProps = {
|
|
3
|
-
/** The workspace currently open (gets the trailing check). */
|
|
4
|
-
current: Workspace;
|
|
5
|
-
/** Every workspace the user can switch to. */
|
|
6
|
-
workspaces: Workspace[];
|
|
7
|
-
/** Closes the popover (outside click, Esc, or after navigating). */
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* The switcher's popover: a fixed panel anchored just right of the rail, listing
|
|
12
|
-
* every workspace (switching navigates to its base, which redirects to its first
|
|
13
|
-
* section) over a "New workspace" footer. A transparent full-viewport backdrop
|
|
14
|
-
* closes it on outside click; `Esc` closes too. Enter motion (fade + slide) is
|
|
15
|
-
* driven by an `entered` flag flipped after mount, and dropped under
|
|
16
|
-
* `prefers-reduced-motion`.
|
|
17
|
-
*
|
|
18
|
-
* Rendered through a **portal to `document.body`**: the rail is `sticky` (a
|
|
19
|
-
* stacking context), so an inline `fixed` panel's `z-index` would be trapped
|
|
20
|
-
* inside it and a positioned content element later in the DOM (e.g. the content
|
|
21
|
-
* sidebar's active item) would paint over it. Portaling lifts the panel to the
|
|
22
|
-
* top level so it always sits above page content.
|
|
23
|
-
*/
|
|
24
|
-
export declare function WorkspaceSwitcherPopover({ current, workspaces, onClose }: WorkspaceSwitcherPopoverProps): import("react").ReactPortal;
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/WorkspaceSwitcherPopover/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/WorkspaceShell/WorkspaceSwitcher/WorkspaceSwitcherPopover/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAmB7D,KAAK,6BAA6B,GAAG;IACjC,8DAA8D;IAC9D,OAAO,EAAE,SAAS,CAAC;IACnB,8CAA8C;IAC9C,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,oEAAoE;IACpE,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,OAAO,EACP,UAAU,EACV,OAAO,EACV,EAAE,6BAA6B,+BAoH/B"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Workspace } from '../../../types/workspace';
|
|
2
|
-
type WorkspaceSwitcherProps = {
|
|
3
|
-
/** The workspace currently open. */
|
|
4
|
-
current: Workspace;
|
|
5
|
-
/** Every workspace the switcher can jump to. */
|
|
6
|
-
workspaces: Workspace[];
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* The rail header: a 40×40 accent-tinted chip (the workspace's initials) with a
|
|
10
|
-
* caret badge clipped to its corner, signalling "click to switch". Hovering
|
|
11
|
-
* lifts it 1px — the only transform allowed in the rail. Clicking toggles the
|
|
12
|
-
* {@link WorkspaceSwitcherPopover}; its tooltip is suppressed while the popover
|
|
13
|
-
* is open.
|
|
14
|
-
*/
|
|
15
|
-
export declare function WorkspaceSwitcher({ current, workspaces }: WorkspaceSwitcherProps): import("react").JSX.Element;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceShell/WorkspaceSwitcher/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAU1D,KAAK,sBAAsB,GAAG;IAC1B,oCAAoC;IACpC,OAAO,EAAE,SAAS,CAAC;IACnB,gDAAgD;IAChD,UAAU,EAAE,SAAS,EAAE,CAAC;CAC3B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,OAAO,EACP,UAAU,EACb,EAAE,sBAAsB,+BAoCxB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The workspace shell — the layout behind `/workspaces/:id/*`. It resolves the
|
|
3
|
-
* `:id` param against the workspaces list, **injects the per-workspace nav into
|
|
4
|
-
* the app sidebar** (via `useSidebarContent`), and renders the content area
|
|
5
|
-
* whose nested `<Routes>` are built from {@link WORKSPACE_ROUTE_SLOT}. Landing
|
|
6
|
-
* on the workspace base redirects to the first section. The resolved workspace
|
|
7
|
-
* is published via {@link CurrentWorkspaceProvider} so inner pages read it
|
|
8
|
-
* without re-fetching.
|
|
9
|
-
*
|
|
10
|
-
* Feature plugins (Content Library, Media Library, Insights) don't mount their
|
|
11
|
-
* own top-level routes — they contribute a route plus a nav entry or section to
|
|
12
|
-
* the slots the sidebar reads, which is what keeps them strictly inside a
|
|
13
|
-
* workspace.
|
|
14
|
-
*/
|
|
15
|
-
export declare function WorkspaceShell(): import("react").JSX.Element;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceShell/index.tsx"],"names":[],"mappings":"AA2CA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,gCA+E7B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The home dashboard's workspace stat tiles: active-workspace count, the number
|
|
3
|
-
* of distinct members across all workspaces, and the number of distinct content
|
|
4
|
-
* types granted — all derived from the real `GET /api/workspaces` payload (no
|
|
5
|
-
* separate metrics API yet). Rendered as a `display: contents` group so the
|
|
6
|
-
* three tiles flow directly into the home page's stat grid.
|
|
7
|
-
*/
|
|
8
|
-
export declare function WorkspaceStats(): import("react").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceStats/index.tsx"],"names":[],"mappings":"AA6BA;;;;;;GAMG;AACH,wBAAgB,cAAc,gCA4C7B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** The status the list is filtered by. `Active` is the default view. */
|
|
2
|
-
export type StatusFilter = 'All' | 'Active' | 'Archived';
|
|
3
|
-
/** The default status filter. */
|
|
4
|
-
export declare const DEFAULT_STATUS: StatusFilter;
|
|
5
|
-
type WorkspaceToolbarProps = {
|
|
6
|
-
search: string;
|
|
7
|
-
onSearchChange: (value: string) => void;
|
|
8
|
-
status: StatusFilter;
|
|
9
|
-
onStatusChange: (value: StatusFilter) => void;
|
|
10
|
-
/** How many workspaces fall under each status (for the chip counts). */
|
|
11
|
-
counts: Record<StatusFilter, number>;
|
|
12
|
-
shown: number;
|
|
13
|
-
total: number;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* The list toolbar: a search box, the status filter as a segmented chip group
|
|
17
|
-
* (All / Active / Archived, each badged with its count), and a live
|
|
18
|
-
* "{shown} of {total}" count. Wraps to multiple rows on narrow viewports.
|
|
19
|
-
*/
|
|
20
|
-
export declare function WorkspaceToolbar({ search, onSearchChange, status, onStatusChange, counts, shown, total }: WorkspaceToolbarProps): import("react").JSX.Element;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceToolbar/index.tsx"],"names":[],"mappings":"AAWA,wEAAwE;AACxE,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEzD,iCAAiC;AACjC,eAAO,MAAM,cAAc,EAAE,YAAuB,CAAC;AAoCrD,KAAK,qBAAqB,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,MAAM,EAAE,YAAY,CAAC;IACrB,cAAc,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC9C,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAC7B,MAAM,EACN,cAAc,EACd,MAAM,EACN,cAAc,EACd,MAAM,EACN,KAAK,EACL,KAAK,EACR,EAAE,qBAAqB,+BAoDvB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
type WorkspacesEmptyProps = {
|
|
2
|
-
/** Whether a search or non-default filter is currently narrowing the list. */
|
|
3
|
-
filtered: boolean;
|
|
4
|
-
/** Whether the user may create a workspace (gates the create CTA). */
|
|
5
|
-
canCreate: boolean;
|
|
6
|
-
/** Resets the search and status filter back to their defaults. */
|
|
7
|
-
onClear: () => void;
|
|
8
|
-
/** Opens the create-workspace flow. */
|
|
9
|
-
onCreate: () => void;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* The empty state for the grid. When filters are active it offers to clear
|
|
13
|
-
* them; otherwise it invites creating the first workspace — but only when the
|
|
14
|
-
* user holds `workspaces:create`.
|
|
15
|
-
*/
|
|
16
|
-
export declare function WorkspacesEmpty({ filtered, canCreate, onClear, onCreate }: WorkspacesEmptyProps): import("react").JSX.Element;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspacesEmpty/index.tsx"],"names":[],"mappings":"AA0CA,KAAK,oBAAoB,GAAG;IACxB,8EAA8E;IAC9E,QAAQ,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,SAAS,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC5B,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,EACX,EAAE,oBAAoB,+BAwCtB"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The home dashboard's Workspaces panel: a preview list of the active
|
|
3
|
-
* workspaces (each a link into its shell) with a "View all" link to the full
|
|
4
|
-
* list. Backed by the real `GET /api/workspaces`.
|
|
5
|
-
*/
|
|
6
|
-
export declare function WorkspacesHomePanel(): import("react").JSX.Element;
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspacesHomePanel/index.tsx"],"names":[],"mappings":"AA2CA;;;;GAIG;AACH,wBAAgB,mBAAmB,gCA+ElC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The "Workspaces" quick-list in the global sidebar: the active workspaces as
|
|
3
|
-
* direct links, so a member can jump into one without the Workspaces list page.
|
|
4
|
-
* Contributed to the shell's `SIDEBAR_SECTION_SLOT` by `workspaces-admin`.
|
|
5
|
-
* Renders nothing while loading or when there are no active workspaces, so it
|
|
6
|
-
* never shows an empty section.
|
|
7
|
-
*/
|
|
8
|
-
export declare function WorkspacesNavSection(): import("react").JSX.Element | null;
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspacesNavSection/index.tsx"],"names":[],"mappings":"AA2DA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,uCA0CnC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The table placeholder shown while {@link useWorkspaces} resolves. Drops into
|
|
3
|
-
* the page body in place of the real table (header + toolbar stay live), so it
|
|
4
|
-
* owns the single `role="status"` announcement; the rows themselves are
|
|
5
|
-
* `aria-hidden`.
|
|
6
|
-
*/
|
|
7
|
-
export declare function WorkspacesTableSkeleton({ count }: {
|
|
8
|
-
count?: number;
|
|
9
|
-
}): import("react").JSX.Element;
|
|
10
|
-
/**
|
|
11
|
-
* Full-page placeholder for the lazy-route `Suspense` fallback — before
|
|
12
|
-
* {@link WorkspacesPage} mounts there is no header or toolbar yet, so this
|
|
13
|
-
* sketches the whole page (header, toolbar, table) to hold the layout steady
|
|
14
|
-
* while the chunk loads. Reuses {@link WorkspacesTableSkeleton} for the body.
|
|
15
|
-
*/
|
|
16
|
-
export declare function WorkspacesPageSkeleton(): import("react").JSX.Element;
|
|
17
|
-
/**
|
|
18
|
-
* Placeholder for the workspace shell's content area — shown both as the
|
|
19
|
-
* lazy-route `Suspense` fallback and while {@link useWorkspaces} resolves inside
|
|
20
|
-
* the shell (the per-workspace nav lives in the app sidebar, injected once the
|
|
21
|
-
* workspace resolves). Owns the single `role="status"` announcement.
|
|
22
|
-
*/
|
|
23
|
-
export declare function WorkspaceShellSkeleton(): import("react").JSX.Element;
|
|
24
|
-
/**
|
|
25
|
-
* Lazy-route `Suspense` fallback for {@link CreateWorkspacePage}. Wraps the
|
|
26
|
-
* shared {@link WizardPageSkeleton} so the `sr-only` status stays localized.
|
|
27
|
-
*/
|
|
28
|
-
export declare function CreateWorkspacePageSkeleton(): import("react").JSX.Element;
|
|
29
|
-
/**
|
|
30
|
-
* Section placeholder shown while {@link useContentTypes} resolves in the
|
|
31
|
-
* create-workspace wizard's "specific content" mode — two resource sections
|
|
32
|
-
* (collections and pages). Replaces the inline spinner so the step keeps its
|
|
33
|
-
* shape. Owns a single `role="status"`; the sections are `aria-hidden`.
|
|
34
|
-
*/
|
|
35
|
-
export declare function ContentTypesSkeleton(): import("react").JSX.Element;
|
|
36
|
-
//# sourceMappingURL=index.d.ts.map
|