@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.
Files changed (185) hide show
  1. package/dist/lib/application/useDeleteWorkspace/index.d.ts +1 -1
  2. package/dist/lib/application/useDeleteWorkspace/index.js +1 -1
  3. package/dist/lib/domain/slug/index.spec.d.ts +2 -0
  4. package/dist/lib/domain/slug/index.spec.d.ts.map +1 -0
  5. package/dist/lib/domain/slug/index.spec.js +50 -0
  6. package/dist/lib/presentation/components/WorkspaceMembersSettings/MemberListRow/index.d.ts.map +1 -1
  7. package/dist/lib/presentation/components/WorkspaceMembersSettings/MemberListRow/index.js +1 -1
  8. package/dist/lib/presentation/components/WorkspaceMembersSettings/index.d.ts.map +1 -1
  9. package/dist/lib/presentation/components/WorkspaceMembersSettings/index.js +40 -4
  10. package/dist/lib/presentation/components/WorkspacesEmpty/index.d.ts +1 -1
  11. package/dist/lib/presentation/components/WorkspacesEmpty/index.js +1 -1
  12. package/dist/lib/presentation/components/WorkspacesNavSection/index.d.ts.map +1 -1
  13. package/dist/lib/presentation/components/WorkspacesNavSection/index.js +18 -4
  14. package/dist/lib/presentation/pages/WorkspacesPage/index.d.ts +2 -2
  15. package/dist/lib/presentation/pages/WorkspacesPage/index.js +3 -3
  16. package/dist/lib/presentation/workspacesPlugin/index.d.ts +14 -7
  17. package/dist/lib/presentation/workspacesPlugin/index.d.ts.map +1 -1
  18. package/dist/lib/presentation/workspacesPlugin/index.js +14 -7
  19. package/package.json +6 -6
  20. package/dist/lib/api/useAddWorkspaceContent/index.d.ts +0 -15
  21. package/dist/lib/api/useAddWorkspaceContent/index.d.ts.map +0 -1
  22. package/dist/lib/api/useAddWorkspaceMember/index.d.ts +0 -14
  23. package/dist/lib/api/useAddWorkspaceMember/index.d.ts.map +0 -1
  24. package/dist/lib/api/useContentTypes/index.d.ts +0 -10
  25. package/dist/lib/api/useContentTypes/index.d.ts.map +0 -1
  26. package/dist/lib/api/useCreateWorkspace/index.d.ts +0 -20
  27. package/dist/lib/api/useCreateWorkspace/index.d.ts.map +0 -1
  28. package/dist/lib/api/useDeleteWorkspace/index.d.ts +0 -13
  29. package/dist/lib/api/useDeleteWorkspace/index.d.ts.map +0 -1
  30. package/dist/lib/api/useRemoveWorkspaceContent/index.d.ts +0 -15
  31. package/dist/lib/api/useRemoveWorkspaceContent/index.d.ts.map +0 -1
  32. package/dist/lib/api/useRemoveWorkspaceMember/index.d.ts +0 -13
  33. package/dist/lib/api/useRemoveWorkspaceMember/index.d.ts.map +0 -1
  34. package/dist/lib/api/useSetWorkspaceStatus/index.d.ts +0 -14
  35. package/dist/lib/api/useSetWorkspaceStatus/index.d.ts.map +0 -1
  36. package/dist/lib/api/useSlugAvailability/index.d.ts +0 -10
  37. package/dist/lib/api/useSlugAvailability/index.d.ts.map +0 -1
  38. package/dist/lib/api/useUpdateWorkspace/index.d.ts +0 -23
  39. package/dist/lib/api/useUpdateWorkspace/index.d.ts.map +0 -1
  40. package/dist/lib/api/useUsersSearch/index.d.ts +0 -17
  41. package/dist/lib/api/useUsersSearch/index.d.ts.map +0 -1
  42. package/dist/lib/api/useWorkspaceContentCount/index.d.ts +0 -8
  43. package/dist/lib/api/useWorkspaceContentCount/index.d.ts.map +0 -1
  44. package/dist/lib/api/useWorkspaceEntryCount/index.d.ts +0 -8
  45. package/dist/lib/api/useWorkspaceEntryCount/index.d.ts.map +0 -1
  46. package/dist/lib/api/useWorkspaces/index.d.ts +0 -30
  47. package/dist/lib/api/useWorkspaces/index.d.ts.map +0 -1
  48. package/dist/lib/components/BlockingConfirmDialog/index.d.ts +0 -41
  49. package/dist/lib/components/BlockingConfirmDialog/index.d.ts.map +0 -1
  50. package/dist/lib/components/ColorSwatchRow/index.d.ts +0 -15
  51. package/dist/lib/components/ColorSwatchRow/index.d.ts.map +0 -1
  52. package/dist/lib/components/CreateWorkspaceWizard/ColorSwatchRow/index.d.ts +0 -15
  53. package/dist/lib/components/CreateWorkspaceWizard/ColorSwatchRow/index.d.ts.map +0 -1
  54. package/dist/lib/components/CreateWorkspaceWizard/ContentStep/ModeTiles/index.d.ts +0 -11
  55. package/dist/lib/components/CreateWorkspaceWizard/ContentStep/ModeTiles/index.d.ts.map +0 -1
  56. package/dist/lib/components/CreateWorkspaceWizard/ContentStep/ResourceSection/index.d.ts +0 -48
  57. package/dist/lib/components/CreateWorkspaceWizard/ContentStep/ResourceSection/index.d.ts.map +0 -1
  58. package/dist/lib/components/CreateWorkspaceWizard/ContentStep/index.d.ts +0 -23
  59. package/dist/lib/components/CreateWorkspaceWizard/ContentStep/index.d.ts.map +0 -1
  60. package/dist/lib/components/CreateWorkspaceWizard/IdentityFields/index.d.ts +0 -17
  61. package/dist/lib/components/CreateWorkspaceWizard/IdentityFields/index.d.ts.map +0 -1
  62. package/dist/lib/components/CreateWorkspaceWizard/MembersStep/MemberRow/index.d.ts +0 -14
  63. package/dist/lib/components/CreateWorkspaceWizard/MembersStep/MemberRow/index.d.ts.map +0 -1
  64. package/dist/lib/components/CreateWorkspaceWizard/MembersStep/MemberTypeahead/index.d.ts +0 -15
  65. package/dist/lib/components/CreateWorkspaceWizard/MembersStep/MemberTypeahead/index.d.ts.map +0 -1
  66. package/dist/lib/components/CreateWorkspaceWizard/MembersStep/index.d.ts +0 -17
  67. package/dist/lib/components/CreateWorkspaceWizard/MembersStep/index.d.ts.map +0 -1
  68. package/dist/lib/components/CreateWorkspaceWizard/Monogram/index.d.ts +0 -17
  69. package/dist/lib/components/CreateWorkspaceWizard/Monogram/index.d.ts.map +0 -1
  70. package/dist/lib/components/CreateWorkspaceWizard/SlugField/index.d.ts +0 -23
  71. package/dist/lib/components/CreateWorkspaceWizard/SlugField/index.d.ts.map +0 -1
  72. package/dist/lib/components/StatusChip/index.d.ts +0 -9
  73. package/dist/lib/components/StatusChip/index.d.ts.map +0 -1
  74. package/dist/lib/components/WorkspaceAvatar/index.d.ts +0 -20
  75. package/dist/lib/components/WorkspaceAvatar/index.d.ts.map +0 -1
  76. package/dist/lib/components/WorkspaceCard/MemberStack/MemberListPopover/index.d.ts +0 -9
  77. package/dist/lib/components/WorkspaceCard/MemberStack/MemberListPopover/index.d.ts.map +0 -1
  78. package/dist/lib/components/WorkspaceCard/MemberStack/index.d.ts +0 -11
  79. package/dist/lib/components/WorkspaceCard/MemberStack/index.d.ts.map +0 -1
  80. package/dist/lib/components/WorkspaceCard/StatusChip/index.d.ts +0 -9
  81. package/dist/lib/components/WorkspaceCard/StatusChip/index.d.ts.map +0 -1
  82. package/dist/lib/components/WorkspaceCard/index.d.ts +0 -15
  83. package/dist/lib/components/WorkspaceCard/index.d.ts.map +0 -1
  84. package/dist/lib/components/WorkspaceCommands/index.d.ts +0 -8
  85. package/dist/lib/components/WorkspaceCommands/index.d.ts.map +0 -1
  86. package/dist/lib/components/WorkspaceContentSettings/AddContentDialog/index.d.ts +0 -26
  87. package/dist/lib/components/WorkspaceContentSettings/AddContentDialog/index.d.ts.map +0 -1
  88. package/dist/lib/components/WorkspaceContentSettings/GrantedContentGroup/index.d.ts +0 -21
  89. package/dist/lib/components/WorkspaceContentSettings/GrantedContentGroup/index.d.ts.map +0 -1
  90. package/dist/lib/components/WorkspaceContentSettings/GrantedContentRow/index.d.ts +0 -26
  91. package/dist/lib/components/WorkspaceContentSettings/GrantedContentRow/index.d.ts.map +0 -1
  92. package/dist/lib/components/WorkspaceContentSettings/RemoveContentDialog/index.d.ts +0 -25
  93. package/dist/lib/components/WorkspaceContentSettings/RemoveContentDialog/index.d.ts.map +0 -1
  94. package/dist/lib/components/WorkspaceContentSettings/index.d.ts +0 -25
  95. package/dist/lib/components/WorkspaceContentSettings/index.d.ts.map +0 -1
  96. package/dist/lib/components/WorkspaceDangerSettings/DeleteWorkspaceDialog/index.d.ts +0 -22
  97. package/dist/lib/components/WorkspaceDangerSettings/DeleteWorkspaceDialog/index.d.ts.map +0 -1
  98. package/dist/lib/components/WorkspaceDangerSettings/index.d.ts +0 -18
  99. package/dist/lib/components/WorkspaceDangerSettings/index.d.ts.map +0 -1
  100. package/dist/lib/components/WorkspaceGeneralSettings/index.d.ts +0 -18
  101. package/dist/lib/components/WorkspaceGeneralSettings/index.d.ts.map +0 -1
  102. package/dist/lib/components/WorkspaceMembersSettings/MemberDirectorySearch/index.d.ts +0 -18
  103. package/dist/lib/components/WorkspaceMembersSettings/MemberDirectorySearch/index.d.ts.map +0 -1
  104. package/dist/lib/components/WorkspaceMembersSettings/MemberListRow/index.d.ts +0 -17
  105. package/dist/lib/components/WorkspaceMembersSettings/MemberListRow/index.d.ts.map +0 -1
  106. package/dist/lib/components/WorkspaceMembersSettings/index.d.ts +0 -16
  107. package/dist/lib/components/WorkspaceMembersSettings/index.d.ts.map +0 -1
  108. package/dist/lib/components/WorkspaceNav/WorkspaceNavButton/index.d.ts +0 -14
  109. package/dist/lib/components/WorkspaceNav/WorkspaceNavButton/index.d.ts.map +0 -1
  110. package/dist/lib/components/WorkspaceNav/WorkspaceSwitcher/index.d.ts +0 -16
  111. package/dist/lib/components/WorkspaceNav/WorkspaceSwitcher/index.d.ts.map +0 -1
  112. package/dist/lib/components/WorkspaceNav/index.d.ts +0 -14
  113. package/dist/lib/components/WorkspaceNav/index.d.ts.map +0 -1
  114. package/dist/lib/components/WorkspaceSettingsRail/index.d.ts +0 -14
  115. package/dist/lib/components/WorkspaceSettingsRail/index.d.ts.map +0 -1
  116. package/dist/lib/components/WorkspaceSettingsTabs/index.d.ts +0 -14
  117. package/dist/lib/components/WorkspaceSettingsTabs/index.d.ts.map +0 -1
  118. package/dist/lib/components/WorkspaceSettingsTopBar/index.d.ts +0 -8
  119. package/dist/lib/components/WorkspaceSettingsTopBar/index.d.ts.map +0 -1
  120. package/dist/lib/components/WorkspaceShell/NewWorkspaceButton/index.d.ts +0 -7
  121. package/dist/lib/components/WorkspaceShell/NewWorkspaceButton/index.d.ts.map +0 -1
  122. package/dist/lib/components/WorkspaceShell/RailTooltip/index.d.ts +0 -22
  123. package/dist/lib/components/WorkspaceShell/RailTooltip/index.d.ts.map +0 -1
  124. package/dist/lib/components/WorkspaceShell/WorkspaceRail/index.d.ts +0 -17
  125. package/dist/lib/components/WorkspaceShell/WorkspaceRail/index.d.ts.map +0 -1
  126. package/dist/lib/components/WorkspaceShell/WorkspaceSidebarButton/index.d.ts +0 -17
  127. package/dist/lib/components/WorkspaceShell/WorkspaceSidebarButton/index.d.ts.map +0 -1
  128. package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/WorkspaceSwitcherPopover/index.d.ts +0 -26
  129. package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/WorkspaceSwitcherPopover/index.d.ts.map +0 -1
  130. package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/index.d.ts +0 -17
  131. package/dist/lib/components/WorkspaceShell/WorkspaceSwitcher/index.d.ts.map +0 -1
  132. package/dist/lib/components/WorkspaceShell/index.d.ts +0 -16
  133. package/dist/lib/components/WorkspaceShell/index.d.ts.map +0 -1
  134. package/dist/lib/components/WorkspaceStats/index.d.ts +0 -9
  135. package/dist/lib/components/WorkspaceStats/index.d.ts.map +0 -1
  136. package/dist/lib/components/WorkspaceToolbar/index.d.ts +0 -22
  137. package/dist/lib/components/WorkspaceToolbar/index.d.ts.map +0 -1
  138. package/dist/lib/components/WorkspacesEmpty/index.d.ts +0 -18
  139. package/dist/lib/components/WorkspacesEmpty/index.d.ts.map +0 -1
  140. package/dist/lib/components/WorkspacesHomePanel/index.d.ts +0 -7
  141. package/dist/lib/components/WorkspacesHomePanel/index.d.ts.map +0 -1
  142. package/dist/lib/components/WorkspacesNavSection/index.d.ts +0 -9
  143. package/dist/lib/components/WorkspacesNavSection/index.d.ts.map +0 -1
  144. package/dist/lib/components/WorkspacesSkeleton/index.d.ts +0 -36
  145. package/dist/lib/components/WorkspacesSkeleton/index.d.ts.map +0 -1
  146. package/dist/lib/components/WorkspacesTable/index.d.ts +0 -12
  147. package/dist/lib/components/WorkspacesTable/index.d.ts.map +0 -1
  148. package/dist/lib/hooks/useBasicsSchema/index.d.ts +0 -14
  149. package/dist/lib/hooks/useBasicsSchema/index.d.ts.map +0 -1
  150. package/dist/lib/hooks/useResourceSelection/index.d.ts +0 -21
  151. package/dist/lib/hooks/useResourceSelection/index.d.ts.map +0 -1
  152. package/dist/lib/hooks/useSlug/index.d.ts +0 -28
  153. package/dist/lib/hooks/useSlug/index.d.ts.map +0 -1
  154. package/dist/lib/hooks/useWizard/index.d.ts +0 -57
  155. package/dist/lib/hooks/useWizard/index.d.ts.map +0 -1
  156. package/dist/lib/hooks/useWorkspaceProfileSchema/index.d.ts +0 -13
  157. package/dist/lib/hooks/useWorkspaceProfileSchema/index.d.ts.map +0 -1
  158. package/dist/lib/pages/CreateWorkspacePage/index.d.ts +0 -7
  159. package/dist/lib/pages/CreateWorkspacePage/index.d.ts.map +0 -1
  160. package/dist/lib/pages/WorkspaceSettingsPage/index.d.ts +0 -12
  161. package/dist/lib/pages/WorkspaceSettingsPage/index.d.ts.map +0 -1
  162. package/dist/lib/pages/WorkspacesPage/index.d.ts +0 -7
  163. package/dist/lib/pages/WorkspacesPage/index.d.ts.map +0 -1
  164. package/dist/lib/slots/workspaceSlots/index.d.ts +0 -101
  165. package/dist/lib/slots/workspaceSlots/index.d.ts.map +0 -1
  166. package/dist/lib/types/wizard/index.d.ts +0 -119
  167. package/dist/lib/types/wizard/index.d.ts.map +0 -1
  168. package/dist/lib/types/workspace/index.d.ts +0 -42
  169. package/dist/lib/types/workspace/index.d.ts.map +0 -1
  170. package/dist/lib/utils/buildCreateWorkspaceBody/index.d.ts +0 -12
  171. package/dist/lib/utils/buildCreateWorkspaceBody/index.d.ts.map +0 -1
  172. package/dist/lib/utils/currentWorkspace/index.d.ts +0 -17
  173. package/dist/lib/utils/currentWorkspace/index.d.ts.map +0 -1
  174. package/dist/lib/utils/isActiveWorkspace/index.d.ts +0 -9
  175. package/dist/lib/utils/isActiveWorkspace/index.d.ts.map +0 -1
  176. package/dist/lib/utils/isConflict/index.d.ts +0 -8
  177. package/dist/lib/utils/isConflict/index.d.ts.map +0 -1
  178. package/dist/lib/utils/permissions/index.d.ts +0 -7
  179. package/dist/lib/utils/permissions/index.d.ts.map +0 -1
  180. package/dist/lib/utils/radioGroupKeydown/index.d.ts +0 -15
  181. package/dist/lib/utils/radioGroupKeydown/index.d.ts.map +0 -1
  182. package/dist/lib/utils/resourceSelection/index.d.ts +0 -18
  183. package/dist/lib/utils/resourceSelection/index.d.ts.map +0 -1
  184. package/dist/lib/utils/workspacesPlugin/index.d.ts +0 -31
  185. package/dist/lib/utils/workspacesPlugin/index.d.ts.map +0 -1
@@ -1,8 +0,0 @@
1
- /**
2
- * How many entries of content type `slug` a workspace holds. Backs the revoke
3
- * pre-check: the remove dialog reads it on open to decide whether to block the
4
- * action. Runs only while `enabled` (i.e. a removal is pending) and isn't
5
- * cached across opens, so a just-added entry is reflected.
6
- */
7
- export declare function useWorkspaceContentCount(workspaceId: string, slug: string | null, enabled: boolean): import("@tanstack/react-query").UseQueryResult<number, Error>;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/useWorkspaceContentCount/index.ts"],"names":[],"mappings":"AAwBA;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACpC,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,OAAO,EAAE,OAAO,iEASnB"}
@@ -1,8 +0,0 @@
1
- /**
2
- * How many content entries a workspace holds across all its content types.
3
- * Backs the delete pre-check: the delete dialog reads it on open to decide
4
- * whether to block deletion. Runs only while `enabled` (a delete is pending) and
5
- * isn't cached across opens, so a just-removed entry is reflected.
6
- */
7
- export declare function useWorkspaceEntryCount(workspaceId: string, enabled: boolean): import("@tanstack/react-query").UseQueryResult<number, Error>;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/useWorkspaceEntryCount/index.ts"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,iEAQ3E"}
@@ -1,30 +0,0 @@
1
- import type { Workspace } from '../../types/workspace';
2
- /** A member as `GET /api/workspaces` returns it (presentation fields derived). */
3
- export interface WorkspaceMemberView {
4
- id: string;
5
- name: string | null;
6
- email: string;
7
- }
8
- /** A workspace as `GET /api/workspaces` returns it. */
9
- export interface WorkspaceView {
10
- id: string;
11
- name: string;
12
- slug: string;
13
- description: string;
14
- color: string;
15
- status: 'active' | 'archived';
16
- members: WorkspaceMemberView[];
17
- /** Granted content-type slugs; absent on older responses. */
18
- content?: string[];
19
- }
20
- /**
21
- * Maps a server workspace view to the admin's `Workspace`, deriving the
22
- * presentation-only member initials/colors the server doesn't store. Exported
23
- * so the create mutation maps its response through the same shape.
24
- */
25
- export declare function toWorkspace(view: WorkspaceView): Workspace;
26
- /** Query key for the workspaces list. */
27
- export declare const workspacesKey: readonly ["workspaces"];
28
- /** Lists the workspaces the signed-in user can see. */
29
- export declare function useWorkspaces(): import("@tanstack/react-query").UseQueryResult<NoInfer<Workspace[]>, Error>;
30
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/useWorkspaces/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACR,SAAS,EAGZ,MAAM,uBAAuB,CAAC;AAE/B,kFAAkF;AAClF,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,uDAAuD;AACvD,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAmBD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,aAAa,GAAG,SAAS,CAW1D;AAED,yCAAyC;AACzC,eAAO,MAAM,aAAa,yBAA0B,CAAC;AAYrD,uDAAuD;AACvD,wBAAgB,aAAa,gFAK5B"}
@@ -1,41 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- /** Props for {@link BlockingConfirmDialog}. */
3
- export type BlockingConfirmDialogProps = {
4
- /** Whether the dialog is open. */
5
- open: boolean;
6
- /** Dialog heading. */
7
- title: ReactNode;
8
- /** Supporting copy under the heading. */
9
- description: ReactNode;
10
- /** Whether the backing entry-count query is still loading. */
11
- isChecking: boolean;
12
- /** Whether the entry-count query errored (blocks the action). */
13
- isError: boolean;
14
- /** The entry count once known; `undefined` while checking/errored. */
15
- count: number | undefined;
16
- /** Shown while the count is loading. */
17
- checkingLabel: string;
18
- /** Shown when the count couldn't be read. */
19
- checkErrorLabel: string;
20
- /** Shown when the count is `> 0` — the caller formats it with the count. */
21
- blockedLabel: ReactNode;
22
- /** Label for the destructive confirm button. */
23
- confirmLabel: string;
24
- /** Label for the cancel button. */
25
- cancelLabel: string;
26
- /** Close callback; ignored while the action is in flight. */
27
- onClose: () => void;
28
- /** Runs the destructive action (reachable only once the count is zero). */
29
- onConfirm: () => void;
30
- /** Whether the destructive action is in flight. */
31
- busy?: boolean;
32
- };
33
- /**
34
- * The shared "block-before-you-act" confirm dialog: on open the caller reads an
35
- * entry-count query, and this renders the checking / error / blocked states and
36
- * **enables the destructive button only once the count is known to be zero**.
37
- * Used for both revoking a content grant and deleting a workspace, which differ
38
- * only in their copy and which count hook backs them.
39
- */
40
- export declare function BlockingConfirmDialog({ open, title, description, isChecking, isError, count, checkingLabel, checkErrorLabel, blockedLabel, confirmLabel, cancelLabel, onClose, onConfirm, busy }: BlockingConfirmDialogProps): import("react").JSX.Element;
41
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/BlockingConfirmDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAcvC,+CAA+C;AAC/C,MAAM,MAAM,0BAA0B,GAAG;IACrC,kCAAkC;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,sBAAsB;IACtB,KAAK,EAAE,SAAS,CAAC;IACjB,yCAAyC;IACzC,WAAW,EAAE,SAAS,CAAC;IACvB,8DAA8D;IAC9D,UAAU,EAAE,OAAO,CAAC;IACpB,iEAAiE;IACjE,OAAO,EAAE,OAAO,CAAC;IACjB,sEAAsE;IACtE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,YAAY,EAAE,SAAS,CAAC;IACxB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,2EAA2E;IAC3E,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,mDAAmD;IACnD,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,KAAK,EACL,WAAW,EACX,UAAU,EACV,OAAO,EACP,KAAK,EACL,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,OAAO,EACP,SAAS,EACT,IAAY,EACf,EAAE,0BAA0B,+BAoD5B"}
@@ -1,15 +0,0 @@
1
- import { type AvatarColor } from '@ortha-cms/design-system';
2
- /** Props for {@link ColorSwatchRow}. */
3
- export type ColorSwatchRowProps = {
4
- /** Currently selected accent. */
5
- value: AvatarColor;
6
- /** Called when a swatch is chosen. */
7
- onChange: (color: AvatarColor) => void;
8
- };
9
- /**
10
- * The accent-color picker for the basics step: a single-select row of the
11
- * shared avatar palette, exposed as a radio group for keyboard + screen-reader
12
- * users. The selected swatch shows a check.
13
- */
14
- export declare function ColorSwatchRow({ value, onChange }: ColorSwatchRowProps): import("react").JSX.Element;
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/ColorSwatchRow/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,WAAW,EACnB,MAAM,0BAA0B,CAAC;AAalC,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG;IAC9B,iCAAiC;IACjC,KAAK,EAAE,WAAW,CAAC;IACnB,sCAAsC;IACtC,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAuCtE"}
@@ -1,15 +0,0 @@
1
- import { type AvatarColor } from '@ortha-cms/design-system';
2
- /** Props for {@link ColorSwatchRow}. */
3
- export type ColorSwatchRowProps = {
4
- /** Currently selected accent. */
5
- value: AvatarColor;
6
- /** Called when a swatch is chosen. */
7
- onChange: (color: AvatarColor) => void;
8
- };
9
- /**
10
- * The accent-color picker for the basics step: a single-select row of the
11
- * shared avatar palette, exposed as a radio group for keyboard + screen-reader
12
- * users. The selected swatch shows a check.
13
- */
14
- export declare function ColorSwatchRow({ value, onChange }: ColorSwatchRowProps): import("react").JSX.Element;
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/CreateWorkspaceWizard/ColorSwatchRow/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,WAAW,EACnB,MAAM,0BAA0B,CAAC;AAalC,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG;IAC9B,iCAAiC;IACjC,KAAK,EAAE,WAAW,CAAC;IACnB,sCAAsC;IACtC,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAuCtE"}
@@ -1,11 +0,0 @@
1
- import type { ContentMode } from '../../../../types/wizard';
2
- /** Props for {@link ModeTiles}. */
3
- export type ModeTilesProps = {
4
- /** Current content mode. */
5
- value: ContentMode;
6
- /** Called when a tile is chosen. */
7
- onChange: (mode: ContentMode) => void;
8
- };
9
- /** Two radio tiles choosing between full access and a specific selection. */
10
- export declare function ModeTiles({ value, onChange }: ModeTilesProps): import("react").JSX.Element;
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/CreateWorkspaceWizard/ContentStep/ModeTiles/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AA2C5D,mCAAmC;AACnC,MAAM,MAAM,cAAc,GAAG;IACzB,4BAA4B;IAC5B,KAAK,EAAE,WAAW,CAAC;IACnB,oCAAoC;IACpC,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,6EAA6E;AAC7E,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,cAAc,+BAuC5D"}
@@ -1,48 +0,0 @@
1
- import { type ComponentType } from 'react';
2
- import { type MessageDescriptor } from 'react-intl';
3
- import type { ResourceSelection } from '../../../../types/wizard';
4
- /** A selectable row in a {@link ResourceSection}. */
5
- export type ResourceRow = {
6
- /** Stable id (the content type name). */
7
- id: string;
8
- /** Primary label. */
9
- primary: string;
10
- /** Secondary line (description or path), also searched. */
11
- secondary?: string;
12
- };
13
- /** The i18n strings a {@link ResourceSection} needs. */
14
- export type ResourceSectionMessages = {
15
- heading: MessageDescriptor;
16
- help: MessageDescriptor;
17
- searchPlaceholder: MessageDescriptor;
18
- allLabel: MessageDescriptor;
19
- empty: MessageDescriptor;
20
- noResults: MessageDescriptor;
21
- /** Plural — receives `{count}`. */
22
- countSpecific: MessageDescriptor;
23
- countAll: MessageDescriptor;
24
- /** Plural — receives `{count}` excluded. */
25
- countAllExcluded: MessageDescriptor;
26
- };
27
- /** Props for {@link ResourceSection}. */
28
- export type ResourceSectionProps = {
29
- /** Section copy. */
30
- messages: ResourceSectionMessages;
31
- /** Leading icon for every row. */
32
- icon: ComponentType<{
33
- className?: string;
34
- }>;
35
- /** All rows (filtering affects only what's rendered). */
36
- rows: ResourceRow[];
37
- /** Current selection. */
38
- selection: ResourceSelection;
39
- /** Replace the selection. */
40
- onChange: (next: ResourceSelection) => void;
41
- };
42
- /**
43
- * A generic "specific vs all" selection panel — used for both collections and
44
- * pages. Owns local search; the caller owns the selection state and supplies
45
- * rows, icon, and copy.
46
- */
47
- export declare function ResourceSection({ messages, icon: Icon, rows, selection, onChange }: ResourceSectionProps): import("react").JSX.Element;
48
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/CreateWorkspaceWizard/ContentStep/ResourceSection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAW,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAU7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,qDAAqD;AACrD,MAAM,MAAM,WAAW,GAAG;IACtB,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wDAAwD;AACxD,MAAM,MAAM,uBAAuB,GAAG;IAClC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE,iBAAiB,CAAC;IACxB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,KAAK,EAAE,iBAAiB,CAAC;IACzB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,mCAAmC;IACnC,aAAa,EAAE,iBAAiB,CAAC;IACjC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,4CAA4C;IAC5C,gBAAgB,EAAE,iBAAiB,CAAC;CACvC,CAAC;AAEF,yCAAyC;AACzC,MAAM,MAAM,oBAAoB,GAAG;IAC/B,oBAAoB;IACpB,QAAQ,EAAE,uBAAuB,CAAC;IAClC,kCAAkC;IAClC,IAAI,EAAE,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5C,yDAAyD;IACzD,IAAI,EAAE,WAAW,EAAE,CAAC;IACpB,yBAAyB;IACzB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,6BAA6B;IAC7B,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC5B,QAAQ,EACR,IAAI,EAAE,IAAI,EACV,IAAI,EACJ,SAAS,EACT,QAAQ,EACX,EAAE,oBAAoB,+BAwGtB"}
@@ -1,23 +0,0 @@
1
- import type { ContentMode, ResourceSelection } from '../../../types/wizard';
2
- /** Props for {@link ContentStep}. */
3
- export type ContentStepProps = {
4
- /** Page-level content mode. */
5
- contentMode: ContentMode;
6
- /** Set the content mode. */
7
- setContentMode: (mode: ContentMode) => void;
8
- /** Collection selection. */
9
- collections: ResourceSelection;
10
- /** Replace the collection selection. */
11
- setCollections: (selection: ResourceSelection) => void;
12
- /** Page selection. */
13
- pages: ResourceSelection;
14
- /** Replace the page selection. */
15
- setPages: (selection: ResourceSelection) => void;
16
- };
17
- /**
18
- * The content step body: the All-vs-Specific mode tiles, then either a
19
- * reassuring full-access alert or the collections + pages selection panels
20
- * (with loading and error states for the content-types query).
21
- */
22
- export declare function ContentStep({ contentMode, setContentMode, collections, setCollections, pages, setPages }: ContentStepProps): import("react").JSX.Element;
23
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/CreateWorkspaceWizard/ContentStep/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AA+G5E,qCAAqC;AACrC,MAAM,MAAM,gBAAgB,GAAG;IAC3B,+BAA+B;IAC/B,WAAW,EAAE,WAAW,CAAC;IACzB,4BAA4B;IAC5B,cAAc,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5C,4BAA4B;IAC5B,WAAW,EAAE,iBAAiB,CAAC;IAC/B,wCAAwC;IACxC,cAAc,EAAE,CAAC,SAAS,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACvD,sBAAsB;IACtB,KAAK,EAAE,iBAAiB,CAAC;IACzB,kCAAkC;IAClC,QAAQ,EAAE,CAAC,SAAS,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EACxB,WAAW,EACX,cAAc,EACd,WAAW,EACX,cAAc,EACd,KAAK,EACL,QAAQ,EACX,EAAE,gBAAgB,+BAyElB"}
@@ -1,17 +0,0 @@
1
- import type { UseSlugResult } from '../../../hooks/useSlug';
2
- import type { WizardData } from '../../../types/wizard';
3
- /** Props for {@link IdentityFields}. */
4
- export type IdentityFieldsProps = {
5
- /** Current basics data. */
6
- data: WizardData;
7
- /** Merge a partial patch into the basics data. */
8
- update: (patch: Partial<WizardData>) => void;
9
- /** Slug controller (status + handlers) owned by the page. */
10
- slug: UseSlugResult;
11
- };
12
- /**
13
- * The basics step body: a live workspace monogram beside the name, the accent
14
- * color picker, the slug field with availability, and an optional description.
15
- */
16
- export declare function IdentityFields({ data, update, slug }: IdentityFieldsProps): 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/CreateWorkspaceWizard/IdentityFields/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AA6CxD,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG;IAC9B,2BAA2B;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,kDAAkD;IAClD,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAC7C,6DAA6D;IAC7D,IAAI,EAAE,aAAa,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,mBAAmB,+BAyGzE"}
@@ -1,14 +0,0 @@
1
- import type { MemberDraft } from '../../../../types/wizard';
2
- /** Props for {@link MemberRow}. */
3
- export type MemberRowProps = {
4
- /** The added member. */
5
- member: MemberDraft;
6
- /** Remove the member from the list. */
7
- onRemove: () => void;
8
- };
9
- /**
10
- * One added member: avatar, name/email, an "Invited" badge for invite-by-email
11
- * rows, and a remove button.
12
- */
13
- export declare function MemberRow({ member, onRemove }: MemberRowProps): 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/CreateWorkspaceWizard/MembersStep/MemberRow/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAa5D,mCAAmC;AACnC,MAAM,MAAM,cAAc,GAAG;IACzB,wBAAwB;IACxB,MAAM,EAAE,WAAW,CAAC;IACpB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,cAAc,+BA+C7D"}
@@ -1,15 +0,0 @@
1
- import type { MemberDraft } from '../../../../types/wizard';
2
- /** Props for {@link MemberTypeahead}. */
3
- export type MemberTypeaheadProps = {
4
- /** Ids already present (owner + added members) — excluded from results. */
5
- excludeIds: Set<string>;
6
- /** Add a member (existing user or invited email). */
7
- onAdd: (member: MemberDraft) => void;
8
- };
9
- /**
10
- * Searchable input that adds people to the workspace. Existing directory users
11
- * are selected from the results; a typed-in email that isn't in the directory
12
- * can be invited instead.
13
- */
14
- export declare function MemberTypeahead({ excludeIds, onAdd }: MemberTypeaheadProps): import("react").JSX.Element;
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/CreateWorkspaceWizard/MembersStep/MemberTypeahead/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAwB5D,yCAAyC;AACzC,MAAM,MAAM,oBAAoB,GAAG;IAC/B,2EAA2E;IAC3E,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,qDAAqD;IACrD,KAAK,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,oBAAoB,+BA6G1E"}
@@ -1,17 +0,0 @@
1
- import type { MemberDraft } from '../../../types/wizard';
2
- /** Props for {@link MembersStep}. */
3
- export type MembersStepProps = {
4
- /** Added members (excludes the owner). */
5
- members: MemberDraft[];
6
- /** Add a member. */
7
- addMember: (member: MemberDraft) => void;
8
- /** Remove a member by id. */
9
- removeMember: (id: string) => void;
10
- };
11
- /**
12
- * The members step body: the directory typeahead plus the "People with access"
13
- * list — the current user pinned and locked as owner, followed by each added
14
- * member with a role control and a remove button.
15
- */
16
- export declare function MembersStep({ members, addMember, removeMember }: MembersStepProps): 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/CreateWorkspaceWizard/MembersStep/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAoBzD,qCAAqC;AACrC,MAAM,MAAM,gBAAgB,GAAG;IAC3B,0CAA0C;IAC1C,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,oBAAoB;IACpB,SAAS,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,6BAA6B;IAC7B,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EACxB,OAAO,EACP,SAAS,EACT,YAAY,EACf,EAAE,gBAAgB,+BAqElB"}
@@ -1,17 +0,0 @@
1
- import { type AvatarColor } from '@ortha-cms/design-system';
2
- /** Props for {@link Monogram}. */
3
- export type MonogramProps = {
4
- /** Name the initials are derived from. */
5
- name: string;
6
- /** Accent color tinting the tile. */
7
- color: AvatarColor;
8
- /** Extra classes — set the size here (defaults to a 44px tile). */
9
- className?: string;
10
- };
11
- /**
12
- * A rounded-square initials tile in the workspace accent color, white text.
13
- * Distinct from the round member `Avatar` — this represents the workspace
14
- * identity in the basics step and updates live as the name/color change.
15
- */
16
- export declare function Monogram({ name, color, className }: MonogramProps): 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/CreateWorkspaceWizard/Monogram/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGhF,kCAAkC;AAClC,MAAM,MAAM,aAAa,GAAG;IACxB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,KAAK,EAAE,WAAW,CAAC;IACnB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,aAAa,+BAajE"}
@@ -1,23 +0,0 @@
1
- import { SlugStatus } from '../../../types/wizard';
2
- /** Props for {@link SlugField}. */
3
- export type SlugFieldProps = {
4
- /** Current slug value. */
5
- value: string;
6
- /** Whether the user has manually edited the slug. */
7
- slugEdited: boolean;
8
- /** Live availability status. */
9
- status: SlugStatus;
10
- /** Called when the slug input changes. */
11
- onChange: (value: string) => void;
12
- /** Called when the regenerate button is pressed. */
13
- onRegenerate: () => void;
14
- /** Localized shape error (e.g. pattern violation). */
15
- error?: string;
16
- };
17
- /**
18
- * Slug input with a regenerate button (shown once the slug has been manually
19
- * edited) and a live availability line. Shape errors take over the helper slot;
20
- * otherwise the helper text and availability status show.
21
- */
22
- export declare function SlugField({ value, slugEdited, status, onChange, onRegenerate, error }: SlugFieldProps): import("react").JSX.Element;
23
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/CreateWorkspaceWizard/SlugField/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAiEnD,mCAAmC;AACnC,MAAM,MAAM,cAAc,GAAG;IACzB,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,UAAU,EAAE,OAAO,CAAC;IACpB,gCAAgC;IAChC,MAAM,EAAE,UAAU,CAAC;IACnB,0CAA0C;IAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,oDAAoD;IACpD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EACtB,KAAK,EACL,UAAU,EACV,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,KAAK,EACR,EAAE,cAAc,+BA2ChB"}
@@ -1,9 +0,0 @@
1
- import type { WorkspaceStatus } from '../../types/workspace';
2
- /**
3
- * A small status pill with a leading dot: green for an active workspace, muted
4
- * for an archived one. Shown in the workspaces table's status column.
5
- */
6
- export declare function StatusChip({ status }: {
7
- status: WorkspaceStatus;
8
- }): 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/StatusChip/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAc7D;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,+BAuBjE"}
@@ -1,20 +0,0 @@
1
- import type { CSSProperties } from 'react';
2
- import { type AvatarColor } from '@ortha-cms/design-system';
3
- type WorkspaceAvatarProps = {
4
- /** Initials rendered as the avatar content. */
5
- initials: string;
6
- /** Accent color tinting the avatar background. */
7
- color: AvatarColor;
8
- /** Extra classes (size, radius, border). */
9
- className?: string;
10
- /** Extra inline styles (e.g. overlap margin in a stack). */
11
- style?: CSSProperties;
12
- };
13
- /**
14
- * An initials avatar tinted with one of the shared accent colors, sized via
15
- * `className`. Shape comes from the design-system `Avatar` default (rounded
16
- * square), shared by workspaces and members.
17
- */
18
- export declare function WorkspaceAvatar({ initials, color, className, style }: WorkspaceAvatarProps): import("react").JSX.Element;
19
- export {};
20
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceAvatar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAKH,KAAK,WAAW,EACnB,MAAM,0BAA0B,CAAC;AAElC,KAAK,oBAAoB,GAAG;IACxB,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,kDAAkD;IAClD,KAAK,EAAE,WAAW,CAAC;IACnB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC5B,QAAQ,EACR,KAAK,EACL,SAAS,EACT,KAAK,EACR,EAAE,oBAAoB,+BAWtB"}
@@ -1,9 +0,0 @@
1
- import type { WorkspaceMember } from '../../../../types/workspace';
2
- /**
3
- * The body of the member popover: a count header over a scrollable list of
4
- * every member (avatar, name, email). Scrolls once it grows past ~6 rows.
5
- */
6
- export declare function MemberListPopover({ members }: {
7
- members: WorkspaceMember[];
8
- }): 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/WorkspaceCard/MemberStack/MemberListPopover/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAUnE;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,eAAe,EAAE,CAAA;CAAE,+BAkC5E"}
@@ -1,11 +0,0 @@
1
- import type { WorkspaceMember } from '../../../types/workspace';
2
- /**
3
- * The card footer's member control: a row of overlapping avatars plus a member
4
- * count. Clicking opens a popover listing every member. It renders above the
5
- * card's click overlay (the card places it in a `relative z-10` row), so it is a
6
- * sibling of — not nested in — the card's open button and activates on its own.
7
- */
8
- export declare function MemberStack({ members }: {
9
- members: WorkspaceMember[];
10
- }): import("react").JSX.Element;
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceCard/MemberStack/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAiBhE;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,eAAe,EAAE,CAAA;CAAE,+BA4CtE"}
@@ -1,9 +0,0 @@
1
- import type { WorkspaceStatus } from '../../../types/workspace';
2
- /**
3
- * A small status pill with a leading dot: green for an active workspace, muted
4
- * for an archived one.
5
- */
6
- export declare function StatusChip({ status }: {
7
- status: WorkspaceStatus;
8
- }): 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/WorkspaceCard/StatusChip/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAchE;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,+BAoBjE"}
@@ -1,15 +0,0 @@
1
- import type { Workspace } from '../../types/workspace';
2
- /**
3
- * A workspace card. The whole card is clickable to open the workspace, but the
4
- * card itself is **not** an interactive element — a single real `<button>` on
5
- * the title carries the action and its `::after` overlay stretches across the
6
- * card to make the entire surface the hit target. The member stack sits above
7
- * that overlay (`relative z-10`) as a sibling button, so the two controls never
8
- * nest (which would violate WCAG 4.1.2) and each is independently operable. The
9
- * card is a labelled `group` rather than a button — there is no actions menu and
10
- * no role shown, since role is a property of the current user, not the card.
11
- */
12
- export declare function WorkspaceCard({ workspace }: {
13
- workspace: Workspace;
14
- }): import("react").JSX.Element;
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceCard/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,+BAoDpE"}
@@ -1,8 +0,0 @@
1
- import type { CommandSectionProps } from '@ortha-cms/shell-admin';
2
- /**
3
- * The command palette's Workspaces group: every active workspace as a result
4
- * that jumps into it. Contributed to the shell's `COMMAND_SLOT` by
5
- * `workspaces-admin`, so a member can open a workspace from anywhere via ⌘K.
6
- */
7
- export declare function WorkspaceCommands({ close }: CommandSectionProps): import("react").JSX.Element | null;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/WorkspaceCommands/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAclE;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE,mBAAmB,sCAmC/D"}
@@ -1,26 +0,0 @@
1
- import type { ContentType } from '../../../types/wizard';
2
- /** Props for {@link AddContentDialog}. */
3
- export type AddContentDialogProps = {
4
- /** Whether the dialog is open. */
5
- open: boolean;
6
- /** Open/close callback; ignored while saving. */
7
- onOpenChange: (open: boolean) => void;
8
- /** Localized dialog heading (e.g. "Add collections"). */
9
- title: string;
10
- /** Localized supporting copy. */
11
- description: string;
12
- /** Content types not yet granted — the selectable list (already one kind). */
13
- available: ContentType[];
14
- /** Grants the chosen slugs; resolves when done so the dialog can close. */
15
- onConfirm: (slugs: string[]) => Promise<void>;
16
- /** Whether a grant is in flight. */
17
- busy?: boolean;
18
- };
19
- /**
20
- * A search + multi-select dialog for granting content types of a **single kind**
21
- * (collections or pages — the caller pre-filters `available` and labels it via
22
- * `title`): type to filter, tick any number, then Add them in one go. Selection
23
- * + query reset each time the dialog opens.
24
- */
25
- export declare function AddContentDialog({ open, onOpenChange, title, description, available, onConfirm, busy }: AddContentDialogProps): import("react").JSX.Element;
26
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceContentSettings/AddContentDialog/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAkCzD,0CAA0C;AAC1C,MAAM,MAAM,qBAAqB,GAAG;IAChC,kCAAkC;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,iDAAiD;IACjD,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,2EAA2E;IAC3E,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,oCAAoC;IACpC,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAC7B,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,IAAY,EACf,EAAE,qBAAqB,+BAsIvB"}
@@ -1,21 +0,0 @@
1
- import { type GrantedContent } from '../GrantedContentRow';
2
- /** Props for {@link GrantedContentGroup}. */
3
- export type GrantedContentGroupProps = {
4
- /** Section heading (e.g. "Collections"). */
5
- heading: string;
6
- /** The granted items in this section. */
7
- items: GrantedContent[];
8
- /** Copy shown when the section has no grants. */
9
- emptyLabel: string;
10
- /** Whether remove controls should be offered. */
11
- canRemove: boolean;
12
- /** Called with the item to remove. */
13
- onRemove: (item: GrantedContent) => void;
14
- };
15
- /**
16
- * One kind's slice of the granted-content list — a heading with a count over a
17
- * bordered list of rows (or an empty hint). The heading conveys the kind, so the
18
- * rows drop their kind badge. Backs the Collections / Pages split.
19
- */
20
- export declare function GrantedContentGroup({ heading, items, emptyLabel, canRemove, onRemove }: GrantedContentGroupProps): import("react").JSX.Element;
21
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceContentSettings/GrantedContentGroup/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE9E,6CAA6C;AAC7C,MAAM,MAAM,wBAAwB,GAAG;IACnC,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,yCAAyC;IACzC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,SAAS,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,OAAO,EACP,KAAK,EACL,UAAU,EACV,SAAS,EACT,QAAQ,EACX,EAAE,wBAAwB,+BA8B1B"}
@@ -1,26 +0,0 @@
1
- import type { ContentType } from '../../../types/wizard';
2
- /** A granted content type resolved for display: the slug plus its catalogue entry. */
3
- export type GrantedContent = {
4
- /** The stored grant slug. */
5
- slug: string;
6
- /** The matching catalogue type, or `undefined` for a stale/unknown slug. */
7
- type?: ContentType;
8
- };
9
- /** Props for {@link GrantedContentRow}. */
10
- export type GrantedContentRowProps = {
11
- /** The granted content to render. */
12
- granted: GrantedContent;
13
- /** Whether a remove control should be offered. */
14
- canRemove: boolean;
15
- /** Called when the remove control is pressed. */
16
- onRemove: () => void;
17
- /** Show the kind badge; off under a Collections/Pages group heading. */
18
- showKind?: boolean;
19
- };
20
- /**
21
- * One row in the granted-content list: an icon by kind, the type's label
22
- (falling back to the raw slug for an unknown type), a kind badge, and — when the
23
- * user may manage content — a remove button.
24
- */
25
- export declare function GrantedContentRow({ granted, canRemove, onRemove, showKind }: GrantedContentRowProps): import("react").JSX.Element;
26
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/WorkspaceContentSettings/GrantedContentRow/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAkBzD,sFAAsF;AACtF,MAAM,MAAM,cAAc,GAAG;IACzB,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,IAAI,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,2CAA2C;AAC3C,MAAM,MAAM,sBAAsB,GAAG;IACjC,qCAAqC;IACrC,OAAO,EAAE,cAAc,CAAC;IACxB,kDAAkD;IAClD,SAAS,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAe,EAClB,EAAE,sBAAsB,+BA2CxB"}