@c9up/station 0.1.5 → 0.1.6
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/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +11 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
export { kebabCase, pluralise, titleCase } from "./casing.js";
|
|
2
2
|
export { defineResource } from "./defineResource.js";
|
|
3
3
|
export { ResourceRegistry } from "./ResourceRegistry.js";
|
|
4
|
-
export type { StationAppContext } from "./StationProvider.js";
|
|
4
|
+
export type { StationAppContext, StationConfig } from "./StationProvider.js";
|
|
5
5
|
export { default as StationProvider } from "./StationProvider.js";
|
|
6
|
+
import type { StationConfig } from "./StationProvider.js";
|
|
7
|
+
/**
|
|
8
|
+
* Author-time config helper for `config/station.ts` — AdonisJS `defineConfig`
|
|
9
|
+
* parity. Identity at runtime; the generic preserves literal types for inference.
|
|
10
|
+
*/
|
|
11
|
+
export declare function defineConfig<T extends StationConfig>(config: T): T;
|
|
6
12
|
export { type AuditEvent, type AuditSink, type FormFieldOverride, RESOURCE_ACTIONS, type Resource, type ResourceAction, type ResourceOptions, } from "./types.js";
|
|
7
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,aAAa,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAElE;AACD,OAAO,EACN,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,gBAAgB,EAChB,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,eAAe,GACpB,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,5 +2,12 @@ export { kebabCase, pluralise, titleCase } from "./casing.js";
|
|
|
2
2
|
export { defineResource } from "./defineResource.js";
|
|
3
3
|
export { ResourceRegistry } from "./ResourceRegistry.js";
|
|
4
4
|
export { default as StationProvider } from "./StationProvider.js";
|
|
5
|
+
/**
|
|
6
|
+
* Author-time config helper for `config/station.ts` — AdonisJS `defineConfig`
|
|
7
|
+
* parity. Identity at runtime; the generic preserves literal types for inference.
|
|
8
|
+
*/
|
|
9
|
+
export function defineConfig(config) {
|
|
10
|
+
return config;
|
|
11
|
+
}
|
|
5
12
|
export { RESOURCE_ACTIONS, } from "./types.js";
|
|
6
13
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAIlE;;;GAGG;AACH,MAAM,UAAU,YAAY,CAA0B,MAAS;IAC9D,OAAO,MAAM,CAAC;AACf,CAAC;AACD,OAAO,EAIN,gBAAgB,GAIhB,MAAM,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c9up/station",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Station — admin scaffolding for the Ream framework. Declarative resource catalogue (defineResource) backing list/show/create/edit/destroy routes, audit, policies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
export { kebabCase, pluralise, titleCase } from "./casing.js";
|
|
2
2
|
export { defineResource } from "./defineResource.js";
|
|
3
3
|
export { ResourceRegistry } from "./ResourceRegistry.js";
|
|
4
|
-
export type { StationAppContext } from "./StationProvider.js";
|
|
4
|
+
export type { StationAppContext, StationConfig } from "./StationProvider.js";
|
|
5
5
|
export { default as StationProvider } from "./StationProvider.js";
|
|
6
|
+
|
|
7
|
+
import type { StationConfig } from "./StationProvider.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Author-time config helper for `config/station.ts` — AdonisJS `defineConfig`
|
|
11
|
+
* parity. Identity at runtime; the generic preserves literal types for inference.
|
|
12
|
+
*/
|
|
13
|
+
export function defineConfig<T extends StationConfig>(config: T): T {
|
|
14
|
+
return config;
|
|
15
|
+
}
|
|
6
16
|
export {
|
|
7
17
|
type AuditEvent,
|
|
8
18
|
type AuditSink,
|