@cedarjs/internal 8.0.0-canary.3542 → 8.0.0-canary.3546
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.
|
@@ -2,7 +2,7 @@ import '@cedarjs/auth'
|
|
|
2
2
|
|
|
3
3
|
// This app has tenancy, so every role check says which kind it is:
|
|
4
4
|
// useAuth().hasUserRole for currentUser.roles, and
|
|
5
|
-
// useCurrentOrg().hasOrgRole or
|
|
5
|
+
// useCurrentOrg().hasOrgRole or <PrivateSet orgRoles> for the role in the
|
|
6
6
|
// organization. No useAuth().hasRole or <PrivateSet roles>.
|
|
7
7
|
declare module '@cedarjs/auth' {
|
|
8
8
|
interface AuthTenancy {
|
package/dist/routes.d.ts
CHANGED
|
@@ -28,6 +28,10 @@ export interface RWRouteManifestItem {
|
|
|
28
28
|
isPrivate: boolean;
|
|
29
29
|
unauthenticated: string | null;
|
|
30
30
|
roles: string | string[] | null;
|
|
31
|
+
unauthorized?: string | null;
|
|
32
|
+
userRoles?: string | string[] | null;
|
|
33
|
+
orgRoles?: string | string[] | null;
|
|
34
|
+
orgPermission?: string | null;
|
|
31
35
|
pageIdentifier: string | null;
|
|
32
36
|
}
|
|
33
37
|
export interface RouteSpec extends RWRouteManifestItem {
|
package/dist/routes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,gBAAgB,EAAE,CAyBvD;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,WAgBxC;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAA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C/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;IACxB,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;IACnD,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IACnC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;CAE9B;AAED,MAAM,WAAW,SAAU,SAAQ,mBAAmB;IACpD,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,eAAO,MAAM,gBAAgB,QAAO,SAAS,EAuC5C,CAAA"}
|
package/dist/routes.js
CHANGED
|
@@ -64,6 +64,10 @@ const getProjectRoutes = () => {
|
|
|
64
64
|
isPrivate: route.isPrivate,
|
|
65
65
|
unauthenticated: route.unauthenticated,
|
|
66
66
|
roles: route.roles,
|
|
67
|
+
unauthorized: route.unauthorized,
|
|
68
|
+
userRoles: route.userRoles,
|
|
69
|
+
orgRoles: route.orgRoles,
|
|
70
|
+
orgPermission: route.orgPermission,
|
|
67
71
|
pageIdentifier: route.page_identifier_str
|
|
68
72
|
};
|
|
69
73
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/internal",
|
|
3
|
-
"version": "8.0.0-canary.
|
|
3
|
+
"version": "8.0.0-canary.3546",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -82,6 +82,12 @@
|
|
|
82
82
|
"default": "./dist/generate/generate.js"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
+
"./dist/generate/graphqlSchema": {
|
|
86
|
+
"default": {
|
|
87
|
+
"types": "./dist/generate/graphqlSchema.d.ts",
|
|
88
|
+
"default": "./dist/generate/graphqlSchema.js"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
85
91
|
"./dist/generate/gqlormSchema": {
|
|
86
92
|
"default": {
|
|
87
93
|
"types": "./dist/generate/gqlormSchema.d.ts",
|
|
@@ -120,14 +126,14 @@
|
|
|
120
126
|
"@babel/core": "^7.26.10",
|
|
121
127
|
"@babel/parser": "7.29.11",
|
|
122
128
|
"@babel/traverse": "7.29.10",
|
|
123
|
-
"@cedarjs/api": "8.0.0-canary.
|
|
124
|
-
"@cedarjs/babel-config": "8.0.0-canary.
|
|
125
|
-
"@cedarjs/cli-helpers": "8.0.0-canary.
|
|
126
|
-
"@cedarjs/graphql-server": "8.0.0-canary.
|
|
127
|
-
"@cedarjs/project-config": "8.0.0-canary.
|
|
128
|
-
"@cedarjs/router": "8.0.0-canary.
|
|
129
|
-
"@cedarjs/structure": "8.0.0-canary.
|
|
130
|
-
"@cedarjs/utils": "8.0.0-canary.
|
|
129
|
+
"@cedarjs/api": "8.0.0-canary.3546",
|
|
130
|
+
"@cedarjs/babel-config": "8.0.0-canary.3546",
|
|
131
|
+
"@cedarjs/cli-helpers": "8.0.0-canary.3546",
|
|
132
|
+
"@cedarjs/graphql-server": "8.0.0-canary.3546",
|
|
133
|
+
"@cedarjs/project-config": "8.0.0-canary.3546",
|
|
134
|
+
"@cedarjs/router": "8.0.0-canary.3546",
|
|
135
|
+
"@cedarjs/structure": "8.0.0-canary.3546",
|
|
136
|
+
"@cedarjs/utils": "8.0.0-canary.3546",
|
|
131
137
|
"@graphql-codegen/add": "6.0.1",
|
|
132
138
|
"@graphql-codegen/cli": "6.3.1",
|
|
133
139
|
"@graphql-codegen/client-preset": "5.3.0",
|
|
@@ -165,7 +171,7 @@
|
|
|
165
171
|
"vite-tsconfig-paths": "6.1.1"
|
|
166
172
|
},
|
|
167
173
|
"devDependencies": {
|
|
168
|
-
"@cedarjs/framework-tools": "8.0.0-canary.
|
|
174
|
+
"@cedarjs/framework-tools": "8.0.0-canary.3546",
|
|
169
175
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
170
176
|
"@oxc-project/types": "^0.155.0",
|
|
171
177
|
"concurrently": "9.2.5",
|