@iblai/iblai-js 2.71.1 → 2.73.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 (119) hide show
  1. package/dist/data-layer/playwright/billing-tab-helpers.d.ts +61 -48
  2. package/dist/data-layer/playwright/credit-balance-helpers.d.ts +40 -18
  3. package/dist/data-layer/playwright/index.d.ts +3 -2
  4. package/dist/data-layer/playwright/plan-picker-helpers.d.ts +26 -0
  5. package/dist/data-layer/playwright/spend-limits-helpers.d.ts +5 -4
  6. package/dist/playwright/index.cjs +306 -193
  7. package/dist/playwright/index.cjs.map +1 -1
  8. package/dist/playwright/index.d.ts +133 -71
  9. package/dist/playwright/index.esm.js +293 -194
  10. package/dist/playwright/index.esm.js.map +1 -1
  11. package/dist/playwright/playwright/billing-tab-helpers.d.ts +61 -48
  12. package/dist/playwright/playwright/credit-balance-helpers.d.ts +40 -18
  13. package/dist/playwright/playwright/index.d.ts +3 -2
  14. package/dist/playwright/playwright/plan-picker-helpers.d.ts +26 -0
  15. package/dist/playwright/playwright/spend-limits-helpers.d.ts +5 -4
  16. package/dist/security/playwright/billing-tab-helpers.d.ts +61 -48
  17. package/dist/security/playwright/credit-balance-helpers.d.ts +40 -18
  18. package/dist/security/playwright/index.d.ts +3 -2
  19. package/dist/security/playwright/plan-picker-helpers.d.ts +26 -0
  20. package/dist/security/playwright/spend-limits-helpers.d.ts +5 -4
  21. package/dist/web-containers/playwright/billing-tab-helpers.d.ts +61 -48
  22. package/dist/web-containers/playwright/credit-balance-helpers.d.ts +40 -18
  23. package/dist/web-containers/playwright/index.d.ts +3 -2
  24. package/dist/web-containers/playwright/plan-picker-helpers.d.ts +26 -0
  25. package/dist/web-containers/playwright/spend-limits-helpers.d.ts +5 -4
  26. package/dist/web-containers/source/add-credits-modal.js +170 -24
  27. package/dist/web-containers/source/add-credits-modal.js.map +1 -1
  28. package/dist/web-containers/source/auto-recharge-modal.js +1 -1
  29. package/dist/web-containers/source/auto-recharge-modal.js.map +1 -1
  30. package/dist/web-containers/source/billing-credits.js +4 -4
  31. package/dist/web-containers/source/billing-credits.js.map +1 -1
  32. package/dist/web-containers/source/billing.js +60 -101
  33. package/dist/web-containers/source/billing.js.map +1 -1
  34. package/dist/web-containers/source/components/credit-balance.js +44 -72
  35. package/dist/web-containers/source/components/credit-balance.js.map +1 -1
  36. package/dist/web-containers/source/components/modals/contact-admin-modal.js +32 -0
  37. package/dist/web-containers/source/components/modals/contact-admin-modal.js.map +1 -0
  38. package/dist/web-containers/source/components/modals/upgrade-package-modal.js +281 -20
  39. package/dist/web-containers/source/components/modals/upgrade-package-modal.js.map +1 -1
  40. package/dist/web-containers/source/components/profile/add-credits-modal.js +170 -24
  41. package/dist/web-containers/source/components/profile/add-credits-modal.js.map +1 -1
  42. package/dist/web-containers/source/components/profile/auto-recharge-modal.js +1 -1
  43. package/dist/web-containers/source/components/profile/auto-recharge-modal.js.map +1 -1
  44. package/dist/web-containers/source/components/profile/billing-credits.js +4 -4
  45. package/dist/web-containers/source/components/profile/billing-credits.js.map +1 -1
  46. package/dist/web-containers/source/components/profile/billing.js +60 -101
  47. package/dist/web-containers/source/components/profile/billing.js.map +1 -1
  48. package/dist/web-containers/source/components/profile/pending-credit-top-up.js +202 -0
  49. package/dist/web-containers/source/components/profile/pending-credit-top-up.js.map +1 -0
  50. package/dist/web-containers/source/components/profile/use-complete-pending-credit-top-up.js +68 -0
  51. package/dist/web-containers/source/components/profile/use-complete-pending-credit-top-up.js.map +1 -0
  52. package/dist/web-containers/source/components/subscription-top-banner.js +119 -0
  53. package/dist/web-containers/source/components/subscription-top-banner.js.map +1 -0
  54. package/dist/web-containers/source/components/welcome-chat/welcome-message.js +23 -3
  55. package/dist/web-containers/source/components/welcome-chat/welcome-message.js.map +1 -1
  56. package/dist/web-containers/source/contact-admin-modal.js +32 -0
  57. package/dist/web-containers/source/contact-admin-modal.js.map +1 -0
  58. package/dist/web-containers/source/credit-balance.js +44 -72
  59. package/dist/web-containers/source/credit-balance.js.map +1 -1
  60. package/dist/web-containers/source/en.json.js +125 -21
  61. package/dist/web-containers/source/en.json.js.map +1 -1
  62. package/dist/web-containers/source/es.json.js +127 -23
  63. package/dist/web-containers/source/es.json.js.map +1 -1
  64. package/dist/web-containers/source/fr.json.js +125 -21
  65. package/dist/web-containers/source/fr.json.js.map +1 -1
  66. package/dist/web-containers/source/i18n/messages/en.json.js +125 -21
  67. package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
  68. package/dist/web-containers/source/i18n/messages/es.json.js +127 -23
  69. package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
  70. package/dist/web-containers/source/i18n/messages/fr.json.js +125 -21
  71. package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
  72. package/dist/web-containers/source/i18n/messages/zh.json.js +126 -22
  73. package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
  74. package/dist/web-containers/source/messages/en.json.js +125 -21
  75. package/dist/web-containers/source/messages/en.json.js.map +1 -1
  76. package/dist/web-containers/source/messages/es.json.js +127 -23
  77. package/dist/web-containers/source/messages/es.json.js.map +1 -1
  78. package/dist/web-containers/source/messages/fr.json.js +125 -21
  79. package/dist/web-containers/source/messages/fr.json.js.map +1 -1
  80. package/dist/web-containers/source/messages/zh.json.js +126 -22
  81. package/dist/web-containers/source/messages/zh.json.js.map +1 -1
  82. package/dist/web-containers/source/modals/contact-admin-modal.js +32 -0
  83. package/dist/web-containers/source/modals/contact-admin-modal.js.map +1 -0
  84. package/dist/web-containers/source/modals/upgrade-package-modal.js +281 -20
  85. package/dist/web-containers/source/modals/upgrade-package-modal.js.map +1 -1
  86. package/dist/web-containers/source/pending-credit-top-up.js +202 -0
  87. package/dist/web-containers/source/pending-credit-top-up.js.map +1 -0
  88. package/dist/web-containers/source/profile/add-credits-modal.js +170 -24
  89. package/dist/web-containers/source/profile/add-credits-modal.js.map +1 -1
  90. package/dist/web-containers/source/profile/auto-recharge-modal.js +1 -1
  91. package/dist/web-containers/source/profile/auto-recharge-modal.js.map +1 -1
  92. package/dist/web-containers/source/profile/billing-credits.js +4 -4
  93. package/dist/web-containers/source/profile/billing-credits.js.map +1 -1
  94. package/dist/web-containers/source/profile/billing.js +60 -101
  95. package/dist/web-containers/source/profile/billing.js.map +1 -1
  96. package/dist/web-containers/source/profile/pending-credit-top-up.js +202 -0
  97. package/dist/web-containers/source/profile/pending-credit-top-up.js.map +1 -0
  98. package/dist/web-containers/source/profile/use-complete-pending-credit-top-up.js +68 -0
  99. package/dist/web-containers/source/profile/use-complete-pending-credit-top-up.js.map +1 -0
  100. package/dist/web-containers/source/subscription-top-banner.js +119 -0
  101. package/dist/web-containers/source/subscription-top-banner.js.map +1 -0
  102. package/dist/web-containers/source/tsconfig.build.tsbuildinfo +1 -1
  103. package/dist/web-containers/source/upgrade-package-modal.js +281 -20
  104. package/dist/web-containers/source/upgrade-package-modal.js.map +1 -1
  105. package/dist/web-containers/source/use-complete-pending-credit-top-up.js +68 -0
  106. package/dist/web-containers/source/use-complete-pending-credit-top-up.js.map +1 -0
  107. package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
  108. package/dist/web-containers/source/welcome-chat/welcome-message.js +23 -3
  109. package/dist/web-containers/source/welcome-chat/welcome-message.js.map +1 -1
  110. package/dist/web-containers/source/welcome-message.js +23 -3
  111. package/dist/web-containers/source/welcome-message.js.map +1 -1
  112. package/dist/web-containers/source/zh.json.js +126 -22
  113. package/dist/web-containers/source/zh.json.js.map +1 -1
  114. package/dist/web-utils/playwright/billing-tab-helpers.d.ts +61 -48
  115. package/dist/web-utils/playwright/credit-balance-helpers.d.ts +40 -18
  116. package/dist/web-utils/playwright/index.d.ts +3 -2
  117. package/dist/web-utils/playwright/plan-picker-helpers.d.ts +26 -0
  118. package/dist/web-utils/playwright/spend-limits-helpers.d.ts +5 -4
  119. package/package.json +5 -5
@@ -0,0 +1,119 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { useState, useEffect } from 'react';
3
+ import { useSelector } from 'react-redux';
4
+ import { useIsStripeActivated, useTopBannerButtonHandler, isLoggedIn, SUBSCRIPTION_BANNER_PARENT_SELECTOR } from '@iblai/web-utils';
5
+ import { useT } from '../i18n/context.js';
6
+ import '../packages/i18n/dist/index.esm.js';
7
+ import { TopBanner } from './top-banner/index.js';
8
+
9
+ const byId = (selector) => document.querySelector(selector);
10
+ /**
11
+ * The credits banner across the top of the app ("You've run out of credits…"),
12
+ * driven by the `topBanner` slice the subscription flow writes to. A non-admin
13
+ * whose organization ran out gets `ContactAdminModal` instead. Its button does what
14
+ * `useTopBannerButtonHandler` maps the banner's trigger to. Shows only for a
15
+ * signed-in person on a tenant with billing on.
16
+ *
17
+ * While shown it shortens the sidebar shell (`[data-slot="sidebar-*"]`) and
18
+ * the main content container by its own height so nothing scrolls under it,
19
+ * and puts everything back when closed.
20
+ */
21
+ function SubscriptionTopBanner({ hidden = false, parentContainerSelector = SUBSCRIPTION_BANNER_PARENT_SELECTOR, }) {
22
+ const t = useT();
23
+ const stripeActivated = useIsStripeActivated();
24
+ const topBannerOptions = useSelector((state) => { var _a; return (_a = state.topBanner) === null || _a === void 0 ? void 0 : _a.topBannerOptions; });
25
+ const getTopBannerButtonHandler = useTopBannerButtonHandler();
26
+ const [initialStyles, setInitialStyles] = useState({});
27
+ useEffect(() => {
28
+ const sideBarWrapper = byId('[data-slot="sidebar-wrapper"]');
29
+ const mainContentContainer = byId('#main-content-container > div');
30
+ const sidebarContainer = byId('[data-slot="sidebar-container"]');
31
+ const sidebarInset = byId('[data-slot="sidebar-inset"]');
32
+ const body = byId('body');
33
+ setInitialStyles({
34
+ sideBarWrapper: sideBarWrapper
35
+ ? {
36
+ maxHeight: sideBarWrapper.style.maxHeight,
37
+ top: sideBarWrapper.style.top,
38
+ position: sideBarWrapper.style.position,
39
+ }
40
+ : undefined,
41
+ mainContentContainer: mainContentContainer
42
+ ? {
43
+ position: mainContentContainer.style.position,
44
+ top: mainContentContainer.style.top,
45
+ }
46
+ : undefined,
47
+ sidebarContainer: sidebarContainer
48
+ ? { top: sidebarContainer.style.top, height: sidebarContainer.style.height }
49
+ : undefined,
50
+ sidebarInset: sidebarInset
51
+ ? { top: sidebarInset.style.top, height: sidebarInset.style.height }
52
+ : undefined,
53
+ body: body ? { overflow: body.style.overflow } : undefined,
54
+ });
55
+ }, []);
56
+ const handleTopBannerLoad = (bannerRef) => {
57
+ if (!bannerRef)
58
+ return;
59
+ const bannerHeight = bannerRef.clientHeight;
60
+ const sideBarWrapper = byId('[data-slot="sidebar-wrapper"]');
61
+ if (sideBarWrapper) {
62
+ sideBarWrapper.style.maxHeight = `calc(100vh - ${bannerHeight}px)`;
63
+ sideBarWrapper.style.top = '3px';
64
+ sideBarWrapper.style.position = 'relative';
65
+ }
66
+ const mainContentContainer = byId('#main-content-container > div');
67
+ if (mainContentContainer) {
68
+ mainContentContainer.style.position = 'relative';
69
+ mainContentContainer.style.top = '-12px';
70
+ }
71
+ const sidebarContainer = byId('[data-slot="sidebar-container"]');
72
+ if (sidebarContainer) {
73
+ sidebarContainer.style.top = '48px';
74
+ sidebarContainer.style.height = `calc(100% - ${bannerHeight}px)`;
75
+ }
76
+ const sidebarInset = byId('[data-slot="sidebar-inset"]');
77
+ if (sidebarInset) {
78
+ sidebarInset.style.height = `calc(100dvh - ${bannerHeight}px)`;
79
+ }
80
+ const body = byId('body');
81
+ if (body) {
82
+ body.style.overflow = 'hidden';
83
+ }
84
+ };
85
+ const handleTopBannerClose = () => {
86
+ var _a;
87
+ const sideBarWrapper = byId('[data-slot="sidebar-wrapper"]');
88
+ if (sideBarWrapper && initialStyles.sideBarWrapper) {
89
+ sideBarWrapper.style.maxHeight = initialStyles.sideBarWrapper.maxHeight;
90
+ sideBarWrapper.style.top = initialStyles.sideBarWrapper.top;
91
+ sideBarWrapper.style.position = initialStyles.sideBarWrapper.position;
92
+ }
93
+ const mainContentContainer = byId('#main-content-container > div');
94
+ if (mainContentContainer && initialStyles.mainContentContainer) {
95
+ mainContentContainer.style.position = initialStyles.mainContentContainer.position;
96
+ mainContentContainer.style.top = initialStyles.mainContentContainer.top;
97
+ }
98
+ const sidebarContainer = byId('[data-slot="sidebar-container"]');
99
+ if (sidebarContainer && initialStyles.sidebarContainer) {
100
+ sidebarContainer.style.top = initialStyles.sidebarContainer.top;
101
+ sidebarContainer.style.height = initialStyles.sidebarContainer.height;
102
+ }
103
+ const sidebarInset = byId('[data-slot="sidebar-inset"]');
104
+ if (sidebarInset && initialStyles.sidebarInset) {
105
+ sidebarInset.style.height = initialStyles.sidebarInset.height;
106
+ }
107
+ const body = byId('body');
108
+ if (body) {
109
+ body.style.overflow = ((_a = initialStyles.body) === null || _a === void 0 ? void 0 : _a.overflow) || 'auto';
110
+ }
111
+ };
112
+ if (hidden || !(topBannerOptions === null || topBannerOptions === void 0 ? void 0 : topBannerOptions.enabled) || !stripeActivated || !isLoggedIn()) {
113
+ return null;
114
+ }
115
+ return (jsx(TopBanner, { parentContainerSelector: parentContainerSelector, bannerText: topBannerOptions.bannerText, buttonHandler: getTopBannerButtonHandler(topBannerOptions.onUpgrade), buttonLabel: topBannerOptions.buttonLabel || t('creditBalance.upgrade'), loading: topBannerOptions.loading, tooltipText: topBannerOptions.tooltipText, onLoad: handleTopBannerLoad, onClose: handleTopBannerClose }));
116
+ }
117
+
118
+ export { SubscriptionTopBanner };
119
+ //# sourceMappingURL=subscription-top-banner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-top-banner.js","sources":["../../../../../../src/components/subscription-top-banner.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;;;AA6BA,MAAM,IAAI,GAAG,CAAC,QAAgB,KAAK,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAuB;AAEzF;;;;;;;;;;AAUG;AACG,SAAU,qBAAqB,CAAC,EACpC,MAAM,GAAG,KAAK,EACd,uBAAuB,GAAG,mCAAmC,GAClC,EAAA;AAC3B,IAAA,MAAM,CAAC,GAAG,IAA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