@aglyn/aglyn 1.0.0-beta.229 → 1.0.0-beta.230

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 (29) hide show
  1. package/package.json +11 -11
  2. package/src/lib/app-utils/analytics-events.d.ts +18 -0
  3. package/src/lib/app-utils/analytics-events.js +2 -0
  4. package/src/lib/app-utils/analytics-events.js.map +1 -1
  5. package/src/lib/app-utils/docs-help.generated.d.ts +31 -7
  6. package/src/lib/app-utils/docs-help.generated.js +63 -2
  7. package/src/lib/app-utils/docs-help.generated.js.map +1 -1
  8. package/src/lib/app-utils/docs-index.generated.js +295 -43
  9. package/src/lib/app-utils/docs-index.generated.js.map +1 -1
  10. package/src/lib/app-utils/plan-entitlements.js +20 -0
  11. package/src/lib/app-utils/plan-entitlements.js.map +1 -1
  12. package/src/lib/app-utils/plugin-host-events.generated.d.ts +1 -1
  13. package/src/lib/app-utils/plugin-host-events.generated.js +15 -0
  14. package/src/lib/app-utils/plugin-host-events.generated.js.map +1 -1
  15. package/src/lib/app-utils/site-journey.d.ts +143 -0
  16. package/src/lib/app-utils/site-journey.js +282 -0
  17. package/src/lib/app-utils/site-journey.js.map +1 -0
  18. package/src/lib/foundation/definitions/org-billing.types.d.ts +16 -0
  19. package/src/lib/foundation/definitions/org-billing.types.js.map +1 -1
  20. package/src/lib/plugin-manager/feature-plugins.d.ts +85 -0
  21. package/src/lib/plugin-manager/feature-plugins.js +18 -1
  22. package/src/lib/plugin-manager/feature-plugins.js.map +1 -1
  23. package/src/lib/plugin-manager/first-party-plugins.generated.js +29 -0
  24. package/src/lib/plugin-manager/first-party-plugins.generated.js.map +1 -1
  25. package/src/lib/plugin-manager/plugin-ai-capabilities.d.ts +192 -0
  26. package/src/lib/plugin-manager/plugin-ai-capabilities.js +157 -0
  27. package/src/lib/plugin-manager/plugin-ai-capabilities.js.map +1 -0
  28. package/src/lib/plugin-manager/plugin-events.d.ts +21 -0
  29. package/src/lib/plugin-manager/plugin-events.js.map +1 -1
@@ -181,6 +181,12 @@ export const PLAN_ENTITLEMENTS = {
181
181
  // The ladder: Free 1, Starter 5, Pro 25, Business 100, and
182
182
  // `FORMS_PER_HOST_CEILING` on Scale and above.
183
183
  formsPerHost: 1,
184
+ // One reusable component per Free site (AGL-3615), counted the way the
185
+ // one saved form is: the create is refused on this number, with the
186
+ // upgrade path, and no longer on `reusableComponents`, which stays off
187
+ // here because Free's allowance has a count. Every paid plan is
188
+ // `UNLIMITED`, the allowance it had when components were only a feature.
189
+ componentsPerHost: 1,
184
190
  variablesPerHost: 3,
185
191
  functionsPerHost: 1,
186
192
  workflowsPerHost: 0,
@@ -292,6 +298,7 @@ export const PLAN_ENTITLEMENTS = {
292
298
  // Sized by the same annual-price invariant as Pro's — see that band.
293
299
  bandwidthGb: 15,
294
300
  formsPerHost: 5,
301
+ componentsPerHost: UNLIMITED,
295
302
  variablesPerHost: 25,
296
303
  functionsPerHost: 10,
297
304
  workflowsPerHost: 3,
@@ -417,6 +424,7 @@ export const PLAN_ENTITLEMENTS = {
417
424
  // at the page-view pass-through rather than being refused or absorbed.
418
425
  bandwidthGb: 25,
419
426
  formsPerHost: 25,
427
+ componentsPerHost: UNLIMITED,
420
428
  variablesPerHost: 100,
421
429
  functionsPerHost: 50,
422
430
  workflowsPerHost: 25,
@@ -509,6 +517,7 @@ export const PLAN_ENTITLEMENTS = {
509
517
  // Sized by the same annual-price invariant as Pro's — see that band.
510
518
  bandwidthGb: 45,
511
519
  formsPerHost: 100,
520
+ componentsPerHost: UNLIMITED,
512
521
  variablesPerHost: 1000,
513
522
  functionsPerHost: 250,
514
523
  workflowsPerHost: 100,
@@ -581,6 +590,7 @@ export const PLAN_ENTITLEMENTS = {
581
590
  // Sized by the same annual-price invariant as Pro's — see that band.
582
591
  bandwidthGb: 70,
583
592
  formsPerHost: FORMS_PER_HOST_CEILING,
593
+ componentsPerHost: UNLIMITED,
584
594
  variablesPerHost: 5000,
585
595
  functionsPerHost: 500,
586
596
  workflowsPerHost: 250,
@@ -650,6 +660,7 @@ export const PLAN_ENTITLEMENTS = {
650
660
  // Sized by the same annual-price invariant as Pro's — see that band.
651
661
  bandwidthGb: 80,
652
662
  formsPerHost: FORMS_PER_HOST_CEILING,
663
+ componentsPerHost: UNLIMITED,
653
664
  variablesPerHost: UNLIMITED,
654
665
  functionsPerHost: 1000,
655
666
  workflowsPerHost: 500,
@@ -723,6 +734,7 @@ export const PLAN_ENTITLEMENTS = {
723
734
  // Sized by the same annual-price invariant as Pro's — see that band.
724
735
  bandwidthGb: 395,
725
736
  formsPerHost: FORMS_PER_HOST_CEILING,
737
+ componentsPerHost: UNLIMITED,
726
738
  variablesPerHost: UNLIMITED,
727
739
  functionsPerHost: UNLIMITED,
728
740
  workflowsPerHost: UNLIMITED,
@@ -832,6 +844,7 @@ export const PLAN_ENTITLEMENTS = {
832
844
  maxMembersPerHost: 2000,
833
845
  bandwidthGb: 790,
834
846
  formsPerHost: FORMS_PER_HOST_CEILING,
847
+ componentsPerHost: UNLIMITED,
835
848
  variablesPerHost: UNLIMITED,
836
849
  functionsPerHost: UNLIMITED,
837
850
  workflowsPerHost: UNLIMITED,
@@ -2562,6 +2575,13 @@ function resolvePlan(org) {
2562
2575
  for (const [included, max] of SEAT_BANDS){
2563
2576
  merged[max] = Math.max(merged[max], merged[included]);
2564
2577
  }
2578
+ // An org granted `reusableComponents` by override was granted components
2579
+ // without a count, which is what the flag meant before
2580
+ // `componentsPerHost` existed (AGL-3615). The grant keeps meaning that
2581
+ // unless the same override also names a count, which then decides.
2582
+ if ((featureOverrides == null ? void 0 : featureOverrides.reusableComponents) === true && typeof quotaOverrides.componentsPerHost !== 'number') {
2583
+ merged.componentsPerHost = UNLIMITED;
2584
+ }
2565
2585
  resolved = _extends({}, merged, {
2566
2586
  features: _extends({}, defaults.features, featureOverrides)
2567
2587
  });