@bigbinary/neeto-commons-frontend 2.0.34 → 2.0.36

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/react-utils.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
 
3
3
  import {
4
+ AlertProps,
4
5
  AvatarProps,
5
6
  CheckboxProps,
6
7
  DropdownProps,
@@ -10,6 +11,7 @@ import {
10
11
  } from "@bigbinary/neetoui";
11
12
  import { LinkType, NavLinkItemType } from "@bigbinary/neetoui/layouts";
12
13
  import { RouteProps } from "react-router-dom";
14
+ import { UseMutationResult } from "react-query";
13
15
  import { Notice } from "@honeybadger-io/js/dist/server/types/core/types";
14
16
  import { ObjectAndPrimitives } from "./pure";
15
17
  import { DateTimeType, timeFormat } from "./utils";
@@ -146,6 +148,21 @@ export const CustomDomain: React.FC<{
146
148
 
147
149
  export const IpRestriction: React.FC<{}>;
148
150
 
151
+ export const PublishBlock: React.FC<{
152
+ entityId: string;
153
+ publishMutation: () => UseMutationResult<any, any, any, any>;
154
+ resetDraftMutation: () => UseMutationResult<any, any, any, any>;
155
+ renderDraftButtons: (props: {
156
+ ViewDraftButton: JSX.Element;
157
+ ResetDraftButton: JSX.Element;
158
+ }) => React.ReactNode;
159
+ renderPublishButtons: (props: {
160
+ PublishButton: JSX.Element;
161
+ PublishPreviewButton: JSX.Element;
162
+ }) => React.ReactNode;
163
+ resetAlertProps?: AlertProps;
164
+ }>;
165
+
149
166
  export function useFieldSubmit(onSubmit: () => any): {
150
167
  current: HTMLInputElement & HTMLTextAreaElement;
151
168
  };