@bikdotai/bik-component-library 0.0.772-beta.0 → 0.0.772-beta.1

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const Menus: ({
2
3
  displayName: string;
3
4
  key: number;
@@ -1,6 +1,6 @@
1
1
  export declare const environment: {
2
- isStaging: string | boolean;
3
- isFastifyEnabled: string | boolean;
2
+ isStaging: boolean;
3
+ isFastifyEnabled: boolean;
4
4
  dashboard: string;
5
5
  primaryApp: {
6
6
  apiKey: string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const a={isStaging:process.env.NEXT_PUBLIC_staging||"true"===process.env.staging,isFastifyEnabled:process.env.NEXT_PUBLIC_fastify||"true"===process.env.fastify,dashboard:process.env.NEXT_PUBLIC_dashboard||process.env.dashboard||"",primaryApp:{apiKey:"AIzaSyC9UXTV6SbHEhz6IsH1juvkq_yHEmOf8PE",authDomain:"bikai-d5ee5.firebaseapp.com",databaseURL:"https://bikai-d5ee5.firebaseio.com",projectId:"bikai-d5ee5",storageBucket:"bikai-d5ee5.appspot.com",messagingSenderId:"960183660605",appId:"1:960183660605:web:b93c3b654d17c9e53d7a54"},secondaryApp:{apiKey:"AIzaSyA6Mi0Zii5CIimu2ogFH8wTLUYkCiDJE0E",authDomain:"bikayi-chat.firebaseapp.com",databaseURL:"https://bikayi-chat.firebaseio.com",projectId:"bikayi-chat",storageBucket:"bikayi-chat.appspot.com",messagingSenderId:"663068353804",appId:"1:663068353804:web:23c7b6577a1054f95e1529"},functionEndpoints:{US_FUNCTION_URL:"https://us-central1-bikai-d5ee5.cloudfunctions.net",ASIA_SOUTH_FUNCTION_URL:"https://asia-south1-bikai-d5ee5.cloudfunctions.net",FASTIFY_URL:"https://fastify-6nwaonxexq-el.a.run.app"},stagingApp:{apiKey:"AIzaSyD1PQW26YUKNpXWMEpj60czm1ZMfCOPl0M",authDomain:"staging-bikayi.firebaseapp.com",databaseURL:"https://staging-bikayi-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"staging-bikayi",storageBucket:"staging-bikayi.appspot.com",messagingSenderId:"99091183732",appId:"1:99091183732:web:d8f4b5df42e8d313dcb921",measurementId:"G-ST13VY8JYW"},stagingFunctionEndpoints:{US_FUNCTION_URL:"https://us-central1-staging-bikayi.cloudfunctions.net",ASIA_SOUTH_FUNCTION_URL:"https://asia-south1-staging-bikayi.cloudfunctions.net",FASTIFY_CAMPAIGN_URL:"https://fastify-staging-campaign-2adcfj52ea-el.a.run.app",FASTIFY_URL:"https://fastify-staging-2adcfj52ea-el.a.run.app"},googleCaptcha:{siteKey:"6LerMB4kAAAAALk6_3bXFlkV-H0QXIuESLigXVnd"},googleCaptchV3:{siteKey:"6LednlonAAAAADabMmQMGzBxxgD4qxOf8k3VqOR-"},totalFreeCredits:500,maxProductsToSync:5e3,menifestUrl:"https://getmanifest.ai/",contactNowCalendlyUrl:"https://calendly.com/help-84i",apiHeaders:{callerServiceName:"merchant-admin-react",callerServiceFunction:"merchant-admin-react"}};exports.environment=a;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const a={isStaging:"true"===process.env.NEXT_PUBLIC_staging||"true"===process.env.staging,isFastifyEnabled:"true"===process.env.NEXT_PUBLIC_fastify||"true"===process.env.fastify,dashboard:process.env.NEXT_PUBLIC_dashboard||process.env.dashboard||"",primaryApp:{apiKey:"AIzaSyC9UXTV6SbHEhz6IsH1juvkq_yHEmOf8PE",authDomain:"bikai-d5ee5.firebaseapp.com",databaseURL:"https://bikai-d5ee5.firebaseio.com",projectId:"bikai-d5ee5",storageBucket:"bikai-d5ee5.appspot.com",messagingSenderId:"960183660605",appId:"1:960183660605:web:b93c3b654d17c9e53d7a54"},secondaryApp:{apiKey:"AIzaSyA6Mi0Zii5CIimu2ogFH8wTLUYkCiDJE0E",authDomain:"bikayi-chat.firebaseapp.com",databaseURL:"https://bikayi-chat.firebaseio.com",projectId:"bikayi-chat",storageBucket:"bikayi-chat.appspot.com",messagingSenderId:"663068353804",appId:"1:663068353804:web:23c7b6577a1054f95e1529"},functionEndpoints:{US_FUNCTION_URL:"https://us-central1-bikai-d5ee5.cloudfunctions.net",ASIA_SOUTH_FUNCTION_URL:"https://asia-south1-bikai-d5ee5.cloudfunctions.net",FASTIFY_URL:"https://fastify-6nwaonxexq-el.a.run.app"},stagingApp:{apiKey:"AIzaSyD1PQW26YUKNpXWMEpj60czm1ZMfCOPl0M",authDomain:"staging-bikayi.firebaseapp.com",databaseURL:"https://staging-bikayi-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"staging-bikayi",storageBucket:"staging-bikayi.appspot.com",messagingSenderId:"99091183732",appId:"1:99091183732:web:d8f4b5df42e8d313dcb921",measurementId:"G-ST13VY8JYW"},stagingFunctionEndpoints:{US_FUNCTION_URL:"https://us-central1-staging-bikayi.cloudfunctions.net",ASIA_SOUTH_FUNCTION_URL:"https://asia-south1-staging-bikayi.cloudfunctions.net",FASTIFY_CAMPAIGN_URL:"https://fastify-staging-campaign-2adcfj52ea-el.a.run.app",FASTIFY_URL:"https://fastify-staging-2adcfj52ea-el.a.run.app"},googleCaptcha:{siteKey:"6LerMB4kAAAAALk6_3bXFlkV-H0QXIuESLigXVnd"},googleCaptchV3:{siteKey:"6LednlonAAAAADabMmQMGzBxxgD4qxOf8k3VqOR-"},totalFreeCredits:500,maxProductsToSync:5e3,menifestUrl:"https://getmanifest.ai/",contactNowCalendlyUrl:"https://calendly.com/help-84i",apiHeaders:{callerServiceName:"merchant-admin-react",callerServiceFunction:"merchant-admin-react"}};exports.environment=a;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../_virtual/_tslib.js"),s=require("./environment.js");function a(e){if(e&&e.__esModule)return e;var s=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var t=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(s,a,t.get?t:{enumerable:!0,get:function(){return e[a]}})}})),s.default=e,Object.freeze(s)}const t="secondaryApp",i={apiKey:"AIzaSyA6Mi0Zii5CIimu2ogFH8wTLUYkCiDJE0E",authDomain:"bikayi-chat.firebaseapp.com",databaseURL:"https://bikayi-chat.firebaseio.com",projectId:"bikayi-chat",storageBucket:"bikayi-chat.appspot.com",messagingSenderId:"663068353804",appId:"1:663068353804:web:23c7b6577a1054f95e1529"},n={apiKey:"AIzaSyD1PQW26YUKNpXWMEpj60czm1ZMfCOPl0M",authDomain:"staging-bikayi.firebaseapp.com",databaseURL:"https://staging-bikayi-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"staging-bikayi",storageBucket:"staging-bikayi.appspot.com",messagingSenderId:"99091183732",appId:"1:99091183732:web:d8f4b5df42e8d313dcb921"},o=s.environment.isStaging?n:i;let r=null;const c=()=>e.__awaiter(void 0,void 0,void 0,(function*(){if(console.log("environment: ",s.environment),console.log("process env: ",process.env),console.log("next public env: ",{NEXT_PUBLIC_staging:process.env.NEXT_PUBLIC_staging,NEXT_PUBLIC_fastify:process.env.NEXT_PUBLIC_fastify,NEXT_PUBLIC_dashboard:process.env.NEXT_PUBLIC_dashboard}),console.log("next public env using [] access: ",{NEXT_PUBLIC_staging:process.env.NEXT_PUBLIC_staging,NEXT_PUBLIC_fastify:process.env.NEXT_PUBLIC_fastify,NEXT_PUBLIC_dashboard:process.env.NEXT_PUBLIC_dashboard}),console.log("normal env: ",{NEXT_PUBLIC_staging:process.env.staging,NEXT_PUBLIC_fastify:process.env.fastify,NEXT_PUBLIC_dashboard:process.env.dashboard}),console.log("normal env using [] access: ",{NEXT_PUBLIC_staging:process.env.staging,NEXT_PUBLIC_fastify:process.env.fastify,NEXT_PUBLIC_dashboard:process.env.dashboard}),r)return r;const{getApp:e,getApps:i,initializeApp:n}=yield Promise.resolve().then((function(){return a(require("firebase/app"))})),c=i().find((e=>e.name===t));return console.log("Existing Firebase app: ",c),r=c?e(t):n(o,t),r}));exports.SECONDARY_APP_NAME=t,exports.chatConfig=i,exports.getOrInitFirebaseChatApp=c,exports.rnSecondaryAuth=()=>e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield c(),{getAuth:s}=yield Promise.resolve().then((function(){return a(require("firebase/auth"))}));return s(e)})),exports.stagingConfig=n;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../_virtual/_tslib.js"),t=require("./environment.js");function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(i){if("default"!==i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}})),t.default=e,Object.freeze(t)}const a="secondaryApp",n={apiKey:"AIzaSyA6Mi0Zii5CIimu2ogFH8wTLUYkCiDJE0E",authDomain:"bikayi-chat.firebaseapp.com",databaseURL:"https://bikayi-chat.firebaseio.com",projectId:"bikayi-chat",storageBucket:"bikayi-chat.appspot.com",messagingSenderId:"663068353804",appId:"1:663068353804:web:23c7b6577a1054f95e1529"},r={apiKey:"AIzaSyD1PQW26YUKNpXWMEpj60czm1ZMfCOPl0M",authDomain:"staging-bikayi.firebaseapp.com",databaseURL:"https://staging-bikayi-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"staging-bikayi",storageBucket:"staging-bikayi.appspot.com",messagingSenderId:"99091183732",appId:"1:99091183732:web:d8f4b5df42e8d313dcb921"};console.log("Using config:",t.environment.isStaging?"staging":"chat","value of environment.isStaging:",t.environment.isStaging,"type of environment.isStaging:",typeof t.environment.isStaging);const o=t.environment.isStaging?r:n;let s=null;const p=()=>e.__awaiter(void 0,void 0,void 0,(function*(){if(s)return s;const{getApp:e,getApps:t,initializeApp:n}=yield Promise.resolve().then((function(){return i(require("firebase/app"))})),r=t().find((e=>e.name===a));return s=r?e(a):n(o,a),s}));exports.SECONDARY_APP_NAME=a,exports.chatConfig=n,exports.getOrInitFirebaseChatApp=p,exports.rnSecondaryAuth=()=>e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield p(),{getAuth:t}=yield Promise.resolve().then((function(){return i(require("firebase/auth"))}));return t(e)})),exports.stagingConfig=r;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const Menus: ({
2
3
  displayName: string;
3
4
  key: number;
@@ -1,6 +1,6 @@
1
1
  export declare const environment: {
2
- isStaging: string | boolean;
3
- isFastifyEnabled: string | boolean;
2
+ isStaging: boolean;
3
+ isFastifyEnabled: boolean;
4
4
  dashboard: string;
5
5
  primaryApp: {
6
6
  apiKey: string;
@@ -1 +1 @@
1
- const a={isStaging:process.env.NEXT_PUBLIC_staging||"true"===process.env.staging,isFastifyEnabled:process.env.NEXT_PUBLIC_fastify||"true"===process.env.fastify,dashboard:process.env.NEXT_PUBLIC_dashboard||process.env.dashboard||"",primaryApp:{apiKey:"AIzaSyC9UXTV6SbHEhz6IsH1juvkq_yHEmOf8PE",authDomain:"bikai-d5ee5.firebaseapp.com",databaseURL:"https://bikai-d5ee5.firebaseio.com",projectId:"bikai-d5ee5",storageBucket:"bikai-d5ee5.appspot.com",messagingSenderId:"960183660605",appId:"1:960183660605:web:b93c3b654d17c9e53d7a54"},secondaryApp:{apiKey:"AIzaSyA6Mi0Zii5CIimu2ogFH8wTLUYkCiDJE0E",authDomain:"bikayi-chat.firebaseapp.com",databaseURL:"https://bikayi-chat.firebaseio.com",projectId:"bikayi-chat",storageBucket:"bikayi-chat.appspot.com",messagingSenderId:"663068353804",appId:"1:663068353804:web:23c7b6577a1054f95e1529"},functionEndpoints:{US_FUNCTION_URL:"https://us-central1-bikai-d5ee5.cloudfunctions.net",ASIA_SOUTH_FUNCTION_URL:"https://asia-south1-bikai-d5ee5.cloudfunctions.net",FASTIFY_URL:"https://fastify-6nwaonxexq-el.a.run.app"},stagingApp:{apiKey:"AIzaSyD1PQW26YUKNpXWMEpj60czm1ZMfCOPl0M",authDomain:"staging-bikayi.firebaseapp.com",databaseURL:"https://staging-bikayi-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"staging-bikayi",storageBucket:"staging-bikayi.appspot.com",messagingSenderId:"99091183732",appId:"1:99091183732:web:d8f4b5df42e8d313dcb921",measurementId:"G-ST13VY8JYW"},stagingFunctionEndpoints:{US_FUNCTION_URL:"https://us-central1-staging-bikayi.cloudfunctions.net",ASIA_SOUTH_FUNCTION_URL:"https://asia-south1-staging-bikayi.cloudfunctions.net",FASTIFY_CAMPAIGN_URL:"https://fastify-staging-campaign-2adcfj52ea-el.a.run.app",FASTIFY_URL:"https://fastify-staging-2adcfj52ea-el.a.run.app"},googleCaptcha:{siteKey:"6LerMB4kAAAAALk6_3bXFlkV-H0QXIuESLigXVnd"},googleCaptchV3:{siteKey:"6LednlonAAAAADabMmQMGzBxxgD4qxOf8k3VqOR-"},totalFreeCredits:500,maxProductsToSync:5e3,menifestUrl:"https://getmanifest.ai/",contactNowCalendlyUrl:"https://calendly.com/help-84i",apiHeaders:{callerServiceName:"merchant-admin-react",callerServiceFunction:"merchant-admin-react"}};export{a as environment};
1
+ const a={isStaging:"true"===process.env.NEXT_PUBLIC_staging||"true"===process.env.staging,isFastifyEnabled:"true"===process.env.NEXT_PUBLIC_fastify||"true"===process.env.fastify,dashboard:process.env.NEXT_PUBLIC_dashboard||process.env.dashboard||"",primaryApp:{apiKey:"AIzaSyC9UXTV6SbHEhz6IsH1juvkq_yHEmOf8PE",authDomain:"bikai-d5ee5.firebaseapp.com",databaseURL:"https://bikai-d5ee5.firebaseio.com",projectId:"bikai-d5ee5",storageBucket:"bikai-d5ee5.appspot.com",messagingSenderId:"960183660605",appId:"1:960183660605:web:b93c3b654d17c9e53d7a54"},secondaryApp:{apiKey:"AIzaSyA6Mi0Zii5CIimu2ogFH8wTLUYkCiDJE0E",authDomain:"bikayi-chat.firebaseapp.com",databaseURL:"https://bikayi-chat.firebaseio.com",projectId:"bikayi-chat",storageBucket:"bikayi-chat.appspot.com",messagingSenderId:"663068353804",appId:"1:663068353804:web:23c7b6577a1054f95e1529"},functionEndpoints:{US_FUNCTION_URL:"https://us-central1-bikai-d5ee5.cloudfunctions.net",ASIA_SOUTH_FUNCTION_URL:"https://asia-south1-bikai-d5ee5.cloudfunctions.net",FASTIFY_URL:"https://fastify-6nwaonxexq-el.a.run.app"},stagingApp:{apiKey:"AIzaSyD1PQW26YUKNpXWMEpj60czm1ZMfCOPl0M",authDomain:"staging-bikayi.firebaseapp.com",databaseURL:"https://staging-bikayi-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"staging-bikayi",storageBucket:"staging-bikayi.appspot.com",messagingSenderId:"99091183732",appId:"1:99091183732:web:d8f4b5df42e8d313dcb921",measurementId:"G-ST13VY8JYW"},stagingFunctionEndpoints:{US_FUNCTION_URL:"https://us-central1-staging-bikayi.cloudfunctions.net",ASIA_SOUTH_FUNCTION_URL:"https://asia-south1-staging-bikayi.cloudfunctions.net",FASTIFY_CAMPAIGN_URL:"https://fastify-staging-campaign-2adcfj52ea-el.a.run.app",FASTIFY_URL:"https://fastify-staging-2adcfj52ea-el.a.run.app"},googleCaptcha:{siteKey:"6LerMB4kAAAAALk6_3bXFlkV-H0QXIuESLigXVnd"},googleCaptchV3:{siteKey:"6LednlonAAAAADabMmQMGzBxxgD4qxOf8k3VqOR-"},totalFreeCredits:500,maxProductsToSync:5e3,menifestUrl:"https://getmanifest.ai/",contactNowCalendlyUrl:"https://calendly.com/help-84i",apiHeaders:{callerServiceName:"merchant-admin-react",callerServiceFunction:"merchant-admin-react"}};export{a as environment};
@@ -1 +1 @@
1
- import{__awaiter as s}from"../_virtual/_tslib.js";import{environment as a}from"./environment.js";const e="secondaryApp",i={apiKey:"AIzaSyA6Mi0Zii5CIimu2ogFH8wTLUYkCiDJE0E",authDomain:"bikayi-chat.firebaseapp.com",databaseURL:"https://bikayi-chat.firebaseio.com",projectId:"bikayi-chat",storageBucket:"bikayi-chat.appspot.com",messagingSenderId:"663068353804",appId:"1:663068353804:web:23c7b6577a1054f95e1529"},o={apiKey:"AIzaSyD1PQW26YUKNpXWMEpj60czm1ZMfCOPl0M",authDomain:"staging-bikayi.firebaseapp.com",databaseURL:"https://staging-bikayi-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"staging-bikayi",storageBucket:"staging-bikayi.appspot.com",messagingSenderId:"99091183732",appId:"1:99091183732:web:d8f4b5df42e8d313dcb921"},t=a.isStaging?o:i;let n=null;const p=()=>s(void 0,void 0,void 0,(function*(){if(console.log("environment: ",a),console.log("process env: ",process.env),console.log("next public env: ",{NEXT_PUBLIC_staging:process.env.NEXT_PUBLIC_staging,NEXT_PUBLIC_fastify:process.env.NEXT_PUBLIC_fastify,NEXT_PUBLIC_dashboard:process.env.NEXT_PUBLIC_dashboard}),console.log("next public env using [] access: ",{NEXT_PUBLIC_staging:process.env.NEXT_PUBLIC_staging,NEXT_PUBLIC_fastify:process.env.NEXT_PUBLIC_fastify,NEXT_PUBLIC_dashboard:process.env.NEXT_PUBLIC_dashboard}),console.log("normal env: ",{NEXT_PUBLIC_staging:process.env.staging,NEXT_PUBLIC_fastify:process.env.fastify,NEXT_PUBLIC_dashboard:process.env.dashboard}),console.log("normal env using [] access: ",{NEXT_PUBLIC_staging:process.env.staging,NEXT_PUBLIC_fastify:process.env.fastify,NEXT_PUBLIC_dashboard:process.env.dashboard}),n)return n;const{getApp:s,getApps:i,initializeApp:o}=yield import("firebase/app"),p=i().find((s=>s.name===e));return console.log("Existing Firebase app: ",p),n=p?s(e):o(t,e),n})),r=()=>s(void 0,void 0,void 0,(function*(){const s=yield p(),{getAuth:a}=yield import("firebase/auth");return a(s)}));export{e as SECONDARY_APP_NAME,i as chatConfig,p as getOrInitFirebaseChatApp,r as rnSecondaryAuth,o as stagingConfig};
1
+ import{__awaiter as i}from"../_virtual/_tslib.js";import{environment as a}from"./environment.js";const t="secondaryApp",e={apiKey:"AIzaSyA6Mi0Zii5CIimu2ogFH8wTLUYkCiDJE0E",authDomain:"bikayi-chat.firebaseapp.com",databaseURL:"https://bikayi-chat.firebaseio.com",projectId:"bikayi-chat",storageBucket:"bikayi-chat.appspot.com",messagingSenderId:"663068353804",appId:"1:663068353804:web:23c7b6577a1054f95e1529"},o={apiKey:"AIzaSyD1PQW26YUKNpXWMEpj60czm1ZMfCOPl0M",authDomain:"staging-bikayi.firebaseapp.com",databaseURL:"https://staging-bikayi-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"staging-bikayi",storageBucket:"staging-bikayi.appspot.com",messagingSenderId:"99091183732",appId:"1:99091183732:web:d8f4b5df42e8d313dcb921"};console.log("Using config:",a.isStaging?"staging":"chat","value of environment.isStaging:",a.isStaging,"type of environment.isStaging:",typeof a.isStaging);const n=a.isStaging?o:e;let s=null;const p=()=>i(void 0,void 0,void 0,(function*(){if(s)return s;const{getApp:i,getApps:a,initializeApp:e}=yield import("firebase/app"),o=a().find((i=>i.name===t));return s=o?i(t):e(n,t),s})),g=()=>i(void 0,void 0,void 0,(function*(){const i=yield p(),{getAuth:a}=yield import("firebase/auth");return a(i)}));export{t as SECONDARY_APP_NAME,e as chatConfig,p as getOrInitFirebaseChatApp,g as rnSecondaryAuth,o as stagingConfig};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.772-beta.0",
3
+ "version": "0.0.772-beta.1",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",