@donotdev/core 0.0.11 → 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.
Files changed (42) hide show
  1. package/functions/index.js +1 -1
  2. package/i18n/locales/eager/dndev_ar.json +122 -106
  3. package/i18n/locales/eager/dndev_de.json +122 -106
  4. package/i18n/locales/eager/dndev_en.json +122 -106
  5. package/i18n/locales/eager/dndev_es.json +122 -106
  6. package/i18n/locales/eager/dndev_fr.json +122 -106
  7. package/i18n/locales/eager/dndev_it.json +122 -106
  8. package/i18n/locales/eager/dndev_ja.json +122 -106
  9. package/i18n/locales/eager/dndev_ko.json +122 -106
  10. package/i18n/locales/lazy/auth_ar.json +121 -0
  11. package/i18n/locales/lazy/auth_de.json +121 -0
  12. package/i18n/locales/lazy/auth_en.json +121 -0
  13. package/i18n/locales/lazy/auth_es.json +121 -0
  14. package/i18n/locales/lazy/auth_fr.json +121 -0
  15. package/i18n/locales/lazy/auth_it.json +121 -0
  16. package/i18n/locales/lazy/auth_ja.json +121 -0
  17. package/i18n/locales/lazy/auth_ko.json +121 -0
  18. package/i18n/locales/lazy/billing_ar.json +12 -2
  19. package/i18n/locales/lazy/billing_de.json +12 -2
  20. package/i18n/locales/lazy/billing_en.json +12 -2
  21. package/i18n/locales/lazy/billing_es.json +12 -2
  22. package/i18n/locales/lazy/billing_fr.json +12 -2
  23. package/i18n/locales/lazy/billing_it.json +12 -2
  24. package/i18n/locales/lazy/billing_ja.json +12 -2
  25. package/i18n/locales/lazy/billing_ko.json +12 -2
  26. package/i18n/locales/lazy/oauth_ar.json +11 -0
  27. package/i18n/locales/lazy/oauth_de.json +11 -0
  28. package/i18n/locales/lazy/oauth_en.json +11 -0
  29. package/i18n/locales/lazy/oauth_es.json +11 -0
  30. package/i18n/locales/lazy/oauth_fr.json +11 -0
  31. package/i18n/locales/lazy/oauth_it.json +11 -0
  32. package/i18n/locales/lazy/oauth_ja.json +11 -0
  33. package/i18n/locales/lazy/oauth_ko.json +11 -0
  34. package/index.d.ts +1085 -107
  35. package/index.js +41 -41
  36. package/next/index.d.ts +10 -1
  37. package/next/index.js +20 -20
  38. package/package.json +2 -2
  39. package/server.d.ts +944 -580
  40. package/server.js +1 -575
  41. package/vite/index.d.ts +10 -1
  42. package/vite/index.js +2 -4
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 (just define the path you want):
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 = {