mirror of
https://github.com/dergigi/boris.git
synced 2026-02-23 16:04:29 +01:00
feat: integrate applesauce-content for proper content parsing and rendering
- Install applesauce-content package for content parsing - Use getParsedContent() to parse nostr content according to applesauce patterns - Create proper TypeScript interfaces for ParsedNode and ParsedContent - Add renderParsedContent() component to render parsed content with proper styling - Handle mentions, links, and text content with appropriate styling - Add CSS styles for nostr-mention and nostr-link classes - Follow applesauce-content documentation patterns for content rendering - Maintain type safety with proper interfaces instead of 'any' types This follows the applesauce-content documentation exactly as shown in the examples, providing proper content parsing and rendering.
This commit is contained in:
20
node_modules/applesauce-content/package.json
generated
vendored
20
node_modules/applesauce-content/package.json
generated
vendored
@@ -1,19 +1,17 @@
|
||||
{
|
||||
"name": "applesauce-content",
|
||||
"version": "3.1.0",
|
||||
"version": "4.0.0",
|
||||
"description": "Unified plugins for processing event content",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"keywords": [
|
||||
"nostr",
|
||||
"applesauce"
|
||||
"nostr"
|
||||
],
|
||||
"author": "hzrd149",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"dist",
|
||||
"applesauce"
|
||||
"dist"
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
@@ -48,28 +46,30 @@
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@cashu/cashu-ts": "2.0.0-rc1",
|
||||
"@cashu/cashu-ts": "^2.7.2",
|
||||
"@types/hast": "^3.0.4",
|
||||
"@types/mdast": "^4.0.4",
|
||||
"@types/unist": "^3.0.3",
|
||||
"applesauce-core": "^3.1.0",
|
||||
"applesauce-core": "^4.0.0",
|
||||
"mdast-util-find-and-replace": "^3.0.2",
|
||||
"nostr-tools": "~2.15",
|
||||
"nostr-tools": "~2.17",
|
||||
"remark": "^15.0.1",
|
||||
"remark-parse": "^11.0.0",
|
||||
"unified": "^11.0.5",
|
||||
"unist-util-visit-parents": "^6.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"applesauce-signers": "^4.0.0",
|
||||
"rimraf": "^6.0.1",
|
||||
"typescript": "^5.8.3",
|
||||
"applesauce-signers": "^3.1.0",
|
||||
"vitest": "^3.2.3"
|
||||
"vitest": "^3.2.4"
|
||||
},
|
||||
"funding": {
|
||||
"type": "lightning",
|
||||
"url": "lightning:nostrudel@geyser.fund"
|
||||
},
|
||||
"scripts": {
|
||||
"prebuild": "rimraf dist",
|
||||
"build": "tsc",
|
||||
"watch:build": "tsc --watch > /dev/null",
|
||||
"test": "vitest run --passWithNoTests",
|
||||
|
||||
Reference in New Issue
Block a user