@postxl/generators 3.2.1 → 3.2.2
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/frontend-admin/admin.generator.d.ts +2 -1
- package/dist/frontend-admin/admin.generator.js +8 -1
- package/dist/frontend-admin/admin.generator.js.map +1 -1
- package/dist/frontend-admin/generators/admin-global-actions.generator.js +4 -1
- package/dist/frontend-admin/generators/admin-global-actions.generator.js.map +1 -1
- package/dist/frontend-admin/generators/model-admin-page.generator.js +34 -12
- package/dist/frontend-admin/generators/model-admin-page.generator.js.map +1 -1
- package/dist/frontend-admin/utils.d.ts +6 -1
- package/dist/frontend-admin/utils.js +2 -1
- package/dist/frontend-admin/utils.js.map +1 -1
- package/dist/frontend-core/frontend.generator.d.ts +21 -1
- package/dist/frontend-core/frontend.generator.js +35 -3
- package/dist/frontend-core/frontend.generator.js.map +1 -1
- package/dist/frontend-core/template/public/site.webmanifest +1 -1
- package/dist/frontend-core/template/src/context-providers/auth-context-provider.tsx +6 -1
- package/dist/frontend-core/template/src/lib/router.tsx +6 -0
- package/dist/frontend-core/template/src/pages/error/auth-error.page.tsx +4 -2
- package/dist/frontend-core/template/src/routes/__root.tsx +16 -5
- package/dist/frontend-core/template/vite.config.ts +44 -1
- package/dist/frontend-forms/forms.generator.d.ts +34 -0
- package/dist/frontend-forms/forms.generator.js +38 -9
- package/dist/frontend-forms/forms.generator.js.map +1 -1
- package/dist/frontend-forms/index.d.ts +8 -0
- package/dist/frontend-forms/index.js +3 -1
- package/dist/frontend-forms/index.js.map +1 -1
- package/dist/frontend-tables/generators/model-table.generator.js +19 -14
- package/dist/frontend-tables/generators/model-table.generator.js.map +1 -1
- package/dist/seed-data/generator/model-seed-data.generator.js +293 -37
- package/dist/seed-data/generator/model-seed-data.generator.js.map +1 -1
- package/dist/skailify/generators/app-id.helper.d.ts +33 -0
- package/dist/skailify/generators/app-id.helper.js +60 -0
- package/dist/skailify/generators/app-id.helper.js.map +1 -0
- package/dist/skailify/generators/preview-json.generator.d.ts +11 -1
- package/dist/skailify/generators/preview-json.generator.js +11 -3
- package/dist/skailify/generators/preview-json.generator.js.map +1 -1
- package/dist/skailify/generators/skaile-app-file.generator.d.ts +9 -1
- package/dist/skailify/generators/skaile-app-file.generator.js +68 -29
- package/dist/skailify/generators/skaile-app-file.generator.js.map +1 -1
- package/dist/skailify/index.d.ts +1 -0
- package/dist/skailify/index.js +4 -1
- package/dist/skailify/index.js.map +1 -1
- package/dist/skailify/skailify.generator.d.ts +8 -0
- package/dist/skailify/skailify.generator.js +8 -2
- package/dist/skailify/skailify.generator.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `appId` must be the same value `generateSkailePreviewJson` writes as the
|
|
3
|
+
* frontend app's `id`; both are handed the result of a single
|
|
4
|
+
* `resolveSkaileAppId` call in `skailify.generator.ts`, which is what keeps the
|
|
5
|
+
* "Must match the `id` ..." comment below true by construction.
|
|
6
|
+
*/
|
|
1
7
|
export declare function generateSkaileAppFile(models: {
|
|
2
8
|
camelCase: string;
|
|
3
|
-
}[]
|
|
9
|
+
}[], { appId }: {
|
|
10
|
+
appId: string;
|
|
11
|
+
}): string;
|
|
@@ -4,29 +4,60 @@ exports.generateSkaileAppFile = generateSkaileAppFile;
|
|
|
4
4
|
function capitalize(value) {
|
|
5
5
|
return value.length > 0 ? value[0].toUpperCase() + value.slice(1) : value;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* `appId` must be the same value `generateSkailePreviewJson` writes as the
|
|
9
|
+
* frontend app's `id`; both are handed the result of a single
|
|
10
|
+
* `resolveSkaileAppId` call in `skailify.generator.ts`, which is what keeps the
|
|
11
|
+
* "Must match the `id` ..." comment below true by construction.
|
|
12
|
+
*/
|
|
13
|
+
function generateSkaileAppFile(models, { appId }) {
|
|
14
|
+
// Everything capability-related is emitted only when at least one model is in
|
|
15
|
+
// scope. `models` is empty whenever no model exposes a verb (a strict
|
|
16
|
+
// `defaultDeny: true` with no matching rules, say), and the capability block is
|
|
17
|
+
// the only consumer of the `client` binding - and of the `@lib/config`,
|
|
18
|
+
// `@lib/trpc` and `defineAppCapability` imports that feed it. Emitting them
|
|
19
|
+
// unconditionally left all four unused, which fails the generated project's own
|
|
20
|
+
// `pnpm run lint` under `@typescript-eslint/no-unused-vars` (#849).
|
|
21
|
+
const hasCapabilities = models.length > 0;
|
|
22
|
+
const capabilityImports = models
|
|
9
23
|
.map((m) => `import { build${capitalize(m.camelCase)}Capabilities } from './skailify/${m.camelCase}.capabilities'`)
|
|
10
24
|
.join('\n');
|
|
11
25
|
const builderCalls = models.map((m) => ` ...build${capitalize(m.camelCase)}Capabilities(client),`).join('\n');
|
|
12
|
-
|
|
13
|
-
consoleLogger,
|
|
14
|
-
createSkaileApp,
|
|
15
|
-
createWebSocketAppTransport,
|
|
16
|
-
defineAppCapability,
|
|
17
|
-
resolveAppConnectionParams,
|
|
18
|
-
type AppConnectionParams,
|
|
19
|
-
type AppSession,
|
|
20
|
-
type SkaileApp,
|
|
21
|
-
|
|
22
|
-
|
|
26
|
+
const appSdkImports = [
|
|
27
|
+
' consoleLogger,',
|
|
28
|
+
' createSkaileApp,',
|
|
29
|
+
' createWebSocketAppTransport,',
|
|
30
|
+
...(hasCapabilities ? [' defineAppCapability,'] : []),
|
|
31
|
+
' resolveAppConnectionParams,',
|
|
32
|
+
' type AppConnectionParams,',
|
|
33
|
+
' type AppSession,',
|
|
34
|
+
' type SkaileApp,',
|
|
35
|
+
].join('\n');
|
|
36
|
+
const localImports = hasCapabilities
|
|
37
|
+
? `
|
|
23
38
|
import { APP_CONFIG } from '@lib/config'
|
|
24
39
|
import { createTrpcClient } from '@lib/trpc'
|
|
25
40
|
|
|
26
|
-
${
|
|
27
|
-
|
|
41
|
+
${capabilityImports}
|
|
42
|
+
`
|
|
43
|
+
: '';
|
|
44
|
+
const capabilityRegistration = hasCapabilities
|
|
45
|
+
? `
|
|
46
|
+
const client = createTrpcClient({ apiUrl: APP_CONFIG.apiURL })
|
|
47
|
+
const capabilityDefs = [
|
|
48
|
+
${builderCalls}
|
|
49
|
+
]
|
|
50
|
+
for (const def of capabilityDefs) {
|
|
51
|
+
app.registerCapability(defineAppCapability(def as never))
|
|
52
|
+
}
|
|
53
|
+
`
|
|
54
|
+
: '';
|
|
55
|
+
return `import {
|
|
56
|
+
${appSdkImports}
|
|
57
|
+
} from '@skaile/workspaces/app-sdk'
|
|
58
|
+
${localImports}
|
|
28
59
|
// Must match the \`id\` of the frontend app in skaile.preview.json.
|
|
29
|
-
const APP_ID = '
|
|
60
|
+
const APP_ID = '${appId}'
|
|
30
61
|
|
|
31
62
|
export function startSkaileApp(): () => void {
|
|
32
63
|
let closed = false
|
|
@@ -53,15 +84,7 @@ export function startSkaileApp(): () => void {
|
|
|
53
84
|
})
|
|
54
85
|
|
|
55
86
|
app = createSkaileApp({ appId: APP_ID, transport, logger: consoleLogger })
|
|
56
|
-
|
|
57
|
-
const client = createTrpcClient({ apiUrl: APP_CONFIG.apiURL })
|
|
58
|
-
const capabilityDefs = [
|
|
59
|
-
${builderCalls}
|
|
60
|
-
]
|
|
61
|
-
for (const def of capabilityDefs) {
|
|
62
|
-
app.registerCapability(defineAppCapability(def as never))
|
|
63
|
-
}
|
|
64
|
-
|
|
87
|
+
${capabilityRegistration}
|
|
65
88
|
app.onSessionChange((_session: AppSession | null) => {
|
|
66
89
|
// No UI to reflect connection state in a generated app by default.
|
|
67
90
|
})
|
|
@@ -74,10 +97,26 @@ ${builderCalls}
|
|
|
74
97
|
}
|
|
75
98
|
|
|
76
99
|
void run().catch((error) => {
|
|
77
|
-
// A standalone (non-embedded) app has no host to answer skaile_app_ready
|
|
78
|
-
//
|
|
79
|
-
//
|
|
80
|
-
|
|
100
|
+
// A standalone (non-embedded) app has no host to answer skaile_app_ready.
|
|
101
|
+
// That is the expected case for a plain \`pnpm dev\`, so it stays at debug and
|
|
102
|
+
// local runs remain quiet. It is also exactly the case the SDK detects by
|
|
103
|
+
// comparing \`window.parent\` to \`window\` before it does anything else, so the
|
|
104
|
+
// same check separates it from every other failure here.
|
|
105
|
+
//
|
|
106
|
+
// Anything else - a handshake refused because APP_ID is unknown to the
|
|
107
|
+
// platform or reserved, a schema/SDK mismatch, a registration error - is a
|
|
108
|
+
// real misconfiguration. Reporting those at debug is what made a rejected
|
|
109
|
+
// APP_ID cost a day to diagnose (#848), so they are surfaced at error.
|
|
110
|
+
//
|
|
111
|
+
// \`typeof window\`, not a bare \`window\`: "no window at all" is itself one of the
|
|
112
|
+
// rejections this handler receives (it is the SDK's first check, ahead of the
|
|
113
|
+
// parent-frame one), and a bare reference would throw here instead of logging.
|
|
114
|
+
const isStandalone = typeof window === 'undefined' || window.parent === window
|
|
115
|
+
if (isStandalone) {
|
|
116
|
+
consoleLogger.debug('skaile app-channel not started (app is not embedded in a host)', { error })
|
|
117
|
+
return
|
|
118
|
+
}
|
|
119
|
+
consoleLogger.error('skaile app-channel failed to start', { appId: APP_ID, error })
|
|
81
120
|
})
|
|
82
121
|
|
|
83
122
|
return () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skaile-app-file.generator.js","sourceRoot":"","sources":["../../../src/skailify/generators/skaile-app-file.generator.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"skaile-app-file.generator.js","sourceRoot":"","sources":["../../../src/skailify/generators/skaile-app-file.generator.ts"],"names":[],"mappings":";;AAUA,sDA2HC;AArID,SAAS,UAAU,CAAC,KAAa;IAC/B,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;AAC5E,CAAC;AAED;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAC,MAA+B,EAAE,EAAE,KA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ist/skailify/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.skailifyGeneratorId = exports.configureSkailifyGenerator = void 0;
|
|
3
|
+
exports.skailifyGeneratorId = exports.configureSkailifyGenerator = exports.resolveSkaileAppId = exports.RESERVED_SKAILE_APP_IDS = void 0;
|
|
4
|
+
var app_id_helper_1 = require("./generators/app-id.helper");
|
|
5
|
+
Object.defineProperty(exports, "RESERVED_SKAILE_APP_IDS", { enumerable: true, get: function () { return app_id_helper_1.RESERVED_SKAILE_APP_IDS; } });
|
|
6
|
+
Object.defineProperty(exports, "resolveSkaileAppId", { enumerable: true, get: function () { return app_id_helper_1.resolveSkaileAppId; } });
|
|
4
7
|
var skailify_generator_1 = require("./skailify.generator");
|
|
5
8
|
Object.defineProperty(exports, "configureSkailifyGenerator", { enumerable: true, get: function () { return skailify_generator_1.configureSkailifyGenerator; } });
|
|
6
9
|
Object.defineProperty(exports, "skailifyGeneratorId", { enumerable: true, get: function () { return skailify_generator_1.skailifyGeneratorId; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/skailify/index.ts"],"names":[],"mappings":";;;AAAA,2DAAsF;AAA7E,gIAAA,0BAA0B,OAAA;AAAE,yHAAA,mBAAmB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/skailify/index.ts"],"names":[],"mappings":";;;AAAA,4DAAwF;AAA/E,wHAAA,uBAAuB,OAAA;AAAE,mHAAA,kBAAkB,OAAA;AACpD,2DAAsF;AAA7E,gIAAA,0BAA0B,OAAA;AAAE,yHAAA,mBAAmB,OAAA"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import * as Generator from '@postxl/generator';
|
|
2
2
|
export type SkailifyOptions = {
|
|
3
3
|
enabled?: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Id of the generated frontend app on the Skaile platform.
|
|
6
|
+
*
|
|
7
|
+
* Defaults to `<project slug>-frontend`. Set this only when the platform-side
|
|
8
|
+
* app is registered under a different id; it is validated (and rejected if it
|
|
9
|
+
* is a reserved id such as `frontend`) rather than passed through blindly.
|
|
10
|
+
*/
|
|
11
|
+
appId?: string;
|
|
4
12
|
};
|
|
5
13
|
export declare const skailifyGeneratorId: string & import("zod").$brand<"PXL.GeneratorInterfaceId">;
|
|
6
14
|
export declare const configureSkailifyGenerator: (options?: SkailifyOptions) => Generator.GeneratorInterface;
|
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.configureSkailifyGenerator = exports.skailifyGeneratorId = void 0;
|
|
37
37
|
const Path = __importStar(require("node:path"));
|
|
38
38
|
const Generator = __importStar(require("@postxl/generator"));
|
|
39
|
+
const app_id_helper_1 = require("./generators/app-id.helper");
|
|
39
40
|
const capabilities_file_generator_1 = require("./generators/capabilities-file.generator");
|
|
40
41
|
const model_scope_helper_1 = require("./generators/model-scope.helper");
|
|
41
42
|
const preview_json_generator_1 = require("./generators/preview-json.generator");
|
|
@@ -73,7 +74,12 @@ const configureSkailifyGenerator = (options = {}) => {
|
|
|
73
74
|
if (!enabled) {
|
|
74
75
|
return context;
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
// Resolved exactly once and handed to both emitters. `skaile-app.ts`'s
|
|
78
|
+
// `APP_ID` and `skaile.preview.json`'s frontend `id` have to be the same
|
|
79
|
+
// string for the app channel to connect at all, so they share a value
|
|
80
|
+
// rather than each deriving one that merely happens to agree.
|
|
81
|
+
const appId = (0, app_id_helper_1.resolveSkaileAppId)({ slug: context.schema.slug, appId: options.appId });
|
|
82
|
+
context.vfs.write('/skaile.preview.json', (0, preview_json_generator_1.generateSkailePreviewJson)({ appId }));
|
|
77
83
|
const getRelatedModelIdDecoderName = (referencedModelName) => {
|
|
78
84
|
const relatedModel = context.models.get(referencedModelName);
|
|
79
85
|
if (!relatedModel) {
|
|
@@ -125,7 +131,7 @@ const configureSkailifyGenerator = (options = {}) => {
|
|
|
125
131
|
});
|
|
126
132
|
return verbs.size > 0;
|
|
127
133
|
});
|
|
128
|
-
vfs.write('/src/skaile-app.ts', (0, skaile_app_file_generator_1.generateSkaileAppFile)(inScopeModels.map((model) => ({ camelCase: model._conjugated.camelCase }))));
|
|
134
|
+
vfs.write('/src/skaile-app.ts', (0, skaile_app_file_generator_1.generateSkaileAppFile)(inScopeModels.map((model) => ({ camelCase: model._conjugated.camelCase })), { appId }));
|
|
129
135
|
await vfs.loadFolder({ diskPath: Path.join(__dirname, './template/src'), targetPath: '/src', recursive: true });
|
|
130
136
|
context.vfs.insertFromVfs({ targetPath: '/frontend', vfs });
|
|
131
137
|
return context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skailify.generator.js","sourceRoot":"","sources":["../../src/skailify/skailify.generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAiC;AAEjC,6DAA8C;AAM9C,0FAA+G;AAC/G,wEAKwC;AACxC,gFAA+E;AAC/E,sFAA8E;
|
|
1
|
+
{"version":3,"file":"skailify.generator.js","sourceRoot":"","sources":["../../src/skailify/skailify.generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAiC;AAEjC,6DAA8C;AAM9C,8DAA+D;AAC/D,0FAA+G;AAC/G,wEAKwC;AACxC,gFAA+E;AAC/E,sFAA8E;AAcjE,QAAA,mBAAmB,GAAG,SAAS,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAA;AAOxE,MAAM,0BAA0B,GAAG,CAAC,UAA2B,EAAE,EAAgC,EAAE;IACxG,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,IAAI,CAAA;IAEvC,OAAO;QACL,EAAE,EAAE,2BAAmB;QACvB,QAAQ,EAAE;YACR,uEAAuE;YACvE,w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,CAAC,CAAA;YAE3D,OAAO,OAAO,CAAA;QAChB,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AApHY,QAAA,0BAA0B,8BAoHtC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postxl/generators",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Code generators for PXL - generates backend, frontend, Prisma schemas, and more",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@faker-js/faker": "9.9.0",
|
|
45
45
|
"@prisma/prisma-schema-wasm": "7.8.0-6.3c6e192761c0362d496ed980de936e2f3cebcd3a",
|
|
46
46
|
"exceljs": "^4.4.0",
|
|
47
|
-
"@postxl/generator": "^1.8.
|
|
47
|
+
"@postxl/generator": "^1.8.1",
|
|
48
48
|
"@postxl/schema": "^2.3.0",
|
|
49
49
|
"@postxl/ui-components": "^1.9.0",
|
|
50
50
|
"@postxl/utils": "^1.4.2"
|