@knapsack/types 4.101.6--canary.e6e0008.0 → 4.101.6

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.
@@ -6,6 +6,14 @@ import type { ApiRoute } from './api-routes';
6
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
7
  */
8
8
  export type E2eUserRole = Extract<Role, 'ADMIN' | 'CONTRIBUTOR' | 'CONSUMER' | 'VIEWER' | 'ANONYMOUS'>;
9
+ /** A site user as the e2e roster seam presents it (see `siteUsers` below). */
10
+ export type E2eSiteUser = {
11
+ id: string;
12
+ displayName: string;
13
+ role: Role;
14
+ email?: string;
15
+ profilePic?: string;
16
+ };
9
17
  export type E2eSessionConfigApi = ApiRoute<{
10
18
  path: '/fake-e2e-api/get-session-config';
11
19
  method: 'GET';
@@ -15,6 +23,14 @@ export type E2eSessionConfigApi = ApiRoute<{
15
23
  user: {
16
24
  userRole: E2eUserRole;
17
25
  };
26
+ /**
27
+ * Optional site-user roster. Under e2e the Apollo WS subscription that
28
+ * would otherwise feed site-user consumers dead-ends (no real Hasura
29
+ * auth), so tests provide the roster here instead: it feeds the reviewer
30
+ * picker, the cancel-review requester resolution, and
31
+ * content-meta-summary's "Updated by" tooltips.
32
+ */
33
+ siteUsers?: E2eSiteUser[];
18
34
  };
19
35
  }>;
20
36
  //# sourceMappingURL=e2e-session-config.d.ts.map
@@ -1 +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"}
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,8EAA8E;AAC9E,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,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;QACF;;;;;;WAMG;QACH,SAAS,CAAC,EAAE,WAAW,EAAE,CAAC;KAC3B,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knapsack/types",
3
3
  "description": "",
4
- "version": "4.101.6--canary.e6e0008.0",
4
+ "version": "4.101.6",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -43,22 +43,22 @@
43
43
  "test": "vitest run"
44
44
  },
45
45
  "dependencies": {
46
- "@knapsack/file-utils": "4.101.6--canary.e6e0008.0",
47
- "@knapsack/utils": "4.101.6--canary.e6e0008.0",
46
+ "@knapsack/file-utils": "4.101.6",
47
+ "@knapsack/utils": "4.101.6",
48
48
  "color-string": "^1.9.1",
49
49
  "immer": "^10.2.0",
50
50
  "superstruct": "^0.16.7",
51
- "zod": "^4.3.6"
51
+ "zod": "^4.5.4"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@apidevtools/json-schema-ref-parser": "^11.9.3",
55
- "@knapsack/eslint-config-starter": "4.101.6--canary.e6e0008.0",
55
+ "@knapsack/eslint-config-starter": "4.101.6",
56
56
  "@knapsack/file-utils": "workspace:*",
57
- "@knapsack/typescript-config-starter": "4.101.6--canary.e6e0008.0",
57
+ "@knapsack/typescript-config-starter": "4.101.6",
58
58
  "@tiptap/core": "^3.24.0",
59
59
  "@types/color-string": "^1.5.5",
60
60
  "@types/fs-extra": "^11.0.4",
61
- "@types/react": "^19.2.3",
61
+ "@types/react": "^19.2.18",
62
62
  "eslint": "^9.20.0",
63
63
  "fs-extra": "^11.3.4",
64
64
  "ts-node": "^10.9.2",
@@ -75,5 +75,5 @@
75
75
  "directory": "libs/types",
76
76
  "type": "git"
77
77
  },
78
- "gitHead": "e6e0008eba06e9b673cd4109605a2af686d5d0a5"
78
+ "gitHead": "5afb6430632187c3199c30667ee386fdf58b8e8f"
79
79
  }