@knapsack/types 4.94.7 → 4.94.8--canary.7783.512d103.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/dist/e2e-session-config.d.ts +20 -0
- package/dist/e2e-session-config.d.ts.map +1 -0
- package/dist/e2e-session-config.js +2 -0
- package/dist/e2e-session-config.js.map +1 -0
- package/dist/e2e-session-config.mjs +2 -0
- package/dist/e2e-session-config.mjs.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/cypress-session-config.d.ts +0 -20
- package/dist/cypress-session-config.d.ts.map +0 -1
- package/dist/cypress-session-config.js +0 -2
- package/dist/cypress-session-config.js.map +0 -1
- package/dist/cypress-session-config.mjs +0 -2
- package/dist/cypress-session-config.mjs.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Role } from './user-roles';
|
|
2
|
+
import type { ApiRoute } from './api-routes';
|
|
3
|
+
/**
|
|
4
|
+
* A fake API route that Playwright intercepts to provide a fake session config.
|
|
5
|
+
* Used to have UI tests work in Playwright without having to set up a real auth0 tenant.
|
|
6
|
+
* Since an actual auth token is never made or used, this works for UI tests but will fail if you try to use it in an API call.
|
|
7
|
+
*/
|
|
8
|
+
export type E2eUserRole = Extract<Role, 'ADMIN' | 'CONTRIBUTOR' | 'CONSUMER' | 'VIEWER' | 'ANONYMOUS'>;
|
|
9
|
+
export type E2eSessionConfigApi = ApiRoute<{
|
|
10
|
+
path: '/fake-e2e-api/get-session-config';
|
|
11
|
+
method: 'GET';
|
|
12
|
+
/** No query params */
|
|
13
|
+
input?: Record<string, never>;
|
|
14
|
+
output: {
|
|
15
|
+
user: {
|
|
16
|
+
userRole: E2eUserRole;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=e2e-session-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e2e-session-config.d.ts","sourceRoot":"","sources":["../src/e2e-session-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAC/B,IAAI,EACJ,OAAO,GAAG,aAAa,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,CAC9D,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,IAAI,EAAE,kCAAkC,CAAC;IACzC,MAAM,EAAE,KAAK,CAAC;IACd,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC9B,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,QAAQ,EAAE,WAAW,CAAC;SACvB,CAAC;KAEH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"e2e-session-config.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"e2e-session-config.mjs"}
|
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export * from './color-config';
|
|
|
23
23
|
export * from './typography-config';
|
|
24
24
|
export * from './nav-customization-config';
|
|
25
25
|
export * from './user-roles';
|
|
26
|
-
export * from './
|
|
26
|
+
export * from './e2e-session-config';
|
|
27
27
|
export * from './api-routes';
|
|
28
28
|
export * from './app-api-routes';
|
|
29
29
|
export * from './intercepts';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAA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|
|
1
1
|
{
|
|
2
2
|
"name": "@knapsack/types",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "4.94.
|
|
4
|
+
"version": "4.94.8--canary.7783.512d103.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"test": "vitest run"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@knapsack/file-utils": "4.94.
|
|
47
|
-
"@knapsack/utils": "4.94.
|
|
46
|
+
"@knapsack/file-utils": "4.94.8--canary.7783.512d103.0",
|
|
47
|
+
"@knapsack/utils": "4.94.8--canary.7783.512d103.0",
|
|
48
48
|
"color-string": "^1.9.1",
|
|
49
49
|
"immer": "^10.2.0",
|
|
50
50
|
"superstruct": "^0.16.7",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@apidevtools/json-schema-ref-parser": "^11.9.3",
|
|
55
|
-
"@knapsack/eslint-config-starter": "4.94.
|
|
55
|
+
"@knapsack/eslint-config-starter": "4.94.8--canary.7783.512d103.0",
|
|
56
56
|
"@knapsack/file-utils": "workspace:*",
|
|
57
|
-
"@knapsack/typescript-config-starter": "4.94.
|
|
57
|
+
"@knapsack/typescript-config-starter": "4.94.8--canary.7783.512d103.0",
|
|
58
58
|
"@tiptap/core": "^3.24.0",
|
|
59
59
|
"@types/color-string": "^1.5.5",
|
|
60
60
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"directory": "libs/types",
|
|
76
76
|
"type": "git"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "512d103fd57389422f1535b052ab38aba8823220"
|
|
79
79
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Role } from './user-roles';
|
|
2
|
-
import type { ApiRoute } from './api-routes';
|
|
3
|
-
/**
|
|
4
|
-
* A fake API route that Cypress can intercept to provide a fake session config
|
|
5
|
-
* Used to have UI tests work in Cypress without having to setup a real auth0 tenant
|
|
6
|
-
* Since an actual auth token is never made or used, this works for UI tests but will fail if you try to use it in an API call
|
|
7
|
-
*/
|
|
8
|
-
export type CypressUserRole = Extract<Role, 'ADMIN' | 'CONTRIBUTOR' | 'CONSUMER' | 'VIEWER' | 'ANONYMOUS'>;
|
|
9
|
-
export type CypressSessionConfigApi = ApiRoute<{
|
|
10
|
-
path: '/fake-cypress-api/get-session-config';
|
|
11
|
-
method: 'GET';
|
|
12
|
-
/** No query params */
|
|
13
|
-
input?: Record<string, never>;
|
|
14
|
-
output: {
|
|
15
|
-
user: {
|
|
16
|
-
userRole: CypressUserRole;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
}>;
|
|
20
|
-
//# sourceMappingURL=cypress-session-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cypress-session-config.d.ts","sourceRoot":"","sources":["../src/cypress-session-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CACnC,IAAI,EACJ,OAAO,GAAG,aAAa,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,CAC9D,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC7C,IAAI,EAAE,sCAAsC,CAAC;IAC7C,MAAM,EAAE,KAAK,CAAC;IACd,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC9B,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,QAAQ,EAAE,eAAe,CAAC;SAC3B,CAAC;KAEH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"cypress-session-config.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"cypress-session-config.mjs"}
|