@vantageos/mosaic-blocks 0.2.1-alpha → 0.2.3-alpha
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/index.cjs +65 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +91 -9
- package/dist/index.d.ts +91 -9
- package/dist/index.js +65 -22
- package/dist/index.js.map +1 -1
- package/package.json +3 -7
package/dist/index.d.cts
CHANGED
|
@@ -1624,6 +1624,18 @@ declare namespace MosaicQuickActionCard {
|
|
|
1624
1624
|
*/
|
|
1625
1625
|
|
|
1626
1626
|
type MosaicActivityStatus = "active" | "completed" | "archived";
|
|
1627
|
+
/**
|
|
1628
|
+
* Participant shape.
|
|
1629
|
+
*
|
|
1630
|
+
* Two forms accepted (union, both backward-compat):
|
|
1631
|
+
* - `string` — plain label, rendered as initials avatar (original API)
|
|
1632
|
+
* - `{ actor?: string; excerpt?: string }` — structured form (VP ActivityEvent shape)
|
|
1633
|
+
* `actor` is used as the avatar label; `excerpt` is surfaced as a sub-line when rendering.
|
|
1634
|
+
*/
|
|
1635
|
+
type MosaicActivityParticipant = string | {
|
|
1636
|
+
actor?: string;
|
|
1637
|
+
excerpt?: string;
|
|
1638
|
+
};
|
|
1627
1639
|
interface MosaicActivity {
|
|
1628
1640
|
/** Stable unique identifier */
|
|
1629
1641
|
id: string;
|
|
@@ -1631,12 +1643,35 @@ interface MosaicActivity {
|
|
|
1631
1643
|
type: string;
|
|
1632
1644
|
title: string;
|
|
1633
1645
|
description?: string;
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1646
|
+
/**
|
|
1647
|
+
* Timestamp label. Accepts:
|
|
1648
|
+
* - `string` — display-ready label or ISO string (original API)
|
|
1649
|
+
* - `number` — Unix ms epoch (VP `updatedAt` numeric form)
|
|
1650
|
+
*/
|
|
1651
|
+
timestamp: string | number;
|
|
1652
|
+
/**
|
|
1653
|
+
* Activity status. Accepts the canonical `MosaicActivityStatus` values
|
|
1654
|
+
* (`"active" | "completed" | "archived"`) OR any free string from upstream
|
|
1655
|
+
* systems (e.g. VP `ActivityEvent.status`). Known values receive accent styling;
|
|
1656
|
+
* unknown strings fall back to the "archived" (neutral) style.
|
|
1657
|
+
*
|
|
1658
|
+
* Using `MosaicActivityStatus | (string & {})` preserves IDE autocomplete
|
|
1659
|
+
* for the well-known values while accepting arbitrary strings at runtime.
|
|
1660
|
+
*/
|
|
1661
|
+
status: MosaicActivityStatus | (string & {});
|
|
1662
|
+
/**
|
|
1663
|
+
* Participant list. Accepts:
|
|
1664
|
+
* - `string[]` — plain labels rendered as initials avatars (original API)
|
|
1665
|
+
* - `MosaicActivityParticipant[]` — union shape also accepting `{ actor?, excerpt? }` objects
|
|
1666
|
+
*/
|
|
1667
|
+
participants?: MosaicActivityParticipant[];
|
|
1638
1668
|
/** Number of messages/events in this activity */
|
|
1639
1669
|
messages?: number;
|
|
1670
|
+
/**
|
|
1671
|
+
* Optional excerpt / summary text (VP ActivityEvent field).
|
|
1672
|
+
* Shown below description when present.
|
|
1673
|
+
*/
|
|
1674
|
+
excerpt?: string;
|
|
1640
1675
|
}
|
|
1641
1676
|
interface MosaicActivityFeedProps {
|
|
1642
1677
|
activities: MosaicActivity[];
|
|
@@ -2932,20 +2967,38 @@ interface MosaicSignInLayoutProps {
|
|
|
2932
2967
|
clerkSignIn: React.ComponentType<{
|
|
2933
2968
|
appearance?: Record<string, unknown>;
|
|
2934
2969
|
signUpUrl?: string;
|
|
2970
|
+
signInUrl?: string;
|
|
2935
2971
|
fallbackRedirectUrl?: string;
|
|
2972
|
+
forceRedirectUrl?: string;
|
|
2973
|
+
routing?: "hash" | "path" | "virtual";
|
|
2974
|
+
path?: string;
|
|
2936
2975
|
[key: string]: unknown;
|
|
2937
2976
|
}>;
|
|
2938
2977
|
/** URL for sign-up page */
|
|
2939
2978
|
signUpUrl?: string;
|
|
2940
|
-
/** URL to
|
|
2979
|
+
/** URL for sign-in page (passed to the Clerk widget as signInUrl) */
|
|
2980
|
+
signInUrl?: string;
|
|
2981
|
+
/** URL to redirect after successful sign-in (Clerk v7 fallbackRedirectUrl) */
|
|
2941
2982
|
afterSignInUrl?: string;
|
|
2983
|
+
/** Force redirect URL — overrides query-param-based redirects (Clerk v7) */
|
|
2984
|
+
forceRedirectUrl?: string;
|
|
2985
|
+
/**
|
|
2986
|
+
* Clerk routing mode for catch-all routes.
|
|
2987
|
+
* Required for [[...sign-in]] App Router pages. Defaults to "path" when path is set.
|
|
2988
|
+
*/
|
|
2989
|
+
routing?: "hash" | "path" | "virtual";
|
|
2990
|
+
/**
|
|
2991
|
+
* Base path for "path" routing (e.g. "/sign-in").
|
|
2992
|
+
* Required when routing="path".
|
|
2993
|
+
*/
|
|
2994
|
+
path?: string;
|
|
2942
2995
|
/** Optional headline above the Clerk widget */
|
|
2943
2996
|
headline?: string;
|
|
2944
2997
|
/** Optional sub-headline */
|
|
2945
2998
|
subheadline?: string;
|
|
2946
2999
|
className?: string;
|
|
2947
3000
|
}
|
|
2948
|
-
declare function MosaicSignInLayout({ clerkSignIn: ClerkSignIn, signUpUrl, afterSignInUrl, headline, subheadline, className, }: MosaicSignInLayoutProps): React.JSX.Element;
|
|
3001
|
+
declare function MosaicSignInLayout({ clerkSignIn: ClerkSignIn, signUpUrl, signInUrl, afterSignInUrl, forceRedirectUrl, routing, path, headline, subheadline, className, }: MosaicSignInLayoutProps): React.JSX.Element;
|
|
2949
3002
|
declare namespace MosaicSignInLayout {
|
|
2950
3003
|
var displayName: string;
|
|
2951
3004
|
}
|
|
@@ -2966,20 +3019,38 @@ interface MosaicSignUpLayoutProps {
|
|
|
2966
3019
|
clerkSignUp: React.ComponentType<{
|
|
2967
3020
|
appearance?: Record<string, unknown>;
|
|
2968
3021
|
signInUrl?: string;
|
|
3022
|
+
signUpUrl?: string;
|
|
2969
3023
|
fallbackRedirectUrl?: string;
|
|
3024
|
+
forceRedirectUrl?: string;
|
|
3025
|
+
routing?: "hash" | "path" | "virtual";
|
|
3026
|
+
path?: string;
|
|
2970
3027
|
[key: string]: unknown;
|
|
2971
3028
|
}>;
|
|
2972
3029
|
/** URL for sign-in page */
|
|
2973
3030
|
signInUrl?: string;
|
|
2974
|
-
/** URL to
|
|
3031
|
+
/** URL for sign-up page (passed to the Clerk widget as signUpUrl) */
|
|
3032
|
+
signUpUrl?: string;
|
|
3033
|
+
/** URL to redirect after successful sign-up (Clerk v7 fallbackRedirectUrl) */
|
|
2975
3034
|
afterSignUpUrl?: string;
|
|
3035
|
+
/** Force redirect URL — overrides query-param-based redirects (Clerk v7) */
|
|
3036
|
+
forceRedirectUrl?: string;
|
|
3037
|
+
/**
|
|
3038
|
+
* Clerk routing mode for catch-all routes.
|
|
3039
|
+
* Required for [[...sign-up]] App Router pages. Defaults to "path" when path is set.
|
|
3040
|
+
*/
|
|
3041
|
+
routing?: "hash" | "path" | "virtual";
|
|
3042
|
+
/**
|
|
3043
|
+
* Base path for "path" routing (e.g. "/sign-up").
|
|
3044
|
+
* Required when routing="path".
|
|
3045
|
+
*/
|
|
3046
|
+
path?: string;
|
|
2976
3047
|
/** Optional headline above the Clerk widget */
|
|
2977
3048
|
headline?: string;
|
|
2978
3049
|
/** Optional sub-headline */
|
|
2979
3050
|
subheadline?: string;
|
|
2980
3051
|
className?: string;
|
|
2981
3052
|
}
|
|
2982
|
-
declare function MosaicSignUpLayout({ clerkSignUp: ClerkSignUp, signInUrl, afterSignUpUrl, headline, subheadline, className, }: MosaicSignUpLayoutProps): React.JSX.Element;
|
|
3053
|
+
declare function MosaicSignUpLayout({ clerkSignUp: ClerkSignUp, signInUrl, signUpUrl, afterSignUpUrl, forceRedirectUrl, routing, path, headline, subheadline, className, }: MosaicSignUpLayoutProps): React.JSX.Element;
|
|
2983
3054
|
declare namespace MosaicSignUpLayout {
|
|
2984
3055
|
var displayName: string;
|
|
2985
3056
|
}
|
|
@@ -3008,6 +3079,7 @@ interface MosaicClerkOrgSwitcherProps {
|
|
|
3008
3079
|
appearance?: Record<string, unknown>;
|
|
3009
3080
|
afterCreateOrganizationUrl?: string;
|
|
3010
3081
|
afterSelectOrganizationUrl?: string;
|
|
3082
|
+
afterSelectPersonalUrl?: string;
|
|
3011
3083
|
afterLeaveOrganizationUrl?: string;
|
|
3012
3084
|
hidePersonal?: boolean;
|
|
3013
3085
|
[key: string]: unknown;
|
|
@@ -3016,13 +3088,23 @@ interface MosaicClerkOrgSwitcherProps {
|
|
|
3016
3088
|
afterCreateOrganizationUrl?: string;
|
|
3017
3089
|
/** URL to redirect after selecting an org */
|
|
3018
3090
|
afterSelectOrganizationUrl?: string;
|
|
3091
|
+
/**
|
|
3092
|
+
* URL to redirect after selecting the personal workspace.
|
|
3093
|
+
* Required for VP patterns where personal workspace has a distinct landing page.
|
|
3094
|
+
*/
|
|
3095
|
+
afterSelectPersonalUrl?: string;
|
|
3019
3096
|
/** URL to redirect after leaving an org */
|
|
3020
3097
|
afterLeaveOrganizationUrl?: string;
|
|
3021
3098
|
/** Hide personal workspace from the switcher */
|
|
3022
3099
|
hidePersonal?: boolean;
|
|
3100
|
+
/**
|
|
3101
|
+
* data-testid forwarded onto the root wrapper div.
|
|
3102
|
+
* Allows e2e selectors (e.g. Playwright `getByTestId("org-switcher")`).
|
|
3103
|
+
*/
|
|
3104
|
+
"data-testid"?: string;
|
|
3023
3105
|
className?: string;
|
|
3024
3106
|
}
|
|
3025
|
-
declare function MosaicClerkOrgSwitcher({ clerkOrgSwitcher: ClerkOrgSwitcher, afterCreateOrganizationUrl, afterSelectOrganizationUrl, afterLeaveOrganizationUrl, hidePersonal, className, }: MosaicClerkOrgSwitcherProps): React.JSX.Element;
|
|
3107
|
+
declare function MosaicClerkOrgSwitcher({ clerkOrgSwitcher: ClerkOrgSwitcher, afterCreateOrganizationUrl, afterSelectOrganizationUrl, afterSelectPersonalUrl, afterLeaveOrganizationUrl, hidePersonal, "data-testid": dataTestId, className, }: MosaicClerkOrgSwitcherProps): React.JSX.Element;
|
|
3026
3108
|
declare namespace MosaicClerkOrgSwitcher {
|
|
3027
3109
|
var displayName: string;
|
|
3028
3110
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1624,6 +1624,18 @@ declare namespace MosaicQuickActionCard {
|
|
|
1624
1624
|
*/
|
|
1625
1625
|
|
|
1626
1626
|
type MosaicActivityStatus = "active" | "completed" | "archived";
|
|
1627
|
+
/**
|
|
1628
|
+
* Participant shape.
|
|
1629
|
+
*
|
|
1630
|
+
* Two forms accepted (union, both backward-compat):
|
|
1631
|
+
* - `string` — plain label, rendered as initials avatar (original API)
|
|
1632
|
+
* - `{ actor?: string; excerpt?: string }` — structured form (VP ActivityEvent shape)
|
|
1633
|
+
* `actor` is used as the avatar label; `excerpt` is surfaced as a sub-line when rendering.
|
|
1634
|
+
*/
|
|
1635
|
+
type MosaicActivityParticipant = string | {
|
|
1636
|
+
actor?: string;
|
|
1637
|
+
excerpt?: string;
|
|
1638
|
+
};
|
|
1627
1639
|
interface MosaicActivity {
|
|
1628
1640
|
/** Stable unique identifier */
|
|
1629
1641
|
id: string;
|
|
@@ -1631,12 +1643,35 @@ interface MosaicActivity {
|
|
|
1631
1643
|
type: string;
|
|
1632
1644
|
title: string;
|
|
1633
1645
|
description?: string;
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1646
|
+
/**
|
|
1647
|
+
* Timestamp label. Accepts:
|
|
1648
|
+
* - `string` — display-ready label or ISO string (original API)
|
|
1649
|
+
* - `number` — Unix ms epoch (VP `updatedAt` numeric form)
|
|
1650
|
+
*/
|
|
1651
|
+
timestamp: string | number;
|
|
1652
|
+
/**
|
|
1653
|
+
* Activity status. Accepts the canonical `MosaicActivityStatus` values
|
|
1654
|
+
* (`"active" | "completed" | "archived"`) OR any free string from upstream
|
|
1655
|
+
* systems (e.g. VP `ActivityEvent.status`). Known values receive accent styling;
|
|
1656
|
+
* unknown strings fall back to the "archived" (neutral) style.
|
|
1657
|
+
*
|
|
1658
|
+
* Using `MosaicActivityStatus | (string & {})` preserves IDE autocomplete
|
|
1659
|
+
* for the well-known values while accepting arbitrary strings at runtime.
|
|
1660
|
+
*/
|
|
1661
|
+
status: MosaicActivityStatus | (string & {});
|
|
1662
|
+
/**
|
|
1663
|
+
* Participant list. Accepts:
|
|
1664
|
+
* - `string[]` — plain labels rendered as initials avatars (original API)
|
|
1665
|
+
* - `MosaicActivityParticipant[]` — union shape also accepting `{ actor?, excerpt? }` objects
|
|
1666
|
+
*/
|
|
1667
|
+
participants?: MosaicActivityParticipant[];
|
|
1638
1668
|
/** Number of messages/events in this activity */
|
|
1639
1669
|
messages?: number;
|
|
1670
|
+
/**
|
|
1671
|
+
* Optional excerpt / summary text (VP ActivityEvent field).
|
|
1672
|
+
* Shown below description when present.
|
|
1673
|
+
*/
|
|
1674
|
+
excerpt?: string;
|
|
1640
1675
|
}
|
|
1641
1676
|
interface MosaicActivityFeedProps {
|
|
1642
1677
|
activities: MosaicActivity[];
|
|
@@ -2932,20 +2967,38 @@ interface MosaicSignInLayoutProps {
|
|
|
2932
2967
|
clerkSignIn: React.ComponentType<{
|
|
2933
2968
|
appearance?: Record<string, unknown>;
|
|
2934
2969
|
signUpUrl?: string;
|
|
2970
|
+
signInUrl?: string;
|
|
2935
2971
|
fallbackRedirectUrl?: string;
|
|
2972
|
+
forceRedirectUrl?: string;
|
|
2973
|
+
routing?: "hash" | "path" | "virtual";
|
|
2974
|
+
path?: string;
|
|
2936
2975
|
[key: string]: unknown;
|
|
2937
2976
|
}>;
|
|
2938
2977
|
/** URL for sign-up page */
|
|
2939
2978
|
signUpUrl?: string;
|
|
2940
|
-
/** URL to
|
|
2979
|
+
/** URL for sign-in page (passed to the Clerk widget as signInUrl) */
|
|
2980
|
+
signInUrl?: string;
|
|
2981
|
+
/** URL to redirect after successful sign-in (Clerk v7 fallbackRedirectUrl) */
|
|
2941
2982
|
afterSignInUrl?: string;
|
|
2983
|
+
/** Force redirect URL — overrides query-param-based redirects (Clerk v7) */
|
|
2984
|
+
forceRedirectUrl?: string;
|
|
2985
|
+
/**
|
|
2986
|
+
* Clerk routing mode for catch-all routes.
|
|
2987
|
+
* Required for [[...sign-in]] App Router pages. Defaults to "path" when path is set.
|
|
2988
|
+
*/
|
|
2989
|
+
routing?: "hash" | "path" | "virtual";
|
|
2990
|
+
/**
|
|
2991
|
+
* Base path for "path" routing (e.g. "/sign-in").
|
|
2992
|
+
* Required when routing="path".
|
|
2993
|
+
*/
|
|
2994
|
+
path?: string;
|
|
2942
2995
|
/** Optional headline above the Clerk widget */
|
|
2943
2996
|
headline?: string;
|
|
2944
2997
|
/** Optional sub-headline */
|
|
2945
2998
|
subheadline?: string;
|
|
2946
2999
|
className?: string;
|
|
2947
3000
|
}
|
|
2948
|
-
declare function MosaicSignInLayout({ clerkSignIn: ClerkSignIn, signUpUrl, afterSignInUrl, headline, subheadline, className, }: MosaicSignInLayoutProps): React.JSX.Element;
|
|
3001
|
+
declare function MosaicSignInLayout({ clerkSignIn: ClerkSignIn, signUpUrl, signInUrl, afterSignInUrl, forceRedirectUrl, routing, path, headline, subheadline, className, }: MosaicSignInLayoutProps): React.JSX.Element;
|
|
2949
3002
|
declare namespace MosaicSignInLayout {
|
|
2950
3003
|
var displayName: string;
|
|
2951
3004
|
}
|
|
@@ -2966,20 +3019,38 @@ interface MosaicSignUpLayoutProps {
|
|
|
2966
3019
|
clerkSignUp: React.ComponentType<{
|
|
2967
3020
|
appearance?: Record<string, unknown>;
|
|
2968
3021
|
signInUrl?: string;
|
|
3022
|
+
signUpUrl?: string;
|
|
2969
3023
|
fallbackRedirectUrl?: string;
|
|
3024
|
+
forceRedirectUrl?: string;
|
|
3025
|
+
routing?: "hash" | "path" | "virtual";
|
|
3026
|
+
path?: string;
|
|
2970
3027
|
[key: string]: unknown;
|
|
2971
3028
|
}>;
|
|
2972
3029
|
/** URL for sign-in page */
|
|
2973
3030
|
signInUrl?: string;
|
|
2974
|
-
/** URL to
|
|
3031
|
+
/** URL for sign-up page (passed to the Clerk widget as signUpUrl) */
|
|
3032
|
+
signUpUrl?: string;
|
|
3033
|
+
/** URL to redirect after successful sign-up (Clerk v7 fallbackRedirectUrl) */
|
|
2975
3034
|
afterSignUpUrl?: string;
|
|
3035
|
+
/** Force redirect URL — overrides query-param-based redirects (Clerk v7) */
|
|
3036
|
+
forceRedirectUrl?: string;
|
|
3037
|
+
/**
|
|
3038
|
+
* Clerk routing mode for catch-all routes.
|
|
3039
|
+
* Required for [[...sign-up]] App Router pages. Defaults to "path" when path is set.
|
|
3040
|
+
*/
|
|
3041
|
+
routing?: "hash" | "path" | "virtual";
|
|
3042
|
+
/**
|
|
3043
|
+
* Base path for "path" routing (e.g. "/sign-up").
|
|
3044
|
+
* Required when routing="path".
|
|
3045
|
+
*/
|
|
3046
|
+
path?: string;
|
|
2976
3047
|
/** Optional headline above the Clerk widget */
|
|
2977
3048
|
headline?: string;
|
|
2978
3049
|
/** Optional sub-headline */
|
|
2979
3050
|
subheadline?: string;
|
|
2980
3051
|
className?: string;
|
|
2981
3052
|
}
|
|
2982
|
-
declare function MosaicSignUpLayout({ clerkSignUp: ClerkSignUp, signInUrl, afterSignUpUrl, headline, subheadline, className, }: MosaicSignUpLayoutProps): React.JSX.Element;
|
|
3053
|
+
declare function MosaicSignUpLayout({ clerkSignUp: ClerkSignUp, signInUrl, signUpUrl, afterSignUpUrl, forceRedirectUrl, routing, path, headline, subheadline, className, }: MosaicSignUpLayoutProps): React.JSX.Element;
|
|
2983
3054
|
declare namespace MosaicSignUpLayout {
|
|
2984
3055
|
var displayName: string;
|
|
2985
3056
|
}
|
|
@@ -3008,6 +3079,7 @@ interface MosaicClerkOrgSwitcherProps {
|
|
|
3008
3079
|
appearance?: Record<string, unknown>;
|
|
3009
3080
|
afterCreateOrganizationUrl?: string;
|
|
3010
3081
|
afterSelectOrganizationUrl?: string;
|
|
3082
|
+
afterSelectPersonalUrl?: string;
|
|
3011
3083
|
afterLeaveOrganizationUrl?: string;
|
|
3012
3084
|
hidePersonal?: boolean;
|
|
3013
3085
|
[key: string]: unknown;
|
|
@@ -3016,13 +3088,23 @@ interface MosaicClerkOrgSwitcherProps {
|
|
|
3016
3088
|
afterCreateOrganizationUrl?: string;
|
|
3017
3089
|
/** URL to redirect after selecting an org */
|
|
3018
3090
|
afterSelectOrganizationUrl?: string;
|
|
3091
|
+
/**
|
|
3092
|
+
* URL to redirect after selecting the personal workspace.
|
|
3093
|
+
* Required for VP patterns where personal workspace has a distinct landing page.
|
|
3094
|
+
*/
|
|
3095
|
+
afterSelectPersonalUrl?: string;
|
|
3019
3096
|
/** URL to redirect after leaving an org */
|
|
3020
3097
|
afterLeaveOrganizationUrl?: string;
|
|
3021
3098
|
/** Hide personal workspace from the switcher */
|
|
3022
3099
|
hidePersonal?: boolean;
|
|
3100
|
+
/**
|
|
3101
|
+
* data-testid forwarded onto the root wrapper div.
|
|
3102
|
+
* Allows e2e selectors (e.g. Playwright `getByTestId("org-switcher")`).
|
|
3103
|
+
*/
|
|
3104
|
+
"data-testid"?: string;
|
|
3023
3105
|
className?: string;
|
|
3024
3106
|
}
|
|
3025
|
-
declare function MosaicClerkOrgSwitcher({ clerkOrgSwitcher: ClerkOrgSwitcher, afterCreateOrganizationUrl, afterSelectOrganizationUrl, afterLeaveOrganizationUrl, hidePersonal, className, }: MosaicClerkOrgSwitcherProps): React.JSX.Element;
|
|
3107
|
+
declare function MosaicClerkOrgSwitcher({ clerkOrgSwitcher: ClerkOrgSwitcher, afterCreateOrganizationUrl, afterSelectOrganizationUrl, afterSelectPersonalUrl, afterLeaveOrganizationUrl, hidePersonal, "data-testid": dataTestId, className, }: MosaicClerkOrgSwitcherProps): React.JSX.Element;
|
|
3026
3108
|
declare namespace MosaicClerkOrgSwitcher {
|
|
3027
3109
|
var displayName: string;
|
|
3028
3110
|
}
|
package/dist/index.js
CHANGED
|
@@ -2697,6 +2697,18 @@ var STATUS_CLASSES = {
|
|
|
2697
2697
|
completed: "bg-blue-500/10 text-blue-600 border border-blue-500/20 dark:text-blue-400",
|
|
2698
2698
|
archived: "bg-gray-500/10 text-gray-600 border border-gray-500/20 dark:text-gray-400"
|
|
2699
2699
|
};
|
|
2700
|
+
var STATUS_FALLBACK = "bg-gray-500/10 text-gray-600 border border-gray-500/20 dark:text-gray-400";
|
|
2701
|
+
function getStatusClass(status) {
|
|
2702
|
+
return STATUS_CLASSES[status] ?? STATUS_FALLBACK;
|
|
2703
|
+
}
|
|
2704
|
+
function participantLabel(p) {
|
|
2705
|
+
if (typeof p === "string") return p;
|
|
2706
|
+
return p.actor ?? "";
|
|
2707
|
+
}
|
|
2708
|
+
function formatTimestamp(ts) {
|
|
2709
|
+
if (typeof ts === "string") return ts;
|
|
2710
|
+
return new Date(ts).toLocaleString();
|
|
2711
|
+
}
|
|
2700
2712
|
function ClockIcon2() {
|
|
2701
2713
|
return /* @__PURE__ */ jsxs(
|
|
2702
2714
|
"svg",
|
|
@@ -2753,20 +2765,24 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
2753
2765
|
/* @__PURE__ */ jsx("h4", { className: "truncate text-sm font-medium text-foreground", children: activity.title }),
|
|
2754
2766
|
activity.description && /* @__PURE__ */ jsx("p", { className: "mt-0.5 text-sm text-muted-foreground line-clamp-1", children: activity.description }),
|
|
2755
2767
|
activity.participants && activity.participants.length > 0 && /* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
2756
|
-
/* @__PURE__ */ jsx("div", { className: "flex -space-x-2", children: activity.participants.slice(0, 3).map((p) =>
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
"
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2768
|
+
/* @__PURE__ */ jsx("div", { className: "flex -space-x-2", children: activity.participants.slice(0, 3).map((p) => {
|
|
2769
|
+
const label = participantLabel(p);
|
|
2770
|
+
return /* @__PURE__ */ jsx(
|
|
2771
|
+
"div",
|
|
2772
|
+
{
|
|
2773
|
+
"aria-label": label,
|
|
2774
|
+
className: "flex h-6 w-6 items-center justify-center rounded-full border-2 border-background bg-muted text-[10px] font-medium text-muted-foreground",
|
|
2775
|
+
children: label.slice(0, 2).toUpperCase()
|
|
2776
|
+
},
|
|
2777
|
+
label
|
|
2778
|
+
);
|
|
2779
|
+
}) }),
|
|
2765
2780
|
activity.messages !== void 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
|
|
2766
2781
|
activity.messages,
|
|
2767
2782
|
" messages"
|
|
2768
2783
|
] })
|
|
2769
|
-
] })
|
|
2784
|
+
] }),
|
|
2785
|
+
activity.excerpt && /* @__PURE__ */ jsx("p", { className: "mt-0.5 text-xs text-muted-foreground line-clamp-1", children: activity.excerpt })
|
|
2770
2786
|
] }),
|
|
2771
2787
|
/* @__PURE__ */ jsxs("div", { className: "flex shrink-0 flex-col items-end gap-1.5", children: [
|
|
2772
2788
|
/* @__PURE__ */ jsx(
|
|
@@ -2774,12 +2790,12 @@ function MosaicActivityItem({ activity, icon, className }) {
|
|
|
2774
2790
|
{
|
|
2775
2791
|
className: cn29(
|
|
2776
2792
|
"rounded-full px-2 py-0.5 text-xs font-medium",
|
|
2777
|
-
|
|
2793
|
+
getStatusClass(activity.status)
|
|
2778
2794
|
),
|
|
2779
2795
|
children: activity.status
|
|
2780
2796
|
}
|
|
2781
2797
|
),
|
|
2782
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: activity.timestamp })
|
|
2798
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: formatTimestamp(activity.timestamp) })
|
|
2783
2799
|
] })
|
|
2784
2800
|
] }) })
|
|
2785
2801
|
]
|
|
@@ -8733,7 +8749,11 @@ var clerkAppearance = {
|
|
|
8733
8749
|
function MosaicSignInLayout({
|
|
8734
8750
|
clerkSignIn: ClerkSignIn,
|
|
8735
8751
|
signUpUrl = "/sign-up",
|
|
8752
|
+
signInUrl,
|
|
8736
8753
|
afterSignInUrl = "/",
|
|
8754
|
+
forceRedirectUrl,
|
|
8755
|
+
routing,
|
|
8756
|
+
path,
|
|
8737
8757
|
headline,
|
|
8738
8758
|
subheadline,
|
|
8739
8759
|
className
|
|
@@ -8757,7 +8777,11 @@ function MosaicSignInLayout({
|
|
|
8757
8777
|
{
|
|
8758
8778
|
appearance: clerkAppearance,
|
|
8759
8779
|
signUpUrl,
|
|
8760
|
-
|
|
8780
|
+
...signInUrl !== void 0 && { signInUrl },
|
|
8781
|
+
fallbackRedirectUrl: afterSignInUrl,
|
|
8782
|
+
...forceRedirectUrl !== void 0 && { forceRedirectUrl },
|
|
8783
|
+
...routing !== void 0 && { routing },
|
|
8784
|
+
...path !== void 0 && { path }
|
|
8761
8785
|
}
|
|
8762
8786
|
) })
|
|
8763
8787
|
]
|
|
@@ -8792,7 +8816,11 @@ var clerkAppearance2 = {
|
|
|
8792
8816
|
function MosaicSignUpLayout({
|
|
8793
8817
|
clerkSignUp: ClerkSignUp,
|
|
8794
8818
|
signInUrl = "/sign-in",
|
|
8819
|
+
signUpUrl,
|
|
8795
8820
|
afterSignUpUrl = "/",
|
|
8821
|
+
forceRedirectUrl,
|
|
8822
|
+
routing,
|
|
8823
|
+
path,
|
|
8796
8824
|
headline,
|
|
8797
8825
|
subheadline,
|
|
8798
8826
|
className
|
|
@@ -8816,7 +8844,11 @@ function MosaicSignUpLayout({
|
|
|
8816
8844
|
{
|
|
8817
8845
|
appearance: clerkAppearance2,
|
|
8818
8846
|
signInUrl,
|
|
8819
|
-
|
|
8847
|
+
...signUpUrl !== void 0 && { signUpUrl },
|
|
8848
|
+
fallbackRedirectUrl: afterSignUpUrl,
|
|
8849
|
+
...forceRedirectUrl !== void 0 && { forceRedirectUrl },
|
|
8850
|
+
...routing !== void 0 && { routing },
|
|
8851
|
+
...path !== void 0 && { path }
|
|
8820
8852
|
}
|
|
8821
8853
|
) })
|
|
8822
8854
|
]
|
|
@@ -8845,20 +8877,31 @@ function MosaicClerkOrgSwitcher({
|
|
|
8845
8877
|
clerkOrgSwitcher: ClerkOrgSwitcher,
|
|
8846
8878
|
afterCreateOrganizationUrl = "/",
|
|
8847
8879
|
afterSelectOrganizationUrl = "/",
|
|
8880
|
+
afterSelectPersonalUrl,
|
|
8848
8881
|
afterLeaveOrganizationUrl = "/",
|
|
8849
8882
|
hidePersonal = false,
|
|
8883
|
+
"data-testid": dataTestId,
|
|
8850
8884
|
className
|
|
8851
8885
|
}) {
|
|
8852
|
-
return /* @__PURE__ */ jsx(
|
|
8853
|
-
|
|
8886
|
+
return /* @__PURE__ */ jsx(
|
|
8887
|
+
"div",
|
|
8854
8888
|
{
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8889
|
+
"data-slot": "clerk-org-switcher",
|
|
8890
|
+
...dataTestId !== void 0 && { "data-testid": dataTestId },
|
|
8891
|
+
className,
|
|
8892
|
+
children: /* @__PURE__ */ jsx(
|
|
8893
|
+
ClerkOrgSwitcher,
|
|
8894
|
+
{
|
|
8895
|
+
appearance: clerkAppearance3,
|
|
8896
|
+
afterCreateOrganizationUrl,
|
|
8897
|
+
afterSelectOrganizationUrl,
|
|
8898
|
+
...afterSelectPersonalUrl !== void 0 && { afterSelectPersonalUrl },
|
|
8899
|
+
afterLeaveOrganizationUrl,
|
|
8900
|
+
hidePersonal
|
|
8901
|
+
}
|
|
8902
|
+
)
|
|
8860
8903
|
}
|
|
8861
|
-
)
|
|
8904
|
+
);
|
|
8862
8905
|
}
|
|
8863
8906
|
MosaicClerkOrgSwitcher.displayName = "MosaicClerkOrgSwitcher";
|
|
8864
8907
|
var clerkAppearance4 = {
|