@mdsnai/sdk 0.1.0 → 0.2.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/README.md +40 -0
- package/dist/core/document/markdown.js +2 -4
- package/dist/core/document/page-definition.js +1 -2
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.js +9 -1
- package/dist/core/model/block.d.ts +4 -8
- package/dist/core/model/block.js +6 -0
- package/dist/core/model/document.d.ts +0 -2
- package/dist/core/model/index.d.ts +1 -2
- package/dist/core/model/input.d.ts +1 -2
- package/dist/core/protocol/mdsn.d.ts +0 -2
- package/dist/core/protocol/mdsn.js +4 -18
- package/dist/core/protocol/statements.d.ts +3 -8
- package/dist/core/protocol/statements.js +47 -72
- package/dist/core/protocol/validation.d.ts +2 -3
- package/dist/core/protocol/validation.js +21 -11
- package/dist/core/utils/html.d.ts +6 -0
- package/dist/core/utils/html.js +28 -0
- package/dist/core/utils/index.d.ts +2 -0
- package/dist/core/utils/index.js +12 -0
- package/dist/core/utils/logger.d.ts +12 -0
- package/dist/core/utils/logger.js +45 -0
- package/dist/framework/create-framework-app.d.ts +1 -0
- package/dist/framework/create-framework-app.js +1 -0
- package/dist/framework/hosted-app.d.ts +21 -0
- package/dist/framework/hosted-app.js +123 -33
- package/dist/framework/index.d.ts +2 -0
- package/dist/framework/index.js +3 -1
- package/dist/framework/site-app.d.ts +1 -0
- package/dist/framework/site-app.js +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +18 -1
- package/dist/server/action-context.d.ts +11 -0
- package/dist/server/action-context.js +26 -0
- package/dist/server/action-host.d.ts +2 -3
- package/dist/server/action-host.js +4 -2
- package/dist/server/action-inputs.d.ts +3 -0
- package/dist/server/action-inputs.js +178 -0
- package/dist/server/action-runtime.d.ts +3 -3
- package/dist/server/action-runtime.js +2 -21
- package/dist/server/action.d.ts +1 -9
- package/dist/server/action.js +5 -1
- package/dist/server/build.js +4 -0
- package/dist/server/error-fragments.d.ts +46 -0
- package/dist/server/error-fragments.js +77 -0
- package/dist/server/index.d.ts +9 -2
- package/dist/server/index.js +17 -1
- package/dist/server/init.js +14 -14
- package/dist/server/markdown.d.ts +2 -6
- package/dist/server/markdown.js +12 -11
- package/dist/server/server.d.ts +2 -1
- package/dist/server/server.js +17 -8
- package/dist/server/session.d.ts +40 -0
- package/dist/server/session.js +220 -0
- package/dist/web/block-runtime.js +15 -17
- package/dist/web/fragment-render.d.ts +0 -2
- package/dist/web/fragment-render.js +0 -1
- package/dist/web/i18n.d.ts +0 -2
- package/dist/web/i18n.js +0 -4
- package/dist/web/index.d.ts +1 -1
- package/dist/web/index.js +2 -1
- package/dist/web/page-bootstrap.js +0 -1
- package/dist/web/page-client-runtime.d.ts +2 -13
- package/dist/web/page-client-runtime.js +1 -16
- package/dist/web/page-client-script.d.ts +0 -1
- package/dist/web/page-client-script.js +172 -160
- package/dist/web/page-html.js +4 -11
- package/dist/web/page-render.d.ts +1 -1
- package/dist/web/page-render.js +13 -21
- package/package.json +1 -1
- package/dist/core/action/execution.d.ts +0 -4
- package/dist/core/action/execution.js +0 -57
- package/dist/core/action/index.d.ts +0 -2
- package/dist/core/action/index.js +0 -7
- package/dist/core/action/types.d.ts +0 -19
- package/dist/core/action/types.js +0 -2
- package/dist/core/model/schema.d.ts +0 -4
- package/dist/core/model/schema.js +0 -2
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.redirectActionResult = exports.normalizeActionResult = exports.fragmentActionResult = void 0;
|
|
4
|
-
var execution_1 = require("./execution");
|
|
5
|
-
Object.defineProperty(exports, "fragmentActionResult", { enumerable: true, get: function () { return execution_1.fragmentActionResult; } });
|
|
6
|
-
Object.defineProperty(exports, "normalizeActionResult", { enumerable: true, get: function () { return execution_1.normalizeActionResult; } });
|
|
7
|
-
Object.defineProperty(exports, "redirectActionResult", { enumerable: true, get: function () { return execution_1.redirectActionResult; } });
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type ActionFieldErrors = Record<string, string>;
|
|
2
|
-
export type FragmentActionSuccess = {
|
|
3
|
-
ok: true;
|
|
4
|
-
kind: "fragment";
|
|
5
|
-
markdown: string;
|
|
6
|
-
};
|
|
7
|
-
export type RedirectActionSuccess = {
|
|
8
|
-
ok: true;
|
|
9
|
-
kind: "redirect";
|
|
10
|
-
location: string;
|
|
11
|
-
};
|
|
12
|
-
export type ActionFailure = {
|
|
13
|
-
ok: false;
|
|
14
|
-
errorCode: string;
|
|
15
|
-
message?: string;
|
|
16
|
-
fieldErrors?: ActionFieldErrors;
|
|
17
|
-
};
|
|
18
|
-
export type ActionSuccess = FragmentActionSuccess | RedirectActionSuccess;
|
|
19
|
-
export type ActionResult = ActionSuccess | ActionFailure;
|