draftify-react 0.3.2 → 0.3.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.
@@ -1 +1 @@
1
- .df-heading{border:none;width:100%;outline:none;font-size:24px;font-weight:600}.df-subheading{border:none;width:100%;outline:none;font-size:20px;font-weight:600}.df-paragraph{border:none;width:100%;height:fit-content;outline:none}.df-quote{border:none;width:100%;border-left:4px solid var(--draftify-theme-color);outline:none;font-size:18px;font-style:italic;padding-left:8px}.df-list{border:none;width:100%;outline:none;font-size:14px;list-style-type:disc}.df-link{border:none;flex:-1;width:100%;outline:none;font-size:14px}.df-subheading{border:none;outline:none;width:100%;font-size:20px;font-weight:600}.draftify-root{--draftify-theme-color: rgb(59, 130, 246);--hovered-draftify-theme-color: rgb(30, 64, 175);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}.df-quote{border:none;outline:none;width:100%;border-left:4px solid var(--draftify-theme-color);font-size:18px;font-style:italic;padding-left:8px}.df-paragraph{border:none;outline:none;width:100%;height:fit-content}.df-list{border:none;outline:none;width:100%;font-size:14px;list-style-type:disc}.df-link{border:none;outline:none;flex:-1;width:100%;font-size:14px}.df-code{font-family:monospace;background-color:#000;color:#fff;padding:8px;width:100%;white-space:pre-wrap;border-radius:6px}.df-media{width:100%;height:100%;object-fit:cover;border-radius:10px}.row-col-button-setter{border:1px solid var(--draftify-theme-color);border-radius:5px;line-height:normal;padding:0 4px;color:var(--draftify-theme-color);cursor:pointer}.row-col-button-setter:hover{background-color:var(--draftify-theme-color);color:#fff}._optionsContainer_1bxps_1{display:flex;flex-wrap:wrap;align-items:center;gap:5px}._optionButton_1bxps_15{display:flex;align-items:center;gap:10px;height:20px;padding:8px;border:2px solid #4b5563;border-radius:10px;cursor:pointer;font-size:14px;transition:color .2s ease}@media(min-width:768px){._optionButton_1bxps_15{font-size:16px}}._iconWrapper_1bxps_53{display:flex;position:relative}._subscript_1bxps_63{font-size:12px;line-height:1}.optionButton{display:flex;align-items:center;gap:10px;height:20px;padding:8px;border:2px solid #4b5563;border-radius:10px;cursor:pointer;font-size:14px;transition:color .2s ease}.draftify-root .draftify-container{box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:20px;width:100%;min-height:450px;height:fit-content;border:1px solid var(--draftify-theme-color);border-radius:16px;padding:8px;background-color:#fff}.draftify-root .draftify-container{box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:20px;width:100%;min-height:450px;height:fit-content;border:1px solid var(--draftify-theme-color);border-radius:16px;padding:8px;background-color:transparent}.draftify-root{--draftify-theme-color: #3b82f6;--hovered-draftify-theme-color: rgb(30, 64, 175);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}._container_1mz3p_3{border:1px solid #e5e7eb;width:100%;height:275px;position:relative;overflow:hidden}._mediaWrapper_1mz3p_19{width:100%;height:100%;display:flex;flex-direction:column;color:var(--draftify-theme-color);font-weight:500}._mediaItem_1mz3p_37{flex:1;width:100%;object-fit:cover}._footerOverlay_1mz3p_49{bottom:2px;display:flex;gap:8px;align-items:center;width:100%;height:25px;font-size:12px}._refreshButton_1mz3p_69{display:flex;gap:8px;border:1px solid currentColor;border-radius:5px;align-items:center;padding:0 4px;background-color:var(--draftify-theme-color);color:#fff;cursor:pointer}._dropzone_1mz3p_95{border:2px dashed #d1d5db;width:100%;height:100%;display:grid;place-items:center}._uploadLabel_1mz3p_111{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:20px;padding:8px 16px;border-radius:10px;cursor:pointer}._uploadIconCircle_1mz3p_135{border:1px solid #d1d5db;border-radius:50%;display:flex;justify-content:center;align-items:center;width:60px;height:60px;font-size:20px}._donutContainer_1mz3p_159{width:100%;height:100%;display:flex;justify-content:center;align-items:center}._donutOuter_1mz3p_175{display:grid;place-items:center;width:128px;height:128px;border-radius:50%}._donutInner_1mz3p_191{width:120px;height:120px;background-color:#fff;border-radius:50%;display:grid;place-items:center;text-align:center;color:var(--draftify-theme-color)}._optionsContainer_114lu_1{display:flex;flex-wrap:wrap;align-items:center;gap:5px}@media(min-width:768px){._optionsContainer_114lu_1{gap:10px}}._optionButton_114lu_27{display:flex;align-items:center;gap:10px;height:40px;padding:8px;border:2px solid #4b5563;border-radius:10px;cursor:pointer;font-size:14px;transition:color .2s ease}@media(min-width:768px){._optionButton_114lu_27{font-size:16px}}._iconWrapper_114lu_65{display:flex;position:relative}._subscript_114lu_75{font-size:12px;line-height:1}.container{border:1px solid #e5e7eb;width:100%;height:275px;position:relative;overflow:hidden}.mediaWrapper{width:100%;height:100%;display:flex;flex-direction:column;color:var(--draftify-theme-color);font-weight:500}.mediaItem{flex:1;width:100%;object-fit:cover}.footerOverlay{bottom:2px;display:flex;gap:8px;align-items:center;width:100%;height:25px;font-size:12px}.refreshButton{display:flex;gap:8px;border:1px solid currentColor;border-radius:5px;align-items:center;padding:0 4px;background-color:var(--draftify-theme-color);color:#fff;cursor:pointer}.dropzone{border:2px dashed #d1d5db;width:100%;height:100%;display:grid;place-items:center}.uploadLabel{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:20px;padding:8px 16px;border-radius:10px;cursor:pointer}.uploadIconCircle{border:1px solid #d1d5db;border-radius:50%;display:flex;justify-content:center;align-items:center;width:60px;height:60px;font-size:20px}.donutContainer{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.donutOuter{display:grid;place-items:center;width:128px;height:128px;border-radius:50%}.donutInner{width:120px;height:120px;background-color:#fff;border-radius:50%;display:grid;place-items:center;text-align:center;color:var(--draftify-theme-color)}.optionsContainer{display:flex;flex-wrap:wrap;align-items:center;gap:5px}@media(min-width:768px){.optionsContainer{gap:10px}}.optionButton{display:flex;align-items:center;gap:10px;height:40px;padding:8px;border:2px solid #4b5563;border-radius:10px;cursor:pointer;font-size:14px;transition:color .2s ease}@media(min-width:768px){.optionButton{font-size:16px}}.iconWrapper{display:flex;position:relative}.subscript{font-size:12px;line-height:1}.draftify-root{--draftify-theme-color: #3b82f6;--hovered-draftify-theme-color: rgb(30, 64, 175)}.draftify-root .draftify-container{box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:20px;width:100%;min-height:450px;height:fit-content;border:1px solid var(--draftify-theme-color);border-radius:16px;padding:8px}@media(min-width:768px){.draftify-root .draftify-container{gap:10px;padding:20px}}.draftify-root .doc-metadata-prompt{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;border:1px solid var(--draftify-theme-color);border-radius:16px;padding:20px;box-shadow:0 10px 25px #00000026;z-index:10}.draftify-root .editor-area{flex:1;border:1px solid var(--draftify-theme-color);border-radius:16px;padding:2.5px 0}@media(min-width:768px){.draftify-root .editor-area{padding:20px}}.draftify-root .output-area{display:grid;gap:10px;border:1px solid var(--draftify-theme-color);border-radius:16px;padding:12px}@media(min-width:768px){.draftify-root .output-area{padding:20px}}.draftify-root .block-container{display:flex;align-items:center;gap:5px;border-radius:6px;padding:5px;transition:background-color .2s ease,color .2s ease}.draftify-root .logo-text{display:flex;gap:10px;align-items:center;font-weight:700;font-size:20px;background:linear-gradient(to bottom right,#1e40af,#a855f7);background-clip:text;-webkit-background-clip:text;color:transparent}.draftify-root .logo-description{text-decoration:underline;font-weight:400;font-size:12px}.draftify-root .delete-icon{cursor:pointer}.draftify-root .delete-icon :hover{color:#ef4444}
1
+ .df-heading{border:none;width:100%;outline:none;font-size:24px;font-weight:600}.df-subheading{border:none;width:100%;outline:none;font-size:20px;font-weight:600}.df-paragraph{border:none;width:100%;height:fit-content;outline:none}.df-quote{border:none;width:100%;border-left:4px solid var(--draftify-theme-color);outline:none;font-size:18px;font-style:italic;padding-left:8px}.df-list{border:none;width:100%;outline:none;font-size:14px;list-style-type:disc}.df-link{border:none;flex:-1;width:100%;outline:none;font-size:14px}.df-subheading{border:none;outline:none;width:100%;font-size:20px;font-weight:600}.draftify-root{--draftify-theme-color: rgb(59, 130, 246);--hovered-draftify-theme-color: rgb(30, 64, 175);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}.df-quote{border:none;outline:none;width:100%;border-left:4px solid var(--draftify-theme-color);font-size:18px;font-style:italic;padding-left:8px}.df-paragraph{border:none;outline:none;width:100%;height:fit-content}.df-list{border:none;outline:none;width:100%;font-size:14px;list-style-type:disc}.df-link{border:none;outline:none;flex:-1;width:100%;font-size:14px}.df-code{font-family:monospace;background-color:#000;color:#fff;padding:8px;width:100%;white-space:pre-wrap;border-radius:6px}.df-media{width:100%;height:100%;object-fit:cover;border-radius:10px}.row-col-button-setter{border:1px solid var(--draftify-theme-color);border-radius:5px;line-height:normal;padding:0 4px;color:var(--draftify-theme-color);cursor:pointer}.row-col-button-setter:hover{background-color:var(--draftify-theme-color);color:#fff}._optionsContainer_1bxps_1{display:flex;flex-wrap:wrap;align-items:center;gap:5px}._optionButton_1bxps_15{display:flex;align-items:center;gap:10px;height:20px;padding:8px;border:2px solid #4b5563;border-radius:10px;cursor:pointer;font-size:14px;transition:color .2s ease}@media(min-width:768px){._optionButton_1bxps_15{font-size:16px}}._iconWrapper_1bxps_53{display:flex;position:relative}._subscript_1bxps_63{font-size:12px;line-height:1}.optionButton{display:flex;align-items:center;gap:10px;height:20px;padding:8px;border:2px solid #4b5563;border-radius:10px;cursor:pointer;font-size:14px;transition:color .2s ease}.draftify-root .draftify-container{box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:20px;width:100%;min-height:450px;height:fit-content;border:1px solid var(--draftify-theme-color);border-radius:16px;padding:8px;background-color:#fff}.draftify-root .draftify-container{box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:20px;width:100%;min-height:450px;height:fit-content;border:1px solid var(--draftify-theme-color);border-radius:16px;padding:8px;background-color:transparent}.draftify-root{--draftify-theme-color: #3b82f6;--hovered-draftify-theme-color: rgb(30, 64, 175);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}._container_1mz3p_3{border:1px solid #e5e7eb;width:100%;height:275px;position:relative;overflow:hidden}._mediaWrapper_1mz3p_19{width:100%;height:100%;display:flex;flex-direction:column;color:var(--draftify-theme-color);font-weight:500}._mediaItem_1mz3p_37{flex:1;width:100%;object-fit:cover}._footerOverlay_1mz3p_49{bottom:2px;display:flex;gap:8px;align-items:center;width:100%;height:25px;font-size:12px}._refreshButton_1mz3p_69{display:flex;gap:8px;border:1px solid currentColor;border-radius:5px;align-items:center;padding:0 4px;background-color:var(--draftify-theme-color);color:#fff;cursor:pointer}._dropzone_1mz3p_95{border:2px dashed #d1d5db;width:100%;height:100%;display:grid;place-items:center}._uploadLabel_1mz3p_111{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:20px;padding:8px 16px;border-radius:10px;cursor:pointer}._uploadIconCircle_1mz3p_135{border:1px solid #d1d5db;border-radius:50%;display:flex;justify-content:center;align-items:center;width:60px;height:60px;font-size:20px}._donutContainer_1mz3p_159{width:100%;height:100%;display:flex;justify-content:center;align-items:center}._donutOuter_1mz3p_175{display:grid;place-items:center;width:128px;height:128px;border-radius:50%}._donutInner_1mz3p_191{width:120px;height:120px;background-color:#fff;border-radius:50%;display:grid;place-items:center;text-align:center;color:var(--draftify-theme-color)}._optionsContainer_114lu_1{display:flex;flex-wrap:wrap;align-items:center;gap:5px}@media(min-width:768px){._optionsContainer_114lu_1{gap:10px}}._optionButton_114lu_27{display:flex;align-items:center;gap:10px;height:40px;padding:8px;border:2px solid #4b5563;border-radius:10px;cursor:pointer;font-size:14px;transition:color .2s ease}@media(min-width:768px){._optionButton_114lu_27{font-size:16px}}._iconWrapper_114lu_65{display:flex;position:relative}._subscript_114lu_75{font-size:12px;line-height:1}.container{border:1px solid #e5e7eb;width:100%;height:275px;position:relative;overflow:hidden}.mediaWrapper{width:100%;height:100%;display:flex;flex-direction:column;color:var(--draftify-theme-color);font-weight:500}.mediaItem{flex:1;width:100%;object-fit:cover}.footerOverlay{bottom:2px;display:flex;gap:8px;align-items:center;width:100%;height:25px;font-size:12px}.refreshButton{display:flex;gap:8px;border:1px solid currentColor;border-radius:5px;align-items:center;padding:0 4px;background-color:var(--draftify-theme-color);color:#fff;cursor:pointer}.dropzone{border:2px dashed #d1d5db;width:100%;height:100%;display:grid;place-items:center}.uploadLabel{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:20px;padding:8px 16px;border-radius:10px;cursor:pointer}.uploadIconCircle{border:1px solid #d1d5db;border-radius:50%;display:flex;justify-content:center;align-items:center;width:60px;height:60px;font-size:20px}.donutContainer{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.donutOuter{display:grid;place-items:center;width:128px;height:128px;border-radius:50%}.donutInner{width:120px;height:120px;background-color:#fff;border-radius:50%;display:grid;place-items:center;text-align:center;color:var(--draftify-theme-color)}.optionsContainer{display:flex;flex-wrap:wrap;align-items:center;gap:5px}@media(min-width:768px){.optionsContainer{gap:10px}}.optionButton{display:flex;align-items:center;gap:10px;height:40px;padding:8px;border:2px solid #4b5563;border-radius:10px;cursor:pointer;font-size:14px;transition:color .2s ease}@media(min-width:768px){.optionButton{font-size:16px}}.iconWrapper{display:flex;position:relative}.subscript{font-size:12px;line-height:1}.draftify-root{--draftify-theme-color: #3b82f6;--hovered-draftify-theme-color: rgb(30, 64, 175)}.draftify-root .draftify-container{box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:20px;width:100%;min-height:450px;height:fit-content;border:1px solid var(--draftify-theme-color);border-radius:16px;padding:8px}@media(min-width:768px){.draftify-root .draftify-container{gap:10px;padding:20px}}.draftify-root .doc-metadata-prompt{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;border:1px solid var(--draftify-theme-color);border-radius:16px;padding:20px;box-shadow:0 10px 25px #00000026;z-index:10}.draftify-root .editor-area{flex:1;border:1px solid var(--draftify-theme-color);border-radius:16px;padding:2.5px 0}@media(min-width:768px){.draftify-root .editor-area{padding:20px}}.draftify-root .output-area{display:grid;gap:10px;border:1px solid var(--draftify-theme-color);border-radius:16px;padding:12px}@media(min-width:768px){.draftify-root .output-area{padding:20px}}.draftify-root .block-container{display:flex;align-items:center;gap:5px;border-radius:6px;padding:5px;transition:background-color .2s ease,color .2s ease}.draftify-root .logo-text{display:flex;gap:10px;align-items:center;font-weight:700;font-size:20px;background:linear-gradient(to bottom right,#1e40af,#a855f7);background-clip:text;-webkit-background-clip:text;color:transparent}.draftify-root .logo-description{text-decoration:underline;font-weight:400;font-size:12px}.draftify-root .delete-icon{cursor:pointer}.draftify-root .delete-icon :hover{color:#ef4444}.draftify-root textarea{field-sizing:content}
@@ -8403,14 +8403,13 @@ function $y({
8403
8403
  fontFamily: n
8404
8404
  }) {
8405
8405
  return /* @__PURE__ */ R.jsx(
8406
- "input",
8406
+ "textarea",
8407
8407
  {
8408
8408
  style: {
8409
8409
  ...nr,
8410
8410
  fontFamily: n || nr.fontFamily,
8411
8411
  borderBottom: "1px solid #232323"
8412
8412
  },
8413
- type: "text",
8414
8413
  placeholder: "Heading...",
8415
8414
  autoFocus: !0,
8416
8415
  value: t.data.text,
@@ -8450,14 +8449,13 @@ function Hy({
8450
8449
  modifySubheading: n
8451
8450
  }) {
8452
8451
  return /* @__PURE__ */ R.jsx(
8453
- "input",
8452
+ "textarea",
8454
8453
  {
8455
8454
  style: {
8456
8455
  ...rr,
8457
8456
  borderBottom: "1px solid #232323",
8458
8457
  fontFamily: t || rr.fontFamily
8459
8458
  },
8460
- type: "text",
8461
8459
  placeholder: "sub heading ...",
8462
8460
  autoFocus: !0,
8463
8461
  value: e.data.text,
@@ -8536,14 +8534,13 @@ const ar = {
8536
8534
  };
8537
8535
  function Xy({ listBlock: t, modifyList: e, fontFamily: n }) {
8538
8536
  return /* @__PURE__ */ R.jsx(
8539
- "input",
8537
+ "textarea",
8540
8538
  {
8541
8539
  style: {
8542
8540
  ...ar,
8543
8541
  borderBottom: "1px solid #232323",
8544
8542
  fontFamily: n || ar.fontFamily
8545
8543
  },
8546
- type: "text",
8547
8544
  placeholder: "separate items using comma",
8548
8545
  autoFocus: !0,
8549
8546
  value: t.data.items.join(","),
@@ -8579,14 +8576,13 @@ const sr = {
8579
8576
  };
8580
8577
  function Qy({ quoteBlock: t, modifyQuote: e, fontFamily: n }) {
8581
8578
  return /* @__PURE__ */ R.jsx(
8582
- "input",
8579
+ "textarea",
8583
8580
  {
8584
8581
  style: {
8585
8582
  ...sr,
8586
8583
  borderBottom: "1px solid #232323",
8587
8584
  fontFamily: n || sr.fontFamily
8588
8585
  },
8589
- type: "text",
8590
8586
  placeholder: "Quote...",
8591
8587
  autoFocus: !0,
8592
8588
  value: t.data.text,
@@ -8641,9 +8637,8 @@ function Jy({ tableBlock: t, modifyTable: e, fontFamily: n }) {
8641
8637
  padding: "8px"
8642
8638
  },
8643
8639
  children: /* @__PURE__ */ R.jsx(
8644
- "input",
8640
+ "textarea",
8645
8641
  {
8646
- type: "text",
8647
8642
  placeholder: `Col ${s + 1}`,
8648
8643
  style: {
8649
8644
  border: "none",
@@ -8679,9 +8674,8 @@ function Jy({ tableBlock: t, modifyTable: e, fontFamily: n }) {
8679
8674
  padding: "8px"
8680
8675
  },
8681
8676
  children: /* @__PURE__ */ R.jsx(
8682
- "input",
8677
+ "textarea",
8683
8678
  {
8684
- type: "text",
8685
8679
  style: {
8686
8680
  border: "none",
8687
8681
  borderBottom: "1px solid #3b82f6",