@bcrumbs.net/bc-shared 0.0.8 → 0.0.10

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.
package/index.esm.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./src\\index";
1
+ export * from "./src/index";
package/index.esm.js CHANGED
@@ -15,6 +15,9 @@ const BroadcastRoot = '/broadcast';
15
15
  const ResourcesRoot = '/resources';
16
16
  const ManagemnetRoot = '/management';
17
17
  const ContactRoot = '/contact';
18
+ const BillingRoot = '/billing';
19
+ /** Base path for analytics / operational reports (not broadcast CRUD). */
20
+ const ReportsRoot = '/reports';
18
21
  const AiRoot = '/ai';
19
22
  const BCRoutes = {
20
23
  AccountDashboard: AccountPortalRoot,
@@ -29,6 +32,8 @@ const BCRoutes = {
29
32
  Login: `${AccountPortalRoot}/login`,
30
33
  // It should be like that while it's used by BC-API
31
34
  Register: `${AccountPortalRoot}/register`,
35
+ /** Landing-page entry: auth check → register or plan checkout (Polar/Stripe). */
36
+ CheckAuth: `${AccountPortalRoot}/check-auth`,
32
37
  Password: `${AccountPortalRoot}/reset/:token`,
33
38
  PartnerLogin: `${AccountPortalRoot}/partner-login`,
34
39
  Profile: `${AccountPortalRoot}/profile`,
@@ -66,13 +71,17 @@ const BCRoutes = {
66
71
  AiPreferencesPrompts: `${AiRoot}/preferences/prompts`,
67
72
  AiPreferencesTestNumber: `${AiRoot}/preferences/test-number`,
68
73
  AiPreferencesSuggestedQs: `${AiRoot}/preferences/suggested-qs`,
74
+ AiPreferencesCrumbySettings: `${AiRoot}/preferences/crumby-settings`,
69
75
  Inbox: `${InboxPortalRoot}`,
76
+ AiChat: `${InboxPortalRoot}/ai`,
70
77
  EmbeddedInbox: `${InboxPortalRoot}/embedded`,
71
78
  Broadcast: `${BroadcastRoot}`,
72
79
  BroadcastAnalysis: `${BroadcastRoot}/analysis/:id`,
73
80
  BroadcastEdit: `${BroadcastRoot}/edit/:id`,
74
81
  BroadcastCreate: `${BroadcastRoot}/create`,
75
82
  BroadcastHistory: `${BroadcastRoot}/history`,
83
+ /** Recipients / message-status report for a date range under {@link ReportsRoot}. */
84
+ DeliveryReport: `${ReportsRoot}/delivery`,
76
85
  ConvsSearch: `${SearchPortalRoot}`,
77
86
  Dashboard: `${Dashboard}`,
78
87
  Managemnet: `${ManagemnetRoot}`,
@@ -80,12 +89,23 @@ const BCRoutes = {
80
89
  AiManagemnet: `${ManagemnetRoot}/ai`,
81
90
  ApikeyManagemnet: `${ManagemnetRoot}/apikey`,
82
91
  WebhookManagemnet: `${ManagemnetRoot}/webhook`,
92
+ CrmIntegrationManagemnet: `${ManagemnetRoot}/crm-integrations`,
83
93
  ConvstageManagemnet: `${ManagemnetRoot}/convstage`,
94
+ QuickReplyManagemnet: `${ManagemnetRoot}/quick-replies`,
84
95
  IntegrationManagemnet: `${ManagemnetRoot}/integration`,
96
+ InstagramOAuthCallback: `${ManagemnetRoot}/instagram-oauth-callback`,
97
+ GeneralSettings: `${ManagemnetRoot}/general-settings`,
85
98
  Contact: `${ContactRoot}`,
86
99
  ContactLifeCycle: `${ContactRoot}/contact-life-cycle`,
87
100
  AiAutomation: `${ManagemnetRoot}/ai-automation`,
88
101
  ConversationManagement: `${ManagemnetRoot}/conversation-management`,
102
+ BillingInvoices: `${BillingRoot}/invoices`,
103
+ BillingPendingPayment: `${BillingRoot}/pending-payment`,
104
+ BillingPayment: `${BillingRoot}/payment`,
105
+ BillingPaymentMethod: `${BillingRoot}/payment-method`,
106
+ BillingCheckout: `${BillingRoot}/checkout`,
107
+ BillingRenew: `${BillingRoot}/renew`,
108
+ BillingDone: `${BillingRoot}/done`,
89
109
  Root: '/'
90
110
  };
91
111
 
@@ -8212,6 +8232,7 @@ const init = ({
8212
8232
  customPath
8213
8233
  }) => {
8214
8234
  const currentLng = localStorage.getItem(LOCAL_STORAGE_I18N_STRING) || systemDefaultLang;
8235
+ document.documentElement.setAttribute('lang', currentLng);
8215
8236
  i18n.use(Backend) // load translation using http
8216
8237
  // .use(LanguageDetector) // detect user language
8217
8238
  .use(initReactI18next) // passes i18n down to react-i18next
@@ -8232,6 +8253,7 @@ const init = ({
8232
8253
  };
8233
8254
  const changeLang = lang => {
8234
8255
  localStorage.setItem(LOCAL_STORAGE_I18N_STRING, lang);
8256
+ document.documentElement.setAttribute('lang', lang);
8235
8257
  i18n.changeLanguage(lang);
8236
8258
  };
8237
8259
  const getLang = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcrumbs.net/bc-shared",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "keyword": [
5
5
  "bcrumbs",
6
6
  "bc-shared",
@@ -10,6 +10,8 @@ export declare const BCRoutes: {
10
10
  Welcome: string;
11
11
  Login: string;
12
12
  Register: string;
13
+ /** Landing-page entry: auth check → register or plan checkout (Polar/Stripe). */
14
+ CheckAuth: string;
13
15
  Password: string;
14
16
  PartnerLogin: string;
15
17
  Profile: string;
@@ -45,13 +47,17 @@ export declare const BCRoutes: {
45
47
  AiPreferencesPrompts: string;
46
48
  AiPreferencesTestNumber: string;
47
49
  AiPreferencesSuggestedQs: string;
50
+ AiPreferencesCrumbySettings: string;
48
51
  Inbox: string;
52
+ AiChat: string;
49
53
  EmbeddedInbox: string;
50
54
  Broadcast: string;
51
55
  BroadcastAnalysis: string;
52
56
  BroadcastEdit: string;
53
57
  BroadcastCreate: string;
54
58
  BroadcastHistory: string;
59
+ /** Recipients / message-status report for a date range under {@link ReportsRoot}. */
60
+ DeliveryReport: string;
55
61
  ConvsSearch: string;
56
62
  Dashboard: string;
57
63
  Managemnet: string;
@@ -59,11 +65,22 @@ export declare const BCRoutes: {
59
65
  AiManagemnet: string;
60
66
  ApikeyManagemnet: string;
61
67
  WebhookManagemnet: string;
68
+ CrmIntegrationManagemnet: string;
62
69
  ConvstageManagemnet: string;
70
+ QuickReplyManagemnet: string;
63
71
  IntegrationManagemnet: string;
72
+ InstagramOAuthCallback: string;
73
+ GeneralSettings: string;
64
74
  Contact: string;
65
75
  ContactLifeCycle: string;
66
76
  AiAutomation: string;
67
77
  ConversationManagement: string;
78
+ BillingInvoices: string;
79
+ BillingPendingPayment: string;
80
+ BillingPayment: string;
81
+ BillingPaymentMethod: string;
82
+ BillingCheckout: string;
83
+ BillingRenew: string;
84
+ BillingDone: string;
68
85
  Root: string;
69
86
  };