@cartamd/plugin-attachment
Advanced tools
Comparing version 2.8.0 to 3.0.0
{ | ||
"name": "@cartamd/plugin-attachment", | ||
"version": "2.8.0", | ||
"version": "3.0.0", | ||
"type": "module", | ||
@@ -17,9 +17,26 @@ "main": "./dist/index.js", | ||
}, | ||
"repository": { "type": "git", "url": "https://github.com/BearToCode/carta-md.git" }, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/BearToCode/carta-md.git" | ||
}, | ||
"exports": { | ||
".": { "types": "./dist/index.d.ts", "svelte": "./dist/index.js" }, | ||
"./default.css": { "import": "./dist/default.css", "require": "./dist/default.css" } | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"svelte": "./dist/index.js" | ||
}, | ||
"./default.css": { | ||
"import": "./dist/default.css", | ||
"require": "./dist/default.css" | ||
} | ||
}, | ||
"files": ["dist", "!dist/**/*.test.*", "!dist/**/*.spec.*"], | ||
"peerDependencies": { "carta-md": "^2.8.0", "marked": "^9.1.5", "svelte": "^3.54.0 || ^4.0.0" }, | ||
"files": [ | ||
"dist", | ||
"!dist/**/*.test.*", | ||
"!dist/**/*.spec.*" | ||
], | ||
"peerDependencies": { | ||
"carta-md": "^2.8.0", | ||
"marked": "^9.1.5", | ||
"svelte": "^3.54.0 || ^4.0.0" | ||
}, | ||
"devDependencies": { | ||
@@ -26,0 +43,0 @@ "@sveltejs/adapter-auto": "^2.0.0", |
@@ -27,3 +27,9 @@ # Carta Attachment Plugin | ||
const carta = new Carta({ | ||
extensions: [attachment()] | ||
extensions: [ | ||
attachment({ | ||
upload(file) { | ||
/* ... */ | ||
} | ||
}) | ||
] | ||
}); | ||
@@ -30,0 +36,0 @@ </script> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
75
16820