nextjs-cms 0.9.36 → 0.9.37

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.
Files changed (113) hide show
  1. package/dist/api/actions/pages.d.ts +3 -3
  2. package/dist/api/trpc/root.d.ts +3 -3
  3. package/dist/api/trpc/routers/navigation.d.ts +3 -3
  4. package/dist/api/trpc/server.d.ts +9 -9
  5. package/dist/cli/lib/update-sections.d.ts.map +1 -1
  6. package/dist/cli/lib/update-sections.js +43 -10
  7. package/dist/core/config/config-loader.d.ts +2 -2
  8. package/dist/core/fields/date-range.d.ts +4 -4
  9. package/dist/core/fields/slug.d.ts +55 -3
  10. package/dist/core/fields/slug.d.ts.map +1 -1
  11. package/dist/core/fields/slug.js +56 -2
  12. package/dist/core/sections/category.d.ts +4 -4
  13. package/dist/core/sections/hasItems.d.ts +4 -4
  14. package/dist/core/sections/section.d.ts +3 -3
  15. package/dist/core/sections/simple.d.ts +4 -4
  16. package/dist/translations/base/en.d.ts +3 -0
  17. package/dist/translations/base/en.d.ts.map +1 -1
  18. package/dist/translations/base/en.js +3 -0
  19. package/dist/translations/client.d.ts +40 -4
  20. package/dist/translations/client.d.ts.map +1 -1
  21. package/dist/translations/server.d.ts +40 -4
  22. package/dist/translations/server.d.ts.map +1 -1
  23. package/package.json +6 -3
  24. package/dist/api/axios/axiosInstance.d.ts +0 -2
  25. package/dist/api/axios/axiosInstance.d.ts.map +0 -1
  26. package/dist/api/axios/axiosInstance.js +0 -8
  27. package/dist/api/client.d.ts +0 -30
  28. package/dist/api/client.d.ts.map +0 -1
  29. package/dist/api/client.js +0 -82
  30. package/dist/api/index.d.ts +0 -2
  31. package/dist/api/index.d.ts.map +0 -1
  32. package/dist/api/index.js +0 -0
  33. package/dist/api/lib/serverActions.d.ts +0 -338
  34. package/dist/api/lib/serverActions.d.ts.map +0 -1
  35. package/dist/api/lib/serverActions.js +0 -1517
  36. package/dist/api/root.d.ts +0 -19
  37. package/dist/api/root.d.ts.map +0 -1
  38. package/dist/api/root.js +0 -50
  39. package/dist/api/routers/accountSettings.d.ts +0 -66
  40. package/dist/api/routers/accountSettings.d.ts.map +0 -1
  41. package/dist/api/routers/accountSettings.js +0 -202
  42. package/dist/api/routers/admins.d.ts +0 -112
  43. package/dist/api/routers/admins.d.ts.map +0 -1
  44. package/dist/api/routers/admins.js +0 -323
  45. package/dist/api/routers/auth.d.ts +0 -54
  46. package/dist/api/routers/auth.d.ts.map +0 -1
  47. package/dist/api/routers/auth.js +0 -50
  48. package/dist/api/routers/categorySection.d.ts +0 -105
  49. package/dist/api/routers/categorySection.d.ts.map +0 -1
  50. package/dist/api/routers/categorySection.js +0 -49
  51. package/dist/api/routers/config.d.ts +0 -48
  52. package/dist/api/routers/config.d.ts.map +0 -1
  53. package/dist/api/routers/config.js +0 -18
  54. package/dist/api/routers/cpanel.d.ts +0 -82
  55. package/dist/api/routers/cpanel.d.ts.map +0 -1
  56. package/dist/api/routers/cpanel.js +0 -216
  57. package/dist/api/routers/fields.d.ts +0 -35
  58. package/dist/api/routers/fields.d.ts.map +0 -1
  59. package/dist/api/routers/fields.js +0 -81
  60. package/dist/api/routers/files.d.ts +0 -34
  61. package/dist/api/routers/files.d.ts.map +0 -1
  62. package/dist/api/routers/files.js +0 -14
  63. package/dist/api/routers/gallery.d.ts +0 -35
  64. package/dist/api/routers/gallery.d.ts.map +0 -1
  65. package/dist/api/routers/gallery.js +0 -92
  66. package/dist/api/routers/hasItemsSection.d.ts +0 -194
  67. package/dist/api/routers/hasItemsSection.d.ts.map +0 -1
  68. package/dist/api/routers/hasItemsSection.js +0 -86
  69. package/dist/api/routers/logs.d.ts +0 -59
  70. package/dist/api/routers/logs.d.ts.map +0 -1
  71. package/dist/api/routers/logs.js +0 -76
  72. package/dist/api/routers/navigation.d.ts +0 -50
  73. package/dist/api/routers/navigation.d.ts.map +0 -1
  74. package/dist/api/routers/navigation.js +0 -11
  75. package/dist/api/routers/simpleSection.d.ts +0 -93
  76. package/dist/api/routers/simpleSection.d.ts.map +0 -1
  77. package/dist/api/routers/simpleSection.js +0 -54
  78. package/dist/api/server.d.ts +0 -2748
  79. package/dist/api/server.d.ts.map +0 -1
  80. package/dist/api/server.js +0 -100
  81. package/dist/api/trpc/error-logging.d.ts +0 -14
  82. package/dist/api/trpc/error-logging.d.ts.map +0 -1
  83. package/dist/api/trpc/error-logging.js +0 -75
  84. package/dist/api/trpc.d.ts +0 -111
  85. package/dist/api/trpc.d.ts.map +0 -1
  86. package/dist/api/trpc.js +0 -99
  87. package/dist/api/utils/async-caller-proxy.d.ts +0 -2
  88. package/dist/api/utils/async-caller-proxy.d.ts.map +0 -1
  89. package/dist/api/utils/async-caller-proxy.js +0 -36
  90. package/dist/api/utils/lazy-caller-proxy.d.ts +0 -2
  91. package/dist/api/utils/lazy-caller-proxy.d.ts.map +0 -1
  92. package/dist/api/utils/lazy-caller-proxy.js +0 -36
  93. package/dist/api/utils/router-types.d.ts +0 -7
  94. package/dist/api/utils/router-types.d.ts.map +0 -1
  95. package/dist/api/utils/router-types.js +0 -0
  96. package/dist/auth/axios/axiosInstance.d.ts +0 -2
  97. package/dist/auth/axios/axiosInstance.d.ts.map +0 -1
  98. package/dist/auth/axios/axiosInstance.js +0 -8
  99. package/dist/auth/hooks/useAxiosPrivate.d.ts +0 -5
  100. package/dist/auth/hooks/useAxiosPrivate.d.ts.map +0 -1
  101. package/dist/auth/hooks/useAxiosPrivate.js +0 -74
  102. package/dist/auth/trpc.d.ts +0 -6
  103. package/dist/auth/trpc.d.ts.map +0 -1
  104. package/dist/auth/trpc.js +0 -81
  105. package/dist/plugins/manifest.d.ts +0 -28
  106. package/dist/plugins/manifest.d.ts.map +0 -1
  107. package/dist/plugins/manifest.js +0 -83
  108. package/dist/plugins/registry.d.ts +0 -22
  109. package/dist/plugins/registry.d.ts.map +0 -1
  110. package/dist/plugins/registry.js +0 -25
  111. package/dist/utils/log.d.ts +0 -18
  112. package/dist/utils/log.d.ts.map +0 -1
  113.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ist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -187,6 +187,7 @@
187
187
  "esbuild": "0.27.2",
188
188
  "esbuild-register": "^3.6.0",
189
189
  "execa": "9.6.1",
190
+ "file-type": "^22.0.1",
190
191
  "glob": "^10.4.5",
191
192
  "gradient-string": "^3.0.0",
192
193
  "international-types": "^0.8.1",
@@ -201,6 +202,8 @@
201
202
  "ora": "9.0.0",
202
203
  "react": "19.2.3",
203
204
  "react-dom": "19.2.3",
205
+ "read-chunk": "^5.0.0",
206
+ "sharp": "^0.34.5",
204
207
  "superjson": "^2.2.2",
205
208
  "through2": "^4.0.2",
206
209
  "zod": "4.1.12"
@@ -219,9 +222,9 @@
219
222
  "prettier": "^3.3.3",
220
223
  "tsx": "^4.20.6",
221
224
  "typescript": "^5.9.2",
225
+ "@lzcms/eslint-config": "0.3.0",
222
226
  "@lzcms/prettier-config": "0.1.0",
223
- "@lzcms/tsconfig": "0.1.0",
224
- "@lzcms/eslint-config": "0.3.0"
227
+ "@lzcms/tsconfig": "0.1.0"
225
228
  },
226
229
  "license": "MIT",
227
230
  "keywords": [
@@ -1,2 +0,0 @@
1
- export declare const axiosPrivate: import("axios").AxiosInstance;
2
- //# sourceMappingURL=axiosInstance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axiosInstance.d.ts","sourceRoot":"","sources":["../../../src/api/axios/axiosInstance.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,+BAMvB,CAAA"}
@@ -1,8 +0,0 @@
1
- import axios from 'axios';
2
- export const axiosPrivate = axios.create({
3
- baseURL: '/api',
4
- headers: {
5
- 'Content-Type': 'application/json',
6
- },
7
- withCredentials: true,
8
- });
@@ -1,30 +0,0 @@
1
- import type { QueryClientConfig } from '@tanstack/react-query';
2
- import type { TRPCLink } from '@trpc/client';
3
- import type { CreateTRPCReact } from '@trpc/react-query';
4
- import type { AnyRouter } from '@trpc/server';
5
- import * as React from 'react';
6
- import type { ReactNode } from 'react';
7
- import type { Session } from '../auth/index.js';
8
- import type { SessionProviderProps } from '../auth/react.js';
9
- type SessionOptions = Omit<SessionProviderProps, 'children' | 'session'>;
10
- export interface NextjsCmsProviderTRPCOptions<TRouter extends AnyRouter> {
11
- endpoint?: string;
12
- devtools?: boolean;
13
- queryClientOptions?: QueryClientConfig;
14
- links?: {
15
- beforeHttp?: TRPCLink<TRouter>[];
16
- };
17
- }
18
- export interface NextjsCmsProviderProps<TRouter extends AnyRouter> {
19
- children: ReactNode;
20
- session?: Session | null;
21
- sessionOptions?: SessionOptions;
22
- trpcOptions?: NextjsCmsProviderTRPCOptions<TRouter>;
23
- }
24
- export interface NextjsCmsClient<TRouter extends AnyRouter> {
25
- trpc: CreateTRPCReact<TRouter, unknown>;
26
- NextjsCmsProvider: (props: NextjsCmsProviderProps<TRouter>) => React.JSX.Element;
27
- }
28
- export declare function createNextjsCmsClient<TRouter extends AnyRouter>(): NextjsCmsClient<TRouter>;
29
- export {};
30
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAG9D,OAAO,KAAK,EAAE,QAAQ,EAAwB,MAAM,cAAc,CAAA;AAElE,OAAO,KAAK,EAAE,eAAe,EAAuB,MAAM,mBAAmB,CAAA;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAG5D,KAAK,cAAc,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,SAAS,CAAC,CAAA;AAExE,MAAM,WAAW,4BAA4B,CAAC,OAAO,SAAS,SAAS;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kBAAkB,CAAC,EAAE,iBAAiB,CAAA;IACtC,KAAK,CAAC,EAAE;QACJ,UAAU,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAA;KACnC,CAAA;CACJ;AAED,MAAM,WAAW,sBAAsB,CAAC,OAAO,SAAS,SAAS;IAC7D,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACxB,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,WAAW,CAAC,EAAE,4BAA4B,CAAC,OAAO,CAAC,CAAA;CACtD;AAED,MAAM,WAAW,eAAe,CAAC,OAAO,SAAS,SAAS;IACtD,IAAI,EAAE,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACvC,iBAAiB,EAAE,CAAC,KAAK,EAAE,sBAAsB,CAAC,OAAO,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CAAA;CACnF;AAyBD,wBAAgB,qBAAqB,CAAC,OAAO,SAAS,SAAS,KAAK,eAAe,CAAC,OAAO,CAAC,CA8D3F"}
@@ -1,82 +0,0 @@
1
- 'use client';
2
- import { defaultShouldDehydrateQuery, QueryClient, QueryClientProvider } from '@tanstack/react-query';
3
- import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
4
- import { httpBatchLink, loggerLink } from '@trpc/client';
5
- import { createTRPCReact } from '@trpc/react-query';
6
- import * as React from 'react';
7
- import { useState } from 'react';
8
- import SuperJSON from 'superjson';
9
- import { getCsrfToken, refreshTokenLink, SessionProvider } from '../auth/react.js';
10
- import { PluginTRPCProvider } from '../plugins/client.js';
11
- function mergeQueryClientOptions(options) {
12
- return {
13
- ...options,
14
- defaultOptions: {
15
- ...options?.defaultOptions,
16
- queries: {
17
- refetchOnWindowFocus: process.env.NODE_ENV === 'development',
18
- retry: 1,
19
- ...options?.defaultOptions?.queries,
20
- },
21
- dehydrate: {
22
- serializeData: SuperJSON.serialize,
23
- shouldDehydrateQuery: (query) => defaultShouldDehydrateQuery(query) || query.state.status === 'pending',
24
- ...options?.defaultOptions?.dehydrate,
25
- },
26
- hydrate: {
27
- deserializeData: SuperJSON.deserialize,
28
- ...options?.defaultOptions?.hydrate,
29
- },
30
- },
31
- };
32
- }
33
- export function createNextjsCmsClient() {
34
- const trpc = createTRPCReact();
35
- const trpcBase = trpc;
36
- let browserQueryClient;
37
- function createQueryClient(options) {
38
- return new QueryClient(mergeQueryClientOptions(options));
39
- }
40
- function getQueryClient(options) {
41
- if (typeof window === 'undefined') {
42
- return createQueryClient(options);
43
- }
44
- if (!browserQueryClient)
45
- browserQueryClient = createQueryClient(options);
46
- return browserQueryClient;
47
- }
48
- function NextjsCmsProvider({ children, session, sessionOptions, trpcOptions }) {
49
- const queryClient = getQueryClient(trpcOptions?.queryClientOptions);
50
- const endpoint = trpcOptions?.endpoint ?? '/api/trpc';
51
- const showDevtools = trpcOptions?.devtools ?? process.env.NODE_ENV === 'development';
52
- const [trpcClient] = useState(() => trpcBase.createClient({
53
- links: [
54
- refreshTokenLink(),
55
- loggerLink({
56
- enabled: (op) => process.env.NODE_ENV === 'development' ||
57
- (op.direction === 'down' && op.result instanceof Error),
58
- }),
59
- ...(trpcOptions?.links?.beforeHttp ?? []),
60
- httpBatchLink({
61
- transformer: SuperJSON,
62
- url: endpoint,
63
- async headers(op) {
64
- const headers = new Headers();
65
- if (op.opList.some((operation) => operation.type === 'mutation')) {
66
- const csrfToken = await getCsrfToken();
67
- headers.set('x-csrf-token', csrfToken);
68
- }
69
- headers.set('x-trpc-source', 'nextjs-react');
70
- return headers;
71
- },
72
- }),
73
- ],
74
- }));
75
- return (React.createElement(QueryClientProvider, { client: queryClient },
76
- React.createElement(trpcBase.Provider, { client: trpcClient, queryClient: queryClient },
77
- React.createElement(SessionProvider, { session: session, ...sessionOptions },
78
- React.createElement(PluginTRPCProvider, { trpc: trpc }, children)),
79
- showDevtools ? React.createElement(ReactQueryDevtools, { initialIsOpen: false }) : null)));
80
- }
81
- return { trpc, NextjsCmsProvider };
82
- }
@@ -1,2 +0,0 @@
1
- export type { RouterRecord, NonConflictingRouterRecord } from './trpc/utils/router-types.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA"}
package/dist/api/index.js DELETED
File without changes