@fireproof/use-fireproof 0.24.3-dev-20261224 → 0.24.6
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/package.json +11 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fireproof/use-fireproof",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.6",
|
|
4
4
|
"description": "Fireproof live ledger, JavaScript API and React hooks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"license": "AFL-2.0",
|
|
21
21
|
"gptdoc": "Fireproof/React/Usage: import { useFireproof } from 'use-fireproof'; function WordCounterApp() { const { useLiveQuery, useDocument } = useFireproof('my-word-app'); const { doc: wordInput, merge: updateWordInput, save: saveWordInput, reset: clearWordInput } = useDocument({ word: '', timestamp: Date.now() }); const recentWords = useLiveQuery('timestamp', { descending: true, limit: 10 }); const { doc: { totalSubmitted }, merge: updateTotalSubmitted, save: saveTotalSubmitted } = useDocument({ _id: 'word-counter', totalSubmitted: 0 }); const handleWordSubmission = (e) => { e.preventDefault(); updateTotalSubmitted({ totalSubmitted: totalSubmitted + 1 }); saveTotalSubmitted(); saveWordInput(); clearWordInput();}; return (<><p>{totalSubmitted} words submitted</p><form onSubmit={handleWordSubmission}><input type='text' value={wordInput.word} onChange={e => updateWordInput({ word: e.target.value })} placeholder='Enter a word' /></form><ul>{recentWords.docs.map(entry => (<li key={entry._id}>{entry.word}</li>))} </ul></>) } export default WordCounterApp;",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@adviser/cement": "0.5.
|
|
24
|
-
"@fireproof/core-base": "0.24.
|
|
25
|
-
"@fireproof/core-gateways-cloud": "0.24.
|
|
26
|
-
"@fireproof/core-keybag": "0.24.
|
|
27
|
-
"@fireproof/core-protocols-dashboard": "0.24.
|
|
28
|
-
"@fireproof/core-runtime": "0.24.
|
|
29
|
-
"@fireproof/core-types-base": "0.24.
|
|
30
|
-
"@fireproof/core-types-blockstore": "0.24.
|
|
31
|
-
"@fireproof/core-types-protocols-cloud": "0.24.
|
|
32
|
-
"@fireproof/vendor": "0.24.
|
|
23
|
+
"@adviser/cement": "0.5.15",
|
|
24
|
+
"@fireproof/core-base": "0.24.6",
|
|
25
|
+
"@fireproof/core-gateways-cloud": "0.24.6",
|
|
26
|
+
"@fireproof/core-keybag": "0.24.6",
|
|
27
|
+
"@fireproof/core-protocols-dashboard": "0.24.6",
|
|
28
|
+
"@fireproof/core-runtime": "0.24.6",
|
|
29
|
+
"@fireproof/core-types-base": "0.24.6",
|
|
30
|
+
"@fireproof/core-types-blockstore": "0.24.6",
|
|
31
|
+
"@fireproof/core-types-protocols-cloud": "0.24.6",
|
|
32
|
+
"@fireproof/vendor": "0.24.6",
|
|
33
33
|
"dompurify": "3.3.1",
|
|
34
34
|
"jose": "6.1.3",
|
|
35
35
|
"react": "19.2.3",
|