create-nextly-app 0.0.2-alpha.75 → 0.0.2-alpha.76
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/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/{create-nextly-N_COehCu.mjs → create-nextly-BmGN2BX8.mjs} +103 -4
- package/dist/create-nextly-BmGN2BX8.mjs.map +1 -0
- package/dist/{create-nextly-DdIL2e9E.cjs → create-nextly-CXsN4jfA.cjs} +103 -4
- package/dist/create-nextly-CXsN4jfA.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
- package/skills/nextly-authentication/SKILL.md +1 -1
- package/skills/nextly-collections/SKILL.md +1 -1
- package/skills/nextly-deploy/SKILL.md +1 -1
- package/skills/nextly-install/SKILL.md +1 -1
- package/templates/base/src/app/admin/[[...params]]/layout.tsx +12 -0
- package/dist/create-nextly-DdIL2e9E.cjs.map +0 -1
- package/dist/create-nextly-N_COehCu.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_nextly = require("./create-nextly-
|
|
2
|
+
const require_create_nextly = require("./create-nextly-CXsN4jfA.cjs");
|
|
3
3
|
exports.createNextly = require_create_nextly.createNextly;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createNextly } from "./create-nextly-
|
|
1
|
+
export { t as createNextly } from "./create-nextly-BmGN2BX8.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nextly-app",
|
|
3
|
-
"version": "0.0.2-alpha.
|
|
3
|
+
"version": "0.0.2-alpha.76",
|
|
4
4
|
"description": "CLI to scaffold Nextly in your Next.js project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@babel/types": "^7.29.7",
|
|
40
|
-
"@nextlyhq/eslint-plugin": "0.0.2-alpha.
|
|
41
|
-
"@nextlyhq/module-specifiers": "0.0.2-alpha.
|
|
42
|
-
"@nextlyhq/telemetry": "0.0.2-alpha.
|
|
43
|
-
"@nextlyhq/tsconfig": "0.0.2-alpha.
|
|
40
|
+
"@nextlyhq/eslint-plugin": "0.0.2-alpha.76",
|
|
41
|
+
"@nextlyhq/module-specifiers": "0.0.2-alpha.76",
|
|
42
|
+
"@nextlyhq/telemetry": "0.0.2-alpha.76",
|
|
43
|
+
"@nextlyhq/tsconfig": "0.0.2-alpha.76",
|
|
44
44
|
"@testing-library/react": "^16.3.0",
|
|
45
45
|
"@types/fs-extra": "^11.0.4",
|
|
46
46
|
"@types/node": "^22.20.5",
|
|
@@ -7,7 +7,7 @@ description: >-
|
|
|
7
7
|
code, and extra fields on users. Also use when asked to add login or
|
|
8
8
|
sign-up to a Nextly site, so the answer matches what Nextly provides.
|
|
9
9
|
metadata:
|
|
10
|
-
nextly-version: 0.0.2-alpha.
|
|
10
|
+
nextly-version: 0.0.2-alpha.76
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# Authentication and access in Nextly
|
|
@@ -8,7 +8,7 @@ description: >-
|
|
|
8
8
|
Nextly install shows no collections, fails to load nextly.config.ts, or its
|
|
9
9
|
admin panel misbehaves after setup.
|
|
10
10
|
metadata:
|
|
11
|
-
nextly-version: 0.0.2-alpha.
|
|
11
|
+
nextly-version: 0.0.2-alpha.76
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
# Install Nextly into an existing Next.js app
|
|
@@ -2,8 +2,10 @@ import { connection } from "next/server";
|
|
|
2
2
|
import { Suspense } from "react";
|
|
3
3
|
import {
|
|
4
4
|
ADMIN_BRANDING_ELEMENT_ID,
|
|
5
|
+
ADMIN_STARTUP_SCREENS_ELEMENT_ID,
|
|
5
6
|
adminBrandingJson,
|
|
6
7
|
adminMetadataFor,
|
|
8
|
+
adminStartupScreensJson,
|
|
7
9
|
getBrandingCss,
|
|
8
10
|
} from "nextly/config";
|
|
9
11
|
|
|
@@ -14,6 +16,9 @@ const brandingCss = getBrandingCss(config.admin?.branding);
|
|
|
14
16
|
// The configured logo, name and favicon, read by the admin before any request
|
|
15
17
|
// answers, so they are right from the first paint.
|
|
16
18
|
const brandingJson = adminBrandingJson(config.admin?.branding);
|
|
19
|
+
// What each plugin page reads as it opens, so the admin asks for it in its
|
|
20
|
+
// first request when a tab opens on that page.
|
|
21
|
+
const startupScreensJson = adminStartupScreensJson(config.plugins);
|
|
17
22
|
|
|
18
23
|
/**
|
|
19
24
|
* The admin is never a page for search results: `noindex, nofollow` in the
|
|
@@ -55,6 +60,13 @@ export default function AdminLayout({
|
|
|
55
60
|
dangerouslySetInnerHTML={{ __html: brandingJson }}
|
|
56
61
|
/>
|
|
57
62
|
)}
|
|
63
|
+
{startupScreensJson && (
|
|
64
|
+
<script
|
|
65
|
+
type="application/json"
|
|
66
|
+
id={ADMIN_STARTUP_SCREENS_ELEMENT_ID}
|
|
67
|
+
dangerouslySetInnerHTML={{ __html: startupScreensJson }}
|
|
68
|
+
/>
|
|
69
|
+
)}
|
|
58
70
|
{process.env.NODE_ENV === "development" ? (
|
|
59
71
|
<Suspense fallback={null}>
|
|
60
72
|
<ComponentMapKeptCurrent>{children}</ComponentMapKeptCurrent>
|