@livetiles/reach-plugin-types 0.4.97 → 0.4.99
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/lib/index.d.ts +33 -24
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2192,6 +2192,14 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
|
|
|
2192
2192
|
draftCount: number;
|
|
2193
2193
|
}
|
|
2194
2194
|
}
|
|
2195
|
+
declare module "libs/reach/util/api-factory/src/apiUtils" {
|
|
2196
|
+
import { EnvironmentConfig } from "libs/shared/util/environment/src/index";
|
|
2197
|
+
type headerType = {
|
|
2198
|
+
[key: string]: any;
|
|
2199
|
+
};
|
|
2200
|
+
export function addInformationalHeaders(env: EnvironmentConfig, initialHeaders?: headerType): headerType;
|
|
2201
|
+
export function getAuthorizationHeaders(token: string, subscriptionId?: string): headerType;
|
|
2202
|
+
}
|
|
2195
2203
|
declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
|
|
2196
2204
|
import { Api } from 'restful.js';
|
|
2197
2205
|
import { EnvironmentConfig } from "libs/shared/util/environment/src/index";
|
|
@@ -2212,9 +2220,6 @@ declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
|
|
|
2212
2220
|
}) => string;
|
|
2213
2221
|
fetchFromApi: (url: string, config?: RequestInit) => Promise<Response>;
|
|
2214
2222
|
}
|
|
2215
|
-
export function fetchFromApi(appConfig: {
|
|
2216
|
-
apiEndpoint: string;
|
|
2217
|
-
}, env: EnvironmentConfig, url: string, config?: RequestInit): Promise<Response>;
|
|
2218
2223
|
}
|
|
2219
2224
|
declare module "libs/reach/util/api-factory/src/useApi" {
|
|
2220
2225
|
import { Api } from 'restful.js';
|
|
@@ -2242,6 +2247,7 @@ declare module "libs/reach/util/api-factory/src/index" {
|
|
|
2242
2247
|
export * from "libs/reach/util/api-factory/src/useApi";
|
|
2243
2248
|
export * from "libs/reach/util/api-factory/src/useBeaconHandler";
|
|
2244
2249
|
export * from "libs/reach/util/api-factory/src/gql/GraphQlClientProvider";
|
|
2250
|
+
export * from "libs/reach/util/api-factory/src/apiUtils";
|
|
2245
2251
|
}
|
|
2246
2252
|
declare module "libs/reach/util/common/src/user/UserUtils" {
|
|
2247
2253
|
import { CurrentUser, GroupRoles, UserGroup, UserSummary } from "libs/reach/util/common/src/user/User";
|
|
@@ -2312,7 +2318,8 @@ declare module "libs/reach/util/common/src/content/Attachment" {
|
|
|
2312
2318
|
Event = 5,
|
|
2313
2319
|
Page = 6,
|
|
2314
2320
|
Post = 7,
|
|
2315
|
-
Giphy = 8
|
|
2321
|
+
Giphy = 8,
|
|
2322
|
+
MicrosoftStreamVideo = 9
|
|
2316
2323
|
}
|
|
2317
2324
|
export interface BaseAttachment {
|
|
2318
2325
|
id: string;
|
|
@@ -2344,7 +2351,8 @@ declare module "libs/reach/util/common/src/content/GraphQLAttachmentType" {
|
|
|
2344
2351
|
Event = "EVENT",
|
|
2345
2352
|
Page = "PAGE",
|
|
2346
2353
|
Post = "POST",
|
|
2347
|
-
Giphy = "GIPHY"
|
|
2354
|
+
Giphy = "GIPHY",
|
|
2355
|
+
MicrosoftStreamVideo = "MICROSOFT_STREAM_VIDEO"
|
|
2348
2356
|
}
|
|
2349
2357
|
}
|
|
2350
2358
|
declare module "libs/reach/util/common/src/content/ItemWithAttachments" {
|
|
@@ -5123,8 +5131,7 @@ declare module "libs/reach/ui/common/src/common/toolbar/ToolbarEventViewSelector
|
|
|
5123
5131
|
export const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
5124
5132
|
}
|
|
5125
5133
|
declare module "libs/reach/ui/common/src/common/useAttachmentsApi" {
|
|
5126
|
-
import { ChatMessage } from "libs/reach/util/common/src/index";
|
|
5127
|
-
import { ItemWithAttachments } from "libs/reach/util/common/src/index";
|
|
5134
|
+
import { ChatMessage, ItemWithAttachments } from "libs/reach/util/common/src/index";
|
|
5128
5135
|
export function useAttachmentsApi(): {
|
|
5129
5136
|
uploadImage: (basePath: string, subscriptionId: string, imageId: string, containerId: string, file: File) => Promise<Response>;
|
|
5130
5137
|
uploadFile: (basePath: string, subscriptionId: string, fileId: string, containerId: string, file: File) => Promise<Response>;
|
|
@@ -5637,11 +5644,7 @@ declare module "apps/reach-app/src/app/admin/customization/HandleVerifier" {
|
|
|
5637
5644
|
}
|
|
5638
5645
|
declare module "apps/reach-app/src/app/admin/useSubscriptionAdminApi" {
|
|
5639
5646
|
import { ValidationResult } from "apps/reach-app/src/app/admin/customization/HandleVerifier";
|
|
5640
|
-
import { AdminSubscription, DirectoryConfigurationPatch, LinkDirectoryResult,
|
|
5641
|
-
import { Account } from "libs/reach/util/common/src/index";
|
|
5642
|
-
import { Language } from "libs/reach/util/common/src/index";
|
|
5643
|
-
import { Audience } from "libs/reach/util/common/src/index";
|
|
5644
|
-
import { UserSummary } from "libs/reach/util/common/src/index";
|
|
5647
|
+
import { Account, AdminSubscription, Audience, DirectoryConfigurationPatch, Language, LinkDirectoryResult, LogoSize, TermsAndConditions, Theme, UserSummary } from "libs/reach/util/common/src/index";
|
|
5645
5648
|
export function useSubscriptionAdminApi(): {
|
|
5646
5649
|
getAdminSubscription: () => Promise<AdminSubscription>;
|
|
5647
5650
|
setContact: (account: Account) => Promise<Account>;
|
|
@@ -7542,11 +7545,15 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
|
7542
7545
|
import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
|
|
7543
7546
|
import { VideoSource as VideoSourceEnvironment } from "libs/shared/util/environment/src/index";
|
|
7544
7547
|
export interface KalturaProperties {
|
|
7545
|
-
sp
|
|
7546
|
-
uiconfId
|
|
7547
|
-
partnerId
|
|
7548
|
-
entryId
|
|
7548
|
+
sp: string;
|
|
7549
|
+
uiconfId: string;
|
|
7550
|
+
partnerId: string;
|
|
7551
|
+
entryId: string;
|
|
7549
7552
|
}
|
|
7553
|
+
export interface MicrosoftStreamProperties {
|
|
7554
|
+
isSharePoint: boolean;
|
|
7555
|
+
}
|
|
7556
|
+
export type TVideoProperties = KalturaProperties | MicrosoftStreamProperties;
|
|
7550
7557
|
export const showPlayerForGenericVideoSource: (url: string, additionalVideoSources?: VideoSourceEnvironment[]) => boolean;
|
|
7551
7558
|
export class VideoUrlParser {
|
|
7552
7559
|
private url;
|
|
@@ -7554,14 +7561,15 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
|
7554
7561
|
private static ytRegex;
|
|
7555
7562
|
private static vimeoRegex;
|
|
7556
7563
|
private static microsoftStreamRegex;
|
|
7564
|
+
private static microsoftStreamSharepointRegex;
|
|
7557
7565
|
private static vimeoDirectLinkRegex;
|
|
7558
7566
|
private static vimeoRedirectLinkRegex;
|
|
7559
7567
|
private static kalturaRegex;
|
|
7560
7568
|
readonly source: VideoSource | null;
|
|
7561
7569
|
readonly id: string | null;
|
|
7562
7570
|
readonly isDirectVideoUrl: boolean;
|
|
7563
|
-
readonly videoProperties:
|
|
7564
|
-
readonly thumbnailUrl: string;
|
|
7571
|
+
readonly videoProperties: TVideoProperties | null;
|
|
7572
|
+
readonly thumbnailUrl: string | null;
|
|
7565
7573
|
constructor(url: string, additionalVideoSources?: VideoSourceEnvironment[]);
|
|
7566
7574
|
hasValidGenericUrlVideoSourcePrefix(url: string): boolean;
|
|
7567
7575
|
isValid(features: FeatureSet): boolean;
|
|
@@ -7573,7 +7581,7 @@ declare module "libs/reach/feature/content/src/comments/UrlMatcher" {
|
|
|
7573
7581
|
import { AttachmentType } from "libs/reach/util/common/src/index";
|
|
7574
7582
|
export function getAllVideosFromString(content: string): Generator<{
|
|
7575
7583
|
url: string;
|
|
7576
|
-
type: AttachmentType;
|
|
7584
|
+
type: AttachmentType.YouTubeVideo | AttachmentType.VimeoVideo | AttachmentType.MicrosoftStreamVideo;
|
|
7577
7585
|
}, void, unknown>;
|
|
7578
7586
|
export function getEmbeddedObjectsFromString(content: string): Generator<{
|
|
7579
7587
|
url: string;
|
|
@@ -7719,7 +7727,7 @@ declare module "libs/reach/feature/content/src/comments/utils" {
|
|
|
7719
7727
|
}
|
|
7720
7728
|
declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerator" {
|
|
7721
7729
|
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
7722
|
-
|
|
7730
|
+
import { TVideoProperties } from "libs/reach/feature/content/src/forms/videos/VideoUrlParser";
|
|
7723
7731
|
export const getMicrosoftStreamVideoUrl: (id: string) => string;
|
|
7724
7732
|
export class VideoElementGenerator {
|
|
7725
7733
|
private videoInfo;
|
|
@@ -7727,16 +7735,17 @@ declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerato
|
|
|
7727
7735
|
private autoplay?;
|
|
7728
7736
|
private width?;
|
|
7729
7737
|
private videoProperties?;
|
|
7730
|
-
constructor(videoInfo: VideoInfo, iframeAreaLabel: string, autoplay?: boolean, width?: string, videoProperties?:
|
|
7738
|
+
constructor(videoInfo: VideoInfo, iframeAreaLabel: string, autoplay?: boolean, width?: string, videoProperties?: TVideoProperties);
|
|
7731
7739
|
private getYouTubeVideoElement;
|
|
7732
7740
|
private getVimeoVideoElement;
|
|
7733
7741
|
private getExternalVimeoVideoElement;
|
|
7742
|
+
private getMicrosoftStreamSharePointVideoElement;
|
|
7734
7743
|
private getMicrosoftStreamVideoElement;
|
|
7735
7744
|
private getKalturaVideoElement;
|
|
7736
7745
|
private getGenericURLVideoElement;
|
|
7737
7746
|
private getVideoElement;
|
|
7738
7747
|
private getNotSupportedElement;
|
|
7739
|
-
static getVideoElement(videoInfo: VideoInfo, autoplay?: boolean, width?: string, iframeAreaLabel?: string, videoProperties?:
|
|
7748
|
+
static getVideoElement(videoInfo: VideoInfo, autoplay?: boolean, width?: string, iframeAreaLabel?: string, videoProperties?: TVideoProperties): HTMLElement;
|
|
7740
7749
|
static getVideoType(videoInfo: VideoInfo): "" | "YouTube" | "Vimeo" | "Microsoft Stream" | "Kaltura" | "Generic";
|
|
7741
7750
|
}
|
|
7742
7751
|
}
|
|
@@ -12030,9 +12039,9 @@ declare module "libs/reach/feature/content/src/editor/editorUtils" {
|
|
|
12030
12039
|
}
|
|
12031
12040
|
}
|
|
12032
12041
|
declare module "libs/reach/feature/content/src/editor/useEditorApi" {
|
|
12033
|
-
import { ItemResourceTypes, ItemVersionSummary, PaginatedList, PublishableItem, PublishableItemContent, PublishableItemVersion, ResponseItem, WorkflowStatus } from "libs/reach/util/common/src/index";
|
|
12034
|
-
import { NewsFilterDefinition } from "libs/reach/feature/content/src/index";
|
|
12035
12042
|
import { Observable } from 'rxjs';
|
|
12043
|
+
import { ItemResourceTypes, ItemVersionSummary, PaginatedList, PublishableItem, PublishableItemContent, PublishableItemVersion, ResponseItem, WorkflowStatus } from "libs/reach/util/common/src/index";
|
|
12044
|
+
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
12036
12045
|
import { KeepAliveHandle } from "libs/reach/feature/content/src/editor/editorUtils";
|
|
12037
12046
|
export function useEditorApi(): {
|
|
12038
12047
|
cloneItem: (itemType: ItemResourceTypes, itemId: string) => Promise<PublishableItem>;
|