@dyrected/admin 2.5.14 → 2.5.17

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Replaces {fieldName} placeholders in a URL pattern with values from a document.
3
+ * e.g. interpolateUrlPattern("/{slug}", { slug: "about" }) => "/about"
4
+ * Missing fields are replaced with an empty string.
5
+ */
6
+ export declare function interpolateUrlPattern(pattern: string, doc: Record<string, any>): string;
@@ -1,4 +1,9 @@
1
1
  export declare function MediaPage({ collectionSlug, schema }: {
2
2
  collectionSlug?: string;
3
- schema?: any;
3
+ schema?: {
4
+ labels?: {
5
+ plural?: string;
6
+ };
7
+ label?: string;
8
+ };
4
9
  }): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyrected/admin",
3
- "version": "2.5.14",
3
+ "version": "2.5.17",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -38,9 +38,11 @@
38
38
  "@radix-ui/react-tabs": "^1.1.13",
39
39
  "@radix-ui/react-toggle": "^1.1.10",
40
40
  "@radix-ui/react-tooltip": "^1.2.8",
41
+ "@tailwindcss/typography": "^0.5.15",
41
42
  "@tanstack/react-table": "^8.21.3",
42
43
  "@tiptap/extension-image": "^3.22.5",
43
44
  "@tiptap/extension-link": "^3.22.5",
45
+ "@tiptap/extension-table": "^3.23.6",
44
46
  "@tiptap/extension-text-align": "^3.22.5",
45
47
  "@tiptap/extension-underline": "^3.22.5",
46
48
  "@tiptap/react": "^3.22.5",
@@ -58,39 +60,43 @@
58
60
  "sonner": "^2.0.7",
59
61
  "tailwind-merge": "^3.5.0",
60
62
  "tailwindcss-animate": "^1.0.7",
61
- "@tailwindcss/typography": "^0.5.15",
62
63
  "zod": "^3.25.76",
63
- "@dyrected/core": "^2.5.14",
64
- "@dyrected/sdk": "^2.5.14"
64
+ "@dyrected/core": "^2.5.17",
65
+ "@dyrected/sdk": "^2.5.17"
65
66
  },
66
67
  "peerDependencies": {
68
+ "@tanstack/react-query": "^5.0.0",
67
69
  "react": "^18.0.0 || ^19.0.0",
68
70
  "react-dom": "^18.0.0 || ^19.0.0",
69
- "react-router-dom": "^6.0.0 || ^7.0.0",
70
- "@tanstack/react-query": "^5.0.0"
71
+ "react-router-dom": "^6.0.0 || ^7.0.0"
71
72
  },
72
73
  "devDependencies": {
73
74
  "@eslint/js": "^10.0.1",
74
75
  "@tanstack/react-query": "^5.100.9",
76
+ "@testing-library/jest-dom": "^6.4.0",
77
+ "@testing-library/react": "^15.0.0",
78
+ "@testing-library/user-event": "^14.5.0",
75
79
  "@types/node": "^24.12.2",
76
80
  "@types/react": "^19.2.14",
77
81
  "@types/react-dom": "^19.2.3",
78
82
  "@vitejs/plugin-react": "^6.0.1",
79
- "react": "^19.2.5",
80
- "react-dom": "^19.2.5",
81
- "react-router-dom": "^7.15.0",
82
83
  "autoprefixer": "^10.5.0",
83
84
  "eslint": "^10.2.1",
84
85
  "eslint-plugin-react-hooks": "^7.1.1",
85
86
  "eslint-plugin-react-refresh": "^0.5.2",
86
87
  "globals": "^17.5.0",
88
+ "jsdom": "^24.0.0",
87
89
  "postcss": "^8.5.14",
90
+ "react": "^19.2.5",
91
+ "react-dom": "^19.2.5",
92
+ "react-router-dom": "^7.15.0",
88
93
  "tailwindcss": "^3.4.19",
89
94
  "typescript": "^5.7.3",
90
95
  "typescript-eslint": "^8.58.2",
91
96
  "vite": "^8.0.10",
92
97
  "vite-plugin-dts": "^5.0.0",
93
- "vite-plugin-node-polyfills": "^0.26.0"
98
+ "vite-plugin-node-polyfills": "^0.26.0",
99
+ "vitest": "^1.0.0"
94
100
  },
95
101
  "license": "BSL-1.1",
96
102
  "author": "Busola Okeowo <busolaokemoney@gmail.com>",
@@ -107,6 +113,7 @@
107
113
  "dev": "vite",
108
114
  "build": "tsc -b && vite build",
109
115
  "lint": "eslint .",
110
- "preview": "vite preview"
116
+ "preview": "vite preview",
117
+ "test": "vitest"
111
118
  }
112
119
  }