@staffbase/widget-sdk 3.4.0-beta.5 → 3.4.0-beta.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.
Files changed (70) hide show
  1. package/dist/base-block.d.ts +98 -0
  2. package/{index.d.ts → dist/base-block.js} +2 -11
  3. package/{lib/block-attributes.ts → dist/block-attributes.d.ts} +2 -3
  4. package/dist/block-attributes.js +13 -0
  5. package/dist/block-definition.d.ts +91 -0
  6. package/dist/block-definition.js +13 -0
  7. package/dist/block-element.d.ts +45 -0
  8. package/dist/block-element.js +13 -0
  9. package/{lib/block-factory.ts → dist/block-factory.d.ts} +2 -6
  10. package/dist/block-factory.js +13 -0
  11. package/{lib/external-block-definition.ts → dist/external-block-definition.d.ts} +15 -19
  12. package/dist/external-block-definition.js +13 -0
  13. package/{lib → dist}/global.d.ts +6 -9
  14. package/dist/global.js +13 -0
  15. package/dist/index.d.ts +9 -0
  16. package/dist/index.js +9 -0
  17. package/{lib/widget-api-types.ts → dist/widget-api-types.d.ts} +76 -99
  18. package/dist/widget-api-types.js +21 -0
  19. package/{lib/widget-api.ts → dist/widget-api.d.ts} +0 -7
  20. package/dist/widget-api.js +13 -0
  21. package/docs/.nojekyll +1 -0
  22. package/docs/BaseBlock.md +5887 -0
  23. package/docs/BlockAttributes.md +21 -0
  24. package/docs/BlockDefinition.md +167 -0
  25. package/docs/BlockElement.md +103 -0
  26. package/docs/ColorTheme.md +97 -0
  27. package/docs/ExternalBlockDefinition.md +58 -0
  28. package/docs/Home.md +56 -30
  29. package/docs/IntegrationInformation.md +70 -0
  30. package/docs/IntegrationState.md +41 -0
  31. package/docs/IntegrationToken.md +30 -0
  32. package/docs/SBColors.md +639 -0
  33. package/docs/SBFileType.md +74 -0
  34. package/docs/SBImageEntity.md +74 -0
  35. package/docs/SBUserAvatar.md +52 -0
  36. package/docs/SBUserProfile.md +96 -0
  37. package/docs/UserListItem.md +52 -0
  38. package/docs/UserListRequestQuery.md +52 -0
  39. package/docs/UserListResponse.md +52 -0
  40. package/docs/WidgetApi.md +142 -0
  41. package/docs/_Sidebar.md +2 -19
  42. package/package.json +22 -17
  43. package/.commitlintrc.json +0 -28
  44. package/.github/CODEOWNERS +0 -1
  45. package/.github/workflows/ci.yaml +0 -61
  46. package/.github/workflows/dependency-update.yml +0 -24
  47. package/.husky/commit-msg +0 -6
  48. package/.releaserc +0 -38
  49. package/CHANGELOG.md +0 -273
  50. package/CONTRIBUTING.md +0 -10
  51. package/catalog-info.yaml +0 -11
  52. package/docs/Interface: BaseBlock.md +0 -3226
  53. package/docs/Interface: BlockAttributes.md +0 -11
  54. package/docs/Interface: BlockDefinition.md +0 -117
  55. package/docs/Interface: BlockElement.md +0 -89
  56. package/docs/Interface: ColorTheme.md +0 -52
  57. package/docs/Interface: ExternalBlockDefinition.md +0 -38
  58. package/docs/Interface: SBColors.md +0 -354
  59. package/docs/Interface: SBFileType.md +0 -39
  60. package/docs/Interface: SBImageEntity.md +0 -39
  61. package/docs/Interface: SBUserAvatar.md +0 -27
  62. package/docs/Interface: SBUserProfile.md +0 -51
  63. package/docs/Interface: UserListItem.md +0 -27
  64. package/docs/Interface: UserListRequestQuery.md +0 -27
  65. package/docs/Interface: UserListResponse.md +0 -27
  66. package/docs/Interface: WidgetApi.md +0 -75
  67. package/lib/base-block.ts +0 -110
  68. package/lib/block-definition.ts +0 -101
  69. package/lib/block-element.ts +0 -56
  70. package/tsconfig.json +0 -13
@@ -0,0 +1,21 @@
1
+ # Interface: BlockAttributes
2
+
3
+ ## Indexable
4
+
5
+ ▪ [key: `string`]: `number` \| `boolean` \| `string`
6
+
7
+ ## Table of contents
8
+
9
+ ### Properties
10
+
11
+ - [contentLanguage](../wiki/BlockAttributes#contentlanguage)
12
+
13
+ ## Properties
14
+
15
+ ### contentLanguage
16
+
17
+ • **contentLanguage**: `string`
18
+
19
+ #### Defined in
20
+
21
+ [lib/block-attributes.ts:15](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-attributes.ts#L15)
@@ -0,0 +1,167 @@
1
+ # Interface: BlockDefinition<Factory\>
2
+
3
+ ## Type parameters
4
+
5
+ | Name | Type |
6
+ | :------ | :------ |
7
+ | `Factory` | [`BlockFactory`](../wiki/Home#blockfactory) |
8
+
9
+ ## Table of contents
10
+
11
+ ### Properties
12
+
13
+ - [attributes](../wiki/BlockDefinition#attributes)
14
+ - [blockLevel](../wiki/BlockDefinition#blocklevel)
15
+ - [configurationSchema](../wiki/BlockDefinition#configurationschema)
16
+ - [factory](../wiki/BlockDefinition#factory)
17
+ - [iconUrl](../wiki/BlockDefinition#iconurl)
18
+ - [label](../wiki/BlockDefinition#label)
19
+ - [name](../wiki/BlockDefinition#name)
20
+ - [options](../wiki/BlockDefinition#options)
21
+ - [uiSchema](../wiki/BlockDefinition#uischema)
22
+
23
+ ## Properties
24
+
25
+ ### attributes
26
+
27
+ • **attributes**: `string`[]
28
+
29
+ DOM attributes of the element, must be in kebab-case.
30
+
31
+ #### Defined in
32
+
33
+ [lib/block-definition.ts:40](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-definition.ts#L40)
34
+
35
+ ___
36
+
37
+ ### blockLevel
38
+
39
+ • `Optional` **blockLevel**: ``"block"`` \| ``"inline"``
40
+
41
+ Set to `inline` if you want the element to behave like a span element
42
+ rather than a div element if not specified, it defaults to `block`.
43
+
44
+ #### Defined in
45
+
46
+ [lib/block-definition.ts:46](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-definition.ts#L46)
47
+
48
+ ___
49
+
50
+ ### configurationSchema
51
+
52
+ • **configurationSchema**: `JSONSchema7`
53
+
54
+ Schema used for defining the configuration form.
55
+
56
+ **`example`**
57
+ ```json
58
+ {
59
+ "type": "object",
60
+ "required": [
61
+ "firstName",
62
+ "lastName"
63
+ ],
64
+ "properties": {
65
+ "firstName": {
66
+ "type": "string",
67
+ "title": "First name"
68
+ },
69
+ "lastName": {
70
+ "type": "string",
71
+ "title": "Last name"
72
+ }
73
+ }
74
+ }
75
+ ```
76
+
77
+ **`see`** https://react-jsonschema-form.readthedocs.io/en/latest/
78
+
79
+ #### Defined in
80
+
81
+ [lib/block-definition.ts:73](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-definition.ts#L73)
82
+
83
+ ___
84
+
85
+ ### factory
86
+
87
+ • **factory**: `Factory`
88
+
89
+ The implementation of the web component.
90
+
91
+ #### Defined in
92
+
93
+ [lib/block-definition.ts:30](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-definition.ts#L30)
94
+
95
+ ___
96
+
97
+ ### iconUrl
98
+
99
+ • `Optional` **iconUrl**: `string`
100
+
101
+ Icon displayed on the widget installation page.
102
+ We recommend an icon with the dimensions 32x32 px.
103
+
104
+ #### Defined in
105
+
106
+ [lib/block-definition.ts:100](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-definition.ts#L100)
107
+
108
+ ___
109
+
110
+ ### label
111
+
112
+ • `Optional` **label**: `string`
113
+
114
+ Label displayed in the settings dialog and in the default widget preview.
115
+
116
+ #### Defined in
117
+
118
+ [lib/block-definition.ts:94](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-definition.ts#L94)
119
+
120
+ ___
121
+
122
+ ### name
123
+
124
+ • **name**: `string`
125
+
126
+ The tag name of the widget. It must be compatible with
127
+ webcomponent naming conventions.
128
+
129
+ **`see`** https://www.webcomponents.org/community/articles/how-should-i-name-my-element
130
+
131
+ #### Defined in
132
+
133
+ [lib/block-definition.ts:25](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-definition.ts#L25)
134
+
135
+ ___
136
+
137
+ ### options
138
+
139
+ • `Optional` **options**: `ElementDefinitionOptions`
140
+
141
+ Can be used for extending from a built-in element.
142
+
143
+ #### Defined in
144
+
145
+ [lib/block-definition.ts:35](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-definition.ts#L35)
146
+
147
+ ___
148
+
149
+ ### uiSchema
150
+
151
+ • `Optional` **uiSchema**: `UiSchema`
152
+
153
+ Schema to add more customization to the look and feel of the configuration form.
154
+
155
+ ```json
156
+ {
157
+ "firstName": {
158
+ "ui:help": "Your first name."
159
+ }
160
+ }
161
+ ```
162
+
163
+ **`see`** https://react-jsonschema-form.readthedocs.io/en/latest/api-reference/uiSchema/
164
+
165
+ #### Defined in
166
+
167
+ [lib/block-definition.ts:89](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-definition.ts#L89)
@@ -0,0 +1,103 @@
1
+ # Interface: BlockElement
2
+
3
+ ## Table of contents
4
+
5
+ ### Methods
6
+
7
+ - [adoptedCallback](../wiki/BlockElement#adoptedcallback)
8
+ - [attributeChangedCallback](../wiki/BlockElement#attributechangedcallback)
9
+ - [connectedCallback](../wiki/BlockElement#connectedcallback)
10
+ - [disconnectedCallback](../wiki/BlockElement#disconnectedcallback)
11
+ - [unmount](../wiki/BlockElement#unmount)
12
+
13
+ ## Methods
14
+
15
+ ### adoptedCallback
16
+
17
+ ▸ **adoptedCallback**(): `void`
18
+
19
+ Invoked when the custom element is moved to a new document.
20
+
21
+ #### Returns
22
+
23
+ `void`
24
+
25
+ #### Defined in
26
+
27
+ [lib/block-element.ts:33](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-element.ts#L33)
28
+
29
+ ___
30
+
31
+ ### attributeChangedCallback
32
+
33
+ ▸ **attributeChangedCallback**(`attrName`, `oldValue`, `newValue`): `void`
34
+
35
+ Invoked when one of the attributes of the custom element is added, removed, or changed.
36
+
37
+ Note that you have to statically register the observed values with the 'observedAttributes' static getter.
38
+
39
+ #### Parameters
40
+
41
+ | Name | Type | Description |
42
+ | :------ | :------ | :------ |
43
+ | `attrName` | `string` | The changed attributes name |
44
+ | `oldValue` | `undefined` \| `string` | The old value |
45
+ | `newValue` | `undefined` \| `string` | The new value |
46
+
47
+ #### Returns
48
+
49
+ `void`
50
+
51
+ #### Defined in
52
+
53
+ [lib/block-element.ts:44](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-element.ts#L44)
54
+
55
+ ___
56
+
57
+ ### connectedCallback
58
+
59
+ ▸ **connectedCallback**(): `void`
60
+
61
+ Invoked when the custom element is first connected to the DOM.
62
+
63
+ #### Returns
64
+
65
+ `void`
66
+
67
+ #### Defined in
68
+
69
+ [lib/block-element.ts:23](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-element.ts#L23)
70
+
71
+ ___
72
+
73
+ ### disconnectedCallback
74
+
75
+ ▸ **disconnectedCallback**(): `void`
76
+
77
+ Invoked when the custom element is disconnected from the DOM.
78
+
79
+ #### Returns
80
+
81
+ `void`
82
+
83
+ #### Defined in
84
+
85
+ [lib/block-element.ts:28](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-element.ts#L28)
86
+
87
+ ___
88
+
89
+ ### unmount
90
+
91
+ ▸ **unmount**(): `void`
92
+
93
+ Method to unmount / revert any effects applied by rendering.
94
+ E.g. to be used in editor cases to remove any rendered content
95
+ and revert the block to its initial state.
96
+
97
+ #### Returns
98
+
99
+ `void`
100
+
101
+ #### Defined in
102
+
103
+ [lib/block-element.ts:55](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-element.ts#L55)
@@ -0,0 +1,97 @@
1
+ # Interface: ColorTheme
2
+
3
+ The color theme allows the widget to mimic the look
4
+ and feel of the Staffbase ecosystem it was added to.
5
+
6
+ ## Table of contents
7
+
8
+ ### Properties
9
+
10
+ - [bgColor](../wiki/ColorTheme#bgcolor)
11
+ - [bgColorDarkened1](../wiki/ColorTheme#bgcolordarkened1)
12
+ - [bgColorDarkened2](../wiki/ColorTheme#bgcolordarkened2)
13
+ - [bgColorDarkened2Opaque](../wiki/ColorTheme#bgcolordarkened2opaque)
14
+ - [bgColorLum](../wiki/ColorTheme#bgcolorlum)
15
+ - [colors](../wiki/ColorTheme#colors)
16
+ - [outlineColor](../wiki/ColorTheme#outlinecolor)
17
+ - [textColor](../wiki/ColorTheme#textcolor)
18
+
19
+ ## Properties
20
+
21
+ ### bgColor
22
+
23
+ • **bgColor**: `string`
24
+
25
+ #### Defined in
26
+
27
+ [lib/widget-api-types.ts:103](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L103)
28
+
29
+ ___
30
+
31
+ ### bgColorDarkened1
32
+
33
+ • `Optional` **bgColorDarkened1**: `string`
34
+
35
+ #### Defined in
36
+
37
+ [lib/widget-api-types.ts:106](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L106)
38
+
39
+ ___
40
+
41
+ ### bgColorDarkened2
42
+
43
+ • `Optional` **bgColorDarkened2**: `string`
44
+
45
+ #### Defined in
46
+
47
+ [lib/widget-api-types.ts:107](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L107)
48
+
49
+ ___
50
+
51
+ ### bgColorDarkened2Opaque
52
+
53
+ • `Optional` **bgColorDarkened2Opaque**: `string`
54
+
55
+ #### Defined in
56
+
57
+ [lib/widget-api-types.ts:108](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L108)
58
+
59
+ ___
60
+
61
+ ### bgColorLum
62
+
63
+ • `Optional` **bgColorLum**: `string`
64
+
65
+ #### Defined in
66
+
67
+ [lib/widget-api-types.ts:109](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L109)
68
+
69
+ ___
70
+
71
+ ### colors
72
+
73
+ • **colors**: [`SBColors`](../wiki/SBColors)
74
+
75
+ #### Defined in
76
+
77
+ [lib/widget-api-types.ts:105](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L105)
78
+
79
+ ___
80
+
81
+ ### outlineColor
82
+
83
+ • `Optional` **outlineColor**: `string`
84
+
85
+ #### Defined in
86
+
87
+ [lib/widget-api-types.ts:110](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L110)
88
+
89
+ ___
90
+
91
+ ### textColor
92
+
93
+ • **textColor**: `string`
94
+
95
+ #### Defined in
96
+
97
+ [lib/widget-api-types.ts:104](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L104)
@@ -0,0 +1,58 @@
1
+ # Interface: ExternalBlockDefinition<Factory\>
2
+
3
+ Defintion of the Widget.
4
+
5
+ Includes the implementation of the BlockDefinition
6
+ and meta information (author and version of the widget).
7
+
8
+ ## Type parameters
9
+
10
+ | Name | Type |
11
+ | :------ | :------ |
12
+ | `Factory` | [`BlockFactory`](../wiki/Home#blockfactory) |
13
+
14
+ ## Table of contents
15
+
16
+ ### Properties
17
+
18
+ - [author](../wiki/ExternalBlockDefinition#author)
19
+ - [blockDefinition](../wiki/ExternalBlockDefinition#blockdefinition)
20
+ - [version](../wiki/ExternalBlockDefinition#version)
21
+
22
+ ## Properties
23
+
24
+ ### author
25
+
26
+ • **author**: `string`
27
+
28
+ Name of the author.
29
+
30
+ #### Defined in
31
+
32
+ [lib/external-block-definition.ts:39](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/external-block-definition.ts#L39)
33
+
34
+ ___
35
+
36
+ ### blockDefinition
37
+
38
+ • **blockDefinition**: [`BlockDefinition`](../wiki/BlockDefinition)<`Factory`\>
39
+
40
+ Definition of the block.
41
+
42
+ Will be registered to the staffbase app.
43
+
44
+ #### Defined in
45
+
46
+ [lib/external-block-definition.ts:29](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/external-block-definition.ts#L29)
47
+
48
+ ___
49
+
50
+ ### version
51
+
52
+ • **version**: `string`
53
+
54
+ Current version of the widget.
55
+
56
+ #### Defined in
57
+
58
+ [lib/external-block-definition.ts:34](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/external-block-definition.ts#L34)
package/docs/Home.md CHANGED
@@ -2,39 +2,49 @@
2
2
 
3
3
  ## Table of contents
4
4
 
5
+ ### Enumerations
6
+
7
+ - [IntegrationState](../wiki/IntegrationState)
8
+
5
9
  ### Interfaces
6
10
 
7
- - [BaseBlock](../wiki/Interface:%20BaseBlock)
8
- - [BlockAttributes](../wiki/Interface:%20BlockAttributes)
9
- - [BlockDefinition](../wiki/Interface:%20BlockDefinition)
10
- - [BlockElement](../wiki/Interface:%20BlockElement)
11
- - [ColorTheme](../wiki/Interface:%20ColorTheme)
12
- - [ExternalBlockDefinition](../wiki/Interface:%20ExternalBlockDefinition)
13
- - [SBColors](../wiki/Interface:%20SBColors)
14
- - [SBFileType](../wiki/Interface:%20SBFileType)
15
- - [SBImageEntity](../wiki/Interface:%20SBImageEntity)
16
- - [SBUserAvatar](../wiki/Interface:%20SBUserAvatar)
17
- - [SBUserProfile](../wiki/Interface:%20SBUserProfile)
18
- - [UserListItem](../wiki/Interface:%20UserListItem)
19
- - [UserListRequestQuery](../wiki/Interface:%20UserListRequestQuery)
20
- - [UserListResponse](../wiki/Interface:%20UserListResponse)
21
- - [WidgetApi](../wiki/Interface:%20WidgetApi)
11
+ - [BaseBlock](../wiki/BaseBlock)
12
+ - [BlockAttributes](../wiki/BlockAttributes)
13
+ - [BlockDefinition](../wiki/BlockDefinition)
14
+ - [BlockElement](../wiki/BlockElement)
15
+ - [ColorTheme](../wiki/ColorTheme)
16
+ - [ExternalBlockDefinition](../wiki/ExternalBlockDefinition)
17
+ - [IntegrationInformation](../wiki/IntegrationInformation)
18
+ - [IntegrationToken](../wiki/IntegrationToken)
19
+ - [SBColors](../wiki/SBColors)
20
+ - [SBFileType](../wiki/SBFileType)
21
+ - [SBImageEntity](../wiki/SBImageEntity)
22
+ - [SBUserAvatar](../wiki/SBUserAvatar)
23
+ - [SBUserProfile](../wiki/SBUserProfile)
24
+ - [UserListItem](../wiki/UserListItem)
25
+ - [UserListRequestQuery](../wiki/UserListRequestQuery)
26
+ - [UserListResponse](../wiki/UserListResponse)
27
+ - [WidgetApi](../wiki/WidgetApi)
28
+
29
+ ### Type aliases
30
+
31
+ - [BlockFactory](../wiki/Home#blockfactory)
32
+ - [IntegrationType](../wiki/Home#integrationtype)
33
+ - [UserListSorting](../wiki/Home#userlistsorting)
22
34
 
23
35
  ## Type aliases
24
36
 
25
37
  ### BlockFactory
26
38
 
27
- Ƭ **BlockFactory**: (`Base`: () => [*BaseBlock*](../wiki/Interface:%20BaseBlock), `widgetApi`: [*WidgetApi*](../wiki/Interface:%20WidgetApi)) => CustomElementConstructor
39
+ Ƭ **BlockFactory**: (`Base`: () => [`BaseBlock`](../wiki/BaseBlock), `widgetApi`: [`WidgetApi`](../wiki/WidgetApi)) => `CustomElementConstructor`
28
40
 
29
- Factory for the custom widgets.
41
+ #### Type declaration
30
42
 
31
- **`param`** base class for the custom widgets to inherit from.
32
- The class itself is a subclass of `HTMLElement` of the relevant `window` object,
33
- with additional functionality.
43
+ (`Base`, `widgetApi`): `CustomElementConstructor`
34
44
 
35
- **`param`** API providing methods for additional information by the Staffbase framework
45
+ Factory for the custom widgets.
36
46
 
37
- **`example`**
47
+ **`example`**
38
48
  const factory: BlockFactory = Base => {
39
49
 
40
50
  return class CustomBlock extends Base {
@@ -46,18 +56,30 @@ with additional functionality.
46
56
  }
47
57
  };
48
58
 
49
- #### Type declaration:
59
+ ##### Parameters
50
60
 
51
- (`Base`: () => [*BaseBlock*](../wiki/Interface:%20BaseBlock), `widgetApi`: [*WidgetApi*](../wiki/Interface:%20WidgetApi)): CustomElementConstructor
61
+ | Name | Type | Description |
62
+ | :------ | :------ | :------ |
63
+ | `Base` | () => [`BaseBlock`](../wiki/BaseBlock) | base class for the custom widgets to inherit from. The class itself is a subclass of `HTMLElement` of the relevant `window` object, with additional functionality. |
64
+ | `widgetApi` | [`WidgetApi`](../wiki/WidgetApi) | API providing methods for additional information by the Staffbase framework |
52
65
 
53
- #### Parameters:
66
+ ##### Returns
54
67
 
55
- | Name | Type |
56
- | :------ | :------ |
57
- | `Base` | () => [*BaseBlock*](../wiki/Interface:%20BaseBlock) |
58
- | `widgetApi` | [*WidgetApi*](../wiki/Interface:%20WidgetApi) |
68
+ `CustomElementConstructor`
59
69
 
60
- **Returns:** CustomElementConstructor
70
+ #### Defined in
71
+
72
+ [lib/block-factory.ts:38](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/block-factory.ts#L38)
73
+
74
+ ___
75
+
76
+ ### IntegrationType
77
+
78
+ Ƭ **IntegrationType**: ``"ms365"``
79
+
80
+ #### Defined in
81
+
82
+ [lib/widget-api-types.ts:189](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L189)
61
83
 
62
84
  ___
63
85
 
@@ -72,3 +94,7 @@ The sorting order of the user list.
72
94
  **`param`** sort by date of creation descending
73
95
 
74
96
  **`param`** sort by date of last update descending
97
+
98
+ #### Defined in
99
+
100
+ [lib/widget-api-types.ts:156](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L156)
@@ -0,0 +1,70 @@
1
+ # Interface: IntegrationInformation
2
+
3
+ Information about the requested Integration target
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [enabledFeatures](../wiki/IntegrationInformation#enabledfeatures)
10
+ - [status](../wiki/IntegrationInformation#status)
11
+ - [supportedFeatures](../wiki/IntegrationInformation#supportedfeatures)
12
+ - [token](../wiki/IntegrationInformation#token)
13
+
14
+ ### Methods
15
+
16
+ - [signIn](../wiki/IntegrationInformation#signin)
17
+
18
+ ## Properties
19
+
20
+ ### enabledFeatures
21
+
22
+ • **enabledFeatures**: `string`[]
23
+
24
+ #### Defined in
25
+
26
+ [lib/widget-api-types.ts:218](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L218)
27
+
28
+ ___
29
+
30
+ ### status
31
+
32
+ • **status**: [`IntegrationState`](../wiki/IntegrationState)
33
+
34
+ #### Defined in
35
+
36
+ [lib/widget-api-types.ts:216](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L216)
37
+
38
+ ___
39
+
40
+ ### supportedFeatures
41
+
42
+ • **supportedFeatures**: `string`[]
43
+
44
+ #### Defined in
45
+
46
+ [lib/widget-api-types.ts:220](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L220)
47
+
48
+ ___
49
+
50
+ ### token
51
+
52
+ • `Optional` **token**: [`IntegrationToken`](../wiki/IntegrationToken)
53
+
54
+ #### Defined in
55
+
56
+ [lib/widget-api-types.ts:222](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L222)
57
+
58
+ ## Methods
59
+
60
+ ### signIn
61
+
62
+ ▸ `Optional` **signIn**(): `void`
63
+
64
+ #### Returns
65
+
66
+ `void`
67
+
68
+ #### Defined in
69
+
70
+ [lib/widget-api-types.ts:224](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L224)
@@ -0,0 +1,41 @@
1
+ # Enumeration: IntegrationState
2
+
3
+ All available states the integration can take
4
+
5
+ ## Table of contents
6
+
7
+ ### Enumeration members
8
+
9
+ - [AVAILABLE](../wiki/IntegrationState#available)
10
+ - [LOGGED\_OUT](../wiki/IntegrationState#logged_out)
11
+ - [UNAVAILABLE](../wiki/IntegrationState#unavailable)
12
+
13
+ ## Enumeration members
14
+
15
+ ### AVAILABLE
16
+
17
+ • **AVAILABLE** = `"available"`
18
+
19
+ #### Defined in
20
+
21
+ [lib/widget-api-types.ts:207](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L207)
22
+
23
+ ___
24
+
25
+ ### LOGGED\_OUT
26
+
27
+ • **LOGGED\_OUT** = `"loggedOut"`
28
+
29
+ #### Defined in
30
+
31
+ [lib/widget-api-types.ts:208](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L208)
32
+
33
+ ___
34
+
35
+ ### UNAVAILABLE
36
+
37
+ • **UNAVAILABLE** = `"unavailable"`
38
+
39
+ #### Defined in
40
+
41
+ [lib/widget-api-types.ts:206](https://github.com/Staffbase/widget-sdk/blob/7bb16cc/lib/widget-api-types.ts#L206)