@staffbase/widget-sdk 3.10.2 → 3.10.3

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,5 +1,5 @@
1
1
  /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
2
+ * Copyright 2022, Staffbase GmbH and contributors.
3
3
  * Licensed under the Apache License, Version 2.0 (the "License");
4
4
  * you may not use this file except in compliance with the License.
5
5
  * You may obtain a copy of the License at
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
2
+ * Copyright 2022, Staffbase GmbH and contributors.
3
3
  * Licensed under the Apache License, Version 2.0 (the "License");
4
4
  * you may not use this file except in compliance with the License.
5
5
  * You may obtain a copy of the License at
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
2
+ * Copyright 2022, Staffbase GmbH and contributors.
3
3
  * Licensed under the Apache License, Version 2.0 (the "License");
4
4
  * you may not use this file except in compliance with the License.
5
5
  * You may obtain a copy of the License at
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
2
+ * Copyright 2022, Staffbase GmbH and contributors.
3
3
  * Licensed under the Apache License, Version 2.0 (the "License");
4
4
  * you may not use this file except in compliance with the License.
5
5
  * You may obtain a copy of the License at
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
2
+ * Copyright 2022, Staffbase GmbH and contributors.
3
3
  * Licensed under the Apache License, Version 2.0 (the "License");
4
4
  * you may not use this file except in compliance with the License.
5
5
  * You may obtain a copy of the License at
@@ -33,4 +33,4 @@ import { WidgetApi } from "./widget-api";
33
33
  * }
34
34
  * };
35
35
  */
36
- export declare type BlockFactory = (Base: new () => BaseBlock, widgetApi: WidgetApi) => CustomElementConstructor;
36
+ export type BlockFactory = (Base: new () => BaseBlock, widgetApi: WidgetApi) => CustomElementConstructor;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
2
+ * Copyright 2022, Staffbase GmbH and contributors.
3
3
  * Licensed under the Apache License, Version 2.0 (the "License");
4
4
  * you may not use this file except in compliance with the License.
5
5
  * You may obtain a copy of the License at
package/dist/global.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
2
+ * Copyright 2022, Staffbase GmbH and contributors.
3
3
  * Licensed under the Apache License, Version 2.0 (the "License");
4
4
  * you may not use this file except in compliance with the License.
5
5
  * You may obtain a copy of the License at
package/dist/index.js CHANGED
@@ -1,25 +1,21 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
6
  var __export = (target, all) => {
7
7
  for (var name in all)
8
8
  __defProp(target, name, { get: all[name], enumerable: true });
9
9
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
15
  }
16
- return target;
16
+ return to;
17
17
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
19
 
24
20
  // lib/index.ts
25
21
  var lib_exports = {};
@@ -27,6 +23,7 @@ __export(lib_exports, {
27
23
  IntegrationNames: () => IntegrationNames,
28
24
  IntegrationStates: () => IntegrationStates
29
25
  });
26
+ module.exports = __toCommonJS(lib_exports);
30
27
 
31
28
  // lib/widget-api-types.ts
32
29
  var IntegrationNames = /* @__PURE__ */ ((IntegrationNames2) => {
@@ -39,9 +36,8 @@ var IntegrationStates = {
39
36
  AVAILABLE: "available",
40
37
  LOGGED_OUT: "loggedOut"
41
38
  };
42
- module.exports = __toCommonJS(lib_exports);
43
39
  /*!
44
- * Copyright 2021, Staffbase GmbH and contributors.
40
+ * Copyright 2022, Staffbase GmbH and contributors.
45
41
  * Licensed under the Apache License, Version 2.0 (the "License");
46
42
  * you may not use this file except in compliance with the License.
47
43
  * You may obtain a copy of the License at
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ export {
14
14
  IntegrationStates
15
15
  };
16
16
  /*!
17
- * Copyright 2021, Staffbase GmbH and contributors.
17
+ * Copyright 2022, Staffbase GmbH and contributors.
18
18
  * Licensed under the Apache License, Version 2.0 (the "License");
19
19
  * you may not use this file except in compliance with the License.
20
20
  * You may obtain a copy of the License at
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
2
+ * Copyright 2022, Staffbase GmbH and contributors.
3
3
  * Licensed under the Apache License, Version 2.0 (the "License");
4
4
  * you may not use this file except in compliance with the License.
5
5
  * You may obtain a copy of the License at
@@ -140,7 +140,9 @@ export interface SBUserProfile {
140
140
  position?: string;
141
141
  avatar?: SBUserAvatar;
142
142
  department?: string;
143
+ /** The access needs to be enabled by Customer Success Manager */
143
144
  primaryEmail?: string;
145
+ /** The access needs to be enabled by Customer Success Manager */
144
146
  primaryUsername?: string;
145
147
  }
146
148
  /**
@@ -150,7 +152,7 @@ export interface SBUserProfile {
150
152
  * @param created sort by date of creation descending
151
153
  * @param updated sort by date of last update descending
152
154
  */
153
- export declare type UserListSorting = 'lastname' | 'created' | 'updated';
155
+ export type UserListSorting = 'lastname' | 'created' | 'updated';
154
156
  /**
155
157
  * User list request parameters
156
158
  */
@@ -178,7 +180,7 @@ export interface UserListResponse {
178
180
  limit: number;
179
181
  total: number;
180
182
  }
181
- export declare type IntegrationType = IntegrationNames.MS365 | IntegrationNames.GoogleWorkspace;
183
+ export type IntegrationType = IntegrationNames.MS365 | IntegrationNames.GoogleWorkspace;
182
184
  export declare enum IntegrationNames {
183
185
  MS365 = "ms365",
184
186
  GoogleWorkspace = "googleWorkspace"
@@ -198,7 +200,7 @@ export declare const IntegrationStates: {
198
200
  readonly AVAILABLE: "available";
199
201
  readonly LOGGED_OUT: "loggedOut";
200
202
  };
201
- export declare type IntegrationState = typeof IntegrationStates[keyof typeof IntegrationStates];
203
+ export type IntegrationState = typeof IntegrationStates[keyof typeof IntegrationStates];
202
204
  /**
203
205
  * Information about the requested Integration target
204
206
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
2
+ * Copyright 2022, Staffbase GmbH and contributors.
3
3
  * Licensed under the Apache License, Version 2.0 (the "License");
4
4
  * you may not use this file except in compliance with the License.
5
5
  * You may obtain a copy of the License at
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staffbase/widget-sdk",
3
- "version": "3.10.2",
3
+ "version": "3.10.3",
4
4
  "description": "Staffbase SDK for Custom Widgets",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -26,17 +26,17 @@
26
26
  "@types/json-schema": "^7.0.9"
27
27
  },
28
28
  "devDependencies": {
29
- "@amanda-mitchell/semantic-release-npm-multiple": "2.17.0",
30
- "@commitlint/cli": "16.1.0",
31
- "@commitlint/config-conventional": "16.0.0",
32
- "@tmware/semantic-release-npm-github-publish": "1.5.0",
29
+ "@amanda-mitchell/semantic-release-npm-multiple": "3.8.0",
30
+ "@commitlint/cli": "17.5.1",
31
+ "@commitlint/config-conventional": "17.4.4",
32
+ "@tmware/semantic-release-npm-github-publish": "1.5.5",
33
33
  "@types/react": "^17.0.38",
34
- "esbuild": "0.14.20",
35
- "husky": "^7.0.4",
34
+ "esbuild": "0.17.15",
35
+ "husky": "^8.0.3",
36
36
  "semantic-release": "^19.0.2",
37
- "typedoc": "0.22.11",
38
- "typedoc-github-wiki-theme": "1.0.0",
39
- "typedoc-plugin-markdown": "3.11.12",
37
+ "typedoc": "0.23.28",
38
+ "typedoc-github-wiki-theme": "1.0.1",
39
+ "typedoc-plugin-markdown": "3.14.0",
40
40
  "typescript": "^4.5.5"
41
41
  },
42
42
  "repository": {
File without changes