@antelopejs/dms-frontend 0.1.9 → 0.2.0
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/README.md +3 -3
- package/dist/materialize.js +1 -1
- package/dist/verify-source-runner.js +1 -1
- package/package.json +1 -1
- package/templates/vue/vite.config.ts +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ making the template root (`src/materialize.ts`) and the manifest query
|
|
|
44
44
|
`--renderer` flag and no renderer registry; the single-renderer assumption is
|
|
45
45
|
deliberate until a second renderer exists. Whatever a renderer names its module
|
|
46
46
|
entry is its own convention: `dms.frontend.ts` and the
|
|
47
|
-
`#dms
|
|
47
|
+
`#dms/frontend-module` alias belong to the Vue renderer, not to the
|
|
48
48
|
loader.
|
|
49
49
|
|
|
50
50
|
## Application ownership
|
|
@@ -104,7 +104,7 @@ Manifest negotiation and module materialization are the renderer contract descri
|
|
|
104
104
|
|
|
105
105
|
The generated Vue application uses `@inertiajs/vue3`, `@nuxt/ui/vite` with `{ router: "inertia" }`, and `@nuxt/ui/vue-plugin`. The Node server resolves each Inertia visit through `/dms/page?path=…`, including fresh shared data so account, tenant, and permission changes update navigation state. It proxies backend routes and manages authentication through server-side sessions. `DMS_BOOTSTRAP_SECRET` is used only by the CLI's server-to-server frontend manifest and module archive requests and is never sent by, or exposed to, browser traffic.
|
|
106
106
|
|
|
107
|
-
Vue modules
|
|
107
|
+
Vue modules register through `dms.frontend.ts` and import the SDK from the `#dms/frontend-module` alias, which the loader resolves to the generated `frontend-module.ts`: `defineDmsPlugin`, `useDmsRouter`, the page and session types, and everything else a module needs from the host. Email templates register separately through `dms.email.ts`.
|
|
108
108
|
|
|
109
109
|
An email entry exports `serverEmailTemplates` and may export a plain `appConfig` object, such as shared branding defaults. Email rendering merges these configurations in manifest-priority order and provides them to `useDmsAppConfig` per render. Public runtime options come from the module manifest; `DMS_CLIENT_BASE_URL` overrides `public.dms.clientBaseUrl`. Email entries must not import the browser frontend module.
|
|
110
110
|
|
|
@@ -117,7 +117,7 @@ A materialized module opts into the Vue adapter with a root `dms.frontend.ts`:
|
|
|
117
117
|
```ts
|
|
118
118
|
import MyBlock from "./components/MyBlock.vue";
|
|
119
119
|
import MyPage from "./pages/MyPage.vue";
|
|
120
|
-
import type { DmsFrontendModule } from "
|
|
120
|
+
import type { DmsFrontendModule } from "#dms/frontend-module";
|
|
121
121
|
|
|
122
122
|
const frontendModule: DmsFrontendModule = {
|
|
123
123
|
setup(sdk) {
|
package/dist/materialize.js
CHANGED
|
@@ -140,7 +140,7 @@ function writeFrontendModuleRegistry(workspaceDir, layers) {
|
|
|
140
140
|
}
|
|
141
141
|
function writeFrontendTypePaths(workspaceDir, registry) {
|
|
142
142
|
const paths = {
|
|
143
|
-
"#dms
|
|
143
|
+
"#dms/frontend-module": ["./frontend-module.ts"],
|
|
144
144
|
"@frontend/*": ["./frontend-modules/*"],
|
|
145
145
|
};
|
|
146
146
|
[...registry.modules].reverse().forEach((module) => {
|
|
@@ -53,7 +53,7 @@ function removeDevelopmentDependencies(root) {
|
|
|
53
53
|
if (!process.env.DMS_LAYER_SOURCE)
|
|
54
54
|
throw new Error("DMS_LAYER_SOURCE must identify a frontend package");
|
|
55
55
|
const sourceRoot = (0, node_path_1.resolve)(process.env.DMS_LAYER_SOURCE);
|
|
56
|
-
const workspace = (0, node_fs_1.mkdtempSync)((0, node_path_1.join)((0, node_os_1.tmpdir)(), "dms-
|
|
56
|
+
const workspace = (0, node_fs_1.mkdtempSync)((0, node_path_1.join)((0, node_os_1.tmpdir)(), "dms-frontend-real-source-"));
|
|
57
57
|
const templateRoot = (0, node_path_1.join)((0, common_1.getPackageRoot)(), "templates", "vue");
|
|
58
58
|
const commandEnvironment = { ...process.env };
|
|
59
59
|
const EMAIL_BUILD_SIZE_CEILING_BYTES = 256 * 1024;
|
package/package.json
CHANGED
|
@@ -135,7 +135,7 @@ export default defineConfig({
|
|
|
135
135
|
resolve: {
|
|
136
136
|
dedupe: ["vue", "reka-ui", "@nuxt/ui"],
|
|
137
137
|
alias: {
|
|
138
|
-
"#dms
|
|
138
|
+
"#dms/frontend-module": resolve(__dirname, "frontend-module.ts"),
|
|
139
139
|
"#build/nuxt-icon-client-bundle": "virtual:nuxt-ui-icons",
|
|
140
140
|
"#shortcuts-aggregated": resolve(
|
|
141
141
|
__dirname,
|