@project-sunbird/collection-editor-react 0.1.4 → 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/collection-editor.umd.js +92 -92
- package/dist/hooks/useContentStatus.d.ts +7 -0
- package/dist/index.cjs +92 -92
- package/dist/index.js +3528 -3475
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -4,3 +4,10 @@
|
|
|
4
4
|
* once it moves to Review / Live, the add affordances are disabled.
|
|
5
5
|
*/
|
|
6
6
|
export declare function useIsDraftStatus(): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Returns true only when the currently selected tree node is a Unit or
|
|
9
|
+
* Sub-Unit (isFolder, but NOT the root). Used to gate the Library + button —
|
|
10
|
+
* content should only be addable to units, not directly to the course root or
|
|
11
|
+
* to individual leaf content nodes.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useSelectedNodeIsUnit(): boolean;
|