@finesoft/front 0.1.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/dist/index.cjs +59 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/package.json +39 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
|
+
History: () => import_browser.History,
|
|
25
|
+
createPrefetchedIntentsFromDom: () => import_browser.createPrefetchedIntentsFromDom,
|
|
26
|
+
createSSRRender: () => import_ssr.createSSRRender,
|
|
27
|
+
deserializeServerData: () => import_browser.deserializeServerData,
|
|
28
|
+
injectSSRContent: () => import_ssr.injectSSRContent,
|
|
29
|
+
registerActionHandlers: () => import_browser.registerActionHandlers,
|
|
30
|
+
registerExternalUrlHandler: () => import_browser.registerExternalUrlHandler,
|
|
31
|
+
registerFlowActionHandler: () => import_browser.registerFlowActionHandler,
|
|
32
|
+
serializeServerData: () => import_ssr.serializeServerData,
|
|
33
|
+
ssrRender: () => import_ssr.ssrRender,
|
|
34
|
+
startBrowserApp: () => import_browser.startBrowserApp,
|
|
35
|
+
tryScroll: () => import_browser.tryScroll
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(index_exports);
|
|
38
|
+
__reExport(index_exports, require("@finesoft/core"), module.exports);
|
|
39
|
+
var import_browser = require("@finesoft/browser");
|
|
40
|
+
var import_ssr = require("@finesoft/ssr");
|
|
41
|
+
__reExport(index_exports, require("@finesoft/server"), module.exports);
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
History,
|
|
45
|
+
createPrefetchedIntentsFromDom,
|
|
46
|
+
createSSRRender,
|
|
47
|
+
deserializeServerData,
|
|
48
|
+
injectSSRContent,
|
|
49
|
+
registerActionHandlers,
|
|
50
|
+
registerExternalUrlHandler,
|
|
51
|
+
registerFlowActionHandler,
|
|
52
|
+
serializeServerData,
|
|
53
|
+
ssrRender,
|
|
54
|
+
startBrowserApp,
|
|
55
|
+
tryScroll,
|
|
56
|
+
...require("@finesoft/core"),
|
|
57
|
+
...require("@finesoft/server")
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// ===== Core =====\nexport * from \"@finesoft/core\";\n\n// ===== Browser (unique exports only) =====\nexport {\n\tcreatePrefetchedIntentsFromDom,\n\tdeserializeServerData,\n\tHistory,\n\tregisterActionHandlers,\n\tregisterExternalUrlHandler,\n\tregisterFlowActionHandler,\n\tstartBrowserApp,\n\ttryScroll,\n} from \"@finesoft/browser\";\nexport type {\n\tActionHandlerDependencies,\n\tBrowserAppConfig,\n\tExternalUrlDependencies,\n\tFlowActionCallbacks,\n\tFlowActionDependencies,\n} from \"@finesoft/browser\";\n\n// ===== SSR (unique exports only) =====\nexport {\n\tcreateSSRRender,\n\tinjectSSRContent,\n\tserializeServerData,\n\tssrRender,\n} from \"@finesoft/ssr\";\nexport type {\n\tInjectSSROptions,\n\tSSRRenderConfig,\n\tSSRRenderOptions,\n\tSSRRenderResult,\n} from \"@finesoft/ssr\";\n\n// ===== Server =====\nexport * from \"@finesoft/server\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAc,2BADd;AAIA,qBASO;AAUP,iBAKO;AASP,0BAAc,6BArCd;","names":[]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from '@finesoft/core';
|
|
2
|
+
export { ActionHandlerDependencies, BrowserAppConfig, ExternalUrlDependencies, FlowActionCallbacks, FlowActionDependencies, History, createPrefetchedIntentsFromDom, deserializeServerData, registerActionHandlers, registerExternalUrlHandler, registerFlowActionHandler, startBrowserApp, tryScroll } from '@finesoft/browser';
|
|
3
|
+
export { InjectSSROptions, SSRRenderConfig, SSRRenderOptions, SSRRenderResult, createSSRRender, injectSSRContent, serializeServerData, ssrRender } from '@finesoft/ssr';
|
|
4
|
+
export * from '@finesoft/server';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from '@finesoft/core';
|
|
2
|
+
export { ActionHandlerDependencies, BrowserAppConfig, ExternalUrlDependencies, FlowActionCallbacks, FlowActionDependencies, History, createPrefetchedIntentsFromDom, deserializeServerData, registerActionHandlers, registerExternalUrlHandler, registerFlowActionHandler, startBrowserApp, tryScroll } from '@finesoft/browser';
|
|
3
|
+
export { InjectSSROptions, SSRRenderConfig, SSRRenderOptions, SSRRenderResult, createSSRRender, injectSSRContent, serializeServerData, ssrRender } from '@finesoft/ssr';
|
|
4
|
+
export * from '@finesoft/server';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
export * from "@finesoft/core";
|
|
3
|
+
import {
|
|
4
|
+
createPrefetchedIntentsFromDom,
|
|
5
|
+
deserializeServerData,
|
|
6
|
+
History,
|
|
7
|
+
registerActionHandlers,
|
|
8
|
+
registerExternalUrlHandler,
|
|
9
|
+
registerFlowActionHandler,
|
|
10
|
+
startBrowserApp,
|
|
11
|
+
tryScroll
|
|
12
|
+
} from "@finesoft/browser";
|
|
13
|
+
import {
|
|
14
|
+
createSSRRender,
|
|
15
|
+
injectSSRContent,
|
|
16
|
+
serializeServerData,
|
|
17
|
+
ssrRender
|
|
18
|
+
} from "@finesoft/ssr";
|
|
19
|
+
export * from "@finesoft/server";
|
|
20
|
+
export {
|
|
21
|
+
History,
|
|
22
|
+
createPrefetchedIntentsFromDom,
|
|
23
|
+
createSSRRender,
|
|
24
|
+
deserializeServerData,
|
|
25
|
+
injectSSRContent,
|
|
26
|
+
registerActionHandlers,
|
|
27
|
+
registerExternalUrlHandler,
|
|
28
|
+
registerFlowActionHandler,
|
|
29
|
+
serializeServerData,
|
|
30
|
+
ssrRender,
|
|
31
|
+
startBrowserApp,
|
|
32
|
+
tryScroll
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// ===== Core =====\nexport * from \"@finesoft/core\";\n\n// ===== Browser (unique exports only) =====\nexport {\n\tcreatePrefetchedIntentsFromDom,\n\tdeserializeServerData,\n\tHistory,\n\tregisterActionHandlers,\n\tregisterExternalUrlHandler,\n\tregisterFlowActionHandler,\n\tstartBrowserApp,\n\ttryScroll,\n} from \"@finesoft/browser\";\nexport type {\n\tActionHandlerDependencies,\n\tBrowserAppConfig,\n\tExternalUrlDependencies,\n\tFlowActionCallbacks,\n\tFlowActionDependencies,\n} from \"@finesoft/browser\";\n\n// ===== SSR (unique exports only) =====\nexport {\n\tcreateSSRRender,\n\tinjectSSRContent,\n\tserializeServerData,\n\tssrRender,\n} from \"@finesoft/ssr\";\nexport type {\n\tInjectSSROptions,\n\tSSRRenderConfig,\n\tSSRRenderOptions,\n\tSSRRenderResult,\n} from \"@finesoft/ssr\";\n\n// ===== Server =====\nexport * from \"@finesoft/server\";\n"],"mappings":";AACA,cAAc;AAGd;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AAUP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AASP,cAAc;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@finesoft/front",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Full-stack framework: router, DI, actions, SSR, and server — all in one package",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.cjs",
|
|
8
|
+
"module": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"require": {
|
|
17
|
+
"types": "./dist/index.d.cts",
|
|
18
|
+
"default": "./dist/index.cjs"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@finesoft/core": "0.1.0",
|
|
27
|
+
"@finesoft/browser": "0.1.0",
|
|
28
|
+
"@finesoft/ssr": "0.1.0",
|
|
29
|
+
"@finesoft/server": "0.1.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"tsup": "^8.5.0",
|
|
33
|
+
"typescript": "^5.3.0"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsup",
|
|
37
|
+
"dev": "tsup --watch"
|
|
38
|
+
}
|
|
39
|
+
}
|