@dyrected/admin 2.5.60 → 2.5.62

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/admin.css CHANGED
@@ -1230,6 +1230,10 @@
1230
1230
  z-index: 100;
1231
1231
  }
1232
1232
 
1233
+ .dy-z-\[101\]{
1234
+ z-index: 101;
1235
+ }
1236
+
1233
1237
  .dy-z-\[150\]{
1234
1238
  z-index: 150;
1235
1239
  }
@@ -1403,6 +1407,10 @@
1403
1407
  margin-left: auto;
1404
1408
  }
1405
1409
 
1410
+ .dy-mr-0\.5{
1411
+ margin-right: 0.125rem;
1412
+ }
1413
+
1406
1414
  .dy-mr-1{
1407
1415
  margin-right: 0.25rem;
1408
1416
  }
@@ -2065,6 +2073,14 @@
2065
2073
  max-width: 150px;
2066
2074
  }
2067
2075
 
2076
+ .dy-max-w-\[200px\]{
2077
+ max-width: 200px;
2078
+ }
2079
+
2080
+ .dy-max-w-\[220px\]{
2081
+ max-width: 220px;
2082
+ }
2083
+
2068
2084
  .dy-max-w-\[250px\]{
2069
2085
  max-width: 250px;
2070
2086
  }
@@ -2676,6 +2692,10 @@
2676
2692
  border-color: rgb(252 211 77 / 0.6);
2677
2693
  }
2678
2694
 
2695
+ .dy-border-amber-500\/20{
2696
+ border-color: rgb(245 158 11 / 0.2);
2697
+ }
2698
+
2679
2699
  .dy-border-blue-100{
2680
2700
  --tw-border-opacity: 1;
2681
2701
  border-color: rgb(219 234 254 / var(--tw-border-opacity, 1));
@@ -2686,6 +2706,10 @@
2686
2706
  border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
2687
2707
  }
2688
2708
 
2709
+ .dy-border-blue-500\/20{
2710
+ border-color: rgb(59 130 246 / 0.2);
2711
+ }
2712
+
2689
2713
  .dy-border-border{
2690
2714
  border-color: hsl(var(--border));
2691
2715
  }
@@ -2743,6 +2767,10 @@
2743
2767
  border-color: rgb(167 243 208 / var(--tw-border-opacity, 1));
2744
2768
  }
2745
2769
 
2770
+ .dy-border-emerald-500\/20{
2771
+ border-color: rgb(16 185 129 / 0.2);
2772
+ }
2773
+
2746
2774
  .dy-border-input{
2747
2775
  border-color: hsl(var(--input));
2748
2776
  }
@@ -2793,6 +2821,10 @@
2793
2821
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
2794
2822
  }
2795
2823
 
2824
+ .dy-border-red-500\/20{
2825
+ border-color: rgb(239 68 68 / 0.2);
2826
+ }
2827
+
2796
2828
  .dy-border-sidebar-border{
2797
2829
  border-color: hsl(var(--sidebar-border));
2798
2830
  }
@@ -2944,6 +2976,10 @@
2944
2976
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
2945
2977
  }
2946
2978
 
2979
+ .dy-bg-blue-500\/10{
2980
+ background-color: rgb(59 130 246 / 0.1);
2981
+ }
2982
+
2947
2983
  .dy-bg-border{
2948
2984
  background-color: hsl(var(--border));
2949
2985
  }
@@ -3090,6 +3126,10 @@
3090
3126
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
3091
3127
  }
3092
3128
 
3129
+ .dy-bg-red-500\/10{
3130
+ background-color: rgb(239 68 68 / 0.1);
3131
+ }
3132
+
3093
3133
  .dy-bg-secondary{
3094
3134
  background-color: hsl(var(--secondary));
3095
3135
  }
@@ -3135,6 +3175,10 @@
3135
3175
  --tw-gradient-to: transparent var(--tw-gradient-to-position);
3136
3176
  }
3137
3177
 
3178
+ .dy-fill-amber-400{
3179
+ fill: #fbbf24;
3180
+ }
3181
+
3138
3182
  .dy-fill-current{
3139
3183
  fill: currentColor;
3140
3184
  }
@@ -3612,6 +3656,11 @@
3612
3656
  color: hsl(var(--accent-foreground));
3613
3657
  }
3614
3658
 
3659
+ .dy-text-amber-400{
3660
+ --tw-text-opacity: 1;
3661
+ color: rgb(251 191 36 / var(--tw-text-opacity, 1));
3662
+ }
3663
+
3615
3664
  .dy-text-amber-500{
3616
3665
  --tw-text-opacity: 1;
3617
3666
  color: rgb(245 158 11 / var(--tw-text-opacity, 1));
@@ -5696,6 +5745,10 @@
5696
5745
  max-width: 28rem;
5697
5746
  }
5698
5747
 
5748
+ .sm\:dy-max-w-none{
5749
+ max-width: none;
5750
+ }
5751
+
5699
5752
  .sm\:dy-max-w-sm{
5700
5753
  max-width: 24rem;
5701
5754
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Keeps the browser tab in sync with the admin: sets `document.title` from the
3
+ * current page plus `admin.meta.titleSuffix`, updating on every route change,
4
+ * and applies `admin.branding.favicon` to the page favicon.
5
+ *
6
+ * Renders nothing. Must be mounted inside the router (needs `useLocation`) and
7
+ * inside `DyrectedProvider` (needs the loaded schemas).
8
+ */
9
+ export declare function DocumentMeta(): any;
@@ -9,6 +9,11 @@ interface FormEngineProps {
9
9
  onChange?: (isDirty: boolean) => void;
10
10
  isLoading?: boolean;
11
11
  submitLabel?: string;
12
+ /**
13
+ * Hide the inline submit button rendered at the end of the form. Use when the
14
+ * host page provides its own save affordance (e.g. a docked bottom save bar).
15
+ */
16
+ hideSubmit?: boolean;
12
17
  readOnly?: boolean;
13
18
  onDataChange?: (data: Record<string, unknown>) => void;
14
19
  /**
@@ -2,7 +2,11 @@ interface LivePreviewPaneProps {
2
2
  previewUrl: string;
3
3
  data: any;
4
4
  mode?: 'postMessage' | 'token';
5
+ /** Collection slug, required to mint a preview token in `token` mode. */
6
+ collectionSlug?: string;
7
+ /** Current document id (omitted for new/unsaved documents). */
8
+ documentId?: string;
5
9
  onFieldFocus?: (path: string) => void;
6
10
  }
7
- export declare function LivePreviewPane({ previewUrl, data, mode, onFieldFocus }: LivePreviewPaneProps): import("react").JSX.Element;
11
+ export declare function LivePreviewPane({ previewUrl, data, mode, collectionSlug, documentId, onFieldFocus }: LivePreviewPaneProps): import("react").JSX.Element;
8
12
  export {};
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const buttonVariants: (props?: {
4
4
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
5
- size?: "default" | "sm" | "lg" | "icon";
5
+ size?: "icon" | "default" | "sm" | "lg";
6
6
  } & import('class-variance-authority/types').ClassProp) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
8
  asChild?: boolean;
@@ -48,7 +48,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
48
48
  ref?: React.Ref<HTMLDivElement>;
49
49
  } & {
50
50
  asChild?: boolean;
51
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
51
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
52
52
  heading?: React.ReactNode;
53
53
  value?: string;
54
54
  forceMount?: boolean;
package/dist/index.d.ts CHANGED
@@ -17,15 +17,6 @@ export interface AdminUIProps {
17
17
  baseUrl?: string;
18
18
  /** Site ID for multi-tenant deployments. Omit for single-site setups. */
19
19
  siteId?: string;
20
- /**
21
- * The base path where the admin is mounted in the host app.
22
- * Defaults to "/admin". Used by BrowserRouter so internal links
23
- * are relative to this prefix.
24
- *
25
- * Example — Next.js catch-all page at `app/admin/[[...path]]/page.tsx`:
26
- * <AdminUI basename="/admin" ... />
27
- */
28
- basename?: string;
29
20
  /**
30
21
  * Called whenever the internal admin route changes.
31
22
  * Use this to sync the host router (e.g. Next.js router.push / Nuxt navigateTo)