@staffbase/widget-sdk 3.4.0-beta.8 → 3.4.0-beta.9

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
@@ -1,4 +1,11 @@
1
- (()=>{var e={UNAVAILABLE:"unavailable",AVAILABLE:"available",LOGGED_OUT:"loggedOut"};})();
1
+ (() => {
2
+ // lib/widget-api-types.ts
3
+ var IntegrationStates = {
4
+ UNAVAILABLE: "unavailable",
5
+ AVAILABLE: "available",
6
+ LOGGED_OUT: "loggedOut"
7
+ };
8
+ })();
2
9
  /*!
3
10
  * Copyright 2021, Staffbase GmbH and contributors.
4
11
  * Licensed under the Apache License, Version 2.0 (the "License");
package/dist/index.mjs ADDED
@@ -0,0 +1,21 @@
1
+ // lib/widget-api-types.ts
2
+ var IntegrationStates = {
3
+ UNAVAILABLE: "unavailable",
4
+ AVAILABLE: "available",
5
+ LOGGED_OUT: "loggedOut"
6
+ };
7
+ export {
8
+ IntegrationStates
9
+ };
10
+ /*!
11
+ * Copyright 2021, Staffbase GmbH and contributors.
12
+ * Licensed under the Apache License, Version 2.0 (the "License");
13
+ * you may not use this file except in compliance with the License.
14
+ * You may obtain a copy of the License at
15
+ * http://www.apache.org/licenses/LICENSE-2.0
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
package/package.json CHANGED
@@ -1,17 +1,19 @@
1
1
  {
2
2
  "name": "@staffbase/widget-sdk",
3
- "version": "3.4.0-beta.8",
3
+ "version": "3.4.0-beta.9",
4
4
  "description": "Staffbase SDK for Custom Widgets",
5
5
  "main": "./dist/index.js",
6
6
  "exports": "./dist/index.js",
7
- "typings": "./dist/index.d.ts",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "type": "module",
8
10
  "keywords": [
9
11
  "web-components"
10
12
  ],
11
13
  "scripts": {
12
14
  "clean-doc": "npx rimraf docs",
13
15
  "doc": "npm run clean-doc && typedoc --theme github-wiki --readme none --out docs lib/index.ts",
14
- "build": "npx tsc & npx esbuild lib/index.ts --minify --bundle --outfile=dist/index.js",
16
+ "build": "npx tsc & npx esbuild lib/index.ts --bundle --outfile=dist/index.js & npx esbuild lib/index.ts --bundle --format=esm --outfile=dist/index.mjs",
15
17
  "release": "semantic-release",
16
18
  "prepare": "husky install"
17
19
  },