@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.
@@ -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`)),