@clickview/curator 1.0.19-dev.0 → 1.0.19-dev.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.
@@ -9,5 +9,6 @@ export declare const UrlHelper: {
9
9
  buildFilter(params: FilterParams): string;
10
10
  makeHttps(url: string): string;
11
11
  safeUrlConcat(baseUrl: string, path: string): string;
12
+ removeTrailingSlash(baseUrl: string): string;
12
13
  };
13
14
  export {};
@@ -24,6 +24,10 @@ export declare const ArrayHelper: {
24
24
  * @param value value to be added or removed.
25
25
  */
26
26
  addOrRemove<T_13 = import("react").Key>(arr: T_13[], value: T_13): T_13[];
27
+ /**
28
+ * This is the same addOrRemove function above, except it doesn't mutate the array in the argument
29
+ * and returns a branch new array.
30
+ */
27
31
  addOrRemoveImmutable<T_14>(arr: T_14[], value: T_14): T_14[];
28
32
  /**
29
33
  * Returns a (stably) sorted copy of list, ranked in ascending order
@@ -6,6 +6,7 @@ interface ActionButtonProps {
6
6
  svgName?: string;
7
7
  className?: string;
8
8
  tooltip?: string;
9
+ showSpinner?: boolean;
9
10
  }
10
11
  export declare function ActionButton(props: React.PropsWithChildren<ActionButtonProps>): JSX.Element;
11
12
  export {};
@@ -9,6 +9,7 @@ export interface ActionOptions {
9
9
  className?: string;
10
10
  button?: boolean;
11
11
  tooltip?: string;
12
+ showSpinner?: boolean;
12
13
  }
13
14
  export declare type ActionGenerator = (obj: BaseObject) => ActionOptions[];
14
15
  interface ActionsProps {
@@ -3,5 +3,6 @@ import { ButtonProps } from 'react-bootstrap';
3
3
  export interface SpinnerButtonProps extends ButtonProps {
4
4
  showSpinner: boolean;
5
5
  onClick?: () => void;
6
+ className?: string;
6
7
  }
7
8
  export declare function SpinnerButton(props: React.PropsWithChildren<SpinnerButtonProps>): React.ReactElement;
@@ -0,0 +1,4 @@
1
+ export declare enum PresentationType {
2
+ Subject = "subject",
3
+ Curriculum = "curriculum"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum SettingKind {
2
+ Permanent = 0,
3
+ Temporary = 1
4
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum SettingName {
2
+ HasCompletedOnboarding = "has_completed_onboarding"
3
+ }
@@ -0,0 +1,9 @@
1
+ import { SettingKind } from "../../enums/SettingKind";
2
+ import { SettingName } from "../../enums/SettingName";
3
+ export interface EntitySetting {
4
+ name: SettingName;
5
+ displayName: string;
6
+ value: any;
7
+ type: string;
8
+ kind: SettingKind;
9
+ }
@@ -1,3 +1,6 @@
1
1
  import { BaseObject } from "./..";
2
+ import { PresentationType } from "../../enums/PresentationType";
2
3
  export interface Presentation extends BaseObject {
4
+ coverUrl: string;
5
+ type: PresentationType;
3
6
  }
@@ -43,3 +43,4 @@ export * from './Following';
43
43
  export * from './UserChannel';
44
44
  export * from './Group';
45
45
  export * from './VideoHistory';
46
+ export * from './EntitySetting';
@@ -1,10 +1,11 @@
1
1
  import * as React from 'react';
2
+ import { Classification } from "../../../../../../../../libs/shared/src/interfaces";
2
3
  import { SubjectTree, ClassificationTree } from "../../../interfaces";
3
4
  interface EditClassificationDetailsFormProps {
4
5
  presentationId: string;
5
6
  classificationTree: ClassificationTree;
6
7
  subjectTree: SubjectTree;
7
- id?: string;
8
+ classification?: Classification;
8
9
  }
9
10
  export declare function EditClassificationDetailsForm(props: EditClassificationDetailsFormProps): React.ReactElement;
10
11
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/curator",
3
- "version": "1.0.19-dev.0",
3
+ "version": "1.0.19-dev.2",
4
4
  "description": "curator",
5
5
  "main": "dist/curator-app.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,14 +20,14 @@
20
20
  "author": "Matt Trengrove",
21
21
  "license": "ISC",
22
22
  "devDependencies": {
23
- "@clickview/tooling": "0.0.18-dev.2",
23
+ "@clickview/tooling": "0.0.18-dev.3",
24
24
  "@types/cropperjs": "1.3.0",
25
25
  "@types/react-copy-to-clipboard": "4.3.0",
26
26
  "@types/react-transition-group": "4.2.3",
27
27
  "@types/yup": "0.26.24"
28
28
  },
29
29
  "dependencies": {
30
- "@clickview/styles": "1.0.8-dev.2",
30
+ "@clickview/styles": "1.0.8-dev.3",
31
31
  "cropperjs": "1.5.6",
32
32
  "marked": "0.8.0",
33
33
  "react-copy-to-clipboard": "5.0.2",