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

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,9 +1,21 @@
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
+ (() => {
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
+ })();
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@staffbase/widget-sdk",
3
- "version": "3.4.0-beta.6",
3
+ "version": "3.4.0-beta.7",
4
4
  "description": "Staffbase SDK for Custom Widgets",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",
@@ -13,6 +13,7 @@
13
13
  "scripts": {
14
14
  "clean-doc": "npx rimraf docs",
15
15
  "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",
16
17
  "release": "semantic-release",
17
18
  "prepare": "husky install"
18
19
  },
@@ -28,6 +29,7 @@
28
29
  "@commitlint/config-conventional": "16.0.0",
29
30
  "@tmware/semantic-release-npm-github-publish": "1.5.0",
30
31
  "@types/react": "^17.0.38",
32
+ "esbuild": "0.14.20",
31
33
  "husky": "^7.0.4",
32
34
  "semantic-release": "^19.0.2",
33
35
  "typedoc": "0.22.11",
@@ -1,13 +0,0 @@
1
- /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- * Unless required by applicable law or agreed to in writing, software
8
- * distributed under the License is distributed on an "AS IS" BASIS,
9
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- * See the License for the specific language governing permissions and
11
- * limitations under the License.
12
- */
13
- export {};
@@ -1,13 +0,0 @@
1
- /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- * Unless required by applicable law or agreed to in writing, software
8
- * distributed under the License is distributed on an "AS IS" BASIS,
9
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- * See the License for the specific language governing permissions and
11
- * limitations under the License.
12
- */
13
- export {};
@@ -1,13 +0,0 @@
1
- /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- * Unless required by applicable law or agreed to in writing, software
8
- * distributed under the License is distributed on an "AS IS" BASIS,
9
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- * See the License for the specific language governing permissions and
11
- * limitations under the License.
12
- */
13
- export {};
@@ -1,13 +0,0 @@
1
- /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- * Unless required by applicable law or agreed to in writing, software
8
- * distributed under the License is distributed on an "AS IS" BASIS,
9
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- * See the License for the specific language governing permissions and
11
- * limitations under the License.
12
- */
13
- export {};
@@ -1,13 +0,0 @@
1
- /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- * Unless required by applicable law or agreed to in writing, software
8
- * distributed under the License is distributed on an "AS IS" BASIS,
9
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- * See the License for the specific language governing permissions and
11
- * limitations under the License.
12
- */
13
- export {};
@@ -1,13 +0,0 @@
1
- /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- * Unless required by applicable law or agreed to in writing, software
8
- * distributed under the License is distributed on an "AS IS" BASIS,
9
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- * See the License for the specific language governing permissions and
11
- * limitations under the License.
12
- */
13
- export {};
package/dist/global.js DELETED
@@ -1,13 +0,0 @@
1
- /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- * Unless required by applicable law or agreed to in writing, software
8
- * distributed under the License is distributed on an "AS IS" BASIS,
9
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- * See the License for the specific language governing permissions and
11
- * limitations under the License.
12
- */
13
- export {};
@@ -1,21 +0,0 @@
1
- /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- * Unless required by applicable law or agreed to in writing, software
8
- * distributed under the License is distributed on an "AS IS" BASIS,
9
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- * See the License for the specific language governing permissions and
11
- * limitations under the License.
12
- */
13
- /**
14
- * All available states the integration can take
15
- */
16
- export var IntegrationState;
17
- (function (IntegrationState) {
18
- IntegrationState["UNAVAILABLE"] = "unavailable";
19
- IntegrationState["AVAILABLE"] = "available";
20
- IntegrationState["LOGGED_OUT"] = "loggedOut";
21
- })(IntegrationState || (IntegrationState = {}));
@@ -1,13 +0,0 @@
1
- /*!
2
- * Copyright 2021, Staffbase GmbH and contributors.
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- * Unless required by applicable law or agreed to in writing, software
8
- * distributed under the License is distributed on an "AS IS" BASIS,
9
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- * See the License for the specific language governing permissions and
11
- * limitations under the License.
12
- */
13
- export {};