@donotdev/core 0.0.22 → 0.0.24

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 (55) hide show
  1. package/functions/index.d.ts +76 -12
  2. package/functions/index.js +81 -8
  3. package/i18n/locales/eager/dndev_da.json +379 -0
  4. package/i18n/locales/eager/dndev_nl.json +382 -0
  5. package/i18n/locales/lazy/auth_da.json +145 -0
  6. package/i18n/locales/lazy/auth_nl.json +145 -0
  7. package/i18n/locales/lazy/billing_da.json +82 -0
  8. package/i18n/locales/lazy/billing_nl.json +82 -0
  9. package/i18n/locales/lazy/blog_ar.json +9 -0
  10. package/i18n/locales/lazy/blog_da.json +9 -0
  11. package/i18n/locales/lazy/blog_de.json +9 -0
  12. package/i18n/locales/lazy/blog_en.json +9 -0
  13. package/i18n/locales/lazy/blog_es.json +9 -0
  14. package/i18n/locales/lazy/blog_fr.json +9 -0
  15. package/i18n/locales/lazy/blog_it.json +9 -0
  16. package/i18n/locales/lazy/blog_ja.json +9 -0
  17. package/i18n/locales/lazy/blog_ko.json +9 -0
  18. package/i18n/locales/lazy/blog_nl.json +9 -0
  19. package/i18n/locales/lazy/cookies_da.json +32 -0
  20. package/i18n/locales/lazy/cookies_nl.json +32 -0
  21. package/i18n/locales/lazy/crud_ar.json +12 -1
  22. package/i18n/locales/lazy/crud_da.json +522 -0
  23. package/i18n/locales/lazy/crud_de.json +13 -2
  24. package/i18n/locales/lazy/crud_en.json +12 -1
  25. package/i18n/locales/lazy/crud_es.json +12 -1
  26. package/i18n/locales/lazy/crud_fr.json +14 -3
  27. package/i18n/locales/lazy/crud_it.json +14 -3
  28. package/i18n/locales/lazy/crud_ja.json +12 -1
  29. package/i18n/locales/lazy/crud_ko.json +12 -1
  30. package/i18n/locales/lazy/crud_nl.json +522 -0
  31. package/i18n/locales/lazy/entityFormTemplate_da.json +85 -0
  32. package/i18n/locales/lazy/entityFormTemplate_nl.json +85 -0
  33. package/i18n/locales/lazy/homeTemplate_da.json +52 -0
  34. package/i18n/locales/lazy/homeTemplate_nl.json +52 -0
  35. package/i18n/locales/lazy/loginTemplate_da.json +21 -0
  36. package/i18n/locales/lazy/loginTemplate_nl.json +21 -0
  37. package/i18n/locales/lazy/oauth_da.json +9 -0
  38. package/i18n/locales/lazy/oauth_nl.json +9 -0
  39. package/i18n/locales/lazy/privacy_da.json +178 -0
  40. package/i18n/locales/lazy/privacy_nl.json +178 -0
  41. package/i18n/locales/lazy/profileDBTemplate_da.json +73 -0
  42. package/i18n/locales/lazy/profileDBTemplate_nl.json +73 -0
  43. package/i18n/locales/lazy/profileTemplate_da.json +85 -0
  44. package/i18n/locales/lazy/profileTemplate_nl.json +85 -0
  45. package/i18n/locales/lazy/terms_da.json +200 -0
  46. package/i18n/locales/lazy/terms_nl.json +200 -0
  47. package/index.d.ts +1536 -361
  48. package/index.js +39 -39
  49. package/next/index.d.ts +16 -14
  50. package/next/index.js +44 -24
  51. package/package.json +9 -9
  52. package/server.d.ts +8643 -7494
  53. package/server.js +1 -1
  54. package/vite/index.d.ts +18 -16
  55. package/vite/index.js +60 -37
package/next/index.d.ts CHANGED
@@ -635,6 +635,8 @@ interface PWAOptions {
635
635
  enabled?: boolean;
636
636
  /** Enable PWA in development (default: false) */
637
637
  devEnabled?: boolean;
638
+ /** Service worker registration: 'autoUpdate' = update in background, 'prompt' = ask user (default: 'prompt') */
639
+ registerType?: 'autoUpdate' | 'prompt';
638
640
  /** Debug logging (default: false) */
639
641
  debug?: boolean;
640
642
  /** Override manifest values (auto-discovered from app.ts by default) */
@@ -659,11 +661,11 @@ interface PWAOptions {
659
661
  runtimeCaching?: Array<{
660
662
  urlPattern: RegExp | ((options: { request: Request }) => boolean);
661
663
  handler:
662
- | 'CacheFirst'
663
- | 'NetworkFirst'
664
- | 'StaleWhileRevalidate'
665
- | 'NetworkOnly'
666
- | 'CacheOnly';
664
+ | 'CacheFirst'
665
+ | 'NetworkFirst'
666
+ | 'StaleWhileRevalidate'
667
+ | 'NetworkOnly'
668
+ | 'CacheOnly';
667
669
  options?: Record<string, any>;
668
670
  }>;
669
671
  /** Navigation fallback URL (default: '/') */
@@ -679,15 +681,15 @@ interface PWAOptions {
679
681
  >;
680
682
  /** Background sync configuration for offline actions */
681
683
  backgroundSync?:
682
- | {
683
- /** Queue name for background sync (default: 'background-sync-queue') */
684
- queueName?: string;
685
- /** Maximum retention time in minutes (default: 24 * 60) */
686
- maxRetentionTime?: number;
687
- /** URL pattern for background sync routes (default: matches /api/ routes) */
688
- urlPattern?: RegExp | ((options: { request: Request }) => boolean);
689
- }
690
- | false;
684
+ | {
685
+ /** Queue name for background sync (default: 'background-sync-queue') */
686
+ queueName?: string;
687
+ /** Maximum retention time in minutes (default: 24 * 60) */
688
+ maxRetentionTime?: number;
689
+ /** URL pattern for background sync routes (default: matches /api/ routes) */
690
+ urlPattern?: RegExp | ((options: { request: Request }) => boolean);
691
+ }
692
+ | false;
691
693
  [key: string]: any; // Allow other workbox options
692
694
  };
693
695
  }