@dyrected/next 2.5.12 → 2.5.14
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.d.ts +1 -1
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +6 -2
- package/dist/admin.js.map +1 -1
- package/package.json +4 -4
package/dist/admin.d.ts
CHANGED
package/dist/admin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../src/admin.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../src/admin.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAcpD,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,2CAKhD"}
|
package/dist/admin.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import dynamic from "next/dynamic";
|
|
4
|
+
const LazyAdminUI = dynamic(() => import("@dyrected/admin").then((mod) => mod.AdminUI), {
|
|
5
|
+
ssr: false,
|
|
6
|
+
loading: () => (_jsx("div", { className: "dy-p-8 dy-text-center dy-text-muted-foreground dy-text-xs dy-font-medium", children: "Loading admin panel..." })),
|
|
7
|
+
});
|
|
4
8
|
export function DyrectedAdmin(props) {
|
|
5
9
|
const baseUrl = props.baseUrl || process.env.NEXT_PUBLIC_DYRECTED_URL || "/dyrected";
|
|
6
10
|
const apiKey = props.apiKey || process.env.NEXT_PUBLIC_DYRECTED_API_KEY;
|
|
7
|
-
return _jsx(
|
|
11
|
+
return _jsx(LazyAdminUI, { ...props, baseUrl: baseUrl, apiKey: apiKey });
|
|
8
12
|
}
|
|
9
13
|
//# sourceMappingURL=admin.js.map
|
package/dist/admin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.js","sourceRoot":"","sources":["../src/admin.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;
|
|
1
|
+
{"version":3,"file":"admin.js","sourceRoot":"","sources":["../src/admin.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,OAAO,MAAM,cAAc,CAAC;AAGnC,MAAM,WAAW,GAAG,OAAO,CACzB,GAAG,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,EAC1D;IACE,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,GAAG,EAAE,CAAC,CACb,cAAK,SAAS,EAAC,0EAA0E,uCAEnF,CACP;CACF,CACF,CAAC;AAEF,MAAM,UAAU,aAAa,CAAC,KAAmB;IAC/C,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,WAAW,CAAC;IACrF,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAExE,OAAO,KAAC,WAAW,OAAK,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AACtE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dyrected/next",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"hono": "^4.0.0",
|
|
27
|
-
"@dyrected/core": "2.5.
|
|
28
|
-
"@dyrected/
|
|
29
|
-
"@dyrected/
|
|
27
|
+
"@dyrected/core": "2.5.14",
|
|
28
|
+
"@dyrected/admin": "2.5.14",
|
|
29
|
+
"@dyrected/sdk": "2.5.14"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^20.12.12",
|