@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 +5 -3
- package/dist/core.d.ts +4 -0
- package/dist/core.js +5 -0
- package/dist/core.js.map +1 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +1 -0
- package/dist/internal.js +3 -0
- package/dist/internal.js.map +1 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# @mpfrontend/access-core
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
package/dist/core.js.map
ADDED
|
@@ -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 './
|
|
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 './
|
|
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,
|
|
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';
|
package/dist/internal.js
ADDED
|
@@ -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": "
|
|
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": [
|