@axinom/mosaic-managed-workflow-integration 0.1.4-rc.14 → 0.1.4-rc.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/common/models.d.ts +1 -0
- package/dist/common/models.d.ts.map +1 -1
- package/dist/common/piral-extensions.d.ts +3 -0
- package/dist/common/piral-extensions.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/video/index.d.ts +4 -0
- package/dist/video/index.d.ts.map +1 -0
- package/dist/video/index.js +20 -0
- package/dist/video/index.js.map +1 -0
- package/dist/video/types/index.d.ts +4 -0
- package/dist/video/types/index.d.ts.map +1 -0
- package/dist/video/types/index.js +20 -0
- package/dist/video/types/index.js.map +1 -0
- package/dist/video/types/video-extensions.d.ts +8 -0
- package/dist/video/types/video-extensions.d.ts.map +1 -0
- package/dist/video/types/video-extensions.js +3 -0
- package/dist/video/types/video-extensions.js.map +1 -0
- package/dist/video/types/video-select-explorer.d.ts +80 -0
- package/dist/video/types/video-select-explorer.d.ts.map +1 -0
- package/dist/video/types/video-select-explorer.js +41 -0
- package/dist/video/types/video-select-explorer.js.map +1 -0
- package/dist/video/types/video-select-field.d.ts +17 -0
- package/dist/video/types/video-select-field.d.ts.map +1 -0
- package/dist/video/types/video-select-field.js +3 -0
- package/dist/video/types/video-select-field.js.map +1 -0
- package/dist/video/video-cue-points.d.ts +25 -0
- package/dist/video/video-cue-points.d.ts.map +1 -0
- package/dist/video/video-cue-points.js +12 -0
- package/dist/video/video-cue-points.js.map +1 -0
- package/dist/video/video-extensions.d.ts +4 -0
- package/dist/video/video-extensions.d.ts.map +1 -0
- package/dist/video/video-extensions.js +18 -0
- package/dist/video/video-extensions.js.map +1 -0
- package/package.json +4 -4
- package/src/common/models.ts +2 -0
- package/src/common/piral-extensions.ts +3 -0
- package/src/index.ts +1 -0
- package/src/video/index.ts +3 -0
- package/src/video/types/index.ts +3 -0
- package/src/video/types/video-extensions.ts +7 -0
- package/src/video/types/video-select-explorer.ts +83 -0
- package/src/video/types/video-select-field.ts +19 -0
- package/src/video/video-cue-points.ts +32 -0
- package/src/video/video-extensions.tsx +31 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./video-cue-points"), exports);
|
|
19
|
+
__exportStar(require("./video-extensions"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/video/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,qDAAmC;AACnC,qDAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/video/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./video-extensions"), exports);
|
|
18
|
+
__exportStar(require("./video-select-explorer"), exports);
|
|
19
|
+
__exportStar(require("./video-select-field"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/video/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,0DAAwC;AACxC,uDAAqC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { VideoSelectExplorerProps } from './video-select-explorer';
|
|
3
|
+
import { VideoSelectFieldProps } from './video-select-field';
|
|
4
|
+
export interface VideoExtensions {
|
|
5
|
+
VideoSelectExplorer: React.FC<VideoSelectExplorerProps>;
|
|
6
|
+
VideoSelectField: React.FC<VideoSelectFieldProps>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=video-extensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-extensions.d.ts","sourceRoot":"","sources":["../../../src/video/types/video-extensions.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,MAAM,WAAW,eAAe;IAC9B,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAC;IACxD,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAC;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-extensions.js","sourceRoot":"","sources":["../../../src/video/types/video-extensions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { FilterValues, ItemSelection } from '@axinom/mosaic-ui';
|
|
2
|
+
import { Datetime, ID, Maybe } from '../../common';
|
|
3
|
+
export interface VideoSelectExplorerProps {
|
|
4
|
+
/** Optional Title shown in page header (default: 'Videos') */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** Whether or not the selection of multiple items is allowed (default: false) */
|
|
7
|
+
allowBulkSelect?: boolean;
|
|
8
|
+
/** IDs of items which will be excluded from the explorer. Can be used to remove already selected items. */
|
|
9
|
+
excludeItems?: ID[];
|
|
10
|
+
/** Unique identifier used to store states related to explorer */
|
|
11
|
+
stationKey?: string;
|
|
12
|
+
/** In multiselect mode, whether the Select All button will be displayed. This is currently not fully supported. (default: false) */
|
|
13
|
+
enableSelectAll?: boolean;
|
|
14
|
+
/** A set of initial filter values which the Explorer will use. (default: empty) */
|
|
15
|
+
predefinedFilterValues?: FilterValues<Video>;
|
|
16
|
+
/**
|
|
17
|
+
* Callback called when the user finished the selection.
|
|
18
|
+
* The IDs of the selected item (or items) will be passed as argument to the callback.
|
|
19
|
+
*/
|
|
20
|
+
onSelection: (selection: ItemSelection<Video>) => void;
|
|
21
|
+
/** Callback called when the user cancels the selection */
|
|
22
|
+
onCancel?: () => void;
|
|
23
|
+
}
|
|
24
|
+
export interface Video {
|
|
25
|
+
id: ID;
|
|
26
|
+
title: string;
|
|
27
|
+
isProtected: boolean;
|
|
28
|
+
encodingState: EncodingState;
|
|
29
|
+
audioLanguages: Maybe<string>[];
|
|
30
|
+
captionLanguages: Maybe<string>[];
|
|
31
|
+
subtitleLanguages: Maybe<string>[];
|
|
32
|
+
lengthInSeconds?: Maybe<number>;
|
|
33
|
+
isArchived: boolean;
|
|
34
|
+
createdDate: Datetime;
|
|
35
|
+
updatedDate: Datetime;
|
|
36
|
+
sourceFullFileName?: Maybe<string>;
|
|
37
|
+
previewStatus: PreviewStatus;
|
|
38
|
+
outputFormat: OutputFormat;
|
|
39
|
+
videosTags: {
|
|
40
|
+
nodes: VideosTag[];
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export declare enum EncodingState {
|
|
44
|
+
/** Waiting */
|
|
45
|
+
Waiting = "WAITING",
|
|
46
|
+
/** In progress */
|
|
47
|
+
InProgress = "IN_PROGRESS",
|
|
48
|
+
/** Ready */
|
|
49
|
+
Ready = "READY",
|
|
50
|
+
/** Error */
|
|
51
|
+
Error = "ERROR",
|
|
52
|
+
/** Not started */
|
|
53
|
+
NotStarted = "NOT_STARTED",
|
|
54
|
+
/** Initializing */
|
|
55
|
+
Initializing = "INITIALIZING"
|
|
56
|
+
}
|
|
57
|
+
export declare enum OutputFormat {
|
|
58
|
+
/** HLS */
|
|
59
|
+
Hls = "HLS",
|
|
60
|
+
/** DASH */
|
|
61
|
+
Dash = "DASH",
|
|
62
|
+
/** DASH & HLS */
|
|
63
|
+
DashHls = "DASH_HLS",
|
|
64
|
+
/** CMAF */
|
|
65
|
+
Cmaf = "CMAF",
|
|
66
|
+
/** DASH On Demand */
|
|
67
|
+
DashOnDemand = "DASH_ON_DEMAND"
|
|
68
|
+
}
|
|
69
|
+
export declare enum PreviewStatus {
|
|
70
|
+
/** Not previewed */
|
|
71
|
+
NotPreviewed = "NOT_PREVIEWED",
|
|
72
|
+
/** Not approved */
|
|
73
|
+
NotApproved = "NOT_APPROVED",
|
|
74
|
+
/** Approved */
|
|
75
|
+
Approved = "APPROVED"
|
|
76
|
+
}
|
|
77
|
+
export interface VideosTag {
|
|
78
|
+
name: string;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=video-select-explorer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-select-explorer.d.ts","sourceRoot":"","sources":["../../../src/video/types/video-select-explorer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,2GAA2G;IAC3G,YAAY,CAAC,EAAE,EAAE,EAAE,CAAC;IACpB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oIAAoI;IACpI,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mFAAmF;IACnF,sBAAsB,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAC7C;;;OAGG;IACH,WAAW,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IACvD,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,EAAE,CAAC;IACP,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,aAAa,CAAC;IAC7B,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAChC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAClC,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IACnC,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,QAAQ,CAAC;IACtB,WAAW,EAAE,QAAQ,CAAC;IACtB,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE;QAAE,KAAK,EAAE,SAAS,EAAE,CAAA;KAAE,CAAC;CACpC;AAED,oBAAY,aAAa;IACvB,cAAc;IACd,OAAO,YAAY;IACnB,kBAAkB;IAClB,UAAU,gBAAgB;IAC1B,YAAY;IACZ,KAAK,UAAU;IACf,YAAY;IACZ,KAAK,UAAU;IACf,kBAAkB;IAClB,UAAU,gBAAgB;IAC1B,mBAAmB;IACnB,YAAY,iBAAiB;CAC9B;AAED,oBAAY,YAAY;IACtB,UAAU;IACV,GAAG,QAAQ;IACX,WAAW;IACX,IAAI,SAAS;IACb,iBAAiB;IACjB,OAAO,aAAa;IACpB,WAAW;IACX,IAAI,SAAS;IACb,qBAAqB;IACrB,YAAY,mBAAmB;CAChC;AAED,oBAAY,aAAa;IACvB,oBAAoB;IACpB,YAAY,kBAAkB;IAC9B,mBAAmB;IACnB,WAAW,iBAAiB;IAC5B,eAAe;IACf,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PreviewStatus = exports.OutputFormat = exports.EncodingState = void 0;
|
|
4
|
+
var EncodingState;
|
|
5
|
+
(function (EncodingState) {
|
|
6
|
+
/** Waiting */
|
|
7
|
+
EncodingState["Waiting"] = "WAITING";
|
|
8
|
+
/** In progress */
|
|
9
|
+
EncodingState["InProgress"] = "IN_PROGRESS";
|
|
10
|
+
/** Ready */
|
|
11
|
+
EncodingState["Ready"] = "READY";
|
|
12
|
+
/** Error */
|
|
13
|
+
EncodingState["Error"] = "ERROR";
|
|
14
|
+
/** Not started */
|
|
15
|
+
EncodingState["NotStarted"] = "NOT_STARTED";
|
|
16
|
+
/** Initializing */
|
|
17
|
+
EncodingState["Initializing"] = "INITIALIZING";
|
|
18
|
+
})(EncodingState = exports.EncodingState || (exports.EncodingState = {}));
|
|
19
|
+
var OutputFormat;
|
|
20
|
+
(function (OutputFormat) {
|
|
21
|
+
/** HLS */
|
|
22
|
+
OutputFormat["Hls"] = "HLS";
|
|
23
|
+
/** DASH */
|
|
24
|
+
OutputFormat["Dash"] = "DASH";
|
|
25
|
+
/** DASH & HLS */
|
|
26
|
+
OutputFormat["DashHls"] = "DASH_HLS";
|
|
27
|
+
/** CMAF */
|
|
28
|
+
OutputFormat["Cmaf"] = "CMAF";
|
|
29
|
+
/** DASH On Demand */
|
|
30
|
+
OutputFormat["DashOnDemand"] = "DASH_ON_DEMAND";
|
|
31
|
+
})(OutputFormat = exports.OutputFormat || (exports.OutputFormat = {}));
|
|
32
|
+
var PreviewStatus;
|
|
33
|
+
(function (PreviewStatus) {
|
|
34
|
+
/** Not previewed */
|
|
35
|
+
PreviewStatus["NotPreviewed"] = "NOT_PREVIEWED";
|
|
36
|
+
/** Not approved */
|
|
37
|
+
PreviewStatus["NotApproved"] = "NOT_APPROVED";
|
|
38
|
+
/** Approved */
|
|
39
|
+
PreviewStatus["Approved"] = "APPROVED";
|
|
40
|
+
})(PreviewStatus = exports.PreviewStatus || (exports.PreviewStatus = {}));
|
|
41
|
+
//# sourceMappingURL=video-select-explorer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-select-explorer.js","sourceRoot":"","sources":["../../../src/video/types/video-select-explorer.ts"],"names":[],"mappings":";;;AA2CA,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB,cAAc;IACd,oCAAmB,CAAA;IACnB,kBAAkB;IAClB,2CAA0B,CAAA;IAC1B,YAAY;IACZ,gCAAe,CAAA;IACf,YAAY;IACZ,gCAAe,CAAA;IACf,kBAAkB;IAClB,2CAA0B,CAAA;IAC1B,mBAAmB;IACnB,8CAA6B,CAAA;AAC/B,CAAC,EAbW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAaxB;AAED,IAAY,YAWX;AAXD,WAAY,YAAY;IACtB,UAAU;IACV,2BAAW,CAAA;IACX,WAAW;IACX,6BAAa,CAAA;IACb,iBAAiB;IACjB,oCAAoB,CAAA;IACpB,WAAW;IACX,6BAAa,CAAA;IACb,qBAAqB;IACrB,+CAA+B,CAAA;AACjC,CAAC,EAXW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAWvB;AAED,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,oBAAoB;IACpB,+CAA8B,CAAA;IAC9B,mBAAmB;IACnB,6CAA4B,CAAA;IAC5B,eAAe;IACf,sCAAqB,CAAA;AACvB,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseFormControl, BaseInputEvents } from '@axinom/mosaic-ui';
|
|
2
|
+
import { ID } from '../../common';
|
|
3
|
+
export interface VideoSelectFieldProps extends BaseFormControl, BaseInputEvents {
|
|
4
|
+
/** Current value the form control has */
|
|
5
|
+
value?: ID[];
|
|
6
|
+
/** Maximum number of items which can be assigned */
|
|
7
|
+
maxItems?: number;
|
|
8
|
+
/** Label to be displayed */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Default tag to filter results by */
|
|
11
|
+
defaultFilterTag?: string;
|
|
12
|
+
/** Raised when the value has changed */
|
|
13
|
+
onChange: (event: unknown) => void;
|
|
14
|
+
/** Controls the sticky option of the video list */
|
|
15
|
+
isSticky?: boolean;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=video-select-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-select-field.d.ts","sourceRoot":"","sources":["../../../src/video/types/video-select-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,MAAM,WAAW,qBACf,SAAQ,eAAe,EACrB,eAAe;IACjB,yCAAyC;IACzC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC;IACb,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wCAAwC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-select-field.js","sourceRoot":"","sources":["../../../src/video/types/video-select-field.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PiletApi } from '@axinom/mosaic-portal';
|
|
2
|
+
import { ID, Maybe } from '../common';
|
|
3
|
+
import { EncodingState } from './types';
|
|
4
|
+
interface VideoServiceCuePoints {
|
|
5
|
+
__typename?: 'CuePoint';
|
|
6
|
+
id: ID;
|
|
7
|
+
timeInSeconds: number;
|
|
8
|
+
}
|
|
9
|
+
interface VideoData {
|
|
10
|
+
__typename?: 'Video';
|
|
11
|
+
lengthInSeconds?: Maybe<number>;
|
|
12
|
+
encodingState: EncodingState;
|
|
13
|
+
cuePoints: {
|
|
14
|
+
__typename?: 'CuePointsConnection';
|
|
15
|
+
nodes: VideoServiceCuePoints[];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare let getVideoCuePointsData: () => (id: ID, cuePointTypeKeys?: string[]) => Promise<VideoData>;
|
|
19
|
+
/**
|
|
20
|
+
* Initializes the video-cue-points-data function.
|
|
21
|
+
* @param app The PiletApi object.
|
|
22
|
+
*/
|
|
23
|
+
export declare function setGetVideoCuePointsData(app: PiletApi): void;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=video-cue-points.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-cue-points.d.ts","sourceRoot":"","sources":["../../src/video/video-cue-points.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,UAAU,qBAAqB;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,EAAE,EAAE,EAAE,CAAC;IACP,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,SAAS;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,EAAE;QACT,UAAU,CAAC,EAAE,qBAAqB,CAAC;QACnC,KAAK,EAAE,qBAAqB,EAAE,CAAC;KAChC,CAAC;CACH;AAED,eAAO,IAAI,qBAAqB,EAAE,MAAM,CACtC,EAAE,EAAE,EAAE,EACN,gBAAgB,CAAC,EAAE,MAAM,EAAE,KACxB,OAAO,CAAC,SAAS,CAAC,CAAC;AAExB;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI,CAE5D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setGetVideoCuePointsData = exports.getVideoCuePointsData = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Initializes the video-cue-points-data function.
|
|
6
|
+
* @param app The PiletApi object.
|
|
7
|
+
*/
|
|
8
|
+
function setGetVideoCuePointsData(app) {
|
|
9
|
+
exports.getVideoCuePointsData = () => app.getData('video-cue-points-data');
|
|
10
|
+
}
|
|
11
|
+
exports.setGetVideoCuePointsData = setGetVideoCuePointsData;
|
|
12
|
+
//# sourceMappingURL=video-cue-points.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-cue-points.js","sourceRoot":"","sources":["../../src/video/video-cue-points.ts"],"names":[],"mappings":";;;AAyBA;;;GAGG;AACH,SAAgB,wBAAwB,CAAC,GAAa;IACpD,6BAAqB,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;AACrE,CAAC;AAFD,4DAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-extensions.d.ts","sourceRoot":"","sources":["../../src/video/video-extensions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EACL,eAAe,EAGhB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,mBAAmB,QAAS,QAAQ,KAAG,eAqBnD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.bindVideoExtensions = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const common_1 = require("../common");
|
|
9
|
+
const bindVideoExtensions = (app) => {
|
|
10
|
+
const VideoSelectExplorer = (props) => (react_1.default.createElement(app.Extension, { name: "video-select-explorer", empty: common_1.extensionDefaultValue, params: props }));
|
|
11
|
+
const VideoSelectField = (props) => (react_1.default.createElement(app.Extension, { name: "video-select-field", empty: common_1.extensionDefaultValue, params: props }));
|
|
12
|
+
return {
|
|
13
|
+
VideoSelectExplorer,
|
|
14
|
+
VideoSelectField,
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.bindVideoExtensions = bindVideoExtensions;
|
|
18
|
+
//# sourceMappingURL=video-extensions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-extensions.js","sourceRoot":"","sources":["../../src/video/video-extensions.tsx"],"names":[],"mappings":";;;;;;AACA,kDAA0B;AAC1B,sCAAkD;AAO3C,MAAM,mBAAmB,GAAG,CAAC,GAAa,EAAmB,EAAE;IACpE,MAAM,mBAAmB,GAAuC,CAAC,KAAK,EAAE,EAAE,CAAC,CACzE,8BAAC,GAAG,CAAC,SAAS,IACZ,IAAI,EAAC,uBAAuB,EAC5B,KAAK,EAAE,8BAAqB,EAC5B,MAAM,EAAE,KAAK,GACb,CACH,CAAC;IAEF,MAAM,gBAAgB,GAAoC,CAAC,KAAK,EAAE,EAAE,CAAC,CACnE,8BAAC,GAAG,CAAC,SAAS,IACZ,IAAI,EAAC,oBAAoB,EACzB,KAAK,EAAE,8BAAqB,EAC5B,MAAM,EAAE,KAAK,GACb,CACH,CAAC;IAEF,OAAO;QACL,mBAAmB;QACnB,gBAAgB;KACjB,CAAC;AACJ,CAAC,CAAC;AArBW,QAAA,mBAAmB,uBAqB9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-managed-workflow-integration",
|
|
3
|
-
"version": "0.1.4-rc.
|
|
3
|
+
"version": "0.1.4-rc.15",
|
|
4
4
|
"description": "Shared types and helpers for integrating functionality provided by managed service workflows",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"lint": "eslint . --ext .ts,.tsx,.js --color --cache"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@axinom/mosaic-portal": "^0.18.0-rc.
|
|
27
|
-
"@axinom/mosaic-ui": "^0.34.0-rc.
|
|
26
|
+
"@axinom/mosaic-portal": "^0.18.0-rc.15",
|
|
27
|
+
"@axinom/mosaic-ui": "^0.34.0-rc.15",
|
|
28
28
|
"@types/react": "^17",
|
|
29
29
|
"@types/react-dom": "^17",
|
|
30
30
|
"eslint": "^8.35.0",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "937303cc47f9c92d7487fa3caf1c010434d6e9e1"
|
|
46
46
|
}
|
package/src/common/models.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
ImageSelectExplorerProps,
|
|
5
5
|
ImageSelectFieldProps,
|
|
6
6
|
} from '../image';
|
|
7
|
+
import { VideoSelectExplorerProps, VideoSelectFieldProps } from '../video';
|
|
7
8
|
|
|
8
9
|
declare module '@axinom/mosaic-portal' {
|
|
9
10
|
export interface PiralCustomExtensionSlotMap {
|
|
@@ -11,5 +12,7 @@ declare module '@axinom/mosaic-portal' {
|
|
|
11
12
|
'image-select-field': ImageSelectFieldProps;
|
|
12
13
|
'image-preview': ImagePreviewProps;
|
|
13
14
|
'image-select-explorer': ImageSelectExplorerProps;
|
|
15
|
+
'video-select-explorer': VideoSelectExplorerProps;
|
|
16
|
+
'video-select-field': VideoSelectFieldProps;
|
|
14
17
|
}
|
|
15
18
|
}
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VideoSelectExplorerProps } from './video-select-explorer';
|
|
2
|
+
import { VideoSelectFieldProps } from './video-select-field';
|
|
3
|
+
|
|
4
|
+
export interface VideoExtensions {
|
|
5
|
+
VideoSelectExplorer: React.FC<VideoSelectExplorerProps>;
|
|
6
|
+
VideoSelectField: React.FC<VideoSelectFieldProps>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { FilterValues, ItemSelection } from '@axinom/mosaic-ui';
|
|
2
|
+
import { Datetime, ID, Maybe } from '../../common';
|
|
3
|
+
|
|
4
|
+
export interface VideoSelectExplorerProps {
|
|
5
|
+
/** Optional Title shown in page header (default: 'Videos') */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** Whether or not the selection of multiple items is allowed (default: false) */
|
|
8
|
+
allowBulkSelect?: boolean;
|
|
9
|
+
/** IDs of items which will be excluded from the explorer. Can be used to remove already selected items. */
|
|
10
|
+
excludeItems?: ID[];
|
|
11
|
+
/** Unique identifier used to store states related to explorer */
|
|
12
|
+
stationKey?: string;
|
|
13
|
+
/** In multiselect mode, whether the Select All button will be displayed. This is currently not fully supported. (default: false) */
|
|
14
|
+
enableSelectAll?: boolean;
|
|
15
|
+
/** A set of initial filter values which the Explorer will use. (default: empty) */
|
|
16
|
+
predefinedFilterValues?: FilterValues<Video>;
|
|
17
|
+
/**
|
|
18
|
+
* Callback called when the user finished the selection.
|
|
19
|
+
* The IDs of the selected item (or items) will be passed as argument to the callback.
|
|
20
|
+
*/
|
|
21
|
+
onSelection: (selection: ItemSelection<Video>) => void;
|
|
22
|
+
/** Callback called when the user cancels the selection */
|
|
23
|
+
onCancel?: () => void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface Video {
|
|
27
|
+
id: ID;
|
|
28
|
+
title: string;
|
|
29
|
+
isProtected: boolean;
|
|
30
|
+
encodingState: EncodingState;
|
|
31
|
+
audioLanguages: Maybe<string>[];
|
|
32
|
+
captionLanguages: Maybe<string>[];
|
|
33
|
+
subtitleLanguages: Maybe<string>[];
|
|
34
|
+
lengthInSeconds?: Maybe<number>;
|
|
35
|
+
isArchived: boolean;
|
|
36
|
+
createdDate: Datetime;
|
|
37
|
+
updatedDate: Datetime;
|
|
38
|
+
sourceFullFileName?: Maybe<string>;
|
|
39
|
+
previewStatus: PreviewStatus;
|
|
40
|
+
outputFormat: OutputFormat;
|
|
41
|
+
videosTags: { nodes: VideosTag[] };
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export enum EncodingState {
|
|
45
|
+
/** Waiting */
|
|
46
|
+
Waiting = 'WAITING',
|
|
47
|
+
/** In progress */
|
|
48
|
+
InProgress = 'IN_PROGRESS',
|
|
49
|
+
/** Ready */
|
|
50
|
+
Ready = 'READY',
|
|
51
|
+
/** Error */
|
|
52
|
+
Error = 'ERROR',
|
|
53
|
+
/** Not started */
|
|
54
|
+
NotStarted = 'NOT_STARTED',
|
|
55
|
+
/** Initializing */
|
|
56
|
+
Initializing = 'INITIALIZING',
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export enum OutputFormat {
|
|
60
|
+
/** HLS */
|
|
61
|
+
Hls = 'HLS',
|
|
62
|
+
/** DASH */
|
|
63
|
+
Dash = 'DASH',
|
|
64
|
+
/** DASH & HLS */
|
|
65
|
+
DashHls = 'DASH_HLS',
|
|
66
|
+
/** CMAF */
|
|
67
|
+
Cmaf = 'CMAF',
|
|
68
|
+
/** DASH On Demand */
|
|
69
|
+
DashOnDemand = 'DASH_ON_DEMAND',
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export enum PreviewStatus {
|
|
73
|
+
/** Not previewed */
|
|
74
|
+
NotPreviewed = 'NOT_PREVIEWED',
|
|
75
|
+
/** Not approved */
|
|
76
|
+
NotApproved = 'NOT_APPROVED',
|
|
77
|
+
/** Approved */
|
|
78
|
+
Approved = 'APPROVED',
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface VideosTag {
|
|
82
|
+
name: string;
|
|
83
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseFormControl, BaseInputEvents } from '@axinom/mosaic-ui';
|
|
2
|
+
import { ID } from '../../common';
|
|
3
|
+
|
|
4
|
+
export interface VideoSelectFieldProps
|
|
5
|
+
extends BaseFormControl,
|
|
6
|
+
BaseInputEvents {
|
|
7
|
+
/** Current value the form control has */
|
|
8
|
+
value?: ID[];
|
|
9
|
+
/** Maximum number of items which can be assigned */
|
|
10
|
+
maxItems?: number;
|
|
11
|
+
/** Label to be displayed */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Default tag to filter results by */
|
|
14
|
+
defaultFilterTag?: string;
|
|
15
|
+
/** Raised when the value has changed */
|
|
16
|
+
onChange: (event: unknown) => void;
|
|
17
|
+
/** Controls the sticky option of the video list */
|
|
18
|
+
isSticky?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PiletApi } from '@axinom/mosaic-portal';
|
|
2
|
+
import { ID, Maybe } from '../common';
|
|
3
|
+
import { EncodingState } from './types';
|
|
4
|
+
|
|
5
|
+
interface VideoServiceCuePoints {
|
|
6
|
+
__typename?: 'CuePoint';
|
|
7
|
+
id: ID;
|
|
8
|
+
timeInSeconds: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface VideoData {
|
|
12
|
+
__typename?: 'Video';
|
|
13
|
+
lengthInSeconds?: Maybe<number>;
|
|
14
|
+
encodingState: EncodingState;
|
|
15
|
+
cuePoints: {
|
|
16
|
+
__typename?: 'CuePointsConnection';
|
|
17
|
+
nodes: VideoServiceCuePoints[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export let getVideoCuePointsData: () => (
|
|
22
|
+
id: ID,
|
|
23
|
+
cuePointTypeKeys?: string[],
|
|
24
|
+
) => Promise<VideoData>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Initializes the video-cue-points-data function.
|
|
28
|
+
* @param app The PiletApi object.
|
|
29
|
+
*/
|
|
30
|
+
export function setGetVideoCuePointsData(app: PiletApi): void {
|
|
31
|
+
getVideoCuePointsData = () => app.getData('video-cue-points-data');
|
|
32
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PiletApi } from '@axinom/mosaic-portal';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { extensionDefaultValue } from '../common';
|
|
4
|
+
import {
|
|
5
|
+
VideoExtensions,
|
|
6
|
+
VideoSelectExplorerProps,
|
|
7
|
+
VideoSelectFieldProps,
|
|
8
|
+
} from './types';
|
|
9
|
+
|
|
10
|
+
export const bindVideoExtensions = (app: PiletApi): VideoExtensions => {
|
|
11
|
+
const VideoSelectExplorer: React.FC<VideoSelectExplorerProps> = (props) => (
|
|
12
|
+
<app.Extension
|
|
13
|
+
name="video-select-explorer"
|
|
14
|
+
empty={extensionDefaultValue}
|
|
15
|
+
params={props}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
const VideoSelectField: React.FC<VideoSelectFieldProps> = (props) => (
|
|
20
|
+
<app.Extension
|
|
21
|
+
name="video-select-field"
|
|
22
|
+
empty={extensionDefaultValue}
|
|
23
|
+
params={props}
|
|
24
|
+
/>
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
VideoSelectExplorer,
|
|
29
|
+
VideoSelectField,
|
|
30
|
+
};
|
|
31
|
+
};
|