react-text-forge 0.0.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/README.md +40 -0
- package/dist/components/App.d.ts +1 -0
- package/dist/components/FormatButton.d.ts +13 -0
- package/dist/components/ReactTextForge.d.ts +14 -0
- package/dist/components/Toolbar.d.ts +14 -0
- package/dist/components/useToolbar.d.ts +8 -0
- package/dist/components/utils/CustomEditor.d.ts +190 -0
- package/dist/components/utils/Leaf.d.ts +11 -0
- package/dist/components/utils/dropdown/BlockListDropdown.d.ts +18 -0
- package/dist/components/utils/dropdown/BlockTypeDropdown.d.ts +14 -0
- package/dist/components/utils/dropdown/ContainerDropdown.d.ts +23 -0
- package/dist/components/utils/dropdown/FontFamilyDropdown.d.ts +14 -0
- package/dist/components/utils/dropdown/FontSizeDropdown.d.ts +16 -0
- package/dist/components/utils/dropdown/LanguageDropdown.d.ts +15 -0
- package/dist/components/utils/dropdown/TableDropdown.d.ts +12 -0
- package/dist/components/utils/elements/BlockquoteElement.d.ts +14 -0
- package/dist/components/utils/elements/CodeElement.d.ts +16 -0
- package/dist/components/utils/elements/DefaultElement.d.ts +16 -0
- package/dist/components/utils/elements/ListElement.d.ts +16 -0
- package/dist/components/utils/form/BulletTypeSelector.d.ts +14 -0
- package/dist/components/utils/form/ColorPickerPopup.d.ts +15 -0
- package/dist/components/utils/form/HistoryForm.d.ts +10 -0
- package/dist/components/utils/form/ImageForm.d.ts +12 -0
- package/dist/components/utils/form/LinkForm.d.ts +16 -0
- package/dist/components/utils/form/NumeredTypeSelector.d.ts +14 -0
- package/dist/components/utils/form/TableForm.d.ts +14 -0
- package/dist/components/utils/imageImport.d.ts +41 -0
- package/dist/images/readme/apercu.png +0 -0
- package/dist/index.d.ts +2 -0
- package/dist/main.d.ts +2 -0
- package/dist/react-text-forge.js +292 -0
- package/dist/react-text-forge.js.map +1 -0
- package/dist/react-text-forge.umd.cjs +23 -0
- package/dist/react-text-forge.umd.cjs.map +1 -0
- package/package.json +62 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# ReactTextForge
|
|
2
|
+
|
|
3
|
+
ReactTextForge est un éditeur de texte basé sur React et Slate.js.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Pour installer ReactTextForge, utilisez la commande suivante :
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install react-texte-forge
|
|
11
|
+
```
|
|
12
|
+
## Utilisation
|
|
13
|
+
|
|
14
|
+
Voici un exemple de base pour utiliser ReactTextForge dans votre application React :
|
|
15
|
+
|
|
16
|
+
```jsx
|
|
17
|
+
import React, { useState } from "react";
|
|
18
|
+
import ReactTextForge from "./components/ReactTextForge";
|
|
19
|
+
|
|
20
|
+
export default function App() {
|
|
21
|
+
const [value, setValue] = useState({});
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<ReactTextForge value={value} setValue={setValue} />
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Licence
|
|
30
|
+
Ce projet est sous licence MIT.
|
|
31
|
+
|
|
32
|
+
## Contact
|
|
33
|
+
Pour toute question ou suggestion, veuillez contacter : administrateur@nhumeria.fr
|
|
34
|
+
|
|
35
|
+
## Aperçu
|
|
36
|
+
|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
*Capture d'écran de l'interface de l'éditeur de texte ReactTextForge.*
|
|
40
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function App(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default FormatButton;
|
|
2
|
+
/**
|
|
3
|
+
* Ce composant permet d'afficher la liste des boutons de fonctionnalité
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {string} activeBlock - Type de bloc actif
|
|
7
|
+
* @param {object} editor - Éditeur de texte
|
|
8
|
+
* @param {string} format - format de texte sélectionné
|
|
9
|
+
* @param {bool} isActive - état du format (actif ou non)
|
|
10
|
+
* @param {function} onMouseDown - Fonction déclenchée lors du clic de la souris
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
declare function FormatButton({ activeBlock, editor, format, isActive, onMouseDown }: object): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default ReactTextForge;
|
|
2
|
+
/**
|
|
3
|
+
* Ce composant permet d'afficher l'éditeur de texte
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {object} props.value - contenu textuel
|
|
7
|
+
* @param {function} props.setValue - change l'état du contenu
|
|
8
|
+
*
|
|
9
|
+
* @returns {JSX.Element }
|
|
10
|
+
*/
|
|
11
|
+
declare function ReactTextForge({ value, setValue }: {
|
|
12
|
+
value: object;
|
|
13
|
+
setValue: Function;
|
|
14
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default Toolbar;
|
|
2
|
+
/**
|
|
3
|
+
* Ce composant permet d'afficher la barre d'outils
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {object} props.editor - éditeur de texte
|
|
7
|
+
* @param {object} props.activeMarks - Toutes les options (actifs ou non)
|
|
8
|
+
*
|
|
9
|
+
* @returns {JSX.Element }
|
|
10
|
+
*/
|
|
11
|
+
declare function Toolbar({ editor, activeMarks }: {
|
|
12
|
+
editor: object;
|
|
13
|
+
activeMarks: object;
|
|
14
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ce hook permet d'implémenter toutes les variables et fonction nécessaires à la barre d'outils
|
|
3
|
+
*
|
|
4
|
+
* @param {object} editor | éditeur de texte
|
|
5
|
+
*
|
|
6
|
+
* @returns {object} | Liste composée de toutes les variables et fonctions
|
|
7
|
+
*/
|
|
8
|
+
export default function useToolbar(editor: object): object;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
export default CustomEditor;
|
|
2
|
+
declare namespace CustomEditor {
|
|
3
|
+
/**
|
|
4
|
+
* Permet de définir si le format défini est actif
|
|
5
|
+
* @param {object} editor - éditeur de texte
|
|
6
|
+
* @param {string} format - format défini (ex: gras, italique, etc...)
|
|
7
|
+
* @returns {boolean}
|
|
8
|
+
*/
|
|
9
|
+
function isMarkActive(editor: object, format: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Permet de gérer l'application et la désapplication du format défini
|
|
12
|
+
* @param {object} editor - éditeur de texte
|
|
13
|
+
* @param {string} format - format défini (ex: gras, italique, etc...)
|
|
14
|
+
* @returns {void}
|
|
15
|
+
*/
|
|
16
|
+
function toggleMark(editor: object, format: string): void;
|
|
17
|
+
/**
|
|
18
|
+
* Permet de définir si le bloc défini est actif
|
|
19
|
+
* @param {object} editor - éditeur de texte
|
|
20
|
+
* @param {string} blockType - élément défini (ex: p, h1, h2...)
|
|
21
|
+
* @returns {boolean}
|
|
22
|
+
*/
|
|
23
|
+
function isBlockActive(editor: object, blockType: string): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Permet de définir si le bloc défini est dans une liste à puces (non-ordonnée ou numérotée)
|
|
26
|
+
* @param {object} editor - éditeur de texte
|
|
27
|
+
* @returns {boolean}
|
|
28
|
+
*/
|
|
29
|
+
function isSelectionInList(editor: object): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Permet de gérer l'application et la désapplication du bloc défini
|
|
32
|
+
* @param {object} editor - éditeur de texte
|
|
33
|
+
* @param {string} blockType - format défini (ex: gras, italique, etc...)
|
|
34
|
+
* @param {string} bulletType - puces définies dans
|
|
35
|
+
* @returns {void}
|
|
36
|
+
*/
|
|
37
|
+
function toggleBlock(editor: object, blockType: string, bulletType?: string): void;
|
|
38
|
+
/**
|
|
39
|
+
* Permet de définir si le bloc défini possède un alignement
|
|
40
|
+
* @param {object} editor - éditeur de texte
|
|
41
|
+
* @param {string} align - alignement défini (ex: left, right ou center.)
|
|
42
|
+
* @returns {boolean}
|
|
43
|
+
*/
|
|
44
|
+
function isAlignActive(editor: object, align: string): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Permet de gérer l'alignement du bloc sélectionné
|
|
47
|
+
* @param {object} editor - éditeur de texte
|
|
48
|
+
* @param {string} alignement - alignement défini (ex: left, right ou center)
|
|
49
|
+
* @returns {void}
|
|
50
|
+
*/
|
|
51
|
+
function toggleAlign(editor: object, align: any): void;
|
|
52
|
+
/**
|
|
53
|
+
* Permet de définir si le bloc sélectionné peut être indenté
|
|
54
|
+
* @param {object} editor - éditeur de texte
|
|
55
|
+
* @param {string} mark - indentation sélectionné
|
|
56
|
+
* @returns {boolean}
|
|
57
|
+
*/
|
|
58
|
+
function canIndent(editor: object, mark: string): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Permet de gérer l'indentation du bloc sélectionné
|
|
61
|
+
* @param {object} editor - éditeur de texte
|
|
62
|
+
* @returns {void}
|
|
63
|
+
*/
|
|
64
|
+
function handleIndent(editor: object): void;
|
|
65
|
+
/**
|
|
66
|
+
* Permet de gérer l'désindentation du bloc sélectionné
|
|
67
|
+
* @param {object} editor - éditeur de texte
|
|
68
|
+
* @returns {void}
|
|
69
|
+
*/
|
|
70
|
+
function handleOutdent(editor: object): void;
|
|
71
|
+
/**
|
|
72
|
+
* Permet de définir si le bloc sélectionné est un lien
|
|
73
|
+
* @param {object} editor - éditeur de texte
|
|
74
|
+
* @returns {boolean}
|
|
75
|
+
*/
|
|
76
|
+
function isLinkActive(editor: object): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Permet de ajouter ou mettre à jour un lien
|
|
79
|
+
* @param {object} editor - éditeur de texte
|
|
80
|
+
* @param {string} url - url défini
|
|
81
|
+
* @param {string} openInNewTab - attribut pour définir si le lien ouvre dans un nouvel onglet
|
|
82
|
+
* @returns {void}
|
|
83
|
+
*/
|
|
84
|
+
function updateLink(editor: object, url: string, openInNewTab: string): void;
|
|
85
|
+
/**
|
|
86
|
+
* Permet de supprimer le lien
|
|
87
|
+
* @param {object} editor - éditeur de texte
|
|
88
|
+
* @returns {void}
|
|
89
|
+
*/
|
|
90
|
+
function removeLink(editor: object): void;
|
|
91
|
+
/**
|
|
92
|
+
* Permet de gérer la couleur de fond du bloc sélectionné
|
|
93
|
+
* @param {object} editor - éditeur de texte
|
|
94
|
+
* @param {string} coulor - couleur définie
|
|
95
|
+
* @returns {void}
|
|
96
|
+
*/
|
|
97
|
+
function applyTextColor(editor: object, color: any): void;
|
|
98
|
+
/**
|
|
99
|
+
* Permet de gérer la couleur de texte du bloc sélectionné
|
|
100
|
+
* @param {object} editor - éditeur de texte
|
|
101
|
+
* @param {string} coulor - couleur définie
|
|
102
|
+
* @returns {void}
|
|
103
|
+
*/
|
|
104
|
+
function applyBackgroundTextColor(editor: object, color: any): void;
|
|
105
|
+
/**
|
|
106
|
+
* Permet de gérer la taille de police bloc sélectionné
|
|
107
|
+
* @param {object} editor - éditeur de texte
|
|
108
|
+
* @param {string} size - taille définie
|
|
109
|
+
* @returns {void}
|
|
110
|
+
*/
|
|
111
|
+
function applyFontSize(editor: object, size: string): void;
|
|
112
|
+
/**
|
|
113
|
+
* Permet de gérer la police d'écriture bloc sélectionné
|
|
114
|
+
* @param {object} editor - éditeur de texte
|
|
115
|
+
* @param {string} fontFamily - police définie
|
|
116
|
+
* @returns {void}
|
|
117
|
+
*/
|
|
118
|
+
function applyFontFamily(editor: object, fontFamily: string): void;
|
|
119
|
+
/**
|
|
120
|
+
* Gère l'ajout, l'édition et la suppression d'un bloc de code
|
|
121
|
+
* @param {object} editor - éditeur de texte
|
|
122
|
+
* @param {string} language - langage défini (ex: cpp(C++), php, etc...)
|
|
123
|
+
* @returns {void}
|
|
124
|
+
*/
|
|
125
|
+
function handleCode(editor: object, language: string): void;
|
|
126
|
+
/**
|
|
127
|
+
* Permet de gérer les images
|
|
128
|
+
* @param {object} editor - éditeur de texte
|
|
129
|
+
* @param {string} url - url définie
|
|
130
|
+
* @returns {void}
|
|
131
|
+
*/
|
|
132
|
+
function insertImage(editor: object, url: string): void;
|
|
133
|
+
/**
|
|
134
|
+
* Permet de gérer l'upload d'un fichier
|
|
135
|
+
* @param {Event} event
|
|
136
|
+
* @param {object} editor - éditeur de texte
|
|
137
|
+
* @returns {void}
|
|
138
|
+
*/
|
|
139
|
+
function handleFileChange(event: Event, editor: object): void;
|
|
140
|
+
/**
|
|
141
|
+
* Permet de créer un tableau
|
|
142
|
+
* @param {object} editor - éditeur de texte
|
|
143
|
+
* @param {number} rows - nombre de lignes
|
|
144
|
+
* @param {number} columns - nombre de colonnes
|
|
145
|
+
* @returns {void}
|
|
146
|
+
*/
|
|
147
|
+
function insertTable(editor: object, rows: number, columns: number): void;
|
|
148
|
+
/**
|
|
149
|
+
* Permet de définir si l'élément sélectionné est dans un tableau
|
|
150
|
+
* @param {object} editor - éditeur de texte
|
|
151
|
+
* @returns {boolean}
|
|
152
|
+
*/
|
|
153
|
+
function isSelectionInTable(editor: object): boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Permet d'obtenir le tableau sélectionné
|
|
156
|
+
* @param {object} editor - éditeur de texte
|
|
157
|
+
* @returns {void}
|
|
158
|
+
*/
|
|
159
|
+
function getTableFromSelection(editor: object): void;
|
|
160
|
+
/**
|
|
161
|
+
* Permet d'ajouter une ligne au tableau sélectionné
|
|
162
|
+
* @param {object} editor - éditeur de texte
|
|
163
|
+
* @returns {void}
|
|
164
|
+
*/
|
|
165
|
+
function addRow(editor: object): void;
|
|
166
|
+
/**
|
|
167
|
+
* Permet d'ajouter une colonne au tableau sélectionné
|
|
168
|
+
* @param {object} editor - éditeur de texte
|
|
169
|
+
* @returns {void}
|
|
170
|
+
*/
|
|
171
|
+
function addColumn(editor: object): void;
|
|
172
|
+
/**
|
|
173
|
+
* Permet de supprimer une ligne du tableau sélectionné
|
|
174
|
+
* @param {object} editor - éditeur de texte
|
|
175
|
+
* @returns {void}
|
|
176
|
+
*/
|
|
177
|
+
function deleteRow(editor: object): void;
|
|
178
|
+
/**
|
|
179
|
+
* Permet de supprimer une colonne du tableau sélectionné
|
|
180
|
+
* @param {object} editor - éditeur de texte
|
|
181
|
+
* @returns {void}
|
|
182
|
+
*/
|
|
183
|
+
function deleteColumn(editor: object): void;
|
|
184
|
+
/**
|
|
185
|
+
* Permet de supprimer le tableau sélectionné
|
|
186
|
+
* @param {object} editor - éditeur de texte
|
|
187
|
+
* @returns {void}
|
|
188
|
+
*/
|
|
189
|
+
function deleteTable(editor: object): void;
|
|
190
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default Leaf;
|
|
2
|
+
/**
|
|
3
|
+
* Cette fonction permet de créer les balises HTML en fonction du ou des formats appliqués
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {object} attributes - Tous les attributs nécessaires à la génération du contenu
|
|
7
|
+
* @param {object} children - Le contenu de la future balise
|
|
8
|
+
* @param {object} leaf - Contient le format appliqué
|
|
9
|
+
* @returns {JSX.Element}
|
|
10
|
+
*/
|
|
11
|
+
declare function Leaf({ attributes, children, leaf }: object): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default BlockListDropdown;
|
|
2
|
+
/**
|
|
3
|
+
* Ce composant affiche le formulaire de changement de puces (liste non-ordonnée ou numérotée)
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {string} props.editor - éditeur de texte
|
|
7
|
+
* @param {string} props.format - format sélectionné
|
|
8
|
+
* @param {string} props.isActive - État de la liste sélectionnée
|
|
9
|
+
* @param {function} props.onMouseDown - Permet de définir l'élément comme une liste
|
|
10
|
+
*
|
|
11
|
+
* @returns {JSX.Element}
|
|
12
|
+
*/
|
|
13
|
+
declare function BlockListDropdown({ editor, format, isActive, onMouseDown }: {
|
|
14
|
+
editor: string;
|
|
15
|
+
format: string;
|
|
16
|
+
isActive: string;
|
|
17
|
+
onMouseDown: Function;
|
|
18
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default BlockTypeDropdown;
|
|
2
|
+
/**
|
|
3
|
+
* Ce composant affiche le formulaire de changement de type de bloc (paragraphe, titre ou sous-titre)
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {string} props.activeBlock - type de bloc sélectionné
|
|
7
|
+
* @param {function} props.onChange - Permet de changer le type de bloc
|
|
8
|
+
*
|
|
9
|
+
* @returns {JSX.Element}
|
|
10
|
+
*/
|
|
11
|
+
declare function BlockTypeDropdown({ activeBlock, onChange }: {
|
|
12
|
+
activeBlock: string;
|
|
13
|
+
onChange: Function;
|
|
14
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ce composant permet d'afficher un menu déroulant en fonction de la fonctionnalité sélectionnée
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {boolean} props.disabled - Active/désactive le bouton d'activation
|
|
6
|
+
* @param {array} props.elements - Éléments à afficher
|
|
7
|
+
* @param {string} props.elementSelected - Élément sélectionné
|
|
8
|
+
* @param {string} props.format - format appliqué
|
|
9
|
+
* @param {boolean} props.isOpen - État du formulaire (ouvert, fermé)
|
|
10
|
+
* @param {func} props.setIsOpen - Change l'état du formulaire
|
|
11
|
+
* @param {func} props.onClick - Appliquer le nouveau format
|
|
12
|
+
*
|
|
13
|
+
* @return {JSX.Element}
|
|
14
|
+
*/
|
|
15
|
+
export default function ContainerDropdown({ disabled, elements, elementSelected, format, isOpen, setIsOpen, onClick }: {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
elements: any[];
|
|
18
|
+
elementSelected: string;
|
|
19
|
+
format: string;
|
|
20
|
+
isOpen: boolean;
|
|
21
|
+
setIsOpen: func;
|
|
22
|
+
onClick: func;
|
|
23
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default FontFamilyDropdown;
|
|
2
|
+
/**
|
|
3
|
+
* Ce composant affiche le formulaire de sélection de la police d'écriture
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {string} props.fontFamilySelected - police sélectionnée
|
|
7
|
+
* @param {func} props.onSelectFontFamily - Fonction permettant de changer la police d'écriture
|
|
8
|
+
*
|
|
9
|
+
* @returns {JSX.Element}
|
|
10
|
+
*/
|
|
11
|
+
declare function FontFamilyDropdown({ fontFamilySelected, onSelectFontFamily }: {
|
|
12
|
+
fontFamilySelected: string;
|
|
13
|
+
onSelectFontFamily: func;
|
|
14
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default FontSizeDropdown;
|
|
2
|
+
/**
|
|
3
|
+
* Ce composant affiche le formulaire de sélection de la taille de police
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {boolean} props.disabled - État du bouton (actif/inactif)
|
|
7
|
+
* @param {string} props.fontFamilySelected - taille sélectionnée
|
|
8
|
+
* @param {func} props.onSelectFontFamily - Fonction permettant de changer la taille de police
|
|
9
|
+
*
|
|
10
|
+
* @returns {JSX.Element}
|
|
11
|
+
*/
|
|
12
|
+
declare function FontSizeDropdown({ disabled, sizeSelected, onSelectSize }: {
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
fontFamilySelected: string;
|
|
15
|
+
onSelectFontFamily: func;
|
|
16
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default LanguageDropdown;
|
|
2
|
+
/**
|
|
3
|
+
* Ce composant permet de gérer l'affichage du formulaire de sélection de langage de code
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {object} props.editor | éditeur de texte
|
|
7
|
+
* @param {string} props.selectedLanguage | langage sélectionné dans le bloc courant
|
|
8
|
+
* @param {function} props.setSelectedLanguage | Modificateur du langage
|
|
9
|
+
* @returns {JSX.Element}
|
|
10
|
+
*/
|
|
11
|
+
declare function LanguageDropdown({ editor, selectedLanguage, setSelectedLanguage }: {
|
|
12
|
+
editor: object;
|
|
13
|
+
selectedLanguage: string;
|
|
14
|
+
setSelectedLanguage: Function;
|
|
15
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default TableDropdown;
|
|
2
|
+
/**
|
|
3
|
+
* Ce composant permet de gérer l'affichage du formulaire de création de tableau
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {object} props.editor | éditeur de texte
|
|
7
|
+
*
|
|
8
|
+
* @returns {JSX.Element}
|
|
9
|
+
*/
|
|
10
|
+
declare function TableDropdown({ editor }: {
|
|
11
|
+
editor: object;
|
|
12
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default BlockquoteElement;
|
|
2
|
+
/**
|
|
3
|
+
* Permet de générer une citation
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {array} props.attributes - attribut permettant la fabrication de l'éléments
|
|
7
|
+
* @param {JSX.Element} props.children - enfants de la citation
|
|
8
|
+
*
|
|
9
|
+
* @returns {JSX.Element}
|
|
10
|
+
*/
|
|
11
|
+
declare function BlockquoteElement({ attributes, children }: {
|
|
12
|
+
attributes: any[];
|
|
13
|
+
children: JSX.Element;
|
|
14
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default CodeElement;
|
|
2
|
+
/**
|
|
3
|
+
* Permet de générer un bloc de code
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {array} props.attributes - attribut permettant la fabrication de l'éléments
|
|
7
|
+
* @param {object} props.element - élément courant
|
|
8
|
+
* @param {JSX.Element} props.children - enfants de la citation
|
|
9
|
+
*
|
|
10
|
+
* @returns {JSX.Element}
|
|
11
|
+
*/
|
|
12
|
+
declare function CodeElement({ attributes, children, element }: {
|
|
13
|
+
attributes: any[];
|
|
14
|
+
element: object;
|
|
15
|
+
children: JSX.Element;
|
|
16
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default DefaultElement;
|
|
2
|
+
/**
|
|
3
|
+
* Permet de générer un paragraphe (bloc par défaut)
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {array} props.attributes - attribut permettant la fabrication de l'éléments
|
|
7
|
+
* @param {object} props.element - élément courant
|
|
8
|
+
* @param {JSX.Element} props.children - enfants de la citation
|
|
9
|
+
*
|
|
10
|
+
* @returns {JSX.Element}
|
|
11
|
+
*/
|
|
12
|
+
declare function DefaultElement({ attributes, children, element }: {
|
|
13
|
+
attributes: any[];
|
|
14
|
+
element: object;
|
|
15
|
+
children: JSX.Element;
|
|
16
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default ListElement;
|
|
2
|
+
/**
|
|
3
|
+
* Permet de générer une liste
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {array} props.attributes - attribut permettant la fabrication de l'éléments
|
|
7
|
+
* @param {JSX.Element} props.children - enfants de la citation
|
|
8
|
+
* @param {object} props.element - élément courant
|
|
9
|
+
*
|
|
10
|
+
* @returns {JSX.Element}
|
|
11
|
+
*/
|
|
12
|
+
declare function ListElement({ attributes, children, element }: {
|
|
13
|
+
attributes: any[];
|
|
14
|
+
children: JSX.Element;
|
|
15
|
+
element: object;
|
|
16
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default BulletTypeSelector;
|
|
2
|
+
/**
|
|
3
|
+
* Permet de générer une liste de puce pour les puces non-ordonnée
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {function} props.onChange - permet de définir la nouvelle puce
|
|
7
|
+
* @param {string} props.selectedType - puce sélectionnée
|
|
8
|
+
*
|
|
9
|
+
* @returns {JSX.Element}
|
|
10
|
+
*/
|
|
11
|
+
declare function BulletTypeSelector({ onChange, selectedType }: {
|
|
12
|
+
onChange: Function;
|
|
13
|
+
selectedType: string;
|
|
14
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Permet de générer le formulaire de sélection de couleur
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {string} props.selectedColor - couleur sélectionnée
|
|
6
|
+
* @param {function} props.onSelectColor - change le couleur
|
|
7
|
+
* @param {function} props.onClose - Fermer le formulaire
|
|
8
|
+
*
|
|
9
|
+
* @returns {JSX.Element}
|
|
10
|
+
*/
|
|
11
|
+
export default function ColorPickerPopup({ selectedColor, onSelectColor, onClose }: {
|
|
12
|
+
selectedColor: string;
|
|
13
|
+
onSelectColor: Function;
|
|
14
|
+
onClose: Function;
|
|
15
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ce composant permet d'afficher les boutons de gestion de l'historique
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {object} props.editor | Éditeur courant
|
|
6
|
+
* @returns {JSX.Element}
|
|
7
|
+
*/
|
|
8
|
+
export default function HistoryForm({ editor }: {
|
|
9
|
+
editor: object;
|
|
10
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default ImageForm;
|
|
2
|
+
/**
|
|
3
|
+
* Permet de générer le formulaire d'insertion d'images
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {object} props.editor - éditeur de texte
|
|
7
|
+
*
|
|
8
|
+
* @returns {JSX.Element}
|
|
9
|
+
*/
|
|
10
|
+
declare function ImageForm({ editor }: {
|
|
11
|
+
editor: object;
|
|
12
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default LinkForm;
|
|
2
|
+
/**
|
|
3
|
+
* Permet de générer le formulaire de sélection de couleur
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {function} props.onClose - ferme le formulaire
|
|
7
|
+
* @param {string} props.initialUrl - url déjà renseignée
|
|
8
|
+
* @param {boolean} props.isOpenInNewTab - permet d'ouvrir le lien dans une nouvelle fenêtre ou l'onglet courant
|
|
9
|
+
*
|
|
10
|
+
* @returns {JSX.Element}
|
|
11
|
+
*/
|
|
12
|
+
declare function LinkForm({ editor, onClose, initialUrl, isOpenInNewTab }: {
|
|
13
|
+
onClose: Function;
|
|
14
|
+
initialUrl: string;
|
|
15
|
+
isOpenInNewTab: boolean;
|
|
16
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default NumeredTypeSelector;
|
|
2
|
+
/**
|
|
3
|
+
* Permet de générer une liste de puce pour les puces numérotées
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {function} props.onChange - permet de définir la nouvelle puce
|
|
7
|
+
* @param {string} props.selectedType - puce sélectionnée
|
|
8
|
+
*
|
|
9
|
+
* @returns {JSX.Element}
|
|
10
|
+
*/
|
|
11
|
+
declare function NumeredTypeSelector({ onChange, selectedType }: {
|
|
12
|
+
onChange: Function;
|
|
13
|
+
selectedType: string;
|
|
14
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default TableForm;
|
|
2
|
+
/**
|
|
3
|
+
* Permet de générer le formulaire de création de tableau
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {function} props.onChange - permet de définir la nouvelle puce
|
|
7
|
+
* @param {string} props.selectedType - puce sélectionnée
|
|
8
|
+
*
|
|
9
|
+
* @returns {JSX.Element}
|
|
10
|
+
*/
|
|
11
|
+
declare function TableForm({ editor, onClose }: {
|
|
12
|
+
onChange: Function;
|
|
13
|
+
selectedType: string;
|
|
14
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default images;
|
|
2
|
+
declare namespace images {
|
|
3
|
+
export { addColumnGrey };
|
|
4
|
+
export { addColumn };
|
|
5
|
+
export { addRowGrey };
|
|
6
|
+
export { addRow };
|
|
7
|
+
export { bgColor };
|
|
8
|
+
export { blockCode };
|
|
9
|
+
export { blockquote };
|
|
10
|
+
export { bold };
|
|
11
|
+
export { bulletList };
|
|
12
|
+
export { center };
|
|
13
|
+
export { color };
|
|
14
|
+
export { deleteColumnGrey };
|
|
15
|
+
export { deleteColumn };
|
|
16
|
+
export { deleteRowGrey };
|
|
17
|
+
export { deleteRow };
|
|
18
|
+
export { deleteTableGrey };
|
|
19
|
+
export { deleteTable };
|
|
20
|
+
export { fontFamily };
|
|
21
|
+
export { href };
|
|
22
|
+
export { image };
|
|
23
|
+
export { indentGrey };
|
|
24
|
+
export { indent };
|
|
25
|
+
export { italic };
|
|
26
|
+
export { left };
|
|
27
|
+
export { numberedList };
|
|
28
|
+
export { outdentGrey };
|
|
29
|
+
export { outdent };
|
|
30
|
+
export { redoGrey };
|
|
31
|
+
export { redo };
|
|
32
|
+
export { right };
|
|
33
|
+
export { size };
|
|
34
|
+
export { strikethrough };
|
|
35
|
+
export { subscript };
|
|
36
|
+
export { superscript };
|
|
37
|
+
export { table };
|
|
38
|
+
export { underline };
|
|
39
|
+
export { undoGrey };
|
|
40
|
+
export { undo };
|
|
41
|
+
}
|
|
Binary file
|
package/dist/index.d.ts
ADDED
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import ee, { useState as re } from "react";
|
|
2
|
+
var T = { exports: {} }, b = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var $;
|
|
13
|
+
function te() {
|
|
14
|
+
if ($) return b;
|
|
15
|
+
$ = 1;
|
|
16
|
+
var c = Symbol.for("react.transitional.element"), f = Symbol.for("react.fragment");
|
|
17
|
+
function d(m, a, s) {
|
|
18
|
+
var E = null;
|
|
19
|
+
if (s !== void 0 && (E = "" + s), a.key !== void 0 && (E = "" + a.key), "key" in a) {
|
|
20
|
+
s = {};
|
|
21
|
+
for (var R in a)
|
|
22
|
+
R !== "key" && (s[R] = a[R]);
|
|
23
|
+
} else s = a;
|
|
24
|
+
return a = s.ref, {
|
|
25
|
+
$$typeof: c,
|
|
26
|
+
type: m,
|
|
27
|
+
key: E,
|
|
28
|
+
ref: a !== void 0 ? a : null,
|
|
29
|
+
props: s
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return b.Fragment = f, b.jsx = d, b.jsxs = d, b;
|
|
33
|
+
}
|
|
34
|
+
var _ = {};
|
|
35
|
+
/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-jsx-runtime.development.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
var F;
|
|
45
|
+
function ne() {
|
|
46
|
+
return F || (F = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function c(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === Z ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
52
|
+
switch (e) {
|
|
53
|
+
case p:
|
|
54
|
+
return "Fragment";
|
|
55
|
+
case J:
|
|
56
|
+
return "Profiler";
|
|
57
|
+
case U:
|
|
58
|
+
return "StrictMode";
|
|
59
|
+
case G:
|
|
60
|
+
return "Suspense";
|
|
61
|
+
case X:
|
|
62
|
+
return "SuspenseList";
|
|
63
|
+
case H:
|
|
64
|
+
return "Activity";
|
|
65
|
+
}
|
|
66
|
+
if (typeof e == "object")
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case W:
|
|
71
|
+
return "Portal";
|
|
72
|
+
case z:
|
|
73
|
+
return (e.displayName || "Context") + ".Provider";
|
|
74
|
+
case q:
|
|
75
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case V:
|
|
77
|
+
var r = e.render;
|
|
78
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
79
|
+
case B:
|
|
80
|
+
return r = e.displayName || null, r !== null ? r : c(e.type) || "Memo";
|
|
81
|
+
case h:
|
|
82
|
+
r = e._payload, e = e._init;
|
|
83
|
+
try {
|
|
84
|
+
return c(e(r));
|
|
85
|
+
} catch {
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
function f(e) {
|
|
91
|
+
return "" + e;
|
|
92
|
+
}
|
|
93
|
+
function d(e) {
|
|
94
|
+
try {
|
|
95
|
+
f(e);
|
|
96
|
+
var r = !1;
|
|
97
|
+
} catch {
|
|
98
|
+
r = !0;
|
|
99
|
+
}
|
|
100
|
+
if (r) {
|
|
101
|
+
r = console;
|
|
102
|
+
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
103
|
+
return t.call(
|
|
104
|
+
r,
|
|
105
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
+
n
|
|
107
|
+
), f(e);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function m(e) {
|
|
111
|
+
if (e === p) return "<>";
|
|
112
|
+
if (typeof e == "object" && e !== null && e.$$typeof === h)
|
|
113
|
+
return "<...>";
|
|
114
|
+
try {
|
|
115
|
+
var r = c(e);
|
|
116
|
+
return r ? "<" + r + ">" : "<...>";
|
|
117
|
+
} catch {
|
|
118
|
+
return "<...>";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function a() {
|
|
122
|
+
var e = k.A;
|
|
123
|
+
return e === null ? null : e.getOwner();
|
|
124
|
+
}
|
|
125
|
+
function s() {
|
|
126
|
+
return Error("react-stack-top-frame");
|
|
127
|
+
}
|
|
128
|
+
function E(e) {
|
|
129
|
+
if (g.call(e, "key")) {
|
|
130
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
|
+
if (r && r.isReactWarning) return !1;
|
|
132
|
+
}
|
|
133
|
+
return e.key !== void 0;
|
|
134
|
+
}
|
|
135
|
+
function R(e, r) {
|
|
136
|
+
function t() {
|
|
137
|
+
y || (y = !0, console.error(
|
|
138
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
139
|
+
r
|
|
140
|
+
));
|
|
141
|
+
}
|
|
142
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
143
|
+
get: t,
|
|
144
|
+
configurable: !0
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function L() {
|
|
148
|
+
var e = c(this.type);
|
|
149
|
+
return N[e] || (N[e] = !0, console.error(
|
|
150
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
152
|
+
}
|
|
153
|
+
function M(e, r, t, n, l, u, A, S) {
|
|
154
|
+
return t = u.ref, e = {
|
|
155
|
+
$$typeof: x,
|
|
156
|
+
type: e,
|
|
157
|
+
key: r,
|
|
158
|
+
props: u,
|
|
159
|
+
_owner: l
|
|
160
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
161
|
+
enumerable: !1,
|
|
162
|
+
get: L
|
|
163
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
164
|
+
configurable: !1,
|
|
165
|
+
enumerable: !1,
|
|
166
|
+
writable: !0,
|
|
167
|
+
value: 0
|
|
168
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
169
|
+
configurable: !1,
|
|
170
|
+
enumerable: !1,
|
|
171
|
+
writable: !0,
|
|
172
|
+
value: null
|
|
173
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
174
|
+
configurable: !1,
|
|
175
|
+
enumerable: !1,
|
|
176
|
+
writable: !0,
|
|
177
|
+
value: A
|
|
178
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
179
|
+
configurable: !1,
|
|
180
|
+
enumerable: !1,
|
|
181
|
+
writable: !0,
|
|
182
|
+
value: S
|
|
183
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
184
|
+
}
|
|
185
|
+
function w(e, r, t, n, l, u, A, S) {
|
|
186
|
+
var o = r.children;
|
|
187
|
+
if (o !== void 0)
|
|
188
|
+
if (n)
|
|
189
|
+
if (Q(o)) {
|
|
190
|
+
for (n = 0; n < o.length; n++)
|
|
191
|
+
j(o[n]);
|
|
192
|
+
Object.freeze && Object.freeze(o);
|
|
193
|
+
} else
|
|
194
|
+
console.error(
|
|
195
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
196
|
+
);
|
|
197
|
+
else j(o);
|
|
198
|
+
if (g.call(r, "key")) {
|
|
199
|
+
o = c(e);
|
|
200
|
+
var i = Object.keys(r).filter(function(K) {
|
|
201
|
+
return K !== "key";
|
|
202
|
+
});
|
|
203
|
+
n = 0 < i.length ? "{key: someKey, " + i.join(": ..., ") + ": ...}" : "{key: someKey}", I[o + n] || (i = 0 < i.length ? "{" + i.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
204
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
205
|
+
let props = %s;
|
|
206
|
+
<%s {...props} />
|
|
207
|
+
React keys must be passed directly to JSX without using spread:
|
|
208
|
+
let props = %s;
|
|
209
|
+
<%s key={someKey} {...props} />`,
|
|
210
|
+
n,
|
|
211
|
+
o,
|
|
212
|
+
i,
|
|
213
|
+
o
|
|
214
|
+
), I[o + n] = !0);
|
|
215
|
+
}
|
|
216
|
+
if (o = null, t !== void 0 && (d(t), o = "" + t), E(r) && (d(r.key), o = "" + r.key), "key" in r) {
|
|
217
|
+
t = {};
|
|
218
|
+
for (var P in r)
|
|
219
|
+
P !== "key" && (t[P] = r[P]);
|
|
220
|
+
} else t = r;
|
|
221
|
+
return o && R(
|
|
222
|
+
t,
|
|
223
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
224
|
+
), M(
|
|
225
|
+
e,
|
|
226
|
+
o,
|
|
227
|
+
u,
|
|
228
|
+
l,
|
|
229
|
+
a(),
|
|
230
|
+
t,
|
|
231
|
+
A,
|
|
232
|
+
S
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
function j(e) {
|
|
236
|
+
typeof e == "object" && e !== null && e.$$typeof === x && e._store && (e._store.validated = 1);
|
|
237
|
+
}
|
|
238
|
+
var v = ee, x = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), J = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), z = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), k = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, g = Object.prototype.hasOwnProperty, Q = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
239
|
+
return null;
|
|
240
|
+
};
|
|
241
|
+
v = {
|
|
242
|
+
"react-stack-bottom-frame": function(e) {
|
|
243
|
+
return e();
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
var y, N = {}, C = v["react-stack-bottom-frame"].bind(
|
|
247
|
+
v,
|
|
248
|
+
s
|
|
249
|
+
)(), Y = O(m(s)), I = {};
|
|
250
|
+
_.Fragment = p, _.jsx = function(e, r, t, n, l) {
|
|
251
|
+
var u = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
252
|
+
return w(
|
|
253
|
+
e,
|
|
254
|
+
r,
|
|
255
|
+
t,
|
|
256
|
+
!1,
|
|
257
|
+
n,
|
|
258
|
+
l,
|
|
259
|
+
u ? Error("react-stack-top-frame") : C,
|
|
260
|
+
u ? O(m(e)) : Y
|
|
261
|
+
);
|
|
262
|
+
}, _.jsxs = function(e, r, t, n, l) {
|
|
263
|
+
var u = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
264
|
+
return w(
|
|
265
|
+
e,
|
|
266
|
+
r,
|
|
267
|
+
t,
|
|
268
|
+
!0,
|
|
269
|
+
n,
|
|
270
|
+
l,
|
|
271
|
+
u ? Error("react-stack-top-frame") : C,
|
|
272
|
+
u ? O(m(e)) : Y
|
|
273
|
+
);
|
|
274
|
+
};
|
|
275
|
+
}()), _;
|
|
276
|
+
}
|
|
277
|
+
var D;
|
|
278
|
+
function oe() {
|
|
279
|
+
return D || (D = 1, process.env.NODE_ENV === "production" ? T.exports = te() : T.exports = ne()), T.exports;
|
|
280
|
+
}
|
|
281
|
+
var ae = oe();
|
|
282
|
+
function ue() {
|
|
283
|
+
const [c, f] = re("Jhon");
|
|
284
|
+
return /* @__PURE__ */ ae.jsxs("div", { children: [
|
|
285
|
+
"helloworl ",
|
|
286
|
+
c
|
|
287
|
+
] });
|
|
288
|
+
}
|
|
289
|
+
export {
|
|
290
|
+
ue as default
|
|
291
|
+
};
|
|
292
|
+
//# sourceMappingURL=react-text-forge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-text-forge.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../src/components/App.jsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n \"react-stack-bottom-frame\": function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React[\"react-stack-bottom-frame\"].bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { useState } from \"react\"\r\n\r\nexport default function App(){\r\n const [name, setName] = useState(\"Jhon\")\r\n\r\n return (\r\n <div>helloworl {name}</div>\r\n )\r\n}"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","self","source","owner","debugStack","debugTask","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","App","setName","useState"],"mappings":";;;;;;;;;;;;;;;AAWA,MAAIA,IAAqB,OAAO,IAAI,4BAA4B,GAC9DC,IAAsB,OAAO,IAAI,gBAAgB;AACnD,WAASC,EAAQC,GAAMC,GAAQC,GAAU;AACvC,QAAIC,IAAM;AAGV,QAFWD,MAAX,WAAwBC,IAAM,KAAKD,IACxBD,EAAO,QAAlB,WAA0BE,IAAM,KAAKF,EAAO,MACxC,SAASA,GAAQ;AACnB,MAAAC,IAAW,CAAE;AACb,eAASE,KAAYH;AACnB,QAAUG,MAAV,UAAuBF,EAASE,CAAQ,IAAIH,EAAOG,CAAQ;AAAA,IAC9D,MAAM,CAAAF,IAAWD;AAClB,WAAAA,IAASC,EAAS,KACX;AAAA,MACL,UAAUL;AAAA,MACV,MAAMG;AAAA,MACN,KAAKG;AAAA,MACL,KAAgBF,MAAX,SAAoBA,IAAS;AAAA,MAClC,OAAOC;AAAA,IACR;AAAA,EACH;AACA,SAAAG,EAAA,WAAmBP,GACnBO,EAAA,MAAcN,GACdM,EAAA,OAAeN;;;;;;;;;;;;;;sBCtBE,QAAQ,IAAI,aAA7B,gBACG,WAAY;AACX,aAASO,EAAyBN,GAAM;AACtC,UAAYA,KAAR,KAAc,QAAO;AACzB,UAAmB,OAAOA,KAAtB;AACF,eAAOA,EAAK,aAAaO,IACrB,OACAP,EAAK,eAAeA,EAAK,QAAQ;AACvC,UAAiB,OAAOA,KAApB,SAA0B,QAAOA;AACrC,cAAQA,GAAI;AAAA,QACV,KAAKF;AACH,iB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A,QACAC;AAAA,QACA;AAAA,QACA2C;AAAA,QACAD;AAAA,QACAqB,IACI,MAAM,uBAAuB,IAC7BH;AAAA,QACJG,IAAmBL,EAAWlC,EAAY1B,CAAI,CAAC,IAAI+D;AAAA,MACpD;AAAA,IACF,GACDC,EAAY,OAAG,SAAUhE,GAAMC,GAAQC,GAAU2C,GAAQD,GAAM;AAC7D,UAAIqB,IACF,MAAMnC,EAAqB;AAC7B,aAAOmB;AAAA,QACLjD;AAAA,QACAC;AAAA,QACAC;AAAA,QACA;AAAA,QACA2C;AAAA,QACAD;AAAA,QACAqB,IACI,MAAM,uBAAuB,IAC7BH;AAAA,QACJG,IAAmBL,EAAWlC,EAAY1B,CAAI,CAAC,IAAI+D;AAAA,MACpD;AAAA,IACF;AAAA,EACL,EAAM;;;;sBCnWF,QAAQ,IAAI,aAAa,eAC3BG,EAAA,UAAiBP,GAAgD,IAEjEO,EAAA,UAAiBC,GAAiD;;;ACHpE,SAAwBC,KAAK;AACzB,QAAM,CAACzC,GAAM0C,CAAO,IAAIC,GAAS,MAAM;AAEvC,iCACK,OAAI,EAAA,UAAA;AAAA,IAAA;AAAA,IAAW3C;AAAA,EAAA,GAAK;AAE7B;","x_google_ignoreList":[0,1,2]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(function(f,l){typeof exports=="object"&&typeof module<"u"?module.exports=l(require("react")):typeof define=="function"&&define.amd?define(["react"],l):(f=typeof globalThis<"u"?globalThis:f||self,f.ReactTextForge=l(f.React))})(this,function(f){"use strict";var l={exports:{}},m={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var P;function W(){if(P)return m;P=1;var c=Symbol.for("react.transitional.element"),R=Symbol.for("react.fragment");function b(_,a,s){var T=null;if(s!==void 0&&(T=""+s),a.key!==void 0&&(T=""+a.key),"key"in a){s={};for(var v in a)v!=="key"&&(s[v]=a[v])}else s=a;return a=s.ref,{$$typeof:c,type:_,key:T,ref:a!==void 0?a:null,props:s}}return m.Fragment=R,m.jsx=b,m.jsxs=b,m}var E={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var j;function $(){return j||(j=1,process.env.NODE_ENV!=="production"&&function(){function c(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case B:return"Profiler";case X:return"StrictMode";case K:return"Suspense";case ee:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case G:return"Portal";case Z:return(e.displayName||"Context")+".Provider";case H:return(e._context.displayName||"Context")+".Consumer";case Q:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return r=e.displayName||null,r!==null?r:c(e.type)||"Memo";case C:r=e._payload,e=e._init;try{return c(e(r))}catch{}}return null}function R(e){return""+e}function b(e){try{R(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),R(e)}}function _(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===C)return"<...>";try{var r=c(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function a(){var e=O.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function T(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function v(e,r){function t(){F||(F=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function z(){var e=c(this.type);return I[e]||(I[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function V(e,r,t,n,i,u,S,h){return t=u.ref,e={$$typeof:N,type:e,key:r,props:u,_owner:i},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:z}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:h}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function g(e,r,t,n,i,u,S,h){var o=r.children;if(o!==void 0)if(n)if(oe(o)){for(n=0;n<o.length;n++)y(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(o);if(Y.call(r,"key")){o=c(e);var d=Object.keys(r).filter(function(ae){return ae!=="key"});n=0<d.length?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}",M[o+n]||(d=0<d.length?"{"+d.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,n,o,d,o),M[o+n]=!0)}if(o=null,t!==void 0&&(b(t),o=""+t),T(r)&&(b(r.key),o=""+r.key),"key"in r){t={};for(var x in r)x!=="key"&&(t[x]=r[x])}else t=r;return o&&v(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),V(e,o,u,i,a(),t,S,h)}function y(e){typeof e=="object"&&e!==null&&e.$$typeof===N&&e._store&&(e._store.validated=1)}var p=f,N=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),ne=Symbol.for("react.client.reference"),O=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,oe=Array.isArray,A=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(e){return e()}};var F,I={},D=p["react-stack-bottom-frame"].bind(p,s)(),L=A(_(s)),M={};E.Fragment=k,E.jsx=function(e,r,t,n,i){var u=1e4>O.recentlyCreatedOwnerStacks++;return g(e,r,t,!1,n,i,u?Error("react-stack-top-frame"):D,u?A(_(e)):L)},E.jsxs=function(e,r,t,n,i){var u=1e4>O.recentlyCreatedOwnerStacks++;return g(e,r,t,!0,n,i,u?Error("react-stack-top-frame"):D,u?A(_(e)):L)}}()),E}var w;function U(){return w||(w=1,process.env.NODE_ENV==="production"?l.exports=W():l.exports=$()),l.exports}var J=U();function q(){const[c,R]=f.useState("Jhon");return J.jsxs("div",{children:["helloworl ",c]})}return q});
|
|
23
|
+
//# sourceMappingURL=react-text-forge.umd.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-text-forge.umd.cjs","sources":["../node_modules/react/cjs/react-jsx-runtime.production.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../src/components/App.jsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n \"react-stack-bottom-frame\": function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React[\"react-stack-bottom-frame\"].bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { useState } from \"react\"\r\n\r\nexport default function App(){\r\n const [name, setName] = useState(\"Jhon\")\r\n\r\n return (\r\n <div>helloworl {name}</div>\r\n )\r\n}"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","self","source","owner","debugStack","debugTask","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","App","setName","useState"],"mappings":";;;;;;;;wCAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,CAAE,EACb,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EAC9D,MAAMF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,CACR,CACH,CACA,OAAAG,EAAA,SAAmBP,EACnBO,EAAA,IAAcN,EACdM,EAAA,KAAeN;;;;;;;;qCCtBE,QAAQ,IAAI,WAA7B,cACG,UAAY,CACX,SAASO,EAAyBN,EAAM,CACtC,GAAYA,GAAR,KAAc,OAAO,KACzB,GAAmB,OAAOA,GAAtB,WACF,OAAOA,EAAK,WAAaO,GACrB,KACAP,EAAK,aAAeA,EAAK,MAAQ,KACvC,GAAiB,OAAOA,GAApB,SAA0B,OAAOA,EACrC,OAAQA,EAAI,CACV,KAAKF,EACH,MAAO,WACT,KA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WACjB,QAAQ,WACR,UAAY,CACV,OAAO,IACR,EACPF,EAAQ,CACN,2BAA4B,SAAUG,EAAmB,CACvD,OAAOA,EAAmB,CAClC,CACK,EACD,IAAItB,EACAG,EAAyB,CAAE,EAC3BoB,EAAyBJ,EAAM,0BAA0B,EAAE,KAC7DA,EACA3B,CACN,EAAO,EACCgC,EAAwBH,EAAWlC,EAAYK,CAAY,CAAC,EAC5DyB,EAAwB,CAAE,EAC9BQ,EAAA,SAAmBlE,EACnBkE,EAAW,IAAG,SAAUhE,EAAMC,EAAQC,EAAU2C,EAAQD,EAAM,CAC5D,IAAIqB,EACF,IAAMnC,EAAqB,6BAC7B,OAAOmB,EACLjD,EACAC,EACAC,EACA,GACA2C,EACAD,EACAqB,EACI,MAAM,uBAAuB,EAC7BH,EACJG,EAAmBL,EAAWlC,EAAY1B,CAAI,CAAC,EAAI+D,CACpD,CACF,EACDC,EAAY,KAAG,SAAUhE,EAAMC,EAAQC,EAAU2C,EAAQD,EAAM,CAC7D,IAAIqB,EACF,IAAMnC,EAAqB,6BAC7B,OAAOmB,EACLjD,EACAC,EACAC,EACA,GACA2C,EACAD,EACAqB,EACI,MAAM,uBAAuB,EAC7BH,EACJG,EAAmBL,EAAWlC,EAAY1B,CAAI,CAAC,EAAI+D,CACpD,CACF,CACL,EAAM,uCCnWF,QAAQ,IAAI,WAAa,aAC3BG,EAAA,QAAiBP,EAAgD,EAEjEO,EAAA,QAAiBC,EAAiD,uBCHpE,SAAwBC,GAAK,CACzB,KAAM,CAACzC,EAAM0C,CAAO,EAAIC,EAAAA,SAAS,MAAM,EAEvC,cACK,MAAI,CAAA,SAAA,CAAA,aAAW3C,CAAA,EAAK,CAE7B","x_google_ignoreList":[0,1,2]}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-text-forge",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"main": "dist/react-text-forge.umd.js",
|
|
6
|
+
"module": "dist/react-text-forge.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/react-text-forge.js",
|
|
14
|
+
"require": "./dist/react-text-forge.umd.cjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "vite",
|
|
19
|
+
"build": "vite build",
|
|
20
|
+
"lint": "eslint .",
|
|
21
|
+
"preview": "vite preview",
|
|
22
|
+
"test": "jest"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@eslint/js": "^9.21.0",
|
|
26
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
27
|
+
"@testing-library/react": "^16.3.0",
|
|
28
|
+
"@types/react": "^19.0.10",
|
|
29
|
+
"@types/react-dom": "^19.0.4",
|
|
30
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
31
|
+
"eslint": "^9.21.0",
|
|
32
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
33
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
34
|
+
"globals": "^15.15.0",
|
|
35
|
+
"identity-obj-proxy": "^3.0.0",
|
|
36
|
+
"jest": "^29.7.0",
|
|
37
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
38
|
+
"vite": "^6.2.0"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"react": "^19.1.0",
|
|
42
|
+
"react-dom": "^19.1.0",
|
|
43
|
+
"core-js": "^3.41.0",
|
|
44
|
+
"prop-types": "^15.8.1",
|
|
45
|
+
"react-color": "^2.19.3",
|
|
46
|
+
"react-image-file-resizer": "^0.4.8",
|
|
47
|
+
"sass": "^1.86.1",
|
|
48
|
+
"slate": "^0.112.0",
|
|
49
|
+
"slate-history": "^0.110.3",
|
|
50
|
+
"slate-react": "^0.112.1",
|
|
51
|
+
"vite-plugin-dts": "^4.5.3"
|
|
52
|
+
},
|
|
53
|
+
"jest": {
|
|
54
|
+
"testEnvironment": "jsdom",
|
|
55
|
+
"transform": {
|
|
56
|
+
"^.+\\.[t|j]sx?$": "babel-jest"
|
|
57
|
+
},
|
|
58
|
+
"moduleNameMapper": {
|
|
59
|
+
"\\.(css|sass|scss)$": "identity-obj-proxy"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|