@staffbase/widget-sdk 3.3.4 → 3.4.0-alpha.15
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/base-block.d.ts +98 -0
- package/{lib/block-attributes.ts → dist/block-attributes.d.ts} +2 -3
- package/dist/block-definition.d.ts +91 -0
- package/dist/block-element.d.ts +45 -0
- package/{lib/block-factory.ts → dist/block-factory.d.ts} +2 -6
- package/{lib/external-block-definition.ts → dist/external-block-definition.d.ts} +15 -19
- package/{lib → dist}/global.d.ts +6 -9
- package/dist/index.d.ts +9 -0
- package/{index.d.ts → dist/index.js} +9 -11
- package/dist/index.mjs +21 -0
- package/{lib/widget-api-types.ts → dist/widget-api-types.d.ts} +93 -76
- package/{lib/widget-api.ts → dist/widget-api.d.ts} +18 -8
- package/docs/.nojekyll +1 -0
- package/docs/BaseBlock.md +5887 -0
- package/docs/BlockAttributes.md +21 -0
- package/docs/BlockDefinition.md +167 -0
- package/docs/BlockElement.md +103 -0
- package/docs/ColorTheme.md +97 -0
- package/docs/ExternalBlockDefinition.md +58 -0
- package/docs/Home.md +87 -30
- package/docs/IntegrationInformation.md +70 -0
- package/docs/IntegrationToken.md +30 -0
- package/docs/SBColors.md +639 -0
- package/docs/SBFileType.md +74 -0
- package/docs/SBImageEntity.md +74 -0
- package/docs/SBUserAvatar.md +52 -0
- package/docs/SBUserProfile.md +96 -0
- package/docs/UserListItem.md +52 -0
- package/docs/UserListRequestQuery.md +52 -0
- package/docs/UserListResponse.md +52 -0
- package/docs/WidgetApi.md +142 -0
- package/docs/_Sidebar.md +2 -19
- package/package.json +24 -17
- package/.commitlintrc.json +0 -28
- package/.github/CODEOWNERS +0 -1
- package/.github/workflows/ci.yaml +0 -61
- package/.github/workflows/dependency-update.yml +0 -24
- package/.husky/commit-msg +0 -6
- package/.releaserc +0 -38
- package/CHANGELOG.md +0 -271
- package/CONTRIBUTING.md +0 -10
- package/catalog-info.yaml +0 -11
- package/docs/Interface: BaseBlock.md +0 -3226
- package/docs/Interface: BlockAttributes.md +0 -11
- package/docs/Interface: BlockDefinition.md +0 -117
- package/docs/Interface: BlockElement.md +0 -89
- package/docs/Interface: ColorTheme.md +0 -52
- package/docs/Interface: ExternalBlockDefinition.md +0 -38
- package/docs/Interface: SBColors.md +0 -354
- package/docs/Interface: SBFileType.md +0 -39
- package/docs/Interface: SBImageEntity.md +0 -39
- package/docs/Interface: SBUserAvatar.md +0 -27
- package/docs/Interface: SBUserProfile.md +0 -51
- package/docs/Interface: UserListItem.md +0 -27
- package/docs/Interface: UserListRequestQuery.md +0 -27
- package/docs/Interface: UserListResponse.md +0 -27
- package/docs/Interface: WidgetApi.md +0 -75
- package/lib/base-block.ts +0 -110
- package/lib/block-definition.ts +0 -101
- package/lib/block-element.ts +0 -56
- package/tsconfig.json +0 -13
|
@@ -10,10 +10,7 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and
|
|
11
11
|
* limitations under the License.
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
import { ColorTheme, SBUserProfile, UserListRequestQuery, UserListResponse } from './widget-api-types';
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
import { ColorTheme, IntegrationInformation, IntegrationType, SBUserProfile, UserListRequestQuery, UserListResponse } from './widget-api-types';
|
|
17
14
|
/**
|
|
18
15
|
* Widget API class.
|
|
19
16
|
*
|
|
@@ -27,7 +24,6 @@ export interface WidgetApi {
|
|
|
27
24
|
* @returns An object containing the color theme data is returned.
|
|
28
25
|
*/
|
|
29
26
|
getLegacyAppTheme(): ColorTheme;
|
|
30
|
-
|
|
31
27
|
/**
|
|
32
28
|
* Call to retrieve the user profile of the current or a specific user.
|
|
33
29
|
*
|
|
@@ -36,7 +32,6 @@ export interface WidgetApi {
|
|
|
36
32
|
* the promise is rejected.
|
|
37
33
|
*/
|
|
38
34
|
getUserInformation(userId?: string): Promise<SBUserProfile>;
|
|
39
|
-
|
|
40
35
|
/**
|
|
41
36
|
* Call to retrieve a user profile by its external ID.
|
|
42
37
|
*
|
|
@@ -45,7 +40,6 @@ export interface WidgetApi {
|
|
|
45
40
|
* the promise is rejected.
|
|
46
41
|
*/
|
|
47
42
|
getUserInformationByExternalId(externalId: string): Promise<SBUserProfile>;
|
|
48
|
-
|
|
49
43
|
/**
|
|
50
44
|
* Call to retrieve a list of users determined by the query object.
|
|
51
45
|
*
|
|
@@ -54,5 +48,21 @@ export interface WidgetApi {
|
|
|
54
48
|
* the promise is rejected.
|
|
55
49
|
*/
|
|
56
50
|
getUserList(query: UserListRequestQuery): Promise<UserListResponse>;
|
|
57
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Call to retrieve a valid token to access the Microsoft API. Includes a time value to
|
|
53
|
+
* refresh the token.
|
|
54
|
+
*
|
|
55
|
+
* @param type The name of the integration. ("ms365")
|
|
56
|
+
* @param refresh Force a refresh of the integration.
|
|
57
|
+
*
|
|
58
|
+
* @returns A promise containing the IntegrationInformation is returned. If the user session is
|
|
59
|
+
* not existing, the status is set to 'loggedOut' and the token is null. Additionally if the
|
|
60
|
+
* integration is not configured the status returns 'unavailable'.
|
|
61
|
+
*
|
|
62
|
+
* In case of an error, the promise is rejected.
|
|
63
|
+
*
|
|
64
|
+
* @deprecated Returns a IntegrationToken or null if the user is not logged in. This will be replaced
|
|
65
|
+
* completely by the IntegrationInformation, containing the token.
|
|
66
|
+
*/
|
|
67
|
+
getIntegration(type: IntegrationType, refresh?: boolean): Promise<IntegrationInformation>;
|
|
58
68
|
}
|
package/docs/.nojekyll
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|