@mobile-reality/mdma-spec 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/LICENSE +21 -0
- package/dist/constants.d.ts +3 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +3 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/binding.d.ts +6 -0
- package/dist/schemas/binding.d.ts.map +1 -0
- package/dist/schemas/binding.js +9 -0
- package/dist/schemas/binding.js.map +1 -0
- package/dist/schemas/blueprint-manifest.d.ts +126 -0
- package/dist/schemas/blueprint-manifest.d.ts.map +1 -0
- package/dist/schemas/blueprint-manifest.js +27 -0
- package/dist/schemas/blueprint-manifest.js.map +1 -0
- package/dist/schemas/component-base.d.ts +28 -0
- package/dist/schemas/component-base.d.ts.map +1 -0
- package/dist/schemas/component-base.js +12 -0
- package/dist/schemas/component-base.js.map +1 -0
- package/dist/schemas/components/approval-gate.d.ts +50 -0
- package/dist/schemas/components/approval-gate.d.ts.map +1 -0
- package/dist/schemas/components/approval-gate.js +13 -0
- package/dist/schemas/components/approval-gate.js.map +1 -0
- package/dist/schemas/components/button.d.ts +66 -0
- package/dist/schemas/components/button.d.ts.map +1 -0
- package/dist/schemas/components/button.js +17 -0
- package/dist/schemas/components/button.js.map +1 -0
- package/dist/schemas/components/callout.d.ts +41 -0
- package/dist/schemas/components/callout.d.ts.map +1 -0
- package/dist/schemas/components/callout.js +10 -0
- package/dist/schemas/components/callout.js.map +1 -0
- package/dist/schemas/components/chart.d.ts +56 -0
- package/dist/schemas/components/chart.d.ts.map +1 -0
- package/dist/schemas/components/chart.js +16 -0
- package/dist/schemas/components/chart.js.map +1 -0
- package/dist/schemas/components/form.d.ts +210 -0
- package/dist/schemas/components/form.d.ts.map +1 -0
- package/dist/schemas/components/form.js +34 -0
- package/dist/schemas/components/form.js.map +1 -0
- package/dist/schemas/components/index.d.ts +559 -0
- package/dist/schemas/components/index.d.ts.map +1 -0
- package/dist/schemas/components/index.js +54 -0
- package/dist/schemas/components/index.js.map +1 -0
- package/dist/schemas/components/table.d.ts +100 -0
- package/dist/schemas/components/table.d.ts.map +1 -0
- package/dist/schemas/components/table.js +34 -0
- package/dist/schemas/components/table.js.map +1 -0
- package/dist/schemas/components/tasklist.d.ts +85 -0
- package/dist/schemas/components/tasklist.d.ts.map +1 -0
- package/dist/schemas/components/tasklist.js +16 -0
- package/dist/schemas/components/tasklist.js.map +1 -0
- package/dist/schemas/components/thinking.d.ts +38 -0
- package/dist/schemas/components/thinking.d.ts.map +1 -0
- package/dist/schemas/components/thinking.js +9 -0
- package/dist/schemas/components/thinking.js.map +1 -0
- package/dist/schemas/components/webhook.d.ts +50 -0
- package/dist/schemas/components/webhook.d.ts.map +1 -0
- package/dist/schemas/components/webhook.js +14 -0
- package/dist/schemas/components/webhook.js.map +1 -0
- package/dist/schemas/document.d.ts +25 -0
- package/dist/schemas/document.d.ts.map +1 -0
- package/dist/schemas/document.js +10 -0
- package/dist/schemas/document.js.map +1 -0
- package/dist/schemas/event-log.d.ts +59 -0
- package/dist/schemas/event-log.d.ts.map +1 -0
- package/dist/schemas/event-log.js +26 -0
- package/dist/schemas/event-log.js.map +1 -0
- package/dist/schemas/policy.d.ts +58 -0
- package/dist/schemas/policy.d.ts.map +1 -0
- package/dist/schemas/policy.js +13 -0
- package/dist/schemas/policy.js.map +1 -0
- package/dist/types/ast.d.ts +14 -0
- package/dist/types/ast.d.ts.map +1 -0
- package/dist/types/ast.js +2 -0
- package/dist/types/ast.js.map +1 -0
- package/dist/types/attachable.d.ts +8 -0
- package/dist/types/attachable.d.ts.map +1 -0
- package/dist/types/attachable.js +2 -0
- package/dist/types/attachable.js.map +1 -0
- package/dist/types/events.d.ts +35 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/events.js +2 -0
- package/dist/types/events.js.map +1 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachable.js","sourceRoot":"","sources":["../../src/types/attachable.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type StoreAction = {
|
|
2
|
+
type: 'FIELD_CHANGED';
|
|
3
|
+
componentId: string;
|
|
4
|
+
field: string;
|
|
5
|
+
value: unknown;
|
|
6
|
+
} | {
|
|
7
|
+
type: 'ACTION_TRIGGERED';
|
|
8
|
+
componentId: string;
|
|
9
|
+
actionId: string;
|
|
10
|
+
payload?: unknown;
|
|
11
|
+
} | {
|
|
12
|
+
type: 'COMPONENT_RENDERED';
|
|
13
|
+
componentId: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: 'APPROVAL_GRANTED';
|
|
16
|
+
componentId: string;
|
|
17
|
+
actor: {
|
|
18
|
+
id: string;
|
|
19
|
+
role?: string;
|
|
20
|
+
};
|
|
21
|
+
} | {
|
|
22
|
+
type: 'APPROVAL_DENIED';
|
|
23
|
+
componentId: string;
|
|
24
|
+
actor: {
|
|
25
|
+
id: string;
|
|
26
|
+
role?: string;
|
|
27
|
+
};
|
|
28
|
+
reason: string;
|
|
29
|
+
} | {
|
|
30
|
+
type: 'INTEGRATION_CALLED';
|
|
31
|
+
componentId: string;
|
|
32
|
+
integrationId: string;
|
|
33
|
+
result: unknown;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAC7E;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GACtF;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GACnD;IACE,IAAI,EAAE,kBAAkB,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACtC,GACD;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB,GACD;IACE,IAAI,EAAE,oBAAoB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type { MdmaBlock, MdmaRoot } from './ast.js';
|
|
2
|
+
export type { StoreAction } from './events.js';
|
|
3
|
+
export type { AttachableDefinition } from './attachable.js';
|
|
4
|
+
export type { ComponentBase } from '../schemas/component-base.js';
|
|
5
|
+
export type { BindingExpression } from '../schemas/binding.js';
|
|
6
|
+
export type { MdmaComponent, ComponentType, FormComponent, FormField, ButtonComponent, TasklistComponent, TaskItem, TableComponent, TableColumn, CalloutComponent, ApprovalGateComponent, WebhookComponent, ChartComponent, ThinkingComponent, } from '../schemas/components/index.js';
|
|
7
|
+
export type { EventLogEntry, EventType, EventActor } from '../schemas/event-log.js';
|
|
8
|
+
export type { Policy, PolicyRule } from '../schemas/policy.js';
|
|
9
|
+
export type { DocumentMetadata } from '../schemas/document.js';
|
|
10
|
+
export type { BlueprintManifest, BlueprintMaturity, } from '../schemas/blueprint-manifest.js';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,YAAY,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAG5D,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,YAAY,EACV,aAAa,EACb,aAAa,EACb,aAAa,EACb,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,GAClB,MAAM,gCAAgC,CAAC;AACxC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACpF,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC/D,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,YAAY,EACV,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mobile-reality/mdma-spec",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"import": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./schemas/*": {
|
|
12
|
+
"import": "./dist/schemas/*.js",
|
|
13
|
+
"types": "./dist/schemas/*.d.ts",
|
|
14
|
+
"default": "./dist/schemas/*.js"
|
|
15
|
+
},
|
|
16
|
+
"./types": {
|
|
17
|
+
"import": "./dist/types/index.js",
|
|
18
|
+
"types": "./dist/types/index.d.ts",
|
|
19
|
+
"default": "./dist/types/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"zod": "^3.24.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/mdast": "^4.0.0",
|
|
27
|
+
"typescript": "^5.7.0",
|
|
28
|
+
"vitest": "^3.2.0"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/MobileReality/mdma.git",
|
|
39
|
+
"directory": "packages/spec"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsc -p tsconfig.json",
|
|
43
|
+
"test": "vitest run",
|
|
44
|
+
"lint": "eslint src/",
|
|
45
|
+
"typecheck": "tsc --noEmit"
|
|
46
|
+
}
|
|
47
|
+
}
|