@tecof/theme-editor 0.0.14 → 0.0.16
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/index.js +116 -90
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +115 -89
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +14 -10
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import HardBreak from '@tiptap/extension-hard-break';
|
|
|
17
17
|
import HorizontalRule from '@tiptap/extension-horizontal-rule';
|
|
18
18
|
import TextAlign from '@tiptap/extension-text-align';
|
|
19
19
|
import Link2 from '@tiptap/extension-link';
|
|
20
|
-
import
|
|
20
|
+
import Code2 from '@tiptap/extension-code';
|
|
21
21
|
import CodeBlock from '@tiptap/extension-code-block';
|
|
22
22
|
import * as ReactDOM from 'react-dom';
|
|
23
23
|
import ReactDOM__default from 'react-dom';
|
|
@@ -639,20 +639,19 @@ var Check = createLucideIcon("check", __iconNode);
|
|
|
639
639
|
var __iconNode2 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
640
640
|
var ChevronRight = createLucideIcon("chevron-right", __iconNode2);
|
|
641
641
|
|
|
642
|
-
// node_modules/lucide-react/dist/esm/icons/
|
|
642
|
+
// node_modules/lucide-react/dist/esm/icons/code.js
|
|
643
643
|
var __iconNode3 = [
|
|
644
|
-
["
|
|
645
|
-
["path", { d: "
|
|
644
|
+
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
645
|
+
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
646
646
|
];
|
|
647
|
-
var
|
|
647
|
+
var Code = createLucideIcon("code", __iconNode3);
|
|
648
648
|
|
|
649
|
-
// node_modules/lucide-react/dist/esm/icons/
|
|
649
|
+
// node_modules/lucide-react/dist/esm/icons/copy.js
|
|
650
650
|
var __iconNode4 = [
|
|
651
|
-
["
|
|
652
|
-
["path", { d: "
|
|
653
|
-
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
651
|
+
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
652
|
+
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
654
653
|
];
|
|
655
|
-
var
|
|
654
|
+
var Copy = createLucideIcon("copy", __iconNode4);
|
|
656
655
|
|
|
657
656
|
// node_modules/lucide-react/dist/esm/icons/external-link.js
|
|
658
657
|
var __iconNode5 = [
|
|
@@ -662,21 +661,8 @@ var __iconNode5 = [
|
|
|
662
661
|
];
|
|
663
662
|
var ExternalLink = createLucideIcon("external-link", __iconNode5);
|
|
664
663
|
|
|
665
|
-
// node_modules/lucide-react/dist/esm/icons/eye.js
|
|
666
|
-
var __iconNode6 = [
|
|
667
|
-
[
|
|
668
|
-
"path",
|
|
669
|
-
{
|
|
670
|
-
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
671
|
-
key: "1nclc0"
|
|
672
|
-
}
|
|
673
|
-
],
|
|
674
|
-
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
675
|
-
];
|
|
676
|
-
var Eye = createLucideIcon("eye", __iconNode6);
|
|
677
|
-
|
|
678
664
|
// node_modules/lucide-react/dist/esm/icons/file-text.js
|
|
679
|
-
var
|
|
665
|
+
var __iconNode6 = [
|
|
680
666
|
[
|
|
681
667
|
"path",
|
|
682
668
|
{
|
|
@@ -689,10 +675,10 @@ var __iconNode7 = [
|
|
|
689
675
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
690
676
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
691
677
|
];
|
|
692
|
-
var FileText = createLucideIcon("file-text",
|
|
678
|
+
var FileText = createLucideIcon("file-text", __iconNode6);
|
|
693
679
|
|
|
694
680
|
// node_modules/lucide-react/dist/esm/icons/file.js
|
|
695
|
-
var
|
|
681
|
+
var __iconNode7 = [
|
|
696
682
|
[
|
|
697
683
|
"path",
|
|
698
684
|
{
|
|
@@ -702,10 +688,10 @@ var __iconNode8 = [
|
|
|
702
688
|
],
|
|
703
689
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
|
|
704
690
|
];
|
|
705
|
-
var File2 = createLucideIcon("file",
|
|
691
|
+
var File2 = createLucideIcon("file", __iconNode7);
|
|
706
692
|
|
|
707
693
|
// node_modules/lucide-react/dist/esm/icons/folder-open.js
|
|
708
|
-
var
|
|
694
|
+
var __iconNode8 = [
|
|
709
695
|
[
|
|
710
696
|
"path",
|
|
711
697
|
{
|
|
@@ -714,36 +700,36 @@ var __iconNode9 = [
|
|
|
714
700
|
}
|
|
715
701
|
]
|
|
716
702
|
];
|
|
717
|
-
var FolderOpen = createLucideIcon("folder-open",
|
|
703
|
+
var FolderOpen = createLucideIcon("folder-open", __iconNode8);
|
|
718
704
|
|
|
719
705
|
// node_modules/lucide-react/dist/esm/icons/globe.js
|
|
720
|
-
var
|
|
706
|
+
var __iconNode9 = [
|
|
721
707
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
722
708
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
723
709
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
724
710
|
];
|
|
725
|
-
var Globe = createLucideIcon("globe",
|
|
711
|
+
var Globe = createLucideIcon("globe", __iconNode9);
|
|
726
712
|
|
|
727
713
|
// node_modules/lucide-react/dist/esm/icons/image-plus.js
|
|
728
|
-
var
|
|
714
|
+
var __iconNode10 = [
|
|
729
715
|
["path", { d: "M16 5h6", key: "1vod17" }],
|
|
730
716
|
["path", { d: "M19 2v6", key: "4bpg5p" }],
|
|
731
717
|
["path", { d: "M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5", key: "1ue2ih" }],
|
|
732
718
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }],
|
|
733
719
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }]
|
|
734
720
|
];
|
|
735
|
-
var ImagePlus = createLucideIcon("image-plus",
|
|
721
|
+
var ImagePlus = createLucideIcon("image-plus", __iconNode10);
|
|
736
722
|
|
|
737
723
|
// node_modules/lucide-react/dist/esm/icons/image.js
|
|
738
|
-
var
|
|
724
|
+
var __iconNode11 = [
|
|
739
725
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
740
726
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
741
727
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
742
728
|
];
|
|
743
|
-
var Image2 = createLucideIcon("image",
|
|
729
|
+
var Image2 = createLucideIcon("image", __iconNode11);
|
|
744
730
|
|
|
745
731
|
// node_modules/lucide-react/dist/esm/icons/languages.js
|
|
746
|
-
var
|
|
732
|
+
var __iconNode12 = [
|
|
747
733
|
["path", { d: "m5 8 6 6", key: "1wu5hv" }],
|
|
748
734
|
["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
|
|
749
735
|
["path", { d: "M2 5h12", key: "or177f" }],
|
|
@@ -751,21 +737,21 @@ var __iconNode13 = [
|
|
|
751
737
|
["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
|
|
752
738
|
["path", { d: "M14 18h6", key: "1m8k6r" }]
|
|
753
739
|
];
|
|
754
|
-
var Languages = createLucideIcon("languages",
|
|
740
|
+
var Languages = createLucideIcon("languages", __iconNode12);
|
|
755
741
|
|
|
756
742
|
// node_modules/lucide-react/dist/esm/icons/link.js
|
|
757
|
-
var
|
|
743
|
+
var __iconNode13 = [
|
|
758
744
|
["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
|
|
759
745
|
["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
|
|
760
746
|
];
|
|
761
|
-
var Link = createLucideIcon("link",
|
|
747
|
+
var Link = createLucideIcon("link", __iconNode13);
|
|
762
748
|
|
|
763
749
|
// node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
764
|
-
var
|
|
765
|
-
var LoaderCircle = createLucideIcon("loader-circle",
|
|
750
|
+
var __iconNode14 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
751
|
+
var LoaderCircle = createLucideIcon("loader-circle", __iconNode14);
|
|
766
752
|
|
|
767
753
|
// node_modules/lucide-react/dist/esm/icons/pencil.js
|
|
768
|
-
var
|
|
754
|
+
var __iconNode15 = [
|
|
769
755
|
[
|
|
770
756
|
"path",
|
|
771
757
|
{
|
|
@@ -775,55 +761,55 @@ var __iconNode16 = [
|
|
|
775
761
|
],
|
|
776
762
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
777
763
|
];
|
|
778
|
-
var Pencil = createLucideIcon("pencil",
|
|
764
|
+
var Pencil = createLucideIcon("pencil", __iconNode15);
|
|
779
765
|
|
|
780
766
|
// node_modules/lucide-react/dist/esm/icons/refresh-ccw.js
|
|
781
|
-
var
|
|
767
|
+
var __iconNode16 = [
|
|
782
768
|
["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
|
|
783
769
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
784
770
|
["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
|
|
785
771
|
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
786
772
|
];
|
|
787
|
-
var RefreshCcw = createLucideIcon("refresh-ccw",
|
|
773
|
+
var RefreshCcw = createLucideIcon("refresh-ccw", __iconNode16);
|
|
788
774
|
|
|
789
775
|
// node_modules/lucide-react/dist/esm/icons/rotate-ccw.js
|
|
790
|
-
var
|
|
776
|
+
var __iconNode17 = [
|
|
791
777
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
792
778
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
793
779
|
];
|
|
794
|
-
var RotateCcw = createLucideIcon("rotate-ccw",
|
|
780
|
+
var RotateCcw = createLucideIcon("rotate-ccw", __iconNode17);
|
|
795
781
|
|
|
796
782
|
// node_modules/lucide-react/dist/esm/icons/search.js
|
|
797
|
-
var
|
|
783
|
+
var __iconNode18 = [
|
|
798
784
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
799
785
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
800
786
|
];
|
|
801
|
-
var Search = createLucideIcon("search",
|
|
787
|
+
var Search = createLucideIcon("search", __iconNode18);
|
|
802
788
|
|
|
803
789
|
// node_modules/lucide-react/dist/esm/icons/trash-2.js
|
|
804
|
-
var
|
|
790
|
+
var __iconNode19 = [
|
|
805
791
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
806
792
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
807
793
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
808
794
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
809
795
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
810
796
|
];
|
|
811
|
-
var Trash2 = createLucideIcon("trash-2",
|
|
797
|
+
var Trash2 = createLucideIcon("trash-2", __iconNode19);
|
|
812
798
|
|
|
813
799
|
// node_modules/lucide-react/dist/esm/icons/upload.js
|
|
814
|
-
var
|
|
800
|
+
var __iconNode20 = [
|
|
815
801
|
["path", { d: "M12 3v12", key: "1x0j5s" }],
|
|
816
802
|
["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
|
|
817
803
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
|
|
818
804
|
];
|
|
819
|
-
var Upload = createLucideIcon("upload",
|
|
805
|
+
var Upload = createLucideIcon("upload", __iconNode20);
|
|
820
806
|
|
|
821
807
|
// node_modules/lucide-react/dist/esm/icons/x.js
|
|
822
|
-
var
|
|
808
|
+
var __iconNode21 = [
|
|
823
809
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
824
810
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
825
811
|
];
|
|
826
|
-
var X = createLucideIcon("x",
|
|
812
|
+
var X = createLucideIcon("x", __iconNode21);
|
|
827
813
|
var LanguageTabBar = ({
|
|
828
814
|
languages,
|
|
829
815
|
defaultLanguage,
|
|
@@ -1039,7 +1025,7 @@ var createExtensions = () => [
|
|
|
1039
1025
|
Blockquote,
|
|
1040
1026
|
HardBreak,
|
|
1041
1027
|
HorizontalRule,
|
|
1042
|
-
|
|
1028
|
+
Code2,
|
|
1043
1029
|
CodeBlock,
|
|
1044
1030
|
TextAlign.configure({ types: ["heading", "paragraph"] }),
|
|
1045
1031
|
Link2.configure({ openOnClick: false, HTMLAttributes: { target: "_blank" } })
|
|
@@ -22303,10 +22289,10 @@ var FileItemRenderer = ({
|
|
|
22303
22289
|
cdnUrl,
|
|
22304
22290
|
readOnly
|
|
22305
22291
|
}) => {
|
|
22306
|
-
|
|
22292
|
+
`${cdnUrl}/${file2.name}`;
|
|
22307
22293
|
const ext = getFileExtension(file2.name);
|
|
22308
22294
|
return /* @__PURE__ */ jsxs("div", { className: "tecof-upload-file-item", children: [
|
|
22309
|
-
isImageType(file2.type) ? /* @__PURE__ */ jsx(
|
|
22295
|
+
file2.type === "image/reference" ? /* @__PURE__ */ jsx("div", { className: "tecof-upload-file-icon", style: { backgroundColor: "#eef2ff", color: "#4f46e5" }, children: /* @__PURE__ */ jsx(Code, { size: 20 }) }) : isImageType(file2.type) ? /* @__PURE__ */ jsx(
|
|
22310
22296
|
TecofPicture,
|
|
22311
22297
|
{
|
|
22312
22298
|
data: file2,
|
|
@@ -22323,30 +22309,7 @@ var FileItemRenderer = ({
|
|
|
22323
22309
|
file2.size > 0 && /* @__PURE__ */ jsx("span", { className: "tecof-upload-file-size", children: formatBytes(file2.size) })
|
|
22324
22310
|
] })
|
|
22325
22311
|
] }),
|
|
22326
|
-
/* @__PURE__ */
|
|
22327
|
-
/* @__PURE__ */ jsx(
|
|
22328
|
-
"a",
|
|
22329
|
-
{
|
|
22330
|
-
href: fileUrl,
|
|
22331
|
-
target: "_blank",
|
|
22332
|
-
rel: "noopener noreferrer",
|
|
22333
|
-
className: "tecof-upload-action-btn",
|
|
22334
|
-
title: "G\xF6r\xFCnt\xFCle",
|
|
22335
|
-
children: /* @__PURE__ */ jsx(Eye, { size: 15 })
|
|
22336
|
-
}
|
|
22337
|
-
),
|
|
22338
|
-
/* @__PURE__ */ jsx(
|
|
22339
|
-
"a",
|
|
22340
|
-
{
|
|
22341
|
-
href: fileUrl,
|
|
22342
|
-
download: true,
|
|
22343
|
-
className: "tecof-upload-action-btn",
|
|
22344
|
-
title: "\u0130ndir",
|
|
22345
|
-
children: /* @__PURE__ */ jsx(Download, { size: 15 })
|
|
22346
|
-
}
|
|
22347
|
-
),
|
|
22348
|
-
!readOnly && onRemove && /* @__PURE__ */ jsx("button", { type: "button", className: "tecof-upload-action-btn tecof-upload-action-btn-danger", onClick: onRemove, title: "Kald\u0131r", children: /* @__PURE__ */ jsx(Trash2, { size: 14 }) })
|
|
22349
|
-
] })
|
|
22312
|
+
/* @__PURE__ */ jsx("div", { className: "tecof-upload-file-actions", children: !readOnly && onRemove && /* @__PURE__ */ jsx("button", { type: "button", className: "tecof-upload-action-btn tecof-upload-action-btn-danger", onClick: onRemove, title: "Kald\u0131r", children: /* @__PURE__ */ jsx(Trash2, { size: 13 }) }) })
|
|
22350
22313
|
] });
|
|
22351
22314
|
};
|
|
22352
22315
|
var FILEPOND_LABELS = {
|
|
@@ -22465,6 +22428,8 @@ var UploadField = ({
|
|
|
22465
22428
|
const [filesForPond, setFilesForPond] = useState([]);
|
|
22466
22429
|
const [showPond, setShowPond] = useState(false);
|
|
22467
22430
|
const [drawerOpen, setDrawerOpen] = useState(false);
|
|
22431
|
+
const [showRefInput, setShowRefInput] = useState(false);
|
|
22432
|
+
const [refCode, setRefCode] = useState("{{ data. }}");
|
|
22468
22433
|
const [galleryFiles, setGalleryFiles] = useState([]);
|
|
22469
22434
|
const [loading, setLoading] = useState(false);
|
|
22470
22435
|
const [refreshKey, setRefreshKey] = useState(0);
|
|
@@ -22511,6 +22476,20 @@ var UploadField = ({
|
|
|
22511
22476
|
updated.splice(idx, 1);
|
|
22512
22477
|
onChange(updated);
|
|
22513
22478
|
}, [value, onChange]);
|
|
22479
|
+
const handleAddRef = useCallback(() => {
|
|
22480
|
+
if (!refCode.trim()) return;
|
|
22481
|
+
const refFile = {
|
|
22482
|
+
_id: `ref_${Date.now()}`,
|
|
22483
|
+
name: refCode.trim(),
|
|
22484
|
+
size: 0,
|
|
22485
|
+
type: "image/reference",
|
|
22486
|
+
meta: { originalName: refCode.trim(), isReference: true }
|
|
22487
|
+
};
|
|
22488
|
+
const updated = allowMultiple ? [...value, refFile] : [refFile];
|
|
22489
|
+
onChange(updated);
|
|
22490
|
+
setShowRefInput(false);
|
|
22491
|
+
setRefCode("{{ data. }}");
|
|
22492
|
+
}, [refCode, allowMultiple, value, onChange]);
|
|
22514
22493
|
useEffect(() => {
|
|
22515
22494
|
if (!drawerOpen) return;
|
|
22516
22495
|
setLoading(true);
|
|
@@ -22625,7 +22604,11 @@ var UploadField = ({
|
|
|
22625
22604
|
]
|
|
22626
22605
|
}
|
|
22627
22606
|
),
|
|
22628
|
-
!readOnly && canAddMore && !showPond && value.length > 0 && /* @__PURE__ */ jsxs("div", { className: "tecof-upload-main-actions", children: [
|
|
22607
|
+
!readOnly && canAddMore && !showPond && value.length > 0 && !showRefInput && /* @__PURE__ */ jsxs("div", { className: "tecof-upload-main-actions", children: [
|
|
22608
|
+
/* @__PURE__ */ jsxs("button", { type: "button", className: "tecof-upload-btn-secondary", onClick: () => setShowRefInput(true), children: [
|
|
22609
|
+
/* @__PURE__ */ jsx(Code, { size: 15 }),
|
|
22610
|
+
" Referans"
|
|
22611
|
+
] }),
|
|
22629
22612
|
/* @__PURE__ */ jsxs("button", { type: "button", className: "tecof-upload-btn-secondary", onClick: () => setDrawerOpen(true), children: [
|
|
22630
22613
|
/* @__PURE__ */ jsx(FolderOpen, { size: 15 }),
|
|
22631
22614
|
" Medya Se\xE7"
|
|
@@ -22635,10 +22618,54 @@ var UploadField = ({
|
|
|
22635
22618
|
" Yeni Y\xFCkle"
|
|
22636
22619
|
] })
|
|
22637
22620
|
] }),
|
|
22638
|
-
value.length === 0 && !readOnly && canAddMore && !showPond && /* @__PURE__ */
|
|
22639
|
-
/* @__PURE__ */
|
|
22640
|
-
|
|
22641
|
-
|
|
22621
|
+
value.length === 0 && !readOnly && canAddMore && !showPond && !showRefInput && /* @__PURE__ */ jsxs("div", { className: "tecof-upload-main-actions", children: [
|
|
22622
|
+
/* @__PURE__ */ jsxs("button", { type: "button", className: "tecof-upload-btn-secondary", onClick: () => setShowRefInput(true), children: [
|
|
22623
|
+
/* @__PURE__ */ jsx(Code, { size: 15 }),
|
|
22624
|
+
" Dinamik Referans Se\xE7"
|
|
22625
|
+
] }),
|
|
22626
|
+
/* @__PURE__ */ jsxs("button", { type: "button", className: "tecof-upload-btn-primary", onClick: () => setShowPond(true), children: [
|
|
22627
|
+
/* @__PURE__ */ jsx(Upload, { size: 15 }),
|
|
22628
|
+
" Yeni Y\xFCkle"
|
|
22629
|
+
] })
|
|
22630
|
+
] }),
|
|
22631
|
+
showRefInput && /* @__PURE__ */ jsxs("div", { className: "tecof-upload-ref-section", style: { background: "#f8fafc", padding: "12px", borderRadius: "8px", border: "1px solid #e2e8f0", marginTop: "10px" }, children: [
|
|
22632
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "8px" }, children: [
|
|
22633
|
+
/* @__PURE__ */ jsxs("span", { style: { fontSize: "12px", fontWeight: 500, color: "#475569" }, children: [
|
|
22634
|
+
"Dinamik CMS De\u011Fi\u015Fkeni (\xD6rn: ",
|
|
22635
|
+
`{{ data.image }}`,
|
|
22636
|
+
")"
|
|
22637
|
+
] }),
|
|
22638
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: () => setShowRefInput(false), style: { background: "none", border: "none", cursor: "pointer", color: "#64748b" }, children: /* @__PURE__ */ jsx(X, { size: 14 }) })
|
|
22639
|
+
] }),
|
|
22640
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
22641
|
+
/* @__PURE__ */ jsx(
|
|
22642
|
+
"input",
|
|
22643
|
+
{
|
|
22644
|
+
type: "text",
|
|
22645
|
+
value: refCode,
|
|
22646
|
+
onChange: (e3) => setRefCode(e3.target.value),
|
|
22647
|
+
placeholder: "{{ data. }}",
|
|
22648
|
+
style: { flex: 1, padding: "8px 10px", fontSize: "13px", borderRadius: "6px", border: "1px solid #cbd5e1", outline: "none" },
|
|
22649
|
+
autoFocus: true,
|
|
22650
|
+
onKeyDown: (e3) => {
|
|
22651
|
+
if (e3.key === "Enter") {
|
|
22652
|
+
e3.preventDefault();
|
|
22653
|
+
handleAddRef();
|
|
22654
|
+
}
|
|
22655
|
+
}
|
|
22656
|
+
}
|
|
22657
|
+
),
|
|
22658
|
+
/* @__PURE__ */ jsx(
|
|
22659
|
+
"button",
|
|
22660
|
+
{
|
|
22661
|
+
type: "button",
|
|
22662
|
+
onClick: handleAddRef,
|
|
22663
|
+
style: { padding: "0 12px", background: "#4f46e5", color: "#fff", fontSize: "12px", fontWeight: 500, borderRadius: "6px", border: "none", cursor: "pointer" },
|
|
22664
|
+
children: "Ekle"
|
|
22665
|
+
}
|
|
22666
|
+
)
|
|
22667
|
+
] })
|
|
22668
|
+
] }),
|
|
22642
22669
|
!readOnly && showPond && /* @__PURE__ */ jsxs("div", { className: "tecof-upload-pond-section", children: [
|
|
22643
22670
|
/* @__PURE__ */ jsxs("div", { className: "tecof-upload-pond-header", children: [
|
|
22644
22671
|
/* @__PURE__ */ jsxs("p", { className: "tecof-upload-pond-header-title", children: [
|
|
@@ -24163,10 +24190,9 @@ lucide-react/dist/esm/Icon.js:
|
|
|
24163
24190
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
24164
24191
|
lucide-react/dist/esm/icons/check.js:
|
|
24165
24192
|
lucide-react/dist/esm/icons/chevron-right.js:
|
|
24193
|
+
lucide-react/dist/esm/icons/code.js:
|
|
24166
24194
|
lucide-react/dist/esm/icons/copy.js:
|
|
24167
|
-
lucide-react/dist/esm/icons/download.js:
|
|
24168
24195
|
lucide-react/dist/esm/icons/external-link.js:
|
|
24169
|
-
lucide-react/dist/esm/icons/eye.js:
|
|
24170
24196
|
lucide-react/dist/esm/icons/file-text.js:
|
|
24171
24197
|
lucide-react/dist/esm/icons/file.js:
|
|
24172
24198
|
lucide-react/dist/esm/icons/folder-open.js:
|