@things-factory/auth-ui 10.1.113 → 10.1.121
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-client/pages/profile.d.ts +5 -0
- package/dist-client/pages/profile.js +6 -5
- package/dist-client/pages/profile.js.map +1 -1
- package/dist-client/pages/user/user-list-page.d.ts +6 -2
- package/dist-client/pages/user/user-list-page.js +6 -1
- package/dist-client/pages/user/user-list-page.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/utils/access-request-navigation.test.d.ts +1 -0
- package/dist-client/utils/access-request-navigation.test.js +17 -0
- package/dist-client/utils/access-request-navigation.test.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { readFileSync } from 'fs';
|
|
2
|
+
import { join } from 'path';
|
|
3
|
+
const source = (path) => readFileSync(join(__dirname, '..', path), 'utf8');
|
|
4
|
+
it('requesters can find their history without waiting for a result notification', () => {
|
|
5
|
+
const page = source('pages/profile.ts');
|
|
6
|
+
expect(page).toContain("navigate('my-access-requests')");
|
|
7
|
+
expect(page).toContain("i18next.t('access-request.title.my requests')");
|
|
8
|
+
});
|
|
9
|
+
it('user management links to the decision list, whose server door remains guarded', () => {
|
|
10
|
+
const page = source('pages/user/user-list-page.ts');
|
|
11
|
+
expect(page).toContain("navigate('access-requests')");
|
|
12
|
+
expect(page).toContain("i18next.t('access-request.title.access requests')");
|
|
13
|
+
const query = readFileSync(join(__dirname, '../../../auth-base/server/service/access-request/access-request-query.ts'), 'utf8');
|
|
14
|
+
expect(query).toMatch(/@privilege\(category: "user", privilege: "mutation", domainOwnerGranted: true\)/);
|
|
15
|
+
expect(query).toMatch(/@Directive\(DECIDE\)\s+@Query\([^\n]+\)\s+async accessRequests\(/);
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=access-request-navigation.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-request-navigation.test.js","sourceRoot":"","sources":["../../client/utils/access-request-navigation.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,MAAM,MAAM,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAA;AAElF,EAAE,CAAC,6EAA6E,EAAE,GAAG,EAAE;IACrF,MAAM,IAAI,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAA;IACvC,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,gCAAgC,CAAC,CAAA;IACxD,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,+CAA+C,CAAC,CAAA;AACzE,CAAC,CAAC,CAAA;AAEF,EAAE,CAAC,+EAA+E,EAAE,GAAG,EAAE;IACvF,MAAM,IAAI,GAAG,MAAM,CAAC,8BAA8B,CAAC,CAAA;IACnD,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAA;IACrD,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,mDAAmD,CAAC,CAAA;IAC3E,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,0EAA0E,CAAC,EAAE,MAAM,CAAC,CAAA;IAC/H,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,iFAAiF,CAAC,CAAA;IACxG,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,kEAAkE,CAAC,CAAA;AAC3F,CAAC,CAAC,CAAA","sourcesContent":["import { readFileSync } from 'fs'\nimport { join } from 'path'\n\nconst source = (path: string) => readFileSync(join(__dirname, '..', path), 'utf8')\n\nit('requesters can find their history without waiting for a result notification', () => {\n const page = source('pages/profile.ts')\n expect(page).toContain(\"navigate('my-access-requests')\")\n expect(page).toContain(\"i18next.t('access-request.title.my requests')\")\n})\n\nit('user management links to the decision list, whose server door remains guarded', () => {\n const page = source('pages/user/user-list-page.ts')\n expect(page).toContain(\"navigate('access-requests')\")\n expect(page).toContain(\"i18next.t('access-request.title.access requests')\")\n const query = readFileSync(join(__dirname, '../../../auth-base/server/service/access-request/access-request-query.ts'), 'utf8')\n expect(query).toMatch(/@privilege\\(category: \"user\", privilege: \"mutation\", domainOwnerGranted: true\\)/)\n expect(query).toMatch(/@Directive\\(DECIDE\\)\\s+@Query\\([^\\n]+\\)\\s+async accessRequests\\(/)\n})\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/auth-ui",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.121",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@operato/popup": "^10.15.0",
|
|
40
40
|
"@operato/shell": "^10.29.2",
|
|
41
41
|
"@operato/styles": "^10.0.0",
|
|
42
|
-
"@things-factory/auth-base": "^10.1.
|
|
43
|
-
"@things-factory/component-ui": "^10.1.
|
|
44
|
-
"@things-factory/more-base": "^10.1.
|
|
42
|
+
"@things-factory/auth-base": "^10.1.121",
|
|
43
|
+
"@things-factory/component-ui": "^10.1.121",
|
|
44
|
+
"@things-factory/more-base": "^10.1.121",
|
|
45
45
|
"base64url": "^3.0.1",
|
|
46
46
|
"clipboard": "^2.0.6"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "23536a73b10f103048a2c893d3960b2a4e0f03dd"
|
|
49
49
|
}
|