@project-sunbird/sunbird-questionset-editor-web-component-react 0.1.0 → 0.1.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/api/asset.d.ts +2 -2
- package/dist/api/categoryDefinition.d.ts +2 -0
- package/dist/api/urls.d.ts +1 -1
- package/dist/components/QuestionEditor/QuestionEditor.d.ts +1 -2
- package/dist/index.js +4020 -3977
- package/dist/locales/label.config.ar.json.d.ts +6 -1
- package/dist/locales/label.config.json.d.ts +6 -1
- package/dist/style.css +1 -1
- package/dist/utils/context.d.ts +2 -0
- package/package.json +3 -2
package/dist/api/asset.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare function searchAssets(params: {
|
|
|
20
20
|
items: IAssetItem[];
|
|
21
21
|
count: number;
|
|
22
22
|
}>;
|
|
23
|
-
export declare function createMediaAsset(file: File, channel: string, createdBy: string): Promise<IAssetCreateResult>;
|
|
23
|
+
export declare function createMediaAsset(file: File, channel: string, createdBy: string, creator?: string): Promise<IAssetCreateResult>;
|
|
24
24
|
export declare function getPreSignedUrl(assetId: string, fileName: string): Promise<{
|
|
25
25
|
preSignedUrl: string;
|
|
26
26
|
url: string;
|
|
@@ -28,4 +28,4 @@ export declare function getPreSignedUrl(assetId: string, fileName: string): Prom
|
|
|
28
28
|
export declare function uploadToBlob(preSignedUrl: string, file: File, presignedHeaders?: Record<string, string>): Promise<void>;
|
|
29
29
|
export declare function finalizeAssetUpload(assetId: string, blobUrl: string, mimeType: string): Promise<void>;
|
|
30
30
|
export declare function readAsset(assetId: string): Promise<IAssetItem>;
|
|
31
|
-
export declare function uploadAsset(file: File, channel: string, createdBy: string, presignedHeaders?: Record<string, string
|
|
31
|
+
export declare function uploadAsset(file: File, channel: string, createdBy: string, presignedHeaders?: Record<string, string>, creator?: string): Promise<string>;
|
|
@@ -35,5 +35,7 @@ export interface IParsedCategoryDefinition {
|
|
|
35
35
|
targetFWType?: string[];
|
|
36
36
|
};
|
|
37
37
|
sourcingSettings: Record<string, unknown>;
|
|
38
|
+
/** Hierarchy depth from objectMetadata.config (NOT sourcingSettings). */
|
|
39
|
+
maxDepth?: number;
|
|
38
40
|
}
|
|
39
41
|
export declare function getCategoryDefinition(categoryName: string, channel: string, objectType?: string, version?: 'v1' | 'v4'): Promise<IParsedCategoryDefinition>;
|
package/dist/api/urls.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare const URLS: {
|
|
|
22
22
|
readonly commentRead: "questionset/v2/comment/read";
|
|
23
23
|
readonly commentUpdate: "questionset/v2/comment/update";
|
|
24
24
|
/** Extra read fields absent from the hierarchy response. */
|
|
25
|
-
readonly defaultFields: "instructions,outcomeDeclaration";
|
|
25
|
+
readonly defaultFields: "instructions,outcomeDeclaration,showTimer,timeLimits";
|
|
26
26
|
};
|
|
27
27
|
readonly question: {
|
|
28
28
|
readonly read: "question/v2/read";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { EditorMode } from '../../types/editor';
|
|
3
2
|
|
|
4
3
|
export interface QuestionEditorProps {
|
|
5
4
|
editorMode: EditorMode;
|
|
6
5
|
onBack?: () => void;
|
|
7
6
|
}
|
|
8
|
-
export default function QuestionEditor({ editorMode, onBack }: QuestionEditorProps):
|
|
7
|
+
export default function QuestionEditor({ editorMode, onBack }: QuestionEditorProps): import("react").JSX.Element;
|