@nivaro/react 0.3.18 → 0.3.20
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/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/shared/components/ItemEditForm.js +1677 -1650
- package/dist/shared/components/help-videos/api.js +3 -0
- package/dist/shared/components/help-videos/library/HelpVideoLibrary.js +225 -177
- package/dist/shared/components/item-edit/HeaderBand.js +73 -63
- package/dist/shared/components/item-edit/HeaderOverflowChip.js +19 -17
- package/dist/shared/lib/header-strip.js +125 -107
- package/package.json +1 -1
|
@@ -249,6 +249,9 @@ function $(s) {
|
|
|
249
249
|
setContexts: (e, t) => a(c(`/help-videos/${e}/contexts`, { contexts: t })),
|
|
250
250
|
setRequirements: (e, t) => a(c(`/help-videos/${e}/requirements`, { role_ids: t })),
|
|
251
251
|
archive: (e) => a(p(`/help-videos/${e}`)),
|
|
252
|
+
/** Back to draft: viewers stop seeing it; the published version is kept, so `publish` puts the
|
|
253
|
+
* same cut back with no new render. 409 HELP_VIDEO_NOT_PUBLISHED unless it is published. */
|
|
254
|
+
unpublish: (e) => a(i(`/help-videos/${e}/unpublish`, {})).then((t) => t.data),
|
|
252
255
|
/** Deletes the video, its versions, files, views and requirements for good. Administrators
|
|
253
256
|
* only (403 ADMIN_ONLY otherwise); 404 when it is already gone. */
|
|
254
257
|
purge: (e) => a(p(`/help-videos/${e}?purge=1`)),
|