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

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.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export * from './base-block.js';
2
- export * from './block-attributes.js';
3
- export * from './block-definition.js';
4
- export * from './block-element.js';
5
- export * from './block-factory.js';
6
- export * from './external-block-definition.js';
7
- export * from './widget-api-types.js';
8
- export * from './widget-api.js';
9
- export * from './global.js';
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/dist/index.js CHANGED
@@ -1,12 +1,4 @@
1
- (() => {
2
- // lib/widget-api-types.ts
3
- var IntegrationState = /* @__PURE__ */ ((IntegrationState2) => {
4
- IntegrationState2["UNAVAILABLE"] = "unavailable";
5
- IntegrationState2["AVAILABLE"] = "available";
6
- IntegrationState2["LOGGED_OUT"] = "loggedOut";
7
- return IntegrationState2;
8
- })(IntegrationState || {});
9
- })();
1
+ (()=>{var e={UNAVAILABLE:"unavailable",AVAILABLE:"available",LOGGED_OUT:"loggedOut"};})();
10
2
  /*!
11
3
  * Copyright 2021, Staffbase GmbH and contributors.
12
4
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -185,11 +185,12 @@ export interface IntegrationToken {
185
185
  /**
186
186
  * All available states the integration can take
187
187
  */
188
- export declare enum IntegrationState {
189
- UNAVAILABLE = "unavailable",
190
- AVAILABLE = "available",
191
- LOGGED_OUT = "loggedOut"
192
- }
188
+ export declare const IntegrationStates: {
189
+ readonly UNAVAILABLE: "unavailable";
190
+ readonly AVAILABLE: "available";
191
+ readonly LOGGED_OUT: "loggedOut";
192
+ };
193
+ export declare type IntegrationState = typeof IntegrationStates[keyof typeof IntegrationStates];
193
194
  /**
194
195
  * Information about the requested Integration target
195
196
  */
package/package.json CHANGED
@@ -1,19 +1,17 @@
1
1
  {
2
2
  "name": "@staffbase/widget-sdk",
3
- "version": "3.4.0-beta.7",
3
+ "version": "3.4.0-beta.8",
4
4
  "description": "Staffbase SDK for Custom Widgets",
5
- "module": "./dist/index.js",
6
5
  "main": "./dist/index.js",
7
6
  "exports": "./dist/index.js",
8
7
  "typings": "./dist/index.d.ts",
9
- "type": "module",
10
8
  "keywords": [
11
9
  "web-components"
12
10
  ],
13
11
  "scripts": {
14
12
  "clean-doc": "npx rimraf docs",
15
13
  "doc": "npm run clean-doc && typedoc --theme github-wiki --readme none --out docs lib/index.ts",
16
- "build": "npx tsc & npx esbuild lib/index.ts --bundle --outfile=dist/index.js",
14
+ "build": "npx tsc & npx esbuild lib/index.ts --minify --bundle --outfile=dist/index.js",
17
15
  "release": "semantic-release",
18
16
  "prepare": "husky install"
19
17
  },