@dr-ishaan/remake-blocks 1.0.0 → 1.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dr-ishaan/remake-blocks",
3
- "version": "1.0.0",
4
- "description": "Professional Astro 6 plugin for rendering GitHub-style callouts (admonitions) and enhanced blockquotes in Markdown content29 first-class types",
3
+ "version": "1.2.0",
4
+ "description": "Astro 6 + remark plugin for GitHub-style callouts (admonitions), enhanced blockquotes, and disclosure widgets27 first-class types + safe-by-default HTML escaping + community-inspired features (dir=auto, aria-labelledby, aliases, build() escape hatch, appearance variants)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -10,44 +10,64 @@
10
10
  "import": "./dist/index.js",
11
11
  "types": "./dist/index.d.ts"
12
12
  },
13
- "./styles.css": "./dist/styles.css"
13
+ "./styles.css": "./dist/styles.css",
14
+ "./accordion.js": "./dist/accordion.js",
15
+ "./astro": {
16
+ "import": "./dist/astro.js",
17
+ "types": "./dist/astro.d.ts"
18
+ }
14
19
  },
15
20
  "files": [
16
- "dist/"
21
+ "dist/",
22
+ "README.md",
23
+ "LICENSE"
17
24
  ],
18
25
  "scripts": {
19
- "build": "tsc && cp src/styles.css dist/styles.css",
26
+ "build": "tsc && cp src/styles.css dist/styles.css && cp src/accordion.js dist/accordion.js",
20
27
  "dev": "tsc --watch",
21
- "prepublishOnly": "echo dist already built"
28
+ "test": "node --experimental-vm-modules tests/test-exhaustive.mts",
29
+ "prepublishOnly": "npm run build"
22
30
  },
23
31
  "keywords": [
24
32
  "astro",
25
33
  "astro-plugin",
26
34
  "astro-integration",
35
+ "remark",
36
+ "remark-plugin",
27
37
  "callout",
28
38
  "admonition",
29
39
  "blockquote",
30
- "remark",
40
+ "disclosure",
41
+ "collapsible",
42
+ "accordion",
43
+ "tree-view",
31
44
  "markdown",
32
45
  "github-admonition",
33
- "remake-blocks"
46
+ "obsidian-callout",
47
+ "remake-blocks",
48
+ "security",
49
+ "xss-safe"
34
50
  ],
51
+ "license": "MIT",
52
+ "author": "dr-ishaan <adi.ishaan@proton.me>",
53
+ "homepage": "https://github.com/dr-ishaan/remake-blocks#readme",
35
54
  "repository": {
36
55
  "type": "git",
37
- "url": "https://github.com/dr-ishaan/astro-callout-blocks"
56
+ "url": "git+https://github.com/dr-ishaan/remake-blocks.git"
38
57
  },
39
- "homepage": "https://github.com/dr-ishaan/astro-callout-blocks#readme",
40
- "publishConfig": {
41
- "access": "public",
42
- "registry": "https://registry.npmjs.org/"
58
+ "bugs": {
59
+ "url": "https://github.com/dr-ishaan/remake-blocks/issues"
43
60
  },
44
- "license": "MIT",
45
61
  "peerDependencies": {
46
62
  "astro": "^6.0.0"
47
63
  },
64
+ "peerDependenciesMeta": {
65
+ "astro": {
66
+ "optional": true
67
+ }
68
+ },
48
69
  "dependencies": {
49
- "unist-util-visit": "^5.0.0",
50
- "unist-util-modify-children": "^4.0.0"
70
+ "unist-util-visit": "^5.0.0"
51
71
  },
52
72
  "devDependencies": {
53
73
  "astro": "^6.0.0",
@@ -1,16 +0,0 @@
1
- /**
2
- * remark plugin for @dr-ishaan/remake-blocks
3
- *
4
- * A remark plugin that transforms callout directives inside blockquotes
5
- * into styled callout components, and optionally enhances regular blockquotes.
6
- *
7
- * 29 first-class callout types — each directive maps 1:1 to its own
8
- * unique visual identity. No alias resolution.
9
- */
10
- import type { Root } from "mdast";
11
- import type { Plugin } from "unified";
12
- import type { RemarkCalloutBlocksOptions, CalloutConfig } from "./types.js";
13
- declare const BUILTIN_CALLOUTS: CalloutConfig[];
14
- export declare const remarkCalloutBlocks: Plugin<[RemarkCalloutBlocksOptions?], Root>;
15
- export { BUILTIN_CALLOUTS };
16
- //# sourceMappingURL=remark-callout-blocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remark-callout-blocks.d.ts","sourceRoot":"","sources":["../src/remark-callout-blocks.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAqC,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EACV,0BAA0B,EAC1B,aAAa,EAId,MAAM,YAAY,CAAC;AAMpB,QAAA,MAAM,gBAAgB,EAAE,aAAa,EA4PpC,CAAC;AAyYF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,CAAC,0BAA0B,CAAC,CAAC,EAAE,IAAI,CAkC3E,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}