@archbee/app-widget 1.1.29 → 1.1.31

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.js CHANGED
@@ -321,7 +321,9 @@ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty
321
321
  source: 'https://github.com/zloirock/core-js'
322
322
  });
323
323
 
324
- var store$2 = sharedStore.exports;
324
+ var sharedStoreExports = sharedStore.exports;
325
+
326
+ var store$2 = sharedStoreExports;
325
327
 
326
328
  var shared$3 = function (key, value) {
327
329
  return store$2[key] || (store$2[key] = value || {});
@@ -563,7 +565,7 @@ var functionName = {
563
565
 
564
566
  var uncurryThis$5 = functionUncurryThis;
565
567
  var isCallable$6 = isCallable$c;
566
- var store$1 = sharedStore.exports;
568
+ var store$1 = sharedStoreExports;
567
569
 
568
570
  var functionToString = uncurryThis$5(Function.toString);
569
571
 
@@ -599,7 +601,7 @@ var global$3 = global$b;
599
601
  var isObject$2 = isObject$7;
600
602
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
601
603
  var hasOwn$6 = hasOwnProperty_1;
602
- var shared = sharedStore.exports;
604
+ var shared = sharedStoreExports;
603
605
  var sharedKey$2 = sharedKey$3;
604
606
  var hiddenKeys$3 = hiddenKeys$4;
605
607
 
@@ -720,9 +722,11 @@ Function.prototype.toString = makeBuiltIn$1(function toString() {
720
722
  return isCallable$4(this) && getInternalState(this).source || inspectSource(this);
721
723
  }, 'toString');
722
724
 
725
+ var makeBuiltInExports = makeBuiltIn$2.exports;
726
+
723
727
  var isCallable$3 = isCallable$c;
724
728
  var definePropertyModule$3 = objectDefineProperty;
725
- var makeBuiltIn = makeBuiltIn$2.exports;
729
+ var makeBuiltIn = makeBuiltInExports;
726
730
  var defineGlobalProperty$1 = defineGlobalProperty$3;
727
731
 
728
732
  var defineBuiltIn$1 = function (O, key, value, options) {
@@ -1173,6 +1177,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1173
1177
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1174
1178
  PERFORMANCE OF THIS SOFTWARE.
1175
1179
  ***************************************************************************** */
1180
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
1181
+
1176
1182
 
1177
1183
  function __rest(s, e) {
1178
1184
  var t = {};
@@ -1195,7 +1201,7 @@ const initScripts = () => {
1195
1201
  var _a;
1196
1202
  const widgetcsslink = document.createElement('link');
1197
1203
  const link = document.getElementsByTagName('link')[0];
1198
- const mainUrl = undefined;
1204
+ const mainUrl = "https://widget.archbee.com/v1";
1199
1205
  widgetcsslink['rel'] = 'stylesheet';
1200
1206
  widgetcsslink['href'] = `${mainUrl}/main.css`;
1201
1207
  if (!link) {
@@ -1205,14 +1211,14 @@ const initScripts = () => {
1205
1211
  };
1206
1212
  const initJsScripts = loadingStrategy => {
1207
1213
  var _a;
1208
- const mainUrl = undefined;
1214
+ const mainUrl = "https://widget.archbee.com/v1";
1209
1215
  let scripttag = document.createElement('script');
1210
1216
  scripttag['async'] = loadingStrategy === 'lazy';
1211
1217
  scripttag['src'] = `${mainUrl}/main.js`;
1212
1218
  const script = document.getElementsByTagName('script')[0];
1213
1219
  (_a = script === null || script === void 0 ? void 0 : script.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(scripttag, script);
1214
1220
  };
1215
- const createArchbeeWidget = (spaceId, jwt, shareableToken, loadingStrategy = 'lazy', bubble = 'invisible', bubblePlaceholder, anchor, hideNavbar = true) => {
1221
+ const createArchbeeWidget = (spaceId, jwt, shareableToken, loadingStrategy = 'lazy', bubble = 'invisible', bubblePlaceholder, anchor, hideNavbar) => {
1216
1222
  if (!window._archbee) {
1217
1223
  window._archbee = window._archbee || {
1218
1224
  queue: [],
@@ -1739,7 +1745,7 @@ const ArchbeeAppWidget = /*#__PURE__*/forwardRef((_a, ref) => {
1739
1745
  blockId,
1740
1746
  widgetType = 'docs',
1741
1747
  loadingStrategy = 'lazy',
1742
- hideNavbar = false,
1748
+ hideNavbar,
1743
1749
  onWidgetOpen,
1744
1750
  onWidgetClose,
1745
1751
  bubble,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archbee/app-widget",
3
- "version": "1.1.29",
3
+ "version": "1.1.31",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "author": {
@@ -37,5 +37,6 @@
37
37
  },
38
38
  "module": "./index.esm.js",
39
39
  "type": "module",
40
- "main": "./index.esm.js"
41
- }
40
+ "main": "./index.esm.js",
41
+ "types": "./index.esm.d.ts"
42
+ }
package/src/lib/main.d.ts CHANGED
@@ -4,16 +4,16 @@ type CommonWidgetData = Omit<AbWidgetData, 'spaceId' | 'isOpen' | 'eventType' |
4
4
  export declare const ArchbeeAppWidget: import("react").ForwardRefExoticComponent<{
5
5
  spaceId: string;
6
6
  user?: {
7
- [key: string]: any;
8
7
  id: string;
9
- email?: string | undefined;
10
- first_name?: string | undefined;
11
- last_name?: string | undefined;
12
- profile_image_url?: string | undefined;
13
- } | undefined;
14
- onWidgetOpen?: Function | undefined;
15
- onWidgetClose?: Function | undefined;
8
+ email?: string;
9
+ first_name?: string;
10
+ last_name?: string;
11
+ profile_image_url?: string;
12
+ [key: string]: any;
13
+ };
14
+ onWidgetOpen?: Function;
15
+ onWidgetClose?: Function;
16
16
  } & CommonWidgetData & HTMLAttributes<HTMLDivElement> & {
17
- children?: import("react").ReactNode;
17
+ children?: import("react").ReactNode | undefined;
18
18
  } & import("react").RefAttributes<AbWidgetRef>>;
19
19
  export {};