@studiocubics/cms 0.0.4 → 0.0.5
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/ui/System/Invitations/InvitationListPage.d.ts +1 -2
- package/dist/client/ui/System/Invitations/InvitationListPage.js +1 -1
- package/dist/client/ui/System/Invitations/InvitationListPage.js.map +1 -1
- package/dist/client/ui/System/Permissions/RolePermissionsPage.d.ts +1 -4
- package/dist/client/ui/System/Permissions/RolePermissionsPage.js +1 -1
- package/dist/client/ui/System/Permissions/RolePermissionsPage.js.map +1 -1
- package/dist/client/ui/System/SystemUser/SystemUserListPage.d.ts +1 -2
- package/dist/client/ui/System/SystemUser/SystemUserListPage.js +1 -1
- package/dist/client/ui/System/SystemUser/SystemUserListPage.js.map +1 -1
- package/dist/client/ui/System/_index.d.ts +0 -1
- package/package.json +6 -6
- package/dist/client/ui/System/types.d.ts +0 -5
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function InvitationListPage({ searchParams, securityLinks, }: SecurityPageProps): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
1
|
+
export declare function InvitationListPage({ searchParams, }: PageProps<"/dashboard/security/invitations">): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{INVITATIONS_PAGE_LIMIT as i}from"../../../constants/pageLimits.js";import{PageLayoutPagination as s}from"@studiocubics/components";import{InvitationListPagination as o}from"./InvitationListPagination.js";import{InvitationList as n}from"./InvitationList.js";import{InvitationListActions as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{INVITATIONS_PAGE_LIMIT as i}from"../../../constants/pageLimits.js";import{PageLayoutPagination as s}from"@studiocubics/components";import{InvitationListPagination as o}from"./InvitationListPagination.js";import{InvitationList as n}from"./InvitationList.js";import{InvitationListActions as a}from"./InvitationListActions.js";import{defaultSecurityLinks as r}from"../../../constants/defaults.js";async function m({searchParams:m}){const e=await m,c=e.status,p=Number(e.page??1),f={limit:i,offset:(p-1)*i,status:c};return t(s,{size:"sm",title:r[3]?.children,actions:t(a,{status:c}),paginationComponent:t(o,{page:p,...f}),children:t(n,{...f})})}export{m as InvitationListPage};
|
|
2
2
|
//# sourceMappingURL=InvitationListPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationListPage.js","sources":["../../../../../src/client/ui/System/Invitations/InvitationListPage.tsx"],"sourcesContent":["import { INVITATIONS_PAGE_LIMIT as limit } from \"../../../constants/pageLimits\";\nimport { PageLayoutPagination } from \"@studiocubics/components\";\nimport { InvitationListPagination } from \"./InvitationListPagination\";\nimport { InvitationList } from \"./InvitationList\";\nimport
|
|
1
|
+
{"version":3,"file":"InvitationListPage.js","sources":["../../../../../src/client/ui/System/Invitations/InvitationListPage.tsx"],"sourcesContent":["import { INVITATIONS_PAGE_LIMIT as limit } from \"../../../constants/pageLimits\";\nimport { PageLayoutPagination } from \"@studiocubics/components\";\nimport { InvitationListPagination } from \"./InvitationListPagination\";\nimport { InvitationList } from \"./InvitationList\";\nimport { InvitationListActions } from \"./InvitationListActions\";\nimport { defaultSecurityLinks } from \"../../../constants/defaults\";\n\nexport async function InvitationListPage({\n searchParams,\n}: PageProps<\"/dashboard/security/invitations\">) {\n const sp = await searchParams;\n const status = sp.status as ClerkInvitationListParams[\"status\"];\n const page = Number(sp.page ?? 1);\n const offset = (page - 1) * limit;\n const params = {\n limit,\n offset,\n status,\n };\n\n return (\n <PageLayoutPagination\n size=\"sm\"\n title={defaultSecurityLinks[3]?.children}\n actions={<InvitationListActions status={status} />}\n paginationComponent={<InvitationListPagination page={page} {...params} />}\n >\n <InvitationList {...params} />\n </PageLayoutPagination>\n );\n}\n"],"names":["async","InvitationListPage","searchParams","sp","status","page","Number","params","limit","offset","_jsx","PageLayoutPagination","size","title","defaultSecurityLinks","children","actions","InvitationListActions","paginationComponent","InvitationListPagination","InvitationList"],"mappings":"ybAOOA,eAAeC,GAAmBC,aACvCA,IAEA,MAAMC,QAAWD,EACXE,EAASD,EAAGC,OACZC,EAAOC,OAAOH,EAAGE,MAAQ,GAEzBE,EAAS,OACbC,EACAC,QAHcJ,EAAO,GAAKG,EAI1BJ,UAGF,OACEM,EAACC,EAAoB,CACnBC,KAAK,KACLC,MAAOC,EAAqB,IAAIC,SAChCC,QAASN,EAACO,EAAqB,CAACb,OAAQA,IACxCc,oBAAqBR,EAACS,EAAwB,CAACd,KAAMA,KAAUE,aAE/DG,EAACU,MAAmBb,KAG1B"}
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function RolePermissionsPage({ securityLinks, }: {
|
|
3
|
-
securityLinks: TabProps[];
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function RolePermissionsPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{PageLayoutPagination as o}from"@studiocubics/components";import{RoleListCard as t}from"./RoleListCard.js";import{RBAC_CONFIG as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{PageLayoutPagination as o}from"@studiocubics/components";import{RoleListCard as t}from"./RoleListCard.js";import{RBAC_CONFIG as e}from"../../../clerk/rbacConfig.js";import{defaultSecurityLinks as i}from"../../../constants/defaults.js";function s(){return r(o,{size:"sm",title:i[1].children,children:Object.keys(e).map(o=>{const i=e[o];return r(t,{role:o,rbacConfig:i},o)})})}export{s as RolePermissionsPage};
|
|
2
2
|
//# sourceMappingURL=RolePermissionsPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RolePermissionsPage.js","sources":["../../../../../src/client/ui/System/Permissions/RolePermissionsPage.tsx"],"sourcesContent":["import { PageLayoutPagination
|
|
1
|
+
{"version":3,"file":"RolePermissionsPage.js","sources":["../../../../../src/client/ui/System/Permissions/RolePermissionsPage.tsx"],"sourcesContent":["import { PageLayoutPagination } from \"@studiocubics/components\";\nimport { RoleListCard } from \"./RoleListCard\";\nimport { RBAC_CONFIG } from \"../../../clerk/rbacConfig\";\nimport { defaultSecurityLinks } from \"../../../constants/defaults\";\n\nexport function RolePermissionsPage() {\n return (\n <PageLayoutPagination size=\"sm\" title={defaultSecurityLinks[1].children}>\n {(Object.keys(RBAC_CONFIG) as (keyof typeof RBAC_CONFIG)[]).map((k) => {\n const item = RBAC_CONFIG[k];\n return <RoleListCard key={k} role={k} rbacConfig={item} />;\n })}\n </PageLayoutPagination>\n );\n}\n"],"names":["RolePermissionsPage","_jsx","PageLayoutPagination","size","title","defaultSecurityLinks","children","Object","keys","RBAC_CONFIG","map","k","item","RoleListCard","role","rbacConfig"],"mappings":"mSAKgBA,IACd,OACEC,EAACC,EAAoB,CAACC,KAAK,KAAKC,MAAOC,EAAqB,GAAGC,SAAQA,SACnEC,OAAOC,KAAKC,GAA8CC,IAAKC,IAC/D,MAAMC,EAAOH,EAAYE,GACzB,OAAOV,EAACY,EAAY,CAASC,KAAMH,EAAGI,WAAYH,GAAxBD,MAIlC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function SystemUserListPage({ searchParams, securityLinks, }: SecurityPageProps): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
1
|
+
export declare function SystemUserListPage({ searchParams, }: PageProps<"/dashboard/security/systemUsers">): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{SYSTEM_USERS_PAGE_LIMIT as r}from"../../../constants/pageLimits.js";import{PageLayoutPagination as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{SYSTEM_USERS_PAGE_LIMIT as r}from"../../../constants/pageLimits.js";import{PageLayoutPagination as s}from"@studiocubics/components";import{SystemUserListActions as i}from"./SystemUserListActions.js";import{SystemUserList as o}from"./SystemUserList.js";import{SystemUserListPagination as e}from"./SystemUserListPagination.js";import{defaultSecurityLinks as m}from"../../../constants/defaults.js";async function n({searchParams:n}){const a=await n,c=Number(a.page??1),p=String(a.orderBy??"created_at"),f=String(a.query??""),u={limit:r,offset:(c-1)*r,orderBy:p,query:f};return t(s,{actions:t(i,{}),size:"sm",title:m[2]?.children,paginationComponent:t(e,{page:c,...u}),children:t(o,{...u})})}export{n as SystemUserListPage};
|
|
2
2
|
//# sourceMappingURL=SystemUserListPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemUserListPage.js","sources":["../../../../../src/client/ui/System/SystemUser/SystemUserListPage.tsx"],"sourcesContent":["import { SYSTEM_USERS_PAGE_LIMIT as limit } from \"../../../constants/pageLimits\";\nimport
|
|
1
|
+
{"version":3,"file":"SystemUserListPage.js","sources":["../../../../../src/client/ui/System/SystemUser/SystemUserListPage.tsx"],"sourcesContent":["import { SYSTEM_USERS_PAGE_LIMIT as limit } from \"../../../constants/pageLimits\";\nimport { PageLayoutPagination } from \"@studiocubics/components\";\nimport { SystemUserListActions } from \"./SystemUserListActions\";\nimport { SystemUserList } from \"./SystemUserList\";\nimport { SystemUserListPagination } from \"./SystemUserListPagination\";\nimport { defaultSecurityLinks } from \"../../../constants/defaults\";\n\nexport async function SystemUserListPage({\n searchParams,\n}: PageProps<\"/dashboard/security/systemUsers\">) {\n const sp = await searchParams;\n const page = Number(sp.page ?? 1);\n const orderBy = String(sp.orderBy ?? \"created_at\");\n const query = String(sp.query ?? \"\");\n const offset = (page - 1) * limit;\n const params = {\n limit,\n offset,\n orderBy,\n query,\n };\n return (\n <PageLayoutPagination\n actions={<SystemUserListActions />}\n size=\"sm\"\n title={defaultSecurityLinks[2]?.children}\n paginationComponent={<SystemUserListPagination page={page} {...params} />}\n >\n <SystemUserList {...params} />\n </PageLayoutPagination>\n );\n}\n"],"names":["async","SystemUserListPage","searchParams","sp","page","Number","orderBy","String","query","params","limit","offset","_jsx","PageLayoutPagination","actions","SystemUserListActions","size","title","defaultSecurityLinks","children","paginationComponent","SystemUserListPagination","SystemUserList"],"mappings":"0bAOOA,eAAeC,GAAmBC,aACvCA,IAEA,MAAMC,QAAWD,EACXE,EAAOC,OAAOF,EAAGC,MAAQ,GACzBE,EAAUC,OAAOJ,EAAGG,SAAW,cAC/BE,EAAQD,OAAOJ,EAAGK,OAAS,IAE3BC,EAAS,OACbC,EACAC,QAHcP,EAAO,GAAKM,EAI1BJ,UACAE,SAEF,OACEI,EAACC,GACCC,QAASF,EAACG,EAAqB,CAAA,GAC/BC,KAAK,KACLC,MAAOC,EAAqB,IAAIC,SAChCC,oBAAqBR,EAACS,EAAwB,CAACjB,KAAMA,KAAUK,IAAUU,SAEzEP,EAACU,EAAc,IAAKb,KAG1B"}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"private": false,
|
|
8
|
-
"version": "0.0.
|
|
8
|
+
"version": "0.0.5",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"@studiocubics",
|
|
11
11
|
"cubics",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"lucide-react": "^0.554.0",
|
|
38
38
|
"next-themes": "^0.4.6",
|
|
39
39
|
"zod": "^4.3.6",
|
|
40
|
-
"@studiocubics/components": "^0.0.
|
|
41
|
-
"@studiocubics/hooks": "^0.0.
|
|
42
|
-
"@studiocubics/next": "^0.0.
|
|
43
|
-
"@studiocubics/utils": "^0.0.
|
|
40
|
+
"@studiocubics/components": "^0.0.5",
|
|
41
|
+
"@studiocubics/hooks": "^0.0.5",
|
|
42
|
+
"@studiocubics/next": "^0.0.5",
|
|
43
|
+
"@studiocubics/utils": "^0.0.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@eslint/js": "^9.39.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"rollup-plugin-bundle-stats": "^4.21.9",
|
|
65
65
|
"typescript": "^5.9.3",
|
|
66
66
|
"typescript-eslint": "^8.46.4",
|
|
67
|
-
"@studiocubics/types": "^0.0.
|
|
67
|
+
"@studiocubics/types": "^0.0.5"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@clerk/nextjs": ">= 6",
|