@dyrected/next 1.0.0 → 1.0.3
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 +3 -0
- package/dist/admin.d.ts.map +1 -0
- package/dist/admin.js +9 -0
- package/dist/admin.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +25 -3
package/dist/admin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../src/admin.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,2CAKhD"}
|
package/dist/admin.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { AdminUI } from "@dyrected/admin";
|
|
4
|
+
export function DyrectedAdmin(props) {
|
|
5
|
+
const baseUrl = props.baseUrl || process.env.NEXT_PUBLIC_DYRECTED_URL || "/dyrected";
|
|
6
|
+
const apiKey = props.apiKey || process.env.NEXT_PUBLIC_DYRECTED_API_KEY;
|
|
7
|
+
return _jsx(AdminUI, { ...props, baseUrl: baseUrl, apiKey: apiKey });
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=admin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.js","sourceRoot":"","sources":["../src/admin.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,OAAO,EAAqB,MAAM,iBAAiB,CAAC;AAE7D,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,OAAO,OAAK,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AAClE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -23,8 +23,8 @@ export function dyrectedNextHandler(config) {
|
|
|
23
23
|
* Reads environment variables DYRECTED_URL and DYRECTED_API_KEY.
|
|
24
24
|
*/
|
|
25
25
|
export function getDyrectedClient() {
|
|
26
|
-
const baseUrl = process.env.DYRECTED_URL || "http://localhost:3000";
|
|
27
|
-
const apiKey = process.env.DYRECTED_API_KEY;
|
|
26
|
+
const baseUrl = process.env.NEXT_PUBLIC_DYRECTED_URL || process.env.DYRECTED_URL || "http://localhost:3000";
|
|
27
|
+
const apiKey = process.env.NEXT_PUBLIC_DYRECTED_API_KEY || process.env.DYRECTED_API_KEY;
|
|
28
28
|
return createClient({
|
|
29
29
|
baseUrl,
|
|
30
30
|
apiKey,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAkB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAsB;IACxD,MAAM,OAAO,GAAG,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAQ,CAAC,CAAC;IAEzD,OAAO;QACL,GAAG,EAAE,OAAO;QACZ,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,OAAO;QACf,GAAG,EAAE,OAAO;QACZ,OAAO,EAAE,OAAO;KACjB,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB;IAC/B,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAkB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAsB;IACxD,MAAM,OAAO,GAAG,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAQ,CAAC,CAAC;IAEzD,OAAO;QACL,GAAG,EAAE,OAAO;QACZ,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,OAAO;QACf,GAAG,EAAE,OAAO;QACZ,OAAO,EAAE,OAAO;KACjB,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB;IAC/B,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,uBAAuB,CAAC;IAC5G,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,4BAA4B,IAAI,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAExF,OAAO,YAAY,CAAC;QAClB,OAAO;QACP,MAAM;KACP,CAAC,CAAC;AACL,CAAC;AAED,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dyrected/next",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,10 +12,21 @@
|
|
|
12
12
|
"react": ">=18.0.0",
|
|
13
13
|
"react-dom": ">=18.0.0"
|
|
14
14
|
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./admin": {
|
|
21
|
+
"types": "./dist/admin.d.ts",
|
|
22
|
+
"import": "./dist/admin.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
15
25
|
"dependencies": {
|
|
16
26
|
"hono": "^4.0.0",
|
|
17
|
-
"@dyrected/
|
|
18
|
-
"@dyrected/sdk": "1.0.
|
|
27
|
+
"@dyrected/admin": "1.0.3",
|
|
28
|
+
"@dyrected/sdk": "1.0.3",
|
|
29
|
+
"@dyrected/core": "1.0.3"
|
|
19
30
|
},
|
|
20
31
|
"devDependencies": {
|
|
21
32
|
"@types/node": "^20.12.12",
|
|
@@ -24,6 +35,17 @@
|
|
|
24
35
|
"next": "^14.2.3",
|
|
25
36
|
"typescript": "^5.4.5"
|
|
26
37
|
},
|
|
38
|
+
"license": "BSL-1.1",
|
|
39
|
+
"author": "Ajola Technologies Ltd",
|
|
40
|
+
"homepage": "https://dyrected.com",
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "git+https://github.com/she-WritesCode/dyrected.git"
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"description": "Next.js integration for Dyrected CMS",
|
|
27
49
|
"scripts": {
|
|
28
50
|
"build": "tsc",
|
|
29
51
|
"dev": "tsc --watch"
|