Skip to content

Commit

Permalink
Improve release process
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Jul 2, 2024
1 parent c449e14 commit 44451f8
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@
"hooks": {
"before:bump": [
"yarn i18n",
"yarn build:types"
"yarn build:types",
"git add types"
],
"after:bump": [
"pipx run towncrier build --draft --yes --version ${version} > .changelog.draft && pipx run towncrier build --yes --version ${version}",
Expand Down
7 changes: 7 additions & 0 deletions types/components/manage/AnchorPlugin/useLinkEditor.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default useLinkEditor;
declare function useLinkEditor(): {
anchorNode: React.MutableRefObject<undefined>;
show: () => void;
LinkEditor: (props: any) => JSX.Element;
};
import React from 'react';
116 changes: 116 additions & 0 deletions types/components/manage/Widgets/ImageWidget.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
export function ImageToolbar({ className, data, id, onChange, selected }: {
className: any;
data: any;
id: any;
onChange: any;
selected: any;
}): JSX.Element;
export const ImageInput: import("react-redux").ConnectedComponent<{
new (): {
state: {
isObjectBrowserOpen: boolean;
};
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, }?: {
mode: string;
dataName: string;
onSelectItem: string;
overlay: string;
}) => void;
closeObjectBrowser: () => void;
render(): JSX.Element;
context: unknown;
setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<any>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
};
defaultProps: {
onChangeBlock: () => void;
data: {};
block: string;
};
contextType?: React.Context<any>;
}, import("react-redux").Omit<Pick<React.ClassAttributes<{
state: {
isObjectBrowserOpen: boolean;
};
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, }?: {
mode: string;
dataName: string;
onSelectItem: string;
overlay: string;
}) => void;
closeObjectBrowser: () => void;
render(): JSX.Element;
context: unknown;
setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<any>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
}>, keyof React.ClassAttributes<{
state: {
isObjectBrowserOpen: boolean;
};
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, }?: {
mode: string;
dataName: string;
onSelectItem: string;
overlay: string;
}) => void;
closeObjectBrowser: () => void;
render(): JSX.Element;
context: unknown;
setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<any>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
}>> & {} & {
data?: {};
block?: string;
onChangeBlock?: () => void;
}, never>>;
export default ImageUploadWidget;
import React from 'react';
declare function ImageUploadWidget(props: any): JSX.Element;

0 comments on commit 44451f8

Please sign in to comment.