@muonroi/ui-engine-rule-components 0.1.25 → 0.1.27
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/components/impact-list/mu-impact-list.d.ts +1 -0
- package/dist/components/impact-list/mu-impact-list.d.ts.map +1 -1
- package/dist/components/living-docs/mu-living-docs.d.ts +1 -0
- package/dist/components/living-docs/mu-living-docs.d.ts.map +1 -1
- package/dist/components/traceability-matrix/mu-traceability-matrix.d.ts +15 -0
- package/dist/components/traceability-matrix/mu-traceability-matrix.d.ts.map +1 -1
- package/dist/models/living-docs-models.d.ts +24 -0
- package/dist/models/living-docs-models.d.ts.map +1 -1
- package/dist/muonroi-rule-components.esm.js +2787 -2729
- package/dist/muonroi-rule-components.iife.js +269 -236
- package/dist/services/living-docs-api.d.ts +12 -10
- package/dist/services/living-docs-api.d.ts.map +1 -1
- package/package.json +63 -63
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import type { ImpactListResponse, LivingDocModel, TraceabilityMatrixRow } from "../models/living-docs-models.js";
|
|
2
|
-
|
|
3
|
-
* Response shape for GET /api/v1/traceability/{workflow}/{version}.
|
|
4
|
-
*/
|
|
5
|
-
export interface TraceabilityMatrixResponse {
|
|
6
|
-
rows: TraceabilityMatrixRow[];
|
|
7
|
-
workflow: string;
|
|
8
|
-
version: number;
|
|
9
|
-
}
|
|
1
|
+
import type { ImpactListResponse, LivingDocModel, TraceabilityMatrixRow, TraceabilityMatrixResponse } from "../models/living-docs-models.js";
|
|
2
|
+
export type { TraceabilityMatrixResponse } from "../models/living-docs-models.js";
|
|
10
3
|
/**
|
|
11
4
|
* Response shape for GET /api/v1/traceability/trace/{workflow}/{nodeId}.
|
|
12
5
|
*/
|
|
@@ -24,7 +17,16 @@ export interface TraceRuleResponse {
|
|
|
24
17
|
*/
|
|
25
18
|
export declare class LivingDocsApiClient {
|
|
26
19
|
private readonly base;
|
|
27
|
-
|
|
20
|
+
private readonly authToken;
|
|
21
|
+
constructor(apiBaseUrl: string, authToken?: string);
|
|
22
|
+
/**
|
|
23
|
+
* Request headers. When the host app supplies a bearer token, attaches
|
|
24
|
+
* `Authorization: Bearer <token>` so the API's auth gate (cp.viewer policy, C-08) is satisfied.
|
|
25
|
+
* Without a token the request stays anonymous (dev / auth-disabled environments) — the API then
|
|
26
|
+
* 401s under enabled auth, which is the correct fail-closed behavior. The client never reads the
|
|
27
|
+
* token from storage itself (no coupling to a consumer's storage key — library-first).
|
|
28
|
+
*/
|
|
29
|
+
private headers;
|
|
28
30
|
/**
|
|
29
31
|
* GET {base}/living-docs/{workflow}/{version}
|
|
30
32
|
* Returns the generated living doc JSON for the given workflow + version.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"living-docs-api.d.ts","sourceRoot":"","sources":["../../src/services/living-docs-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"living-docs-api.d.ts","sourceRoot":"","sources":["../../src/services/living-docs-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,iCAAiC,CAAC;AAIzC,YAAY,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,qBAAqB,EAAE,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;gBAEvB,UAAU,EAAE,MAAM,EAAE,SAAS,SAAK;IAK9C;;;;;;OAMG;IACH,OAAO,CAAC,OAAO;IAIf;;;;OAIG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;IAWzF;;;OAGG;IACG,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAW9G;;;;OAIG;IACG,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAW7E;;;;OAIG;IACG,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAU7F"}
|
package/package.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@muonroi/ui-engine-rule-components",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Muonroi rule engine web components",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/muonroi-rule-components.esm.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/muonroi-rule-components.esm.js",
|
|
11
|
-
"types": "./dist/index.d.ts"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"dist"
|
|
16
|
-
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "npm run -w @muonroi/ui-engine-core build && vite build && vite build -c vite.trace.config.ts && vite build -c vite.flow.config.ts && tsc -p tsconfig.json --emitDeclarationOnly",
|
|
19
|
-
"build:flow": "vite build -c vite.flow.config.ts",
|
|
20
|
-
"preview:demo": "vite -c vite.preview.config.ts",
|
|
21
|
-
"test": "vitest run --coverage"
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@codemirror/autocomplete": "^6.20.1",
|
|
25
|
-
"@codemirror/commands": "^6.10.3",
|
|
26
|
-
"@codemirror/lang-javascript": "^6.2.5",
|
|
27
|
-
"@codemirror/lang-json": "^6.0.2",
|
|
28
|
-
"@codemirror/language": "^6.12.2",
|
|
29
|
-
"@codemirror/lint": "^6.9.5",
|
|
30
|
-
"@codemirror/state": "^6.6.0",
|
|
31
|
-
"@codemirror/view": "^6.40.0",
|
|
32
|
-
"@dnd-kit/core": "^6.3.0",
|
|
33
|
-
"@dnd-kit/sortable": "^8.0.0",
|
|
34
|
-
"@lezer/highlight": "^1.2.3",
|
|
35
|
-
"@microsoft/signalr": "^8.0.0",
|
|
36
|
-
"@tanstack/virtual-core": "^3.10.0",
|
|
37
|
-
"@xyflow/react": "^12.9.3",
|
|
38
|
-
"@lit-labs/virtualizer": "^2.1.1",
|
|
39
|
-
"lit": "^3.2.0",
|
|
40
|
-
"monaco-editor": "^0.52.0",
|
|
41
|
-
"react": "^18.3.1",
|
|
42
|
-
"react-dom": "^18.3.1",
|
|
43
|
-
"zustand": "^5.0.0"
|
|
44
|
-
},
|
|
45
|
-
"peerDependencies": {
|
|
46
|
-
"@muonroi/ui-engine-core": ">=0.1.0"
|
|
47
|
-
},
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"@muonroi/ui-engine-core": "workspace:^",
|
|
50
|
-
"@tailwindcss/postcss": "^4.1.11",
|
|
51
|
-
"@testing-library/react": "^16.3.0",
|
|
52
|
-
"@types/react": "^18.3.12",
|
|
53
|
-
"@types/react-dom": "^18.3.1",
|
|
54
|
-
"@vitest/coverage-v8": "^2.1.9",
|
|
55
|
-
"happy-dom": "^15.10.2",
|
|
56
|
-
"jsdom": "^29.0.0",
|
|
57
|
-
"postcss": "^8.5.6",
|
|
58
|
-
"tailwindcss": "^4.0.0",
|
|
59
|
-
"typescript": "^5.7.0",
|
|
60
|
-
"vite": "^6.0.0",
|
|
61
|
-
"vitest": "^2.1.8"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@muonroi/ui-engine-rule-components",
|
|
3
|
+
"version": "0.1.27",
|
|
4
|
+
"description": "Muonroi rule engine web components",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/muonroi-rule-components.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/muonroi-rule-components.esm.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "npm run -w @muonroi/ui-engine-core build && vite build && vite build -c vite.trace.config.ts && vite build -c vite.flow.config.ts && tsc -p tsconfig.json --emitDeclarationOnly",
|
|
19
|
+
"build:flow": "vite build -c vite.flow.config.ts",
|
|
20
|
+
"preview:demo": "vite -c vite.preview.config.ts",
|
|
21
|
+
"test": "vitest run --coverage"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@codemirror/autocomplete": "^6.20.1",
|
|
25
|
+
"@codemirror/commands": "^6.10.3",
|
|
26
|
+
"@codemirror/lang-javascript": "^6.2.5",
|
|
27
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
28
|
+
"@codemirror/language": "^6.12.2",
|
|
29
|
+
"@codemirror/lint": "^6.9.5",
|
|
30
|
+
"@codemirror/state": "^6.6.0",
|
|
31
|
+
"@codemirror/view": "^6.40.0",
|
|
32
|
+
"@dnd-kit/core": "^6.3.0",
|
|
33
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
34
|
+
"@lezer/highlight": "^1.2.3",
|
|
35
|
+
"@microsoft/signalr": "^8.0.0",
|
|
36
|
+
"@tanstack/virtual-core": "^3.10.0",
|
|
37
|
+
"@xyflow/react": "^12.9.3",
|
|
38
|
+
"@lit-labs/virtualizer": "^2.1.1",
|
|
39
|
+
"lit": "^3.2.0",
|
|
40
|
+
"monaco-editor": "^0.52.0",
|
|
41
|
+
"react": "^18.3.1",
|
|
42
|
+
"react-dom": "^18.3.1",
|
|
43
|
+
"zustand": "^5.0.0"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@muonroi/ui-engine-core": ">=0.1.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@muonroi/ui-engine-core": "workspace:^",
|
|
50
|
+
"@tailwindcss/postcss": "^4.1.11",
|
|
51
|
+
"@testing-library/react": "^16.3.0",
|
|
52
|
+
"@types/react": "^18.3.12",
|
|
53
|
+
"@types/react-dom": "^18.3.1",
|
|
54
|
+
"@vitest/coverage-v8": "^2.1.9",
|
|
55
|
+
"happy-dom": "^15.10.2",
|
|
56
|
+
"jsdom": "^29.0.0",
|
|
57
|
+
"postcss": "^8.5.6",
|
|
58
|
+
"tailwindcss": "^4.0.0",
|
|
59
|
+
"typescript": "^5.7.0",
|
|
60
|
+
"vite": "^6.0.0",
|
|
61
|
+
"vitest": "^2.1.8"
|
|
62
|
+
}
|
|
63
|
+
}
|