@mpfrontend/access-core 0.1.0 → 1.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/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # @mpfrontend/access-core
2
2
 
3
- Local development package. Runtime: universal. Public API is exported from src/index.ts and compiled
4
- into dist. Nx owns build, typecheck, lint and test targets. Consumer applications install packed artifacts.
5
- See ../../docs/IMPLEMENTATION-STATUS.md for observed evidence and remaining work.
3
+ Part of [MP Frontend](https://github.com/panahister/mpfrontend), released to the public npm registry as one cohort: every `@mpfrontend`
4
+ package at the same exact version. Runtime: universal. Install it through a workspace that `mpfrontend init`
5
+ created, which pins the cohort and binds the scope to the registry in `.npmrc`. [Versioning](https://github.com/panahister/mpfrontend#versioning)
6
+ states the compatibility policy and [Implementation status](https://github.com/panahister/mpfrontend/blob/main/docs/IMPLEMENTATION-STATUS.md) the
7
+ evidence.
6
8
 
7
9
  `AuthorityFence` aborts in-flight browser work and rejects stale publication after a consumer-owned
8
10
  authority identity changes. Capture before starting a request and assert again immediately before
package/dist/core.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export { AuthorityFence } from './authority-fence.js';
2
+ export { DENIED, can, fieldAccess, projectFields, dirtyPatch, type FieldAccess, type PageAccess } from './page-access.js';
3
+ export { parsePageAccess, pickPageAccess, fieldState, accessReader, type AccessKeys, type AccessExpectation, type AccessRefusal, type AccessCheck, type FieldPresentation, type ControlState, type AccessReader } from './snapshot.js';
4
+ export { definePageManifest, elementCapability, pageKeys, navigationKeys, manifestKeys, buildNavigation, checkPageManifest, assertPageManifest, type ManifestElement, type ManifestPage, type ManifestGroup, type PageManifest, type NavigationEntry, type ManifestProblem } from './manifest.js';
package/dist/core.js ADDED
@@ -0,0 +1,5 @@
1
+ export { AuthorityFence } from './authority-fence.js';
2
+ export { DENIED, can, fieldAccess, projectFields, dirtyPatch } from './page-access.js';
3
+ export { parsePageAccess, pickPageAccess, fieldState, accessReader } from './snapshot.js';
4
+ export { definePageManifest, elementCapability, pageKeys, navigationKeys, manifestKeys, buildNavigation, checkPageManifest, assertPageManifest } from './manifest.js';
5
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,MAAM,EAAC,GAAG,EAAC,WAAW,EAAC,aAAa,EAAC,UAAU,EAAkC,MAAM,kBAAkB,CAAC;AAClH,OAAO,EAAC,eAAe,EAAC,cAAc,EAAC,UAAU,EAAC,YAAY,EAC0E,MAAM,eAAe,CAAC;AAC9J,OAAO,EAAC,kBAAkB,EAAC,iBAAiB,EAAC,QAAQ,EAAC,cAAc,EAAC,YAAY,EAAC,eAAe,EAAC,iBAAiB,EAAC,kBAAkB,EACd,MAAM,eAAe,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1 @@
1
- export { AuthorityFence } from './authority-fence.js';
2
- export { DENIED, can, fieldAccess, projectFields, dirtyPatch, type FieldAccess, type PageAccess } from './page-access.js';
3
- export { parsePageAccess, pickPageAccess, fieldState, accessReader, type AccessKeys, type AccessExpectation, type AccessRefusal, type AccessCheck, type FieldPresentation, type ControlState, type AccessReader } from './snapshot.js';
4
- export { definePageManifest, elementCapability, pageKeys, navigationKeys, manifestKeys, buildNavigation, checkPageManifest, assertPageManifest, type ManifestElement, type ManifestPage, type ManifestGroup, type PageManifest, type NavigationEntry, type ManifestProblem } from './manifest.js';
1
+ export { type AccessCheck, type AccessExpectation, type AccessKeys, accessReader, type AccessReader, type AccessRefusal, assertPageManifest, AuthorityFence, buildNavigation, can, checkPageManifest, type ControlState, definePageManifest, dirtyPatch, fieldAccess, type FieldAccess, type FieldPresentation, fieldState, type ManifestElement, type ManifestGroup, manifestKeys, type ManifestPage, type ManifestProblem, type NavigationEntry, navigationKeys, type PageAccess, pageKeys, type PageManifest, parsePageAccess, pickPageAccess, projectFields, } from './core.js';
package/dist/index.js CHANGED
@@ -1,5 +1,2 @@
1
- export { AuthorityFence } from './authority-fence.js';
2
- export { DENIED, can, fieldAccess, projectFields, dirtyPatch } from './page-access.js';
3
- export { parsePageAccess, pickPageAccess, fieldState, accessReader } from './snapshot.js';
4
- export { definePageManifest, elementCapability, pageKeys, navigationKeys, manifestKeys, buildNavigation, checkPageManifest, assertPageManifest } from './manifest.js';
1
+ export { accessReader, assertPageManifest, AuthorityFence, buildNavigation, can, checkPageManifest, definePageManifest, dirtyPatch, fieldAccess, fieldState, manifestKeys, navigationKeys, pageKeys, parsePageAccess, pickPageAccess, projectFields, } from './core.js';
5
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,MAAM,EAAC,GAAG,EAAC,WAAW,EAAC,aAAa,EAAC,UAAU,EAAkC,MAAM,kBAAkB,CAAC;AAClH,OAAO,EAAC,eAAe,EAAC,cAAc,EAAC,UAAU,EAAC,YAAY,EAC0E,MAAM,eAAe,CAAC;AAC9J,OAAO,EAAC,kBAAkB,EAAC,iBAAiB,EAAC,QAAQ,EAAC,cAAc,EAAC,YAAY,EAAC,eAAe,EAAC,iBAAiB,EAAC,kBAAkB,EACd,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EAGZ,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,GAAG,EACH,iBAAiB,EAEjB,kBAAkB,EAClB,UAAU,EACV,WAAW,EAGX,UAAU,EAGV,YAAY,EAIZ,cAAc,EAEd,QAAQ,EAER,eAAe,EACf,cAAc,EACd,aAAa,GACd,MAAM,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ export { DENIED, elementCapability } from './core.js';
@@ -0,0 +1,3 @@
1
+ // For the cohort's own packages: outside the compatibility guarantee (README "Versioning").
2
+ export { DENIED, elementCapability } from './core.js';
3
+ //# sourceMappingURL=internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,OAAO,EAAC,MAAM,EAAC,iBAAiB,EAAC,MAAM,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpfrontend/access-core",
3
- "version": "0.1.0",
3
+ "version": "1.1.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,6 +14,10 @@
14
14
  ".": {
15
15
  "types": "./dist/index.d.ts",
16
16
  "import": "./dist/index.js"
17
+ },
18
+ "./internal": {
19
+ "types": "./dist/internal.d.ts",
20
+ "import": "./dist/internal.js"
17
21
  }
18
22
  },
19
23
  "files": [