Skip to content

Commit

Permalink
bump module version
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucanis committed Apr 15, 2024
1 parent 02b034c commit cf49a66
Show file tree
Hide file tree
Showing 8 changed files with 302 additions and 149 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>2.1.12</version>
<version>2.1.13</version>
<authors>
<author>
<name></name>
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"husky": "^8.0.1"
},
"dependencies": {
"@thelia/blocks-editor": "^1.3.8"
"@thelia/blocks-editor": "^1.3.9"
}
}
173 changes: 163 additions & 10 deletions templates/backOffice/default/vendor/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Locale, BlockModuleComponentProps, IBlock, BlockPluginDefinition, Video } from './utils/types.js';
import { Locale, BlockModuleComponentProps, IBlock, BlockPluginDefinition, Video, GroupTypeResponse } from './utils/types.js';
export { BlockModuleComponentProps, BlockPluginDefinition, IBlock } from './utils/types.js';
export { nanoid as generateId } from 'nanoid';
import * as react from 'react';
import { ReactElement } from 'react';
import { ReactElement, ChangeEvent, ReactNode, InputHTMLAttributes } from 'react';

interface IBlocksEditorProps {
apiUrl: string;
Expand Down Expand Up @@ -94,6 +94,7 @@ declare type BlockButtonData = {
label: string;
url: string;
type: string;
target: HTMLAnchorElement["target"];
};
declare const blockButton: BlockPluginDefinition<BlockButtonData>;

Expand Down Expand Up @@ -482,26 +483,178 @@ declare const Columns: {
};
};

declare const index_Columns: typeof Columns;
declare const index_Accordion: typeof Accordion;
declare const index_Group: typeof Group;
declare namespace index {
declare const index$1_Columns: typeof Columns;
declare const index$1_Accordion: typeof Accordion;
declare const index$1_Group: typeof Group;
declare namespace index$1 {
export {
blockRaw as Raw,
Blocktext as Text,
BlockTitle as Title,
blockVideo as Video,
index_Columns as Columns,
index$1_Columns as Columns,
BlockSeparator as Separator,
blockButton as Button,
index_Accordion as Accordion,
index$1_Accordion as Accordion,
blockProduct as Product,
blockCategory as Category,
blockTable as Table,
BlockList as List,
index_Group as Group,
index$1_Group as Group,
BlockHighlight as Highlight,
};
}

export { BlocksEditor, BlocksList, LinkBlockToItem, LocaleContext, LocaleProvider, index as blocks, registerPlugin };
declare const AddBlocks: ({ excludeLayout, inLayout, }: {
excludeLayout?: boolean | undefined;
inLayout?: boolean | undefined;
}) => JSX.Element;

declare const Block: ({ block, inLayout, className, DndDragHandle, }: {
block: IBlock;
inLayout?: boolean | undefined;
className?: string | undefined;
DndDragHandle: () => JSX.Element;
}) => JSX.Element;

declare const BlockControls: ({ blockId, blockIndex, inLayout, DndDragHandle, }: {
blockId: string;
blockIndex: number;
inLayout?: boolean | undefined;
DndDragHandle: () => JSX.Element;
}) => JSX.Element;

declare function BlocksContent(): JSX.Element;

declare const BlocksTable: () => JSX.Element;

declare const BlockTooltip: ({ title, description, image, }: {
title: string;
description?: string | undefined;
image?: string | undefined;
}) => JSX.Element;

declare function GroupLocale(): JSX.Element;

declare function GroupTitle({ isGroupLinkedToCurrentContent, onLink, isLinking, }: {
isGroupLinkedToCurrentContent: boolean;
onLink: () => void;
isLinking: boolean;
}): JSX.Element;

declare const Iframe: ({ content }: {
content: string;
}) => JSX.Element;

declare const Input: react.ForwardRefExoticComponent<{
value?: string | undefined;
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
className?: string | undefined;
emphasize?: boolean | undefined;
placeholder?: string | undefined;
icon?: ReactNode;
iconAlignment?: "right" | "left" | undefined;
type?: "text" | "color" | "password" | "email" | undefined;
isValid?: boolean | undefined;
label?: string | undefined;
id: string;
info?: ReactNode;
error?: string | undefined;
} & InputHTMLAttributes<HTMLInputElement> & react.RefAttributes<HTMLInputElement>>;

declare const Select: react.ForwardRefExoticComponent<{
value: string;
onChange: (event: ChangeEvent<HTMLSelectElement>) => void;
className?: string | undefined;
label?: string | undefined;
id: string;
info?: ReactNode;
error?: string | undefined;
children: ReactNode;
} & InputHTMLAttributes<HTMLSelectElement> & react.RefAttributes<HTMLSelectElement>>;

declare const TextArea: react.ForwardRefExoticComponent<{
rows?: number | undefined;
id: string;
label?: string | undefined;
info?: ReactNode;
error?: string | undefined;
className?: string | undefined;
} & InputHTMLAttributes<HTMLTextAreaElement> & react.RefAttributes<HTMLTextAreaElement>>;

declare const LinkedContentTable: ({ linkedContents, setIsItemBlockModalOpen, }: {
linkedContents: GroupTypeResponse["itemBlockGroups"];
setIsItemBlockModalOpen: Function;
}) => JSX.Element;

declare const LayoutHeader: ({ title, icon, open, setOpen, onDelete, }: {
title: string;
icon?: ReactNode;
open: boolean;
setOpen: Function;
onDelete?: Function | undefined;
}) => JSX.Element;

declare const Modal: ({ modalClassName, isOpen, setIsOpen, title, children, }: {
modalClassName?: string | undefined;
isOpen: boolean;
setIsOpen: Function;
title: string;
children: React.ReactNode;
}) => JSX.Element;

declare function Preview({ isOpen, setIsOpen, setIsPreviewLoading, timestamp, data, }: {
isOpen: boolean;
setIsOpen: Function;
setIsPreviewLoading: Function;
timestamp: number;
data?: string;
}): JSX.Element;

declare const Sidebar: () => JSX.Element;

declare const ToolBar: () => JSX.Element;

declare const index_AddBlocks: typeof AddBlocks;
declare const index_Block: typeof Block;
declare const index_BlockControls: typeof BlockControls;
declare const index_BlocksContent: typeof BlocksContent;
declare const index_BlocksTable: typeof BlocksTable;
declare const index_BlockTooltip: typeof BlockTooltip;
declare const index_GroupLocale: typeof GroupLocale;
declare const index_GroupTitle: typeof GroupTitle;
declare const index_Iframe: typeof Iframe;
declare const index_Input: typeof Input;
declare const index_Select: typeof Select;
declare const index_TextArea: typeof TextArea;
declare const index_LayoutHeader: typeof LayoutHeader;
declare const index_LinkBlockToItem: typeof LinkBlockToItem;
declare const index_Modal: typeof Modal;
declare const index_Preview: typeof Preview;
declare const index_Sidebar: typeof Sidebar;
declare const index_ToolBar: typeof ToolBar;
declare namespace index {
export {
index_AddBlocks as AddBlocks,
index_Block as Block,
index_BlockControls as BlockControls,
index_BlocksContent as BlocksContent,
index_BlocksTable as BlocksTable,
index_BlockTooltip as BlockTooltip,
index_GroupLocale as GroupLocale,
index_GroupTitle as GroupTitle,
index_Iframe as Iframe,
index_Input as Input,
index_Select as Select,
index_TextArea as TextArea,
LinkedContentTable as ItemBlockGroupTable,
index_LayoutHeader as LayoutHeader,
index_LinkBlockToItem as LinkBlockToItem,
index_Modal as Modal,
index_Preview as Preview,
index_Sidebar as Sidebar,
index_ToolBar as ToolBar,
};
}

export { BlocksEditor, BlocksList, LinkBlockToItem, LocaleContext, LocaleProvider, index$1 as blocks, index as components, registerPlugin };
130 changes: 65 additions & 65 deletions templates/backOffice/default/vendor/index.global.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/backOffice/default/vendor/index.global.js.map

Large diffs are not rendered by default.

126 changes: 63 additions & 63 deletions templates/backOffice/default/vendor/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/backOffice/default/vendor/index.js.map

Large diffs are not rendered by default.

0 comments on commit cf49a66

Please sign in to comment.