@staffbase/widget-sdk 3.13.0-alpha.27 → 3.13.0-alpha.6

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/dist/index.js CHANGED
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // lib/index.ts
21
- var lib_exports = {};
22
- __export(lib_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  IntegrationNames: () => IntegrationNames,
24
24
  IntegrationStates: () => IntegrationStates
25
25
  });
26
- module.exports = __toCommonJS(lib_exports);
26
+ module.exports = __toCommonJS(index_exports);
27
27
 
28
28
  // lib/widget-api-types.ts
29
29
  var IntegrationNames = /* @__PURE__ */ ((IntegrationNames2) => {
@@ -140,6 +140,7 @@ export interface SBUserProfile {
140
140
  position?: string;
141
141
  avatar?: SBUserAvatar;
142
142
  department?: string;
143
+ groupIDs?: string[];
143
144
  /** The access needs to be enabled by Customer Success Manager */
144
145
  primaryEmail?: string;
145
146
  /** The access needs to be enabled by Customer Success Manager */
@@ -214,3 +215,11 @@ export interface IntegrationInformation {
214
215
  token?: IntegrationToken;
215
216
  signIn?: () => void;
216
217
  }
218
+ /**
219
+ * Branch information
220
+ */
221
+ export interface BranchInformation {
222
+ slug: string;
223
+ branchId: string;
224
+ webUrl: string;
225
+ }
@@ -10,7 +10,7 @@
10
10
  * See the License for the specific language governing permissions and
11
11
  * limitations under the License.
12
12
  */
13
- import { ColorTheme, IntegrationInformation, IntegrationType, SBUserProfile, UserListRequestQuery, UserListResponse } from './widget-api-types';
13
+ import { BranchInformation, ColorTheme, IntegrationInformation, IntegrationType, SBUserProfile, UserListRequestQuery, UserListResponse } from './widget-api-types';
14
14
  /**
15
15
  * Widget API class.
16
16
  *
@@ -61,4 +61,10 @@ export interface WidgetApi {
61
61
  * In case of an error, the promise is rejected.
62
62
  */
63
63
  getIntegration(type: IntegrationType): Promise<IntegrationInformation>;
64
+ /**
65
+ * Call to retrieve information about the current branch.
66
+ *
67
+ * @returns An object containing the branch information.
68
+ */
69
+ getBranchInformation(): BranchInformation;
64
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staffbase/widget-sdk",
3
- "version": "3.13.0-alpha.27",
3
+ "version": "3.13.0-alpha.6",
4
4
  "description": "Staffbase SDK for Custom Widgets",
5
5
  "homepage": "https://developers.staffbase.com/frameworks/customwidget-development",
6
6
  "main": "./dist/index.js",
@@ -11,43 +11,36 @@
11
11
  "web-components"
12
12
  ],
13
13
  "exports": {
14
+ "types": "./dist/index.d.ts",
14
15
  "import": "./dist/index.mjs",
15
16
  "require": "./dist/index.js"
16
17
  },
17
18
  "scripts": {
18
- "doc": "typedoc --theme github-wiki --readme none --out docs lib/index.ts",
19
+ "doc": "typedoc --readme none --out docs lib/index.ts",
19
20
  "build": "npx tsc & npx esbuild lib/index.ts --bundle --format=cjs --outfile=dist/index.js & npx esbuild lib/index.ts --bundle --format=esm --outfile=dist/index.mjs",
20
- "prepare": "husky install"
21
+ "prepare": "husky"
21
22
  },
22
23
  "license": "Apache-2.0",
23
24
  "author": "Staffbase",
24
25
  "dependencies": {
25
- "@rjsf/core": "^5.13.6",
26
- "@rjsf/utils": "^5.13.6",
26
+ "@rjsf/core": "^5.24.7",
27
+ "@rjsf/utils": "^5.24.7",
27
28
  "@types/json-schema": "^7.0.9"
28
29
  },
29
30
  "devDependencies": {
30
- "@amanda-mitchell/semantic-release-npm-multiple": "3.9.0",
31
- "@commitlint/cli": "17.5.1",
32
- "@commitlint/config-conventional": "17.4.4",
33
- "@types/react": "^17.0.38",
34
- "esbuild": "0.23.1",
35
- "husky": "^8.0.3",
36
- "semantic-release": "^19.0.5",
37
- "typedoc": "0.26.6",
38
- "typedoc-github-wiki-theme": "1.0.1",
39
- "typedoc-plugin-markdown": "3.14.0",
40
- "typescript": "^4.5.5"
31
+ "@commitlint/cli": "20.0.0",
32
+ "@commitlint/config-conventional": "19.8.1",
33
+ "@types/node": "^24.6.2",
34
+ "@types/react": "^19.2.0",
35
+ "esbuild": "0.25.10",
36
+ "husky": "^9.1.7",
37
+ "typedoc": "0.28.13",
38
+ "typedoc-github-wiki-theme": "2.1.0",
39
+ "typedoc-plugin-markdown": "4.9.0",
40
+ "typescript": "^5.9.3"
41
41
  },
42
42
  "repository": {
43
43
  "type": "git",
44
44
  "url": "git+https://github.com/Staffbase/widget-sdk.git"
45
- },
46
- "engines": {
47
- "node": ">= 14",
48
- "npm": ">= 7"
49
- },
50
- "resolutions": {
51
- "semantic-release": "^19.0.2"
52
45
  }
53
46
  }