mirror of
https://github.com/dergigi/boris.git
synced 2025-12-24 18:14:21 +01:00
- 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.
78 lines
1.9 KiB
JSON
78 lines
1.9 KiB
JSON
{
|
|
"name": "applesauce-content",
|
|
"version": "4.0.0",
|
|
"description": "Unified plugins for processing event content",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"keywords": [
|
|
"nostr"
|
|
],
|
|
"author": "hzrd149",
|
|
"license": "MIT",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"require": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"./helpers": {
|
|
"import": "./dist/helpers/index.js",
|
|
"require": "./dist/helpers/index.js",
|
|
"types": "./dist/helpers/index.d.ts"
|
|
},
|
|
"./helpers/*": {
|
|
"import": "./dist/helpers/*.js",
|
|
"require": "./dist/helpers/*.js",
|
|
"types": "./dist/helpers/*.d.ts"
|
|
},
|
|
"./nast": {
|
|
"import": "./dist/nast/index.js",
|
|
"require": "./dist/nast/index.js",
|
|
"types": "./dist/nast/index.d.ts"
|
|
},
|
|
"./markdown": {
|
|
"import": "./dist/markdown/index.js",
|
|
"require": "./dist/markdown/index.js",
|
|
"types": "./dist/markdown/index.d.ts"
|
|
},
|
|
"./text": {
|
|
"import": "./dist/text/index.js",
|
|
"require": "./dist/text/index.js",
|
|
"types": "./dist/text/index.d.ts"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@cashu/cashu-ts": "^2.7.2",
|
|
"@types/hast": "^3.0.4",
|
|
"@types/mdast": "^4.0.4",
|
|
"@types/unist": "^3.0.3",
|
|
"applesauce-core": "^4.0.0",
|
|
"mdast-util-find-and-replace": "^3.0.2",
|
|
"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",
|
|
"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",
|
|
"watch:test": "vitest"
|
|
}
|
|
} |