@interware/content-generator 0.4.2 → 0.4.3
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/dist/_chunks/{App-CsarVpQf.js → App-DmCOiKrV.js} +29 -13
- package/dist/_chunks/{App-8EiV8xw6.mjs → App-oubMDdAZ.mjs} +29 -13
- package/dist/_chunks/{Settings-DXyz9jmT.js → Settings-APrsjya3.js} +2 -2
- package/dist/_chunks/{Settings-Be27Xer1.mjs → Settings-BevnW4cE.mjs} +2 -2
- package/dist/_chunks/{getTranslation-YJf3i4B7.mjs → getTranslation-B0tfTODk.mjs} +1 -1
- package/dist/_chunks/{getTranslation-BODOQcEi.js → getTranslation-DwDV99gW.js} +1 -1
- package/dist/_chunks/{index-DIbmEmw5.js → index-CTnsB_jp.js} +2 -2
- package/dist/_chunks/{index-DL56cMMt.mjs → index-PnmqwUfI.mjs} +2 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -4,12 +4,12 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const admin = require("@strapi/strapi/admin");
|
|
5
5
|
const designSystem = require("@strapi/design-system");
|
|
6
6
|
const reactRouterDom = require("react-router-dom");
|
|
7
|
-
const index = require("./index-
|
|
7
|
+
const index = require("./index-CTnsB_jp.js");
|
|
8
8
|
const reactIntl = require("react-intl");
|
|
9
9
|
const react = require("react");
|
|
10
10
|
const reactRedux = require("react-redux");
|
|
11
11
|
const icons = require("@strapi/icons");
|
|
12
|
-
const getTranslation = require("./getTranslation-
|
|
12
|
+
const getTranslation = require("./getTranslation-DwDV99gW.js");
|
|
13
13
|
const formik = require("formik");
|
|
14
14
|
const Yup = require("yup");
|
|
15
15
|
function _interopNamespace(e) {
|
|
@@ -1087,17 +1087,33 @@ const ImagesProvider = ({ children }) => {
|
|
|
1087
1087
|
return;
|
|
1088
1088
|
}
|
|
1089
1089
|
}, [openDialog, setOpen]);
|
|
1090
|
-
const downloadImage = (url, filename) => {
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1090
|
+
const downloadImage = async (url, filename) => {
|
|
1091
|
+
try {
|
|
1092
|
+
const response = await fetch(url, {
|
|
1093
|
+
method: "GET",
|
|
1094
|
+
mode: "cors"
|
|
1095
|
+
});
|
|
1096
|
+
if (!response.ok) throw new Error("Network response was not ok");
|
|
1097
|
+
const blob = await response.blob();
|
|
1098
|
+
const blobUrl = window.URL.createObjectURL(blob);
|
|
1099
|
+
const link = document.createElement("a");
|
|
1100
|
+
link.href = blobUrl;
|
|
1101
|
+
link.download = filename;
|
|
1102
|
+
document.body.appendChild(link);
|
|
1103
|
+
link.click();
|
|
1104
|
+
document.body.removeChild(link);
|
|
1105
|
+
window.URL.revokeObjectURL(blobUrl);
|
|
1106
|
+
} catch (error) {
|
|
1107
|
+
console.error("Error downloading image:", error);
|
|
1108
|
+
const link = document.createElement("a");
|
|
1109
|
+
link.href = url;
|
|
1110
|
+
link.target = "_blank";
|
|
1111
|
+
link.rel = "noopener noreferrer";
|
|
1112
|
+
link.download = filename;
|
|
1113
|
+
document.body.appendChild(link);
|
|
1114
|
+
link.click();
|
|
1115
|
+
document.body.removeChild(link);
|
|
1116
|
+
}
|
|
1101
1117
|
};
|
|
1102
1118
|
const handleDownload = async (selectedKeys) => {
|
|
1103
1119
|
const image = currentImageRef.current;
|
|
@@ -2,12 +2,12 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRBAC, useFetchClient, useNotification, Page } from "@strapi/strapi/admin";
|
|
3
3
|
import { SubNav, SubNavHeader, SubNavSections, SubNavSection, SubNavLink, Box, Table, Thead, Tr, Th, Typography, Flex, Tbody, Td, Button, LinkButton, Dialog, Grid, Field, Textarea, TextInput, Combobox, ComboboxOption, Modal, Card, CardHeader, CardCheckbox, CardAsset, CardBody, CardContent, CardTitle, CardSubtitle, CardBadge, CardAction, IconButton, DesignSystemProvider } from "@strapi/design-system";
|
|
4
4
|
import { useLocation, useNavigate, Routes, Route } from "react-router-dom";
|
|
5
|
-
import { p as pluginPermissions, c as closeDialog, o as openDialog, P as PLUGIN_ID } from "./index-
|
|
5
|
+
import { p as pluginPermissions, c as closeDialog, o as openDialog, P as PLUGIN_ID } from "./index-PnmqwUfI.mjs";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
7
|
import { useCallback, memo, useMemo, useState, useRef, useEffect, createContext, useContext } from "react";
|
|
8
8
|
import { useDispatch, useSelector } from "react-redux";
|
|
9
9
|
import { Play, ExternalLink, Image as Image$1, Download, Trash, PlusCircle } from "@strapi/icons";
|
|
10
|
-
import { g as getTranslation } from "./getTranslation-
|
|
10
|
+
import { g as getTranslation } from "./getTranslation-B0tfTODk.mjs";
|
|
11
11
|
import { useFormik } from "formik";
|
|
12
12
|
import * as Yup from "yup";
|
|
13
13
|
const links = [
|
|
@@ -1067,17 +1067,33 @@ const ImagesProvider = ({ children }) => {
|
|
|
1067
1067
|
return;
|
|
1068
1068
|
}
|
|
1069
1069
|
}, [openDialog2, setOpen]);
|
|
1070
|
-
const downloadImage = (url, filename) => {
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1070
|
+
const downloadImage = async (url, filename) => {
|
|
1071
|
+
try {
|
|
1072
|
+
const response = await fetch(url, {
|
|
1073
|
+
method: "GET",
|
|
1074
|
+
mode: "cors"
|
|
1075
|
+
});
|
|
1076
|
+
if (!response.ok) throw new Error("Network response was not ok");
|
|
1077
|
+
const blob = await response.blob();
|
|
1078
|
+
const blobUrl = window.URL.createObjectURL(blob);
|
|
1079
|
+
const link = document.createElement("a");
|
|
1080
|
+
link.href = blobUrl;
|
|
1081
|
+
link.download = filename;
|
|
1082
|
+
document.body.appendChild(link);
|
|
1083
|
+
link.click();
|
|
1084
|
+
document.body.removeChild(link);
|
|
1085
|
+
window.URL.revokeObjectURL(blobUrl);
|
|
1086
|
+
} catch (error) {
|
|
1087
|
+
console.error("Error downloading image:", error);
|
|
1088
|
+
const link = document.createElement("a");
|
|
1089
|
+
link.href = url;
|
|
1090
|
+
link.target = "_blank";
|
|
1091
|
+
link.rel = "noopener noreferrer";
|
|
1092
|
+
link.download = filename;
|
|
1093
|
+
document.body.appendChild(link);
|
|
1094
|
+
link.click();
|
|
1095
|
+
document.body.removeChild(link);
|
|
1096
|
+
}
|
|
1081
1097
|
};
|
|
1082
1098
|
const handleDownload = async (selectedKeys) => {
|
|
1083
1099
|
const image = currentImageRef.current;
|
|
@@ -7,8 +7,8 @@ const react = require("react");
|
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
const formik = require("formik");
|
|
9
9
|
const Yup = require("yup");
|
|
10
|
-
const index = require("./index-
|
|
11
|
-
const getTranslation = require("./getTranslation-
|
|
10
|
+
const index = require("./index-CTnsB_jp.js");
|
|
11
|
+
const getTranslation = require("./getTranslation-DwDV99gW.js");
|
|
12
12
|
function _interopNamespace(e) {
|
|
13
13
|
if (e && e.__esModule) return e;
|
|
14
14
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -5,8 +5,8 @@ import { useCallback, useState, useEffect } from "react";
|
|
|
5
5
|
import { Box, Grid, Field, Flex, Button, DesignSystemProvider, Typography } from "@strapi/design-system";
|
|
6
6
|
import { Formik } from "formik";
|
|
7
7
|
import * as Yup from "yup";
|
|
8
|
-
import { P as PLUGIN_ID } from "./index-
|
|
9
|
-
import { g as getTranslation } from "./getTranslation-
|
|
8
|
+
import { P as PLUGIN_ID } from "./index-PnmqwUfI.mjs";
|
|
9
|
+
import { g as getTranslation } from "./getTranslation-B0tfTODk.mjs";
|
|
10
10
|
const useSettings = () => {
|
|
11
11
|
const { get, post } = useFetchClient();
|
|
12
12
|
const getSettings = useCallback(
|
|
@@ -77,7 +77,7 @@ const index = {
|
|
|
77
77
|
defaultMessage: PLUGIN_ID
|
|
78
78
|
},
|
|
79
79
|
Component: async () => {
|
|
80
|
-
const { App } = await Promise.resolve().then(() => require("./App-
|
|
80
|
+
const { App } = await Promise.resolve().then(() => require("./App-DmCOiKrV.js"));
|
|
81
81
|
return App;
|
|
82
82
|
},
|
|
83
83
|
permissions: [
|
|
@@ -98,7 +98,7 @@ const index = {
|
|
|
98
98
|
defaultMessage: PLUGIN_ID
|
|
99
99
|
},
|
|
100
100
|
Component: async () => {
|
|
101
|
-
const component = await Promise.resolve().then(() => require("./Settings-
|
|
101
|
+
const component = await Promise.resolve().then(() => require("./Settings-APrsjya3.js"));
|
|
102
102
|
return component.default;
|
|
103
103
|
},
|
|
104
104
|
to: `plugins/${PLUGIN_ID}/settings`,
|
|
@@ -76,7 +76,7 @@ const index = {
|
|
|
76
76
|
defaultMessage: PLUGIN_ID
|
|
77
77
|
},
|
|
78
78
|
Component: async () => {
|
|
79
|
-
const { App } = await import("./App-
|
|
79
|
+
const { App } = await import("./App-oubMDdAZ.mjs");
|
|
80
80
|
return App;
|
|
81
81
|
},
|
|
82
82
|
permissions: [
|
|
@@ -97,7 +97,7 @@ const index = {
|
|
|
97
97
|
defaultMessage: PLUGIN_ID
|
|
98
98
|
},
|
|
99
99
|
Component: async () => {
|
|
100
|
-
const component = await import("./Settings-
|
|
100
|
+
const component = await import("./Settings-BevnW4cE.mjs");
|
|
101
101
|
return component.default;
|
|
102
102
|
},
|
|
103
103
|
to: `plugins/${PLUGIN_ID}/settings`,
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/package.json
CHANGED