@staffbase/widget-sdk 3.17.1 → 3.18.0

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.
@@ -0,0 +1,9 @@
1
+ export * from './base-block';
2
+ export * from './block-attributes';
3
+ export * from './block-definition';
4
+ export * from './block-element';
5
+ export * from './block-factory';
6
+ export * from './external-block-definition';
7
+ export * from './widget-api-types';
8
+ export * from './widget-api';
9
+ export * from './global';
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@staffbase/widget-sdk",
3
- "version": "3.17.1",
3
+ "version": "3.18.0",
4
4
  "description": "Staffbase SDK for Custom Widgets",
5
5
  "homepage": "https://developers.staffbase.com/frameworks/customwidget-development",
6
- "main": "./dist/index.js",
6
+ "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.mjs",
8
8
  "types": "./dist/index.d.ts",
9
9
  "type": "module",
@@ -11,13 +11,19 @@
11
11
  "web-components"
12
12
  ],
13
13
  "exports": {
14
- "types": "./dist/index.d.ts",
15
- "import": "./dist/index.mjs",
16
- "require": "./dist/index.js"
14
+ "import": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.mjs"
17
+ },
18
+ "require": {
19
+ "types": "./dist/index.d.cts",
20
+ "default": "./dist/index.cjs"
21
+ }
17
22
  },
18
23
  "scripts": {
19
24
  "doc": "typedoc --readme none --out docs lib/index.ts",
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",
25
+ "build": "npx tsc && npx esbuild lib/index.ts --bundle --format=cjs --outfile=dist/index.cjs & npx esbuild lib/index.ts --bundle --format=esm --outfile=dist/index.mjs & wait && cp dist/index.d.ts dist/index.d.cts",
26
+ "lint:publint": "publint",
21
27
  "prepare": "husky"
22
28
  },
23
29
  "license": "Apache-2.0",
@@ -28,16 +34,17 @@
28
34
  "@types/json-schema": "^7.0.9"
29
35
  },
30
36
  "devDependencies": {
31
- "@commitlint/cli": "20.5.0",
32
- "@commitlint/config-conventional": "20.5.0",
37
+ "@commitlint/cli": "20.5.3",
38
+ "@commitlint/config-conventional": "20.5.3",
33
39
  "@types/node": "^25.3.0",
34
40
  "@types/react": "^19.2.0",
35
- "esbuild": "0.27.4",
41
+ "esbuild": "0.28.0",
36
42
  "husky": "^9.1.7",
37
- "typedoc": "0.28.17",
43
+ "publint": "^0.3.15",
44
+ "typedoc": "0.28.19",
38
45
  "typedoc-github-wiki-theme": "2.1.0",
39
- "typedoc-plugin-markdown": "4.10.0",
40
- "typescript": "^5.9.3"
46
+ "typedoc-plugin-markdown": "4.11.0",
47
+ "typescript": "^6.0.3"
41
48
  },
42
49
  "repository": {
43
50
  "type": "git",
File without changes