@magnet-cms/core 1.0.3 → 3.0.0

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 (39) hide show
  1. package/dist/cache.settings-WVD3J7KS.js +5 -0
  2. package/dist/{chunk-VRD3SNTH.js → chunk-4KTI5N3Y.js} +5 -5
  3. package/dist/{chunk-2G3SJVME.js → chunk-57BXP7WT.js} +3 -3
  4. package/dist/{chunk-GRTSRYQ3.js → chunk-5ZNZ457Y.js} +1 -1
  5. package/dist/{chunk-UPVWRKGL.js → chunk-BLOJL7F5.js} +1 -1
  6. package/dist/{chunk-IRYV6KDU.js → chunk-D3C3IDJE.js} +1806 -2919
  7. package/dist/chunk-FPVW2XEK.js +77 -0
  8. package/dist/{chunk-VPQMUAKT.js → chunk-L5S66O2C.js} +2945 -1418
  9. package/dist/{chunk-5KKPPI6S.js → chunk-LSFWCRI6.js} +3 -3
  10. package/dist/{dist-es-EKS5UN6W.js → dist-es-FN4ZDH7H.js} +3 -3
  11. package/dist/dist-es-IFKE2QTH.js +1 -1
  12. package/dist/{dist-es-J4ID6CFE.js → dist-es-JOTZAW56.js} +3 -3
  13. package/dist/{dist-es-SH3IYNFH.js → dist-es-UU6EFY2O.js} +2 -2
  14. package/dist/index.cjs +62120 -8608
  15. package/dist/index.d.cts +22 -7
  16. package/dist/index.d.ts +22 -7
  17. package/dist/index.js +53223 -193
  18. package/dist/{loadCognitoIdentity-IDLT73F5.js → loadCognitoIdentity-VHCOBTS2.js} +4 -4
  19. package/dist/{loadSso-VKQ2MGWC.js → loadSso-5XNIYOZP.js} +4 -4
  20. package/dist/{loadSts-CDV5EIAC.js → loadSts-IC4PURXF.js} +6 -6
  21. package/dist/magnet-module-imports.cjs +3864 -3393
  22. package/dist/magnet-module-imports.d.cts +6 -2
  23. package/dist/magnet-module-imports.d.ts +6 -2
  24. package/dist/magnet-module-imports.js +12 -11
  25. package/dist/modules.cjs +3921 -2174
  26. package/dist/modules.d.cts +298 -618
  27. package/dist/modules.d.ts +298 -618
  28. package/dist/modules.js +179 -15
  29. package/dist/permission.guard-B8HLjHP2.d.cts +912 -0
  30. package/dist/permission.guard-B8HLjHP2.d.ts +912 -0
  31. package/dist/{settings.module-CS9n15pg.d.cts → settings.module-CX5Cs5fA.d.cts} +29 -3
  32. package/dist/{settings.module-CS9n15pg.d.ts → settings.module-CX5Cs5fA.d.ts} +29 -3
  33. package/dist/{signin-OTF7SOKV.js → signin-TXX6BWCZ.js} +4 -4
  34. package/dist/{sso-oidc-IU7NSPWD.js → sso-oidc-CMVLR2KO.js} +4 -4
  35. package/dist/{sts-IGHPXD4X.js → sts-MASJMUF3.js} +6 -6
  36. package/package.json +3 -3
  37. package/dist/auth-strategy.factory-D2p1hfeq.d.cts +0 -303
  38. package/dist/auth-strategy.factory-D2p1hfeq.d.ts +0 -303
  39. package/dist/{chunk-ISB33RLS.js → chunk-47RGXMWN.js} +3 -3
@@ -0,0 +1,77 @@
1
+ import { __esm, __name } from './chunk-6EUZQHAF.js';
2
+ import { SettingField, Settings } from '@magnet-cms/common';
3
+
4
+ function _ts_decorate(decorators, target, key, desc) {
5
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
7
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
8
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
9
+ }
10
+ var CacheSettings;
11
+ var init_cache_settings = __esm({
12
+ "src/modules/cache/cache.settings.ts"() {
13
+ __name(_ts_decorate, "_ts_decorate");
14
+ CacheSettings = class {
15
+ static {
16
+ __name(this, "CacheSettings");
17
+ }
18
+ enabled = true;
19
+ defaultTtl = 300;
20
+ maxMemoryEntries = 1e3;
21
+ };
22
+ _ts_decorate([
23
+ SettingField.Boolean({
24
+ label: "Enable Cache",
25
+ description: "Master toggle for all caching. When disabled, cache reads always miss.",
26
+ default: true,
27
+ section: "general",
28
+ order: 1
29
+ })
30
+ ], CacheSettings.prototype, "enabled", void 0);
31
+ _ts_decorate([
32
+ SettingField.Number({
33
+ label: "Default TTL (seconds)",
34
+ description: "Default time-to-live for cached entries, in seconds.",
35
+ default: 300,
36
+ section: "general",
37
+ order: 2
38
+ })
39
+ ], CacheSettings.prototype, "defaultTtl", void 0);
40
+ _ts_decorate([
41
+ SettingField.Number({
42
+ label: "Max Memory Entries",
43
+ description: "Maximum number of entries in the in-memory cache before LRU eviction. Only applies to the memory adapter.",
44
+ default: 1e3,
45
+ section: "memory",
46
+ order: 1
47
+ })
48
+ ], CacheSettings.prototype, "maxMemoryEntries", void 0);
49
+ CacheSettings = _ts_decorate([
50
+ Settings({
51
+ group: "cache",
52
+ label: "Cache",
53
+ icon: "zap",
54
+ order: 8,
55
+ description: "Configure cache behavior and time-to-live defaults",
56
+ sections: [
57
+ {
58
+ name: "general",
59
+ label: "General",
60
+ icon: "settings",
61
+ description: "General cache settings",
62
+ order: 1
63
+ },
64
+ {
65
+ name: "memory",
66
+ label: "Memory Adapter",
67
+ icon: "cpu",
68
+ description: "Settings for the built-in in-memory cache adapter",
69
+ order: 2
70
+ }
71
+ ]
72
+ })
73
+ ], CacheSettings);
74
+ }
75
+ });
76
+
77
+ export { CacheSettings, init_cache_settings };