@tailor-cms/ce-table-server 0.1.0 → 2.0.1
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.cjs +17 -1679
- package/dist/index.d.cts +7 -24
- package/dist/index.d.mts +8 -0
- package/dist/index.mjs +11 -0
- package/package.json +18 -23
- package/dist/index.d.ts +0 -25
- package/dist/index.js +0 -1647
package/dist/index.d.cts
CHANGED
|
@@ -1,25 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export { initState, type } from '@tailor-cms/ce-table-manifest';
|
|
4
|
-
import { HookServices, ServerRuntime } from '@tailor-cms/cek-common';
|
|
1
|
+
import { Element, ai, initState, type } from "@tailor-cms/ce-table-manifest";
|
|
2
|
+
import { HookMap, ServerModule } from "@tailor-cms/cek-common";
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
declare
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
declare function onUserInteraction(_element: Element, context: any, payload: any): any;
|
|
12
|
-
declare const hookMap: Map<string, typeof beforeSave | typeof afterSave | typeof afterLoaded | typeof afterRetrieve | typeof onUserInteraction | typeof beforeDisplay>;
|
|
13
|
-
declare const _default: {
|
|
14
|
-
type: string;
|
|
15
|
-
hookMap: Map<string, typeof beforeSave | typeof afterSave | typeof afterLoaded | typeof afterRetrieve | typeof onUserInteraction | typeof beforeDisplay>;
|
|
16
|
-
initState: _tailor_cms_ce_table_manifest.DataInitializer;
|
|
17
|
-
beforeSave: typeof beforeSave;
|
|
18
|
-
afterSave: typeof afterSave;
|
|
19
|
-
afterLoaded: typeof afterLoaded;
|
|
20
|
-
afterRetrieve: typeof afterRetrieve;
|
|
21
|
-
onUserInteraction: typeof onUserInteraction;
|
|
22
|
-
beforeDisplay: typeof beforeDisplay;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export { afterLoaded, afterRetrieve, afterSave, beforeDisplay, beforeSave, _default as default, hookMap, onUserInteraction };
|
|
4
|
+
//#region src/index.d.ts
|
|
5
|
+
declare const hookMap: HookMap<Element>;
|
|
6
|
+
declare const serverModule: ServerModule<Element>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ai, serverModule as default, hookMap, initState, type };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Element, ai, initState, type } from "@tailor-cms/ce-table-manifest";
|
|
2
|
+
import { HookMap, ServerModule } from "@tailor-cms/cek-common";
|
|
3
|
+
|
|
4
|
+
//#region src/index.d.ts
|
|
5
|
+
declare const hookMap: HookMap<Element>;
|
|
6
|
+
declare const serverModule: ServerModule<Element>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ai, serverModule as default, hookMap, initState, type };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ai, initState, type } from "@tailor-cms/ce-table-manifest";
|
|
2
|
+
//#region src/index.ts
|
|
3
|
+
const hookMap = /* @__PURE__ */ new Map();
|
|
4
|
+
const serverModule = {
|
|
5
|
+
type,
|
|
6
|
+
initState,
|
|
7
|
+
hookMap,
|
|
8
|
+
ai
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ai, serverModule as default, hookMap, initState, type };
|
package/package.json
CHANGED
|
@@ -3,48 +3,43 @@
|
|
|
3
3
|
"description": "Tailor CMS table server element",
|
|
4
4
|
"author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"version": "0.1
|
|
6
|
+
"version": "2.0.1",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"import": "./dist/index.
|
|
9
|
+
"import": "./dist/index.mjs",
|
|
10
10
|
"require": "./dist/index.cjs"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"main": "./dist/index.cjs",
|
|
14
|
-
"types": "./dist/index.d.
|
|
14
|
+
"types": "./dist/index.d.mts",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@tailor-cms/cek-common": "2.0.1",
|
|
20
|
+
"@tailor-cms/ce-table-manifest": "2.0.1"
|
|
21
|
+
},
|
|
18
22
|
"devDependencies": {
|
|
19
|
-
"@tailor-cms/
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"typescript": "^5.8.3",
|
|
23
|
-
"@tailor-cms/ce-table-manifest": "0.1.0"
|
|
23
|
+
"@tailor-cms/eslint-config": "2.0.1",
|
|
24
|
+
"tsdown": "^0.21.10",
|
|
25
|
+
"typescript": "^6.0.3"
|
|
24
26
|
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"src/index.ts"
|
|
28
|
-
],
|
|
29
|
-
"target": [
|
|
30
|
-
"node14",
|
|
31
|
-
"es2022"
|
|
32
|
-
],
|
|
27
|
+
"tsdown": {
|
|
28
|
+
"target": "node24",
|
|
33
29
|
"format": [
|
|
34
30
|
"cjs",
|
|
35
31
|
"esm"
|
|
36
|
-
]
|
|
37
|
-
"bundle": true,
|
|
38
|
-
"minify": false,
|
|
39
|
-
"clean": false,
|
|
40
|
-
"dts": true
|
|
32
|
+
]
|
|
41
33
|
},
|
|
42
34
|
"publishConfig": {
|
|
43
35
|
"access": "public"
|
|
44
36
|
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=24"
|
|
39
|
+
},
|
|
45
40
|
"scripts": {
|
|
46
|
-
"dev": "
|
|
47
|
-
"build": "pnpm nuke:dist &&
|
|
41
|
+
"dev": "tsdown --watch src --watch ../manifest/dist",
|
|
42
|
+
"build": "pnpm nuke:dist && tsdown",
|
|
48
43
|
"lint": "eslint .",
|
|
49
44
|
"lint:fix": "pnpm lint --fix",
|
|
50
45
|
"nuke": "pnpm dlx del-cli dist node_modules",
|
package/dist/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as _tailor_cms_ce_table_manifest from '@tailor-cms/ce-table-manifest';
|
|
2
|
-
import { Element } from '@tailor-cms/ce-table-manifest';
|
|
3
|
-
export { initState, type } from '@tailor-cms/ce-table-manifest';
|
|
4
|
-
import { HookServices, ServerRuntime } from '@tailor-cms/cek-common';
|
|
5
|
-
|
|
6
|
-
declare function beforeSave(element: Element, _services: HookServices): Element;
|
|
7
|
-
declare function afterSave(element: Element, _services: HookServices): Element;
|
|
8
|
-
declare function afterLoaded(element: Element, _services: HookServices, _runtime: ServerRuntime): Element;
|
|
9
|
-
declare function afterRetrieve(element: Element, _services: HookServices, _runtime: ServerRuntime): Element;
|
|
10
|
-
declare function beforeDisplay(_element: Element, context: any): any;
|
|
11
|
-
declare function onUserInteraction(_element: Element, context: any, payload: any): any;
|
|
12
|
-
declare const hookMap: Map<string, typeof beforeSave | typeof afterSave | typeof afterLoaded | typeof afterRetrieve | typeof onUserInteraction | typeof beforeDisplay>;
|
|
13
|
-
declare const _default: {
|
|
14
|
-
type: string;
|
|
15
|
-
hookMap: Map<string, typeof beforeSave | typeof afterSave | typeof afterLoaded | typeof afterRetrieve | typeof onUserInteraction | typeof beforeDisplay>;
|
|
16
|
-
initState: _tailor_cms_ce_table_manifest.DataInitializer;
|
|
17
|
-
beforeSave: typeof beforeSave;
|
|
18
|
-
afterSave: typeof afterSave;
|
|
19
|
-
afterLoaded: typeof afterLoaded;
|
|
20
|
-
afterRetrieve: typeof afterRetrieve;
|
|
21
|
-
onUserInteraction: typeof onUserInteraction;
|
|
22
|
-
beforeDisplay: typeof beforeDisplay;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export { afterLoaded, afterRetrieve, afterSave, beforeDisplay, beforeSave, _default as default, hookMap, onUserInteraction };
|