@lssm/lib.overlay-engine 0.0.0-canary-20251220041653 → 0.0.0-canary-20251221132705

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/spec.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AnyContractSpec } from "@lssm/lib.contracts";
1
+ import { AnyOperationSpec } from "@lssm/lib.contracts";
2
2
 
3
3
  //#region src/spec.d.ts
4
4
  type OverlayScopeKey = 'tenantId' | 'role' | 'userId' | 'device' | 'tags';
@@ -14,7 +14,7 @@ interface OverlayTargetRef {
14
14
  workflow?: string;
15
15
  dataView?: string;
16
16
  presentation?: string;
17
- operation?: AnyContractSpec['meta']['name'];
17
+ operation?: AnyOperationSpec['meta']['name'];
18
18
  }
19
19
  interface OverlayAppliesTo extends OverlayScopeContext, OverlayTargetRef {
20
20
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"spec.d.ts","names":[],"sources":["../src/spec.ts"],"sourcesContent":[],"mappings":";;;KAEY,eAAA;UAOK,mBAAA;EAPL,QAAA,CAAA,EAAA,MAAA;EAOK,IAAA,CAAA,EAAA,MAAA;EAQA,MAAA,CAAA,EAAA,MAAA;EAQA,MAAA,CAAA,EAAA,MAAA;EAQL,IAAA,CAAA,EAAA,MAAA,EAAA;;AAER,UAlBa,gBAAA,CAkBb;EACA,UAAA,CAAA,EAAA,MAAA;EACA,QAAA,CAAA,EAAA,MAAA;EACA,QAAA,CAAA,EAAA,MAAA;EACA,YAAA,CAAA,EAAA,MAAA;EAAwB,SAAA,CAAA,EAjBd,eAiBc,CAAA,MAAA,CAAA,CAAA,MAAA,CAAA;AAE5B;AAKiB,UArBA,gBAAA,SACP,mBAoBqC,EApBhB,gBAoB4C,CAAA;EAK1D;AAKjB;AAMA;EAKiB,KAAA,CAAA,EAAA,MAAA;AAKjB;AAKiB,KA5CL,mBAAA,GACR,qBA2CwB,GA1CxB,uBA0CwB,GAzCxB,yBAyCwB,GAxCxB,sBA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B;AAKiB,KA5CL,mBAAA,GACR,qBA2CwB,GA1CxB,uBA0CwB,GAzCxB,yBAyCwB,GAxCxB,sBAwCwB,GAvCxB,uBAuCwB,GAtCxB,wBAsCwB;AAIf,UAxCI,4BAAA,CAwCJ;EACI,KAAA,EAAA,MAAA;EACJ,WAAA,CAAA,EAAA,MAAA;;AAKD,UA1CK,qBAAA,SAA8B,4BA0CV,CAAA;EAEpB,IAAA,EAAA,WAAA;EAUL,MAAA,CAAA,EAAA,MAAA;AAIZ;AAEa,UAvDI,uBAAA,SAAgC,4BAuDA,CAAA;EAQjC,IAAA,EAAA,aAAa;EAAW,QAAA,EAAA,MAAA;;AAAuB,UA1D9C,yBAAA,CA0D8C;EAAC,IAAA,EAAA,eAAA;;;;UApD/C,sBAAA,SAA+B;;;;UAK/B,uBAAA,SAAgC;;;;UAKhC,wBAAA,SAAiC;;;;UAKjC,WAAA;;;;aAIJ;iBACI;aACJ;;;;KAKD,yBAAA;UAEK,qBAAA;aACJ;;;;;;aAMA;;KAGD,iBAAA,GAAoB;aACnB;;KAGD,YAAA,GAAe,cAAc;cAE5B,qBAAqB;iBAQlB,wBAAwB,mBAAmB,IAAI"}
package/dist/spec.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"spec.js","names":["OVERLAY_SCOPE_ORDER: OverlayScopeKey[]"],"sources":["../src/spec.ts"],"sourcesContent":["import type { AnyContractSpec } from '@lssm/lib.contracts';\n\nexport type OverlayScopeKey =\n | 'tenantId'\n | 'role'\n | 'userId'\n | 'device'\n | 'tags';\n\nexport interface OverlayScopeContext {\n tenantId?: string;\n role?: string;\n userId?: string;\n device?: string;\n tags?: string[];\n}\n\nexport interface OverlayTargetRef {\n capability?: string;\n workflow?: string;\n dataView?: string;\n presentation?: string;\n operation?: AnyContractSpec['meta']['name'];\n}\n\nexport interface OverlayAppliesTo\n extends OverlayScopeContext, OverlayTargetRef {\n /**\n * Optional label to describe why this overlay exists (displayed in tooling).\n */\n label?: string;\n}\n\nexport type OverlayModification =\n | HideFieldModification\n | RenameLabelModification\n | ReorderFieldsModification\n | SetDefaultModification\n | AddHelpTextModification\n | MakeRequiredModification;\n\nexport interface OverlayFieldModificationBase {\n field: string;\n description?: string;\n}\n\nexport interface HideFieldModification extends OverlayFieldModificationBase {\n type: 'hideField';\n reason?: string;\n}\n\nexport interface RenameLabelModification extends OverlayFieldModificationBase {\n type: 'renameLabel';\n newLabel: string;\n}\n\nexport interface ReorderFieldsModification {\n type: 'reorderFields';\n fields: string[];\n description?: string;\n}\n\nexport interface SetDefaultModification extends OverlayFieldModificationBase {\n type: 'setDefault';\n value: unknown;\n}\n\nexport interface AddHelpTextModification extends OverlayFieldModificationBase {\n type: 'addHelpText';\n text: string;\n}\n\nexport interface MakeRequiredModification extends OverlayFieldModificationBase {\n type: 'makeRequired';\n required?: boolean;\n}\n\nexport interface OverlaySpec {\n overlayId: string;\n version: string;\n description?: string;\n appliesTo: OverlayAppliesTo;\n modifications: OverlayModification[];\n metadata?: Record<string, unknown>;\n createdBy?: string;\n createdAt?: string;\n}\n\nexport type OverlaySignatureAlgorithm = 'ed25519' | 'rsa-pss-sha256';\n\nexport interface OverlaySignatureBlock {\n algorithm: OverlaySignatureAlgorithm;\n signature: string;\n publicKey: string;\n keyId?: string;\n issuedAt?: string;\n expiresAt?: string;\n metadata?: Record<string, unknown>;\n}\n\nexport type SignedOverlaySpec = OverlaySpec & {\n signature: OverlaySignatureBlock;\n};\n\nexport type OverlayInput = OverlaySpec | SignedOverlaySpec;\n\nexport const OVERLAY_SCOPE_ORDER: OverlayScopeKey[] = [\n 'tenantId',\n 'role',\n 'userId',\n 'device',\n 'tags',\n];\n\nexport function defineOverlay<T extends OverlaySpec>(spec: T): T {\n return spec;\n}\n"],"mappings":";AA0GA,MAAaA,sBAAyC;CACpD;CACA;CACA;CACA;CACA;CACD;AAED,SAAgB,cAAqC,MAAY;AAC/D,QAAO"}
1
+ {"version":3,"file":"spec.js","names":["OVERLAY_SCOPE_ORDER: OverlayScopeKey[]"],"sources":["../src/spec.ts"],"sourcesContent":["import type { AnyOperationSpec } from '@lssm/lib.contracts';\n\nexport type OverlayScopeKey =\n | 'tenantId'\n | 'role'\n | 'userId'\n | 'device'\n | 'tags';\n\nexport interface OverlayScopeContext {\n tenantId?: string;\n role?: string;\n userId?: string;\n device?: string;\n tags?: string[];\n}\n\nexport interface OverlayTargetRef {\n capability?: string;\n workflow?: string;\n dataView?: string;\n presentation?: string;\n operation?: AnyOperationSpec['meta']['name'];\n}\n\nexport interface OverlayAppliesTo\n extends OverlayScopeContext, OverlayTargetRef {\n /**\n * Optional label to describe why this overlay exists (displayed in tooling).\n */\n label?: string;\n}\n\nexport type OverlayModification =\n | HideFieldModification\n | RenameLabelModification\n | ReorderFieldsModification\n | SetDefaultModification\n | AddHelpTextModification\n | MakeRequiredModification;\n\nexport interface OverlayFieldModificationBase {\n field: string;\n description?: string;\n}\n\nexport interface HideFieldModification extends OverlayFieldModificationBase {\n type: 'hideField';\n reason?: string;\n}\n\nexport interface RenameLabelModification extends OverlayFieldModificationBase {\n type: 'renameLabel';\n newLabel: string;\n}\n\nexport interface ReorderFieldsModification {\n type: 'reorderFields';\n fields: string[];\n description?: string;\n}\n\nexport interface SetDefaultModification extends OverlayFieldModificationBase {\n type: 'setDefault';\n value: unknown;\n}\n\nexport interface AddHelpTextModification extends OverlayFieldModificationBase {\n type: 'addHelpText';\n text: string;\n}\n\nexport interface MakeRequiredModification extends OverlayFieldModificationBase {\n type: 'makeRequired';\n required?: boolean;\n}\n\nexport interface OverlaySpec {\n overlayId: string;\n version: string;\n description?: string;\n appliesTo: OverlayAppliesTo;\n modifications: OverlayModification[];\n metadata?: Record<string, unknown>;\n createdBy?: string;\n createdAt?: string;\n}\n\nexport type OverlaySignatureAlgorithm = 'ed25519' | 'rsa-pss-sha256';\n\nexport interface OverlaySignatureBlock {\n algorithm: OverlaySignatureAlgorithm;\n signature: string;\n publicKey: string;\n keyId?: string;\n issuedAt?: string;\n expiresAt?: string;\n metadata?: Record<string, unknown>;\n}\n\nexport type SignedOverlaySpec = OverlaySpec & {\n signature: OverlaySignatureBlock;\n};\n\nexport type OverlayInput = OverlaySpec | SignedOverlaySpec;\n\nexport const OVERLAY_SCOPE_ORDER: OverlayScopeKey[] = [\n 'tenantId',\n 'role',\n 'userId',\n 'device',\n 'tags',\n];\n\nexport function defineOverlay<T extends OverlaySpec>(spec: T): T {\n return spec;\n}\n"],"mappings":";AA0GA,MAAaA,sBAAyC;CACpD;CACA;CACA;CACA;CACA;CACD;AAED,SAAgB,cAAqC,MAAY;AAC/D,QAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/lib.overlay-engine",
3
- "version": "0.0.0-canary-20251220041653",
3
+ "version": "0.0.0-canary-20251221132705",
4
4
  "description": "Runtime overlay engine for ContractSpec personalization and adaptive UI rendering.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "test": "bun run"
25
25
  },
26
26
  "dependencies": {
27
- "@lssm/lib.contracts": "0.0.0-canary-20251220041653",
27
+ "@lssm/lib.contracts": "0.0.0-canary-20251221132705",
28
28
  "fast-json-stable-stringify": "^2.1.0"
29
29
  },
30
30
  "peerDependencies": {
@@ -36,8 +36,8 @@
36
36
  }
37
37
  },
38
38
  "devDependencies": {
39
- "@lssm/tool.tsdown": "0.0.0-canary-20251220041653",
40
- "@lssm/tool.typescript": "0.0.0-canary-20251220041653",
39
+ "@lssm/tool.tsdown": "0.0.0-canary-20251221132705",
40
+ "@lssm/tool.typescript": "0.0.0-canary-20251221132705",
41
41
  "tsdown": "^0.18.1",
42
42
  "typescript": "^5.9.3"
43
43
  },