@clickview/curator 1.0.22-rc.0 → 1.0.22-rc.2
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/curator-app.js +3 -3
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +2 -1
- package/dist/libs/common/src/react/flight/FlightHelpers.d.ts +1 -0
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +11 -10
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +1 -0
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
- package/dist/libs/shared/src/utils/CollectionHelper.d.ts +7 -0
- package/dist/projects/curator/src/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/en.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"subjects":{"selectPresentation":{"heading":"Select a presentation to view its %{objectType}:"},"comingSoon":{"comingSoon":"Coming Soon","info":"We are currently building this topic. In the meantime, we can remind you when it's available.","remindMe":"Remind Me"},"heroVideo":{"resourcesHeading":"Resources","linksHeading":"Links","clipsHeading":"Clips","tagsHeading":"Tags","links":"%{smart_count} link |||| %{smart_count} links","resources":"%{smart_count} resource |||| %{smart_count} resources","clips":"%{smart_count} clip |||| %{smart_count} clips"}},"notifications":{"notificationList":{"noNotifications":"You have no notifications"},"services":{"suggestEditSubmit":"Suggestion was successfully submitted"},"utils":{"viewVideoDetails":"View video details","viewVideo":"View video","reviewVideos":"Review videos","viewNewContent":"View new content","reviewVideo":"Review video","seeNow":"See now"},"notifications":{"title":"Notifications","notifications":"Notifications"},"notificationsPopover":{"notifications":"Notifications","seeAll":"See all notifications"}},"playlists":{"emptyState":{"noPlaylistsHeading":"You have no playlists","noPlaylistsInfo":"Click <strong>New Playlist</strong> above to create one.","noVideosHeading":"There are no videos in this playlist","noVideosInfo":"Learn how to add videos to a playlist."},"playlistItem":{"videos":"%{smart_count} video |||| %{smart_count} videos","lastUpdated":"Last updated: %{timeAgo}"},"playlistSortSelect":{"recentlyUpdated":"Recently updated","atoz":"A to Z","ztoa":"Z to A","newest":"Newest","oldest":"Oldest"},"hooks":{"somethingWentWrong":"Something went wrong"},"validation":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long"}},"search":{"searchTips":{"heading":"Search Tips","firstTerm":"\"atomic bonding\"","firstDescription":"Search for exact phrases using quotation marks","secondTerm":"\"romeo and juliet\" english","secondDescription":"Combine normal and exact phrases together","thirdTerm":"-pollution","thirdDescription":"Exclude a keyword from your search","fourthTerm1":"tag:literature","fourthTerm2":"folder:science","fourthDescription":"Search for results within a tag, folder or series","fifthTerm":"folder:-physics","fifthDescription":"Use a \"-\" to exclude a folder, title or series"},"services":{"folderTag":"This folder","seriesTag":"This series"},"searchBar":{"findingResults":"Finding results...","recentSearches":"Recent Searches","allResults":"Show all results for","noLibraries":"There are currently no libraries to search. Add a new library to get started.","placeholder":"Search within your library... |||| Search within your libraries...","classifications":"topics","videos":"videos","tags":"tags","series":"series"}},"upload":{"fileType":{"heading":"Invalid file type","body":"Sorry but you cannot upload files of that type.","okay":"Okay","close":"Close"},"internetConnectivityError":{"title":"Internet connectivity issue","heading":"Connectivity issue.","body":"There seems to be an issue with your internet connection. Please try uploading your files again.","okay":"Okay"},"utils":{"videoProcessingError":"Something went wrong processing this video.","waiting":"Waiting to be processed","processing":"Processing %{progress}%","complete":"Complete","readyToWatch":"Ready to watch, still processing higher resolutions."}},"shared":{"backButton":{"back":"Back","backTo":"Back to %{backToName}"},"editVideoDetails":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long","namePlaceholder":"Enter a name for your video","descriptionPlaceholder":"Enter a description for your video","cancel":"Cancel","nameLabel":"Title","descriptionLabel":"Description"},"favouriteButton":{"favouriteError":"Failed to favourite video.","unfavouriteError":"Failed to unfavourite video."},"formButtons":{"create":"Create","save":"Save","next":"Next"},"pagination":{"next":"Next","previous":"Previous"},"searchBar":{"placeholder":"Enter a search query","recentSearchHeading":"Recent Searches"},"videoItemDescription":{"showMore":"... Show more","showLess":"Show less"},"dynamicWidget":{"topics":"Topics","teach":"What would you like to teach?","preferencesTooltip":"Update your preferences"},"fixedWidget":{"preferencesTooltip":"Update your preferences"},"greeting":{"morning":"Good morning","afternoon":"Good afternoon","evening":"Good evening","fallback":"Hello","prompt":"What would you like to teach today?"},"subjectWidgetItem":{"comingSoon":"Coming Soon","edit":"Edit My Subjects"},"_pagination":{"next":"Next","previous":"Previous"},"shared-utils":{"responsive":"Responsive","small":"Small","medium":"Medium","large":"Large"},"videoActionsHelper":{"addToPlaylist":"Add to playlist","removeFromPlaylist":"Remove from playlist","share":"Share","edit":"Edit"}}}
|
|
1
|
+
{"subjects":{"selectPresentation":{"heading":"Select a presentation to view its %{objectType}:"},"comingSoon":{"comingSoon":"Coming Soon","info":"We are currently building this topic. In the meantime, we can remind you when it's available.","remindMe":"Remind Me"},"heroVideo":{"resourcesHeading":"Resources","linksHeading":"Links","clipsHeading":"Clips","tagsHeading":"Tags","links":"%{smart_count} link |||| %{smart_count} links","resources":"%{smart_count} resource |||| %{smart_count} resources","clips":"%{smart_count} clip |||| %{smart_count} clips"}},"notifications":{"notificationList":{"noNotifications":"You have no notifications"},"services":{"suggestEditSubmit":"Suggestion was successfully submitted"},"utils":{"viewVideoDetails":"View video details","viewVideo":"View video","reviewVideos":"Review videos","viewNewContent":"View new content","reviewVideo":"Review video","seeNow":"See now"},"notifications":{"title":"Notifications","notifications":"Notifications"},"notificationsPopover":{"notifications":"Notifications","seeAll":"See all notifications"}},"playlists":{"emptyState":{"noPlaylistsHeading":"You have no playlists","noPlaylistsInfo":"Click <strong>New Playlist</strong> above to create one.","noVideosHeading":"There are no videos in this playlist","noVideosInfo":"Learn how to add videos to a playlist."},"playlistItem":{"videos":"%{smart_count} video |||| %{smart_count} videos","lastUpdated":"Last updated: %{timeAgo}"},"playlistSortSelect":{"recentlyUpdated":"Recently updated","atoz":"A to Z","ztoa":"Z to A","newest":"Newest","oldest":"Oldest"},"hooks":{"somethingWentWrong":"Something went wrong"},"validation":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long"}},"search":{"searchTips":{"heading":"Search Tips","firstTerm":"\"atomic bonding\"","firstDescription":"Search for exact phrases using quotation marks","secondTerm":"\"romeo and juliet\" english","secondDescription":"Combine normal and exact phrases together","thirdTerm":"-pollution","thirdDescription":"Exclude a keyword from your search","fourthTerm1":"tag:literature","fourthTerm2":"folder:science","fourthDescription":"Search for results within a tag, folder or series","fifthTerm":"folder:-physics","fifthDescription":"Use a \"-\" to exclude a folder, title or series"},"services":{"folderTag":"This folder","seriesTag":"This series"},"searchBar":{"findingResults":"Finding results...","recentSearches":"Recent Searches","allResults":"Show all results for","noLibraries":"There are currently no libraries to search. Add a new library to get started.","placeholder":"Search within your library... |||| Search within your libraries...","classifications":"topics","videos":"videos","tags":"tags","series":"series"}},"upload":{"fileType":{"heading":"Invalid file type","body":"Sorry but you cannot upload files of that type.","okay":"Okay","close":"Close"},"internetConnectivityError":{"title":"Internet connectivity issue","heading":"Connectivity issue.","body":"There seems to be an issue with your internet connection. Please try uploading your files again.","okay":"Okay"},"utils":{"videoProcessingError":"Something went wrong processing this video.","waiting":"Waiting to be processed","processing":"Processing %{progress}%","complete":"Complete","readyToWatch":"Ready to watch, still processing higher resolutions."}},"shared":{"backButton":{"back":"Back","backTo":"Back to %{backToName}"},"badges":{"interactive":"Interactive","resources":"Resources"},"editVideoDetails":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long","namePlaceholder":"Enter a name for your video","descriptionPlaceholder":"Enter a description for your video","cancel":"Cancel","nameLabel":"Title","descriptionLabel":"Description"},"favouriteButton":{"favouriteError":"Failed to favourite video.","unfavouriteError":"Failed to unfavourite video."},"formButtons":{"create":"Create","save":"Save","next":"Next"},"pagination":{"next":"Next","previous":"Previous"},"searchBar":{"placeholder":"Enter a search query","recentSearchHeading":"Recent Searches"},"videoItemDescription":{"showMore":"... Show more","showLess":"Show less"},"dynamicWidget":{"topics":"Topics","teach":"What would you like to teach?","preferencesTooltip":"Update your preferences"},"fixedWidget":{"preferencesTooltip":"Update your preferences"},"greeting":{"morning":"Good morning","afternoon":"Good afternoon","evening":"Good evening","fallback":"Hello","prompt":"What would you like to teach today?"},"subjectWidgetItem":{"comingSoon":"Coming Soon","edit":"Edit My Subjects","all":"Explore all subjects"},"_pagination":{"next":"Next","previous":"Previous"},"shared-utils":{"responsive":"Responsive","small":"Small","medium":"Medium","large":"Large"},"videoActionsHelper":{"addToPlaylist":"Add to playlist","removeFromPlaylist":"Remove from playlist","share":"Share","edit":"Edit"}}}
|
|
@@ -4,6 +4,7 @@ export declare function emptyResponse<T>(): Response<T>;
|
|
|
4
4
|
export declare function getResponse<T>(state: ApplicationState, key: string): Response<T>;
|
|
5
5
|
export declare function getFetch(dispatch: Dispatch, request: Request): () => void;
|
|
6
6
|
export declare function fetch(dispatch: Dispatch, request: Request): void;
|
|
7
|
+
export declare function dataServiceFetch(dispatch: Dispatch, state: ApplicationState, request: Request): void;
|
|
7
8
|
export declare function useGetFetch(request: Request): () => void;
|
|
8
9
|
interface GetResponseOptions {
|
|
9
10
|
optimize: boolean;
|
|
@@ -11,24 +11,25 @@ export declare const ArrayHelper: {
|
|
|
11
11
|
moveItem<T_6>(arr: T_6[], fromIdx: number, toIdx: number): T_6[];
|
|
12
12
|
isEmpty<T_7>(arr: T_7[]): boolean;
|
|
13
13
|
findIndex<T_8>(arr: T_8[], predicate: (item: T_8) => boolean): number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
findWhere<T_9, U extends {}>(arr: T_9[], properties: U): T_9;
|
|
15
|
+
where<T_10, U_1 extends {}>(arr: T_10[], properties: U_1): T_10[];
|
|
16
|
+
groupBy<T_11>(arr: T_11[], property: string): {
|
|
17
|
+
[index: string]: T_11[];
|
|
17
18
|
};
|
|
18
|
-
flatten<
|
|
19
|
-
intersection<
|
|
19
|
+
flatten<T_12>(arr: T_12[], shallow?: boolean): T_12[];
|
|
20
|
+
intersection<T_13>(...arrays: T_13[][]): T_13[];
|
|
20
21
|
/**
|
|
21
22
|
* Add a value to an array, or if it is already in the array, remove it.
|
|
22
23
|
*
|
|
23
24
|
* @param arr array of values
|
|
24
25
|
* @param value value to be added or removed.
|
|
25
26
|
*/
|
|
26
|
-
addOrRemove<
|
|
27
|
+
addOrRemove<T_14 = import("react").Key>(arr: T_14[], value: T_14): T_14[];
|
|
27
28
|
/**
|
|
28
29
|
* This is the same addOrRemove function above, except it doesn't mutate the array in the argument
|
|
29
30
|
* and returns a branch new array.
|
|
30
31
|
*/
|
|
31
|
-
addOrRemoveImmutable<
|
|
32
|
+
addOrRemoveImmutable<T_15>(arr: T_15[], value: T_15): T_15[];
|
|
32
33
|
/**
|
|
33
34
|
* Returns a (stably) sorted copy of list, ranked in ascending order
|
|
34
35
|
* by the results of running each value through iteratee.
|
|
@@ -36,8 +37,8 @@ export declare const ArrayHelper: {
|
|
|
36
37
|
* @param arr array of values
|
|
37
38
|
* @param iteratee an iterator function or a string name of the property to sort by.
|
|
38
39
|
*/
|
|
39
|
-
sortBy<
|
|
40
|
-
chunk<
|
|
41
|
-
uniq<
|
|
40
|
+
sortBy<T_16 extends {}, TSort = T_16>(arr: T_16[], iteratee?: Iterator<T_16, TSort> | keyof T_16): T_16[];
|
|
41
|
+
chunk<T_17>(array: _.Collection<T_17>, count: number): T_17[][];
|
|
42
|
+
uniq<T_18>(array: _.List<T_18>): T_18[];
|
|
42
43
|
};
|
|
43
44
|
export {};
|
|
@@ -18,4 +18,5 @@ import VisibleOff from './visible-off.svg';
|
|
|
18
18
|
import VisibleOn from './visible-on.svg';
|
|
19
19
|
import NoEdit from './no-edit.svg';
|
|
20
20
|
import EditClickView from './edit-clickview.svg';
|
|
21
|
-
|
|
21
|
+
import Share2 from './share2.svg';
|
|
22
|
+
export { AddToPlaylist, Close, Delete, Edit, Expand, Minus, More, NewWindow, Plus, Preview, Search, Share, Upload, Down, Right, UpDown, VisibleOff, VisibleOn, NoEdit, EditClickView, Share2 };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import { LegacyPagination } from "../../../common/src/backbone/interfaces";
|
|
1
2
|
import { BasePaginatedCollection, BaseObject } from "../interfaces";
|
|
3
|
+
interface LegacyPaginatedCollection {
|
|
4
|
+
data: BaseObject[];
|
|
5
|
+
pagination: LegacyPagination;
|
|
6
|
+
}
|
|
2
7
|
export declare const CollectionHelper: {
|
|
3
8
|
isEmpty(collection: BasePaginatedCollection<BaseObject>): boolean;
|
|
4
9
|
length(collection: BasePaginatedCollection<BaseObject>): number;
|
|
@@ -6,4 +11,6 @@ export declare const CollectionHelper: {
|
|
|
6
11
|
get<T_1 extends BaseObject>(collection: BasePaginatedCollection<T_1>, id: string): T_1;
|
|
7
12
|
flattenCollections<T_2 extends BaseObject, U extends BasePaginatedCollection<T_2>>(collections: U[]): T_2[];
|
|
8
13
|
getNextCursor<T_3 extends BaseObject, U_1 extends BasePaginatedCollection<T_3>>(collection: U_1): string;
|
|
14
|
+
convertLegacyPaginatedCollection(collection: LegacyPaginatedCollection): BasePaginatedCollection<BaseObject>;
|
|
9
15
|
};
|
|
16
|
+
export {};
|
|
@@ -18,6 +18,7 @@ import '../../../libs/shared/src/apps/upload/errors/file-type/file-type.lang.jso
|
|
|
18
18
|
import '../../../libs/shared/src/apps/upload/errors/internet-connectivity/internet-connectivity.lang.json';
|
|
19
19
|
import '../../../libs/shared/src/apps/upload/utils/upload-utils.lang.json';
|
|
20
20
|
import '../../../libs/shared/src/components/back-button/back-button.lang.json';
|
|
21
|
+
import '../../../libs/shared/src/components/badges/badge.lang.json';
|
|
21
22
|
import '../../../libs/shared/src/components/edit-video-details/edit-video-details.lang.json';
|
|
22
23
|
import '../../../libs/shared/src/components/favourite-button/favourite-button.lang.json';
|
|
23
24
|
import '../../../libs/shared/src/components/forms/form-buttons/form-buttons.lang.json';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/curator",
|
|
3
|
-
"version": "1.0.22-rc.
|
|
3
|
+
"version": "1.0.22-rc.2",
|
|
4
4
|
"description": "curator",
|
|
5
5
|
"main": "dist/curator-app.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@types/yup": "0.26.24"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@clickview/styles": "1.0.10-rc.
|
|
30
|
+
"@clickview/styles": "1.0.10-rc.2",
|
|
31
31
|
"cropperjs": "1.5.6",
|
|
32
32
|
"marked": "0.8.0",
|
|
33
33
|
"react-copy-to-clipboard": "5.0.2",
|