@mhamz.01/easyflow-texteditor 0.1.0 → 0.1.1

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
@@ -6694,102 +6694,39 @@ var import_react79 = require("@tiptap/react");
6694
6694
  var import_react80 = require("react");
6695
6695
 
6696
6696
  // src/lib/font.ts
6697
- var import_google = require("next/font/google");
6698
- var inter = (0, import_google.Inter)({ subsets: ["latin"] });
6699
- var roboto = (0, import_google.Roboto)({ subsets: ["latin"] });
6700
- var opensans = (0, import_google.Open_Sans)({ subsets: ["latin"] });
6701
- var poppins = (0, import_google.Poppins)({
6702
- subsets: ["latin"],
6703
- weight: "100"
6704
- });
6705
- var montserrat = (0, import_google.Montserrat)({ subsets: ["latin"] });
6706
- var lato = (0, import_google.Lato)({
6707
- subsets: ["latin"],
6708
- weight: "100"
6709
- });
6710
- var oswald = (0, import_google.Oswald)({ subsets: ["latin"] });
6711
- var raleway = (0, import_google.Raleway)({ subsets: ["latin"] });
6712
- var merriweather = (0, import_google.Merriweather)({ subsets: ["latin"] });
6713
- var playfair = (0, import_google.Playfair_Display)({ subsets: ["latin"] });
6714
- var ubuntu = (0, import_google.Ubuntu)({
6715
- subsets: ["latin"],
6716
- weight: "300"
6717
- });
6718
- var ptsans = (0, import_google.PT_Sans)({
6719
- subsets: ["latin"],
6720
- weight: "400"
6721
- });
6722
- var barlow = (0, import_google.Barlow)({
6723
- subsets: ["latin"],
6724
- weight: "100"
6725
- });
6726
- var fira = (0, import_google.Fira_Sans)({
6727
- subsets: ["latin"],
6728
- weight: "100"
6729
- });
6730
- var nunito = (0, import_google.Nunito)({ subsets: ["latin"] });
6731
- var cabin = (0, import_google.Cabin)({ subsets: ["latin"] });
6732
- var bebas = (0, import_google.Bebas_Neue)({
6733
- subsets: ["latin"],
6734
- weight: "400"
6735
- });
6736
- var sourceserif = (0, import_google.Source_Serif_4)({ subsets: ["latin"] });
6737
- var librebask = (0, import_google.Libre_Baskerville)({
6738
- subsets: ["latin"],
6739
- weight: "400"
6740
- });
6741
- var rubik = (0, import_google.Rubik)({ subsets: ["latin"] });
6742
- var inconsolata = (0, import_google.Inconsolata)({ subsets: ["latin"] });
6743
- var worksans = (0, import_google.Work_Sans)({ subsets: ["latin"] });
6744
- var mulish = (0, import_google.Mulish)({ subsets: ["latin"] });
6745
- var quicksand = (0, import_google.Quicksand)({ subsets: ["latin"] });
6746
- var kanit = (0, import_google.Kanit)({
6747
- subsets: ["latin"],
6748
- weight: "100"
6749
- });
6750
- var teko = (0, import_google.Teko)({ subsets: ["latin"] });
6751
- var josefin = (0, import_google.Josefin_Sans)({ subsets: ["latin"] });
6752
- var philosopher = (0, import_google.Philosopher)({
6753
- subsets: ["latin"],
6754
- weight: "400"
6755
- });
6756
- var dancing = (0, import_google.Dancing_Script)({ subsets: ["latin"] });
6757
- var notoserif = (0, import_google.Noto_Serif)({ subsets: ["latin"] });
6758
- var manrope = (0, import_google.Manrope)({ subsets: ["latin"] });
6759
- var spacegrotesk = (0, import_google.Space_Grotesk)({ subsets: ["latin"] });
6760
6697
  var FONT_OPTIONS = [
6761
- { label: "Inter", font: inter },
6762
- { label: "Roboto", font: roboto },
6763
- { label: "Open Sans", font: opensans },
6764
- { label: "Poppins", font: poppins },
6765
- { label: "Montserrat", font: montserrat },
6766
- { label: "Lato", font: lato },
6767
- { label: "Oswald", font: oswald },
6768
- { label: "Raleway", font: raleway },
6769
- { label: "Merriweather", font: merriweather },
6770
- { label: "Playfair Display", font: playfair },
6771
- { label: "Ubuntu", font: ubuntu },
6772
- { label: "PT Sans", font: ptsans },
6773
- { label: "Barlow", font: barlow },
6774
- { label: "Fira Sans", font: fira },
6775
- { label: "Nunito", font: nunito },
6776
- { label: "Cabin", font: cabin },
6777
- { label: "Bebas Neue", font: bebas },
6778
- { label: "Source Serif Pro", font: sourceserif },
6779
- { label: "Libre Baskerville", font: librebask },
6780
- { label: "Rubik", font: rubik },
6781
- { label: "Inconsolata", font: inconsolata },
6782
- { label: "Work Sans", font: worksans },
6783
- { label: "Mulish", font: mulish },
6784
- { label: "Quicksand", font: quicksand },
6785
- { label: "Kanit", font: kanit },
6786
- { label: "Teko", font: teko },
6787
- { label: "Josefin Sans", font: josefin },
6788
- { label: "Philosopher", font: philosopher },
6789
- { label: "Dancing Script", font: dancing },
6790
- { label: "Noto Serif", font: notoserif },
6791
- { label: "Manrope", font: manrope },
6792
- { label: "Space Grotesk", font: spacegrotesk }
6698
+ { label: "Inter", value: "Inter, sans-serif" },
6699
+ { label: "Roboto", value: "Roboto, sans-serif" },
6700
+ { label: "Open Sans", value: "Open Sans, sans-serif" },
6701
+ { label: "Poppins", value: "Poppins, sans-serif" },
6702
+ { label: "Montserrat", value: "Montserrat, sans-serif" },
6703
+ { label: "Lato", value: "Lato, sans-serif" },
6704
+ { label: "Oswald", value: "Oswald, sans-serif" },
6705
+ { label: "Raleway", value: "Raleway, sans-serif" },
6706
+ { label: "Merriweather", value: "Merriweather, sans-serif" },
6707
+ { label: "Playfair Display", value: "Playfair, sans-serif" },
6708
+ { label: "Ubuntu", value: "Ubuntu, sans-serif" },
6709
+ { label: "PT Sans", value: "PT Sans, sans-serif" },
6710
+ { label: "Barlow", value: "Barlow, sans-serif" },
6711
+ { label: "Fira Sans", value: "Fira Sans, sans-serif" },
6712
+ { label: "Nunito", value: "Nunito, sans-serif" },
6713
+ { label: "Cabin", value: "Cabin, sans-serif" },
6714
+ { label: "Bebas Neue", value: "Bebas Neunu, sans-serif" },
6715
+ { label: "Source Serif Pro", value: "Source Serif Pro, sans-serif" },
6716
+ { label: "Libre Baskerville", value: "Libre Baskerville, sans-serif" },
6717
+ { label: "Rubik", value: "Rubik, sans-serif" },
6718
+ { label: "Inconsolata", value: "Inconsolata, sans-serif" },
6719
+ { label: "Work Sans", value: "Work Sans, sans-serif" },
6720
+ { label: "Mulish", value: "Mulish, sans-serif" },
6721
+ { label: "Quicksand", value: "Quicksand, sans-serif" },
6722
+ { label: "Kanit", value: "Kanit, sans-serif" },
6723
+ { label: "Teko", value: "Teko, sans-serif" },
6724
+ { label: "Josefin Sans", value: "Josefin Sans, sans-serif" },
6725
+ { label: "Philosopher", value: "Philosopher, sans-serif" },
6726
+ { label: "Dancing Script", value: "Dancing Script, sans-serif" },
6727
+ { label: "Noto Serif", value: "Noto Serif, sans-serif" },
6728
+ { label: "Manrope", value: "Manrope, sans-serif" },
6729
+ { label: "Space Grotesk", value: "Space Grotesk, sans-serif" }
6793
6730
  ];
6794
6731
 
6795
6732
  // src/components/tiptap-ui/font-family-dropdown/font-family-dropdown.tsx
@@ -7009,14 +6946,14 @@ function FontFamilyDropdown() {
7009
6946
  },
7010
6947
  "default"
7011
6948
  ),
7012
- FONT_OPTIONS.map(({ label, font }) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
6949
+ FONT_OPTIONS.map(({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7013
6950
  CommandItem,
7014
6951
  {
7015
6952
  onSelect: () => {
7016
- applyFont(label);
6953
+ applyFont(value);
7017
6954
  setOpen(false);
7018
6955
  },
7019
- style: { fontFamily: font.style.fontFamily },
6956
+ style: { fontFamily: value },
7020
6957
  children: label
7021
6958
  },
7022
6959
  label