@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/vite/index.d.ts CHANGED
@@ -586,8 +586,8 @@ interface BuildConfig {
586
586
  */
587
587
  interface ResolveOptions {
588
588
  alias?:
589
- | Record<string, string>
590
- | Array<{ find: string | RegExp; replacement: string }>;
589
+ | Record<string, string>
590
+ | Array<{ find: string | RegExp; replacement: string }>;
591
591
  }
592
592
 
593
593
  /**
@@ -749,6 +749,8 @@ interface PWAOptions {
749
749
  enabled?: boolean;
750
750
  /** Enable PWA in development (default: false) */
751
751
  devEnabled?: boolean;
752
+ /** Service worker registration: 'autoUpdate' = update in background, 'prompt' = ask user (default: 'prompt') */
753
+ registerType?: 'autoUpdate' | 'prompt';
752
754
  /** Debug logging (default: false) */
753
755
  debug?: boolean;
754
756
  /** Override manifest values (auto-discovered from app.ts by default) */
@@ -773,11 +775,11 @@ interface PWAOptions {
773
775
  runtimeCaching?: Array<{
774
776
  urlPattern: RegExp | ((options: { request: Request }) => boolean);
775
777
  handler:
776
- | 'CacheFirst'
777
- | 'NetworkFirst'
778
- | 'StaleWhileRevalidate'
779
- | 'NetworkOnly'
780
- | 'CacheOnly';
778
+ | 'CacheFirst'
779
+ | 'NetworkFirst'
780
+ | 'StaleWhileRevalidate'
781
+ | 'NetworkOnly'
782
+ | 'CacheOnly';
781
783
  options?: Record<string, any>;
782
784
  }>;
783
785
  /** Navigation fallback URL (default: '/') */
@@ -793,15 +795,15 @@ interface PWAOptions {
793
795
  >;
794
796
  /** Background sync configuration for offline actions */
795
797
  backgroundSync?:
796
- | {
797
- /** Queue name for background sync (default: 'background-sync-queue') */
798
- queueName?: string;
799
- /** Maximum retention time in minutes (default: 24 * 60) */
800
- maxRetentionTime?: number;
801
- /** URL pattern for background sync routes (default: matches /api/ routes) */
802
- urlPattern?: RegExp | ((options: { request: Request }) => boolean);
803
- }
804
- | false;
798
+ | {
799
+ /** Queue name for background sync (default: 'background-sync-queue') */
800
+ queueName?: string;
801
+ /** Maximum retention time in minutes (default: 24 * 60) */
802
+ maxRetentionTime?: number;
803
+ /** URL pattern for background sync routes (default: matches /api/ routes) */
804
+ urlPattern?: RegExp | ((options: { request: Request }) => boolean);
805
+ }
806
+ | false;
805
807
  [key: string]: any; // Allow other workbox options
806
808
  };
807
809
  }