@donotdev/core 0.0.10 → 0.0.12
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/functions/index.js +1 -1
- package/i18n/locales/eager/dndev_ar.json +122 -106
- package/i18n/locales/eager/dndev_de.json +122 -106
- package/i18n/locales/eager/dndev_en.json +122 -106
- package/i18n/locales/eager/dndev_es.json +122 -106
- package/i18n/locales/eager/dndev_fr.json +122 -106
- package/i18n/locales/eager/dndev_it.json +122 -106
- package/i18n/locales/eager/dndev_ja.json +122 -106
- package/i18n/locales/eager/dndev_ko.json +122 -106
- package/i18n/locales/lazy/auth_ar.json +121 -0
- package/i18n/locales/lazy/auth_de.json +121 -0
- package/i18n/locales/lazy/auth_en.json +121 -0
- package/i18n/locales/lazy/auth_es.json +121 -0
- package/i18n/locales/lazy/auth_fr.json +121 -0
- package/i18n/locales/lazy/auth_it.json +121 -0
- package/i18n/locales/lazy/auth_ja.json +121 -0
- package/i18n/locales/lazy/auth_ko.json +121 -0
- package/i18n/locales/lazy/billing_ar.json +12 -2
- package/i18n/locales/lazy/billing_de.json +12 -2
- package/i18n/locales/lazy/billing_en.json +12 -2
- package/i18n/locales/lazy/billing_es.json +12 -2
- package/i18n/locales/lazy/billing_fr.json +12 -2
- package/i18n/locales/lazy/billing_it.json +12 -2
- package/i18n/locales/lazy/billing_ja.json +12 -2
- package/i18n/locales/lazy/billing_ko.json +12 -2
- package/i18n/locales/lazy/oauth_ar.json +11 -0
- package/i18n/locales/lazy/oauth_de.json +11 -0
- package/i18n/locales/lazy/oauth_en.json +11 -0
- package/i18n/locales/lazy/oauth_es.json +11 -0
- package/i18n/locales/lazy/oauth_fr.json +11 -0
- package/i18n/locales/lazy/oauth_it.json +11 -0
- package/i18n/locales/lazy/oauth_ja.json +11 -0
- package/i18n/locales/lazy/oauth_ko.json +11 -0
- package/index.d.ts +1084 -106
- package/index.js +41 -41
- package/next/index.d.ts +10 -1
- package/next/index.js +20 -20
- package/package.json +2 -2
- package/server.d.ts +944 -580
- package/server.js +1 -575
- package/vite/index.d.ts +10 -1
- package/vite/index.js +15 -17
package/next/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare const USER_ROLES = {
|
|
|
21
21
|
GUEST: 'guest',
|
|
22
22
|
USER: 'user',
|
|
23
23
|
ADMIN: 'admin',
|
|
24
|
+
SUPER: 'super',
|
|
24
25
|
} as const;
|
|
25
26
|
|
|
26
27
|
/**
|
|
@@ -245,7 +246,7 @@ type PageAuth =
|
|
|
245
246
|
* // Framework provides: auth=false, title from home.title, entity=home
|
|
246
247
|
* ```
|
|
247
248
|
*
|
|
248
|
-
* @example Dynamic route (
|
|
249
|
+
* @example Dynamic route (string format - explicit path):
|
|
249
250
|
* ```tsx
|
|
250
251
|
* export const meta: PageMeta = {
|
|
251
252
|
* route: '/blog/:slug' // Creates /blog/:slug
|
|
@@ -253,6 +254,14 @@ type PageAuth =
|
|
|
253
254
|
* // Framework provides: auth=false, title from blog.title, entity=blog
|
|
254
255
|
* ```
|
|
255
256
|
*
|
|
257
|
+
* @example Dynamic route (object format - auto-generates base path):
|
|
258
|
+
* ```tsx
|
|
259
|
+
* export const meta: PageMeta = {
|
|
260
|
+
* route: { params: ['id'] } // Creates /myRoute/:id (base path from file location)
|
|
261
|
+
* };
|
|
262
|
+
* // For file at pages/myRoute/DetailPage.tsx → route becomes /myRoute/:id
|
|
263
|
+
* ```
|
|
264
|
+
*
|
|
256
265
|
* @example Auth-required (developer must be explicit):
|
|
257
266
|
* ```tsx
|
|
258
267
|
* export const meta: PageMeta = {
|