@project-sunbird/sunbird-questionset-editor-web-component-react 0.1.3 → 0.1.5
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/question.d.ts +2 -0
- package/dist/assets/sunbird-quml-player-styles.css +20 -0
- package/dist/assets/sunbird-quml-player.js +31 -0
- package/dist/components/shared/EditorRootContext.d.ts +7 -0
- package/dist/components/shared/ImagePickerModal.d.ts +4 -1
- package/dist/index.js +5087 -5041
- package/dist/store/question.store.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/types/question.d.ts +6 -1
- package/dist/utils/i18nSerialize.d.ts +8 -2
- package/package.json +3 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The owning editor instance's `.ce` root element. Modals portal into it so
|
|
3
|
+
* the `--sb-*`/`--accent` variables (scoped to `.ce`) apply — a global
|
|
4
|
+
* `document.querySelector('.ce')` would resolve to the FIRST editor on the
|
|
5
|
+
* page, which is wrong when a host mounts multiple instances.
|
|
6
|
+
*/
|
|
7
|
+
export declare const EditorRootContext: import('react').Context<HTMLElement | null>;
|
|
@@ -11,5 +11,8 @@ export interface ImagePickerModalProps {
|
|
|
11
11
|
onClose: () => void;
|
|
12
12
|
/** Asset type to browse/upload — labels and search filters follow. */
|
|
13
13
|
mediaType?: PickerMediaType;
|
|
14
|
+
/** appIcon is stored as the absolute blob-storage URL, not the /assets/public/
|
|
15
|
+
* proxy path every other asset reference uses — skip the rewrite for it. */
|
|
16
|
+
preserveAbsoluteUrl?: boolean;
|
|
14
17
|
}
|
|
15
|
-
export default function ImagePickerModal({ onSelect, onClose, mediaType }: ImagePickerModalProps): React.ReactPortal;
|
|
18
|
+
export default function ImagePickerModal({ onSelect, onClose, mediaType, preserveAbsoluteUrl }: ImagePickerModalProps): React.ReactPortal;
|