@redneckz/wildless-cms-uni-blocks 0.14.760 → 0.14.762
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/bundle/bundle.umd.js +10 -7
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -1
- package/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -1
- package/dist/ui-kit/DocumentDialog/DocumentDialog.js +8 -4
- package/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/SufferedFromField.js +2 -2
- package/dist/ui-kit/FormField/Fields/SufferedFromField.js.map +1 -1
- package/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -1
- package/lib/ui-kit/DocumentDialog/DocumentDialog.js +8 -4
- package/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/SufferedFromField.js +2 -2
- package/lib/ui-kit/FormField/Fields/SufferedFromField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +10 -7
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -1
- package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -1
- package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js +8 -4
- package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/SufferedFromField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/SufferedFromField.js.map +1 -1
- package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -1
- package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js +8 -4
- package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/SufferedFromField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/SufferedFromField.js.map +1 -1
- package/mobile/src/ui-kit/DocumentDialog/DocumentDialog.tsx +8 -6
- package/mobile/src/ui-kit/FormField/Fields/SufferedFromField.tsx +2 -2
- package/package.json +1 -1
- package/src/ui-kit/DocumentDialog/DocumentDialog.tsx +8 -6
- package/src/ui-kit/FormField/Fields/SufferedFromField.tsx +2 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -2788,8 +2788,8 @@
|
|
|
2788
2788
|
text: 'Белгородской области',
|
|
2789
2789
|
},
|
|
2790
2790
|
{
|
|
2791
|
-
key: '
|
|
2792
|
-
text: '
|
|
2791
|
+
key: 'brnsk',
|
|
2792
|
+
text: 'Брянской области',
|
|
2793
2793
|
},
|
|
2794
2794
|
{
|
|
2795
2795
|
key: 'krsk',
|
|
@@ -3840,10 +3840,13 @@
|
|
|
3840
3840
|
};
|
|
3841
3841
|
|
|
3842
3842
|
// TODO Перенесено как есть из openDocument. Требует рефакторинга
|
|
3843
|
-
const DocumentDialog = JSX(({ src,
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3843
|
+
const DocumentDialog = JSX(({ src, onClose, onDocumentRead }) => {
|
|
3844
|
+
const isMobileMode = useMobileMode();
|
|
3845
|
+
return (jsxs(Dialog, { className: "my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0", onClose: onClose, children: [isMobileMode ? (jsx("img", { src: src })) : (jsx("iframe", { src: `${src}#toolbar=0`, className: "w-full h-[80vh]", id: "iframe-dialog" })), jsx(Button, { className: "mx-auto mt-m", type: "button", onClick: () => {
|
|
3846
|
+
onDocumentRead?.();
|
|
3847
|
+
onClose?.();
|
|
3848
|
+
}, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] }));
|
|
3849
|
+
});
|
|
3847
3850
|
|
|
3848
3851
|
const useDocumentDialog = (docId, onDocumentRead) => {
|
|
3849
3852
|
const { open } = useDialog(DocumentDialog);
|
|
@@ -10520,7 +10523,7 @@
|
|
|
10520
10523
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10521
10524
|
});
|
|
10522
10525
|
|
|
10523
|
-
const packageVersion = "0.14.
|
|
10526
|
+
const packageVersion = "0.14.761";
|
|
10524
10527
|
|
|
10525
10528
|
exports.Blocks = Blocks;
|
|
10526
10529
|
exports.ContentPage = ContentPage;
|