@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 CHANGED
@@ -18,7 +18,7 @@ var HardBreak = require('@tiptap/extension-hard-break');
18
18
  var HorizontalRule = require('@tiptap/extension-horizontal-rule');
19
19
  var TextAlign = require('@tiptap/extension-text-align');
20
20
  var Link2 = require('@tiptap/extension-link');
21
- var Code = require('@tiptap/extension-code');
21
+ var Code2 = require('@tiptap/extension-code');
22
22
  var CodeBlock = require('@tiptap/extension-code-block');
23
23
  var ReactDOM = require('react-dom');
24
24
 
@@ -56,7 +56,7 @@ var HardBreak__default = /*#__PURE__*/_interopDefault(HardBreak);
56
56
  var HorizontalRule__default = /*#__PURE__*/_interopDefault(HorizontalRule);
57
57
  var TextAlign__default = /*#__PURE__*/_interopDefault(TextAlign);
58
58
  var Link2__default = /*#__PURE__*/_interopDefault(Link2);
59
- var Code__default = /*#__PURE__*/_interopDefault(Code);
59
+ var Code2__default = /*#__PURE__*/_interopDefault(Code2);
60
60
  var CodeBlock__default = /*#__PURE__*/_interopDefault(CodeBlock);
61
61
  var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
62
62
 
@@ -677,20 +677,19 @@ var Check = createLucideIcon("check", __iconNode);
677
677
  var __iconNode2 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
678
678
  var ChevronRight = createLucideIcon("chevron-right", __iconNode2);
679
679
 
680
- // node_modules/lucide-react/dist/esm/icons/copy.js
680
+ // node_modules/lucide-react/dist/esm/icons/code.js
681
681
  var __iconNode3 = [
682
- ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
683
- ["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" }]
682
+ ["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
683
+ ["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
684
684
  ];
685
- var Copy = createLucideIcon("copy", __iconNode3);
685
+ var Code = createLucideIcon("code", __iconNode3);
686
686
 
687
- // node_modules/lucide-react/dist/esm/icons/download.js
687
+ // node_modules/lucide-react/dist/esm/icons/copy.js
688
688
  var __iconNode4 = [
689
- ["path", { d: "M12 15V3", key: "m9g1x1" }],
690
- ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
691
- ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
689
+ ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
690
+ ["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" }]
692
691
  ];
693
- var Download = createLucideIcon("download", __iconNode4);
692
+ var Copy = createLucideIcon("copy", __iconNode4);
694
693
 
695
694
  // node_modules/lucide-react/dist/esm/icons/external-link.js
696
695
  var __iconNode5 = [
@@ -700,21 +699,8 @@ var __iconNode5 = [
700
699
  ];
701
700
  var ExternalLink = createLucideIcon("external-link", __iconNode5);
702
701
 
703
- // node_modules/lucide-react/dist/esm/icons/eye.js
704
- var __iconNode6 = [
705
- [
706
- "path",
707
- {
708
- 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",
709
- key: "1nclc0"
710
- }
711
- ],
712
- ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
713
- ];
714
- var Eye = createLucideIcon("eye", __iconNode6);
715
-
716
702
  // node_modules/lucide-react/dist/esm/icons/file-text.js
717
- var __iconNode7 = [
703
+ var __iconNode6 = [
718
704
  [
719
705
  "path",
720
706
  {
@@ -727,10 +713,10 @@ var __iconNode7 = [
727
713
  ["path", { d: "M16 13H8", key: "t4e002" }],
728
714
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
729
715
  ];
730
- var FileText = createLucideIcon("file-text", __iconNode7);
716
+ var FileText = createLucideIcon("file-text", __iconNode6);
731
717
 
732
718
  // node_modules/lucide-react/dist/esm/icons/file.js
733
- var __iconNode8 = [
719
+ var __iconNode7 = [
734
720
  [
735
721
  "path",
736
722
  {
@@ -740,10 +726,10 @@ var __iconNode8 = [
740
726
  ],
741
727
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
742
728
  ];
743
- var File2 = createLucideIcon("file", __iconNode8);
729
+ var File2 = createLucideIcon("file", __iconNode7);
744
730
 
745
731
  // node_modules/lucide-react/dist/esm/icons/folder-open.js
746
- var __iconNode9 = [
732
+ var __iconNode8 = [
747
733
  [
748
734
  "path",
749
735
  {
@@ -752,36 +738,36 @@ var __iconNode9 = [
752
738
  }
753
739
  ]
754
740
  ];
755
- var FolderOpen = createLucideIcon("folder-open", __iconNode9);
741
+ var FolderOpen = createLucideIcon("folder-open", __iconNode8);
756
742
 
757
743
  // node_modules/lucide-react/dist/esm/icons/globe.js
758
- var __iconNode10 = [
744
+ var __iconNode9 = [
759
745
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
760
746
  ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
761
747
  ["path", { d: "M2 12h20", key: "9i4pu4" }]
762
748
  ];
763
- var Globe = createLucideIcon("globe", __iconNode10);
749
+ var Globe = createLucideIcon("globe", __iconNode9);
764
750
 
765
751
  // node_modules/lucide-react/dist/esm/icons/image-plus.js
766
- var __iconNode11 = [
752
+ var __iconNode10 = [
767
753
  ["path", { d: "M16 5h6", key: "1vod17" }],
768
754
  ["path", { d: "M19 2v6", key: "4bpg5p" }],
769
755
  ["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" }],
770
756
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }],
771
757
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }]
772
758
  ];
773
- var ImagePlus = createLucideIcon("image-plus", __iconNode11);
759
+ var ImagePlus = createLucideIcon("image-plus", __iconNode10);
774
760
 
775
761
  // node_modules/lucide-react/dist/esm/icons/image.js
776
- var __iconNode12 = [
762
+ var __iconNode11 = [
777
763
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
778
764
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
779
765
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
780
766
  ];
781
- var Image2 = createLucideIcon("image", __iconNode12);
767
+ var Image2 = createLucideIcon("image", __iconNode11);
782
768
 
783
769
  // node_modules/lucide-react/dist/esm/icons/languages.js
784
- var __iconNode13 = [
770
+ var __iconNode12 = [
785
771
  ["path", { d: "m5 8 6 6", key: "1wu5hv" }],
786
772
  ["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
787
773
  ["path", { d: "M2 5h12", key: "or177f" }],
@@ -789,21 +775,21 @@ var __iconNode13 = [
789
775
  ["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
790
776
  ["path", { d: "M14 18h6", key: "1m8k6r" }]
791
777
  ];
792
- var Languages = createLucideIcon("languages", __iconNode13);
778
+ var Languages = createLucideIcon("languages", __iconNode12);
793
779
 
794
780
  // node_modules/lucide-react/dist/esm/icons/link.js
795
- var __iconNode14 = [
781
+ var __iconNode13 = [
796
782
  ["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" }],
797
783
  ["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" }]
798
784
  ];
799
- var Link = createLucideIcon("link", __iconNode14);
785
+ var Link = createLucideIcon("link", __iconNode13);
800
786
 
801
787
  // node_modules/lucide-react/dist/esm/icons/loader-circle.js
802
- var __iconNode15 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
803
- var LoaderCircle = createLucideIcon("loader-circle", __iconNode15);
788
+ var __iconNode14 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
789
+ var LoaderCircle = createLucideIcon("loader-circle", __iconNode14);
804
790
 
805
791
  // node_modules/lucide-react/dist/esm/icons/pencil.js
806
- var __iconNode16 = [
792
+ var __iconNode15 = [
807
793
  [
808
794
  "path",
809
795
  {
@@ -813,55 +799,55 @@ var __iconNode16 = [
813
799
  ],
814
800
  ["path", { d: "m15 5 4 4", key: "1mk7zo" }]
815
801
  ];
816
- var Pencil = createLucideIcon("pencil", __iconNode16);
802
+ var Pencil = createLucideIcon("pencil", __iconNode15);
817
803
 
818
804
  // node_modules/lucide-react/dist/esm/icons/refresh-ccw.js
819
- var __iconNode17 = [
805
+ var __iconNode16 = [
820
806
  ["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
821
807
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }],
822
808
  ["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
823
809
  ["path", { d: "M16 16h5v5", key: "ccwih5" }]
824
810
  ];
825
- var RefreshCcw = createLucideIcon("refresh-ccw", __iconNode17);
811
+ var RefreshCcw = createLucideIcon("refresh-ccw", __iconNode16);
826
812
 
827
813
  // node_modules/lucide-react/dist/esm/icons/rotate-ccw.js
828
- var __iconNode18 = [
814
+ var __iconNode17 = [
829
815
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
830
816
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
831
817
  ];
832
- var RotateCcw = createLucideIcon("rotate-ccw", __iconNode18);
818
+ var RotateCcw = createLucideIcon("rotate-ccw", __iconNode17);
833
819
 
834
820
  // node_modules/lucide-react/dist/esm/icons/search.js
835
- var __iconNode19 = [
821
+ var __iconNode18 = [
836
822
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
837
823
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
838
824
  ];
839
- var Search = createLucideIcon("search", __iconNode19);
825
+ var Search = createLucideIcon("search", __iconNode18);
840
826
 
841
827
  // node_modules/lucide-react/dist/esm/icons/trash-2.js
842
- var __iconNode20 = [
828
+ var __iconNode19 = [
843
829
  ["path", { d: "M10 11v6", key: "nco0om" }],
844
830
  ["path", { d: "M14 11v6", key: "outv1u" }],
845
831
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
846
832
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
847
833
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
848
834
  ];
849
- var Trash2 = createLucideIcon("trash-2", __iconNode20);
835
+ var Trash2 = createLucideIcon("trash-2", __iconNode19);
850
836
 
851
837
  // node_modules/lucide-react/dist/esm/icons/upload.js
852
- var __iconNode21 = [
838
+ var __iconNode20 = [
853
839
  ["path", { d: "M12 3v12", key: "1x0j5s" }],
854
840
  ["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
855
841
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
856
842
  ];
857
- var Upload = createLucideIcon("upload", __iconNode21);
843
+ var Upload = createLucideIcon("upload", __iconNode20);
858
844
 
859
845
  // node_modules/lucide-react/dist/esm/icons/x.js
860
- var __iconNode22 = [
846
+ var __iconNode21 = [
861
847
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
862
848
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
863
849
  ];
864
- var X = createLucideIcon("x", __iconNode22);
850
+ var X = createLucideIcon("x", __iconNode21);
865
851
  var LanguageTabBar = ({
866
852
  languages,
867
853
  defaultLanguage,
@@ -1077,7 +1063,7 @@ var createExtensions = () => [
1077
1063
  Blockquote__default.default,
1078
1064
  HardBreak__default.default,
1079
1065
  HorizontalRule__default.default,
1080
- Code__default.default,
1066
+ Code2__default.default,
1081
1067
  CodeBlock__default.default,
1082
1068
  TextAlign__default.default.configure({ types: ["heading", "paragraph"] }),
1083
1069
  Link2__default.default.configure({ openOnClick: false, HTMLAttributes: { target: "_blank" } })
@@ -22341,10 +22327,10 @@ var FileItemRenderer = ({
22341
22327
  cdnUrl,
22342
22328
  readOnly
22343
22329
  }) => {
22344
- const fileUrl = `${cdnUrl}/${file2.name}`;
22330
+ `${cdnUrl}/${file2.name}`;
22345
22331
  const ext = getFileExtension(file2.name);
22346
22332
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-file-item", children: [
22347
- isImageType(file2.type) ? /* @__PURE__ */ jsxRuntime.jsx(
22333
+ file2.type === "image/reference" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tecof-upload-file-icon", style: { backgroundColor: "#eef2ff", color: "#4f46e5" }, children: /* @__PURE__ */ jsxRuntime.jsx(Code, { size: 20 }) }) : isImageType(file2.type) ? /* @__PURE__ */ jsxRuntime.jsx(
22348
22334
  TecofPicture,
22349
22335
  {
22350
22336
  data: file2,
@@ -22361,30 +22347,7 @@ var FileItemRenderer = ({
22361
22347
  file2.size > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tecof-upload-file-size", children: formatBytes(file2.size) })
22362
22348
  ] })
22363
22349
  ] }),
22364
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-file-actions", children: [
22365
- /* @__PURE__ */ jsxRuntime.jsx(
22366
- "a",
22367
- {
22368
- href: fileUrl,
22369
- target: "_blank",
22370
- rel: "noopener noreferrer",
22371
- className: "tecof-upload-action-btn",
22372
- title: "G\xF6r\xFCnt\xFCle",
22373
- children: /* @__PURE__ */ jsxRuntime.jsx(Eye, { size: 15 })
22374
- }
22375
- ),
22376
- /* @__PURE__ */ jsxRuntime.jsx(
22377
- "a",
22378
- {
22379
- href: fileUrl,
22380
- download: true,
22381
- className: "tecof-upload-action-btn",
22382
- title: "\u0130ndir",
22383
- children: /* @__PURE__ */ jsxRuntime.jsx(Download, { size: 15 })
22384
- }
22385
- ),
22386
- !readOnly && onRemove && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: "tecof-upload-action-btn tecof-upload-action-btn-danger", onClick: onRemove, title: "Kald\u0131r", children: /* @__PURE__ */ jsxRuntime.jsx(Trash2, { size: 14 }) })
22387
- ] })
22350
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tecof-upload-file-actions", children: !readOnly && onRemove && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: "tecof-upload-action-btn tecof-upload-action-btn-danger", onClick: onRemove, title: "Kald\u0131r", children: /* @__PURE__ */ jsxRuntime.jsx(Trash2, { size: 13 }) }) })
22388
22351
  ] });
22389
22352
  };
22390
22353
  var FILEPOND_LABELS = {
@@ -22503,6 +22466,8 @@ var UploadField = ({
22503
22466
  const [filesForPond, setFilesForPond] = React__default.useState([]);
22504
22467
  const [showPond, setShowPond] = React__default.useState(false);
22505
22468
  const [drawerOpen, setDrawerOpen] = React__default.useState(false);
22469
+ const [showRefInput, setShowRefInput] = React__default.useState(false);
22470
+ const [refCode, setRefCode] = React__default.useState("{{ data. }}");
22506
22471
  const [galleryFiles, setGalleryFiles] = React__default.useState([]);
22507
22472
  const [loading, setLoading] = React__default.useState(false);
22508
22473
  const [refreshKey, setRefreshKey] = React__default.useState(0);
@@ -22549,6 +22514,20 @@ var UploadField = ({
22549
22514
  updated.splice(idx, 1);
22550
22515
  onChange(updated);
22551
22516
  }, [value, onChange]);
22517
+ const handleAddRef = React__default.useCallback(() => {
22518
+ if (!refCode.trim()) return;
22519
+ const refFile = {
22520
+ _id: `ref_${Date.now()}`,
22521
+ name: refCode.trim(),
22522
+ size: 0,
22523
+ type: "image/reference",
22524
+ meta: { originalName: refCode.trim(), isReference: true }
22525
+ };
22526
+ const updated = allowMultiple ? [...value, refFile] : [refFile];
22527
+ onChange(updated);
22528
+ setShowRefInput(false);
22529
+ setRefCode("{{ data. }}");
22530
+ }, [refCode, allowMultiple, value, onChange]);
22552
22531
  React__default.useEffect(() => {
22553
22532
  if (!drawerOpen) return;
22554
22533
  setLoading(true);
@@ -22663,7 +22642,11 @@ var UploadField = ({
22663
22642
  ]
22664
22643
  }
22665
22644
  ),
22666
- !readOnly && canAddMore && !showPond && value.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-main-actions", children: [
22645
+ !readOnly && canAddMore && !showPond && value.length > 0 && !showRefInput && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-main-actions", children: [
22646
+ /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "tecof-upload-btn-secondary", onClick: () => setShowRefInput(true), children: [
22647
+ /* @__PURE__ */ jsxRuntime.jsx(Code, { size: 15 }),
22648
+ " Referans"
22649
+ ] }),
22667
22650
  /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "tecof-upload-btn-secondary", onClick: () => setDrawerOpen(true), children: [
22668
22651
  /* @__PURE__ */ jsxRuntime.jsx(FolderOpen, { size: 15 }),
22669
22652
  " Medya Se\xE7"
@@ -22673,10 +22656,54 @@ var UploadField = ({
22673
22656
  " Yeni Y\xFCkle"
22674
22657
  ] })
22675
22658
  ] }),
22676
- value.length === 0 && !readOnly && canAddMore && !showPond && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tecof-upload-main-actions", children: /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "tecof-upload-btn-primary", onClick: () => setShowPond(true), children: [
22677
- /* @__PURE__ */ jsxRuntime.jsx(Upload, { size: 15 }),
22678
- " Yeni Y\xFCkle"
22679
- ] }) }),
22659
+ value.length === 0 && !readOnly && canAddMore && !showPond && !showRefInput && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-main-actions", children: [
22660
+ /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "tecof-upload-btn-secondary", onClick: () => setShowRefInput(true), children: [
22661
+ /* @__PURE__ */ jsxRuntime.jsx(Code, { size: 15 }),
22662
+ " Dinamik Referans Se\xE7"
22663
+ ] }),
22664
+ /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "tecof-upload-btn-primary", onClick: () => setShowPond(true), children: [
22665
+ /* @__PURE__ */ jsxRuntime.jsx(Upload, { size: 15 }),
22666
+ " Yeni Y\xFCkle"
22667
+ ] })
22668
+ ] }),
22669
+ showRefInput && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-ref-section", style: { background: "#f8fafc", padding: "12px", borderRadius: "8px", border: "1px solid #e2e8f0", marginTop: "10px" }, children: [
22670
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "8px" }, children: [
22671
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "12px", fontWeight: 500, color: "#475569" }, children: [
22672
+ "Dinamik CMS De\u011Fi\u015Fkeni (\xD6rn: ",
22673
+ `{{ data.image }}`,
22674
+ ")"
22675
+ ] }),
22676
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => setShowRefInput(false), style: { background: "none", border: "none", cursor: "pointer", color: "#64748b" }, children: /* @__PURE__ */ jsxRuntime.jsx(X, { size: 14 }) })
22677
+ ] }),
22678
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
22679
+ /* @__PURE__ */ jsxRuntime.jsx(
22680
+ "input",
22681
+ {
22682
+ type: "text",
22683
+ value: refCode,
22684
+ onChange: (e3) => setRefCode(e3.target.value),
22685
+ placeholder: "{{ data. }}",
22686
+ style: { flex: 1, padding: "8px 10px", fontSize: "13px", borderRadius: "6px", border: "1px solid #cbd5e1", outline: "none" },
22687
+ autoFocus: true,
22688
+ onKeyDown: (e3) => {
22689
+ if (e3.key === "Enter") {
22690
+ e3.preventDefault();
22691
+ handleAddRef();
22692
+ }
22693
+ }
22694
+ }
22695
+ ),
22696
+ /* @__PURE__ */ jsxRuntime.jsx(
22697
+ "button",
22698
+ {
22699
+ type: "button",
22700
+ onClick: handleAddRef,
22701
+ style: { padding: "0 12px", background: "#4f46e5", color: "#fff", fontSize: "12px", fontWeight: 500, borderRadius: "6px", border: "none", cursor: "pointer" },
22702
+ children: "Ekle"
22703
+ }
22704
+ )
22705
+ ] })
22706
+ ] }),
22680
22707
  !readOnly && showPond && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-pond-section", children: [
22681
22708
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-pond-header", children: [
22682
22709
  /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "tecof-upload-pond-header-title", children: [
@@ -24201,10 +24228,9 @@ lucide-react/dist/esm/Icon.js:
24201
24228
  lucide-react/dist/esm/createLucideIcon.js:
24202
24229
  lucide-react/dist/esm/icons/check.js:
24203
24230
  lucide-react/dist/esm/icons/chevron-right.js:
24231
+ lucide-react/dist/esm/icons/code.js:
24204
24232
  lucide-react/dist/esm/icons/copy.js:
24205
- lucide-react/dist/esm/icons/download.js:
24206
24233
  lucide-react/dist/esm/icons/external-link.js:
24207
- lucide-react/dist/esm/icons/eye.js:
24208
24234
  lucide-react/dist/esm/icons/file-text.js:
24209
24235
  lucide-react/dist/esm/icons/file.js:
24210
24236
  lucide-react/dist/esm/icons/folder-open.js: