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 d578a99 commit b41e9bc
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 24 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>1.2.5</version>
<version>1.2.6</version>
<authors>
<author>
<name></name>
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"husky": "^8.0.1"
},
"dependencies": {
"@thelia/blocks-editor": "^1.3.5",
"@thelia/media-library": "^1.1.3"
"@thelia/blocks-editor": "^1.3.9",
"@thelia/media-library": "^1.1.4"
}
}
1 change: 1 addition & 0 deletions templates/backOffice/default/tb-plugin/vendor/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ declare type LibraryImage = {
url: string;
target?: string;
};
target: HTMLAnchorElement["target"];
};

declare const UploadImage: ({ onSelect, compact, uploadModes, }: {
Expand Down
22 changes: 20 additions & 2 deletions templates/backOffice/default/tb-plugin/vendor/index.global.js
Original file line number Diff line number Diff line change
Expand Up @@ -8253,6 +8253,7 @@ var TheliaMediaLibraryBlock = (() => {
BlockImage__LIBRARY_IMAGE_TAG_CONFIG: "Configuration des tags de",
BlockImage__LIBRARY_IMAGE_ADD_TAG: "Ajouter un ou plusieurs tag",
BlockImage__LIBRARY_IMAGE_SELECT_TAG: "S\xE9lectionnez un ou plusieurs tag",
BlockImage__TARGET: "Type d'ouverture du lien",
REPLACE: "Remplacer",
REPLACE_IMAGE: "Remplacer l'image",
OPTIONAL: "Optionnel",
Expand Down Expand Up @@ -8289,6 +8290,7 @@ var TheliaMediaLibraryBlock = (() => {
BlockImage__LIBRARY_IMAGE_TAG_CONFIG: "Configure tags of",
BlockImage__LIBRARY_IMAGE_ADD_TAG: "Add one or more tag",
BlockImage__LIBRARY_IMAGE_SELECT_TAG: "Select one or more tag",
BlockImage__TARGET: "Link opening type",
REPLACE: "Replace",
REPLACE_IMAGE: "Replace image",
OPTIONAL: "Optional",
Expand Down Expand Up @@ -16209,6 +16211,7 @@ to {
};

// src/Image/index.tsx
var Select = import_blocks_editor2.components.Select;
var FromLocal = ({
onSelect,
isWide = false
Expand Down Expand Up @@ -16330,6 +16333,7 @@ to {
const [url, setUrl] = (0, import_react13.useState)(image.link?.url || "");
const [width, setWidth] = (0, import_react13.useState)(image.width || "");
const [height, setHeight] = (0, import_react13.useState)(image.height || "");
const [target, setTarget] = (0, import_react13.useState)(image.target || "");
const intl = useIntl();
return /* @__PURE__ */ React.createElement("form", {
className: "BlockImage__Infos__Form",
Expand All @@ -16354,7 +16358,20 @@ to {
}),
onChange: (e2) => setUrl(e2.target.value),
onBlur: () => onChange({ link: { url } })
})), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, intl.formatMessage({ id: "BlockImage__WIDTH" }), " (", intl.formatMessage({ id: "OPTIONAL" }), ")"), /* @__PURE__ */ React.createElement("input", {
})), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, intl.formatMessage({ id: "BlockImage__TARGET" })), /* @__PURE__ */ React.createElement(Select, {
id: "BlockImage-field-target",
value: target,
name: "linkTarget",
onChange: (e2) => {
setTarget(e2.target.value);
onChange({ target: e2.target.value || "_self" });
},
disabled: !url
}, /* @__PURE__ */ React.createElement("option", {
value: "_self"
}, "self"), /* @__PURE__ */ React.createElement("option", {
value: "_blank"
}, "blank"))), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, intl.formatMessage({ id: "BlockImage__WIDTH" }), " (", intl.formatMessage({ id: "OPTIONAL" }), ")"), /* @__PURE__ */ React.createElement("input", {
className: "Input__Text",
type: "text",
name: "width",
Expand Down Expand Up @@ -16480,7 +16497,8 @@ to {
fileName: "",
width: "",
height: "",
tags: []
tags: [],
target: "_self"
};
var moduleType = {
id: "blockImage"
Expand Down

Large diffs are not rendered by default.

25 changes: 22 additions & 3 deletions templates/backOffice/default/tb-plugin/vendor/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2855,7 +2855,8 @@ var require_lib = __commonJS({

// src/Image/index.tsx
import {
LocaleContext as LocaleContext2
LocaleContext as LocaleContext2,
components
} from "@thelia/blocks-editor";
import { useContext as useContext3, useEffect as useEffect3, useState as useState3 } from "react";

Expand Down Expand Up @@ -6949,6 +6950,7 @@ var messages = {
BlockImage__LIBRARY_IMAGE_TAG_CONFIG: "Configuration des tags de",
BlockImage__LIBRARY_IMAGE_ADD_TAG: "Ajouter un ou plusieurs tag",
BlockImage__LIBRARY_IMAGE_SELECT_TAG: "S\xE9lectionnez un ou plusieurs tag",
BlockImage__TARGET: "Type d'ouverture du lien",
REPLACE: "Remplacer",
REPLACE_IMAGE: "Remplacer l'image",
OPTIONAL: "Optionnel",
Expand Down Expand Up @@ -6985,6 +6987,7 @@ var messages = {
BlockImage__LIBRARY_IMAGE_TAG_CONFIG: "Configure tags of",
BlockImage__LIBRARY_IMAGE_ADD_TAG: "Add one or more tag",
BlockImage__LIBRARY_IMAGE_SELECT_TAG: "Select one or more tag",
BlockImage__TARGET: "Link opening type",
REPLACE: "Replace",
REPLACE_IMAGE: "Replace image",
OPTIONAL: "Optional",
Expand Down Expand Up @@ -13460,6 +13463,7 @@ var Oe = ({ reverseOrder: e2, position: t2 = "top-center", toastOptions: o2, gut

// src/Image/index.tsx
import { queryClient as queryClient2 } from "@thelia/fetcher";
var Select = components.Select;
var FromLocal = ({
onSelect,
isWide = false
Expand Down Expand Up @@ -13581,6 +13585,7 @@ var ImageInfos = ({
const [url, setUrl] = useState3(image.link?.url || "");
const [width, setWidth] = useState3(image.width || "");
const [height, setHeight] = useState3(image.height || "");
const [target, setTarget] = useState3(image.target || "");
const intl = useIntl();
return /* @__PURE__ */ React.createElement("form", {
className: "BlockImage__Infos__Form",
Expand All @@ -13605,7 +13610,20 @@ var ImageInfos = ({
}),
onChange: (e2) => setUrl(e2.target.value),
onBlur: () => onChange({ link: { url } })
})), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, intl.formatMessage({ id: "BlockImage__WIDTH" }), " (", intl.formatMessage({ id: "OPTIONAL" }), ")"), /* @__PURE__ */ React.createElement("input", {
})), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, intl.formatMessage({ id: "BlockImage__TARGET" })), /* @__PURE__ */ React.createElement(Select, {
id: "BlockImage-field-target",
value: target,
name: "linkTarget",
onChange: (e2) => {
setTarget(e2.target.value);
onChange({ target: e2.target.value || "_self" });
},
disabled: !url
}, /* @__PURE__ */ React.createElement("option", {
value: "_self"
}, "self"), /* @__PURE__ */ React.createElement("option", {
value: "_blank"
}, "blank"))), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, intl.formatMessage({ id: "BlockImage__WIDTH" }), " (", intl.formatMessage({ id: "OPTIONAL" }), ")"), /* @__PURE__ */ React.createElement("input", {
className: "Input__Text",
type: "text",
name: "width",
Expand Down Expand Up @@ -13731,7 +13749,8 @@ var initialData = {
fileName: "",
width: "",
height: "",
tags: []
tags: [],
target: "_self"
};
var moduleType = {
id: "blockImage"
Expand Down

Large diffs are not rendered by default.

0 comments on commit b41e9bc

Please sign in to comment.