@ragrails/api-playground-react 0.1.3 → 0.1.4

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.
@@ -1,8 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  export type CodeLanguage = 'json' | 'bash' | 'javascript' | 'python' | 'go' | 'plain';
3
- /**
4
- * Tokenize a single line with Prism and render it as themed React nodes.
5
- * Per-line on purpose: CodeBlock owns line numbers and the staggered reveal, so
6
- * Prism only colors the text — numbering and animation are untouched.
7
- */
3
+ /** Tokenize a single line into themed React nodes. */
8
4
  export declare function highlightLine(line: string, language: CodeLanguage): React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ragrails/api-playground-react",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "Lightweight embeddable React API playground for interactive API docs, cURL snippets, try-it-out requests, and developer portals.",
6
6
  "keywords": [
@@ -25,7 +25,7 @@
25
25
  "type": "git",
26
26
  "url": "git+https://github.com/ragrails/api-playground.git"
27
27
  },
28
- "homepage": "https://github.com/ragrails/api-playground#readme",
28
+ "homepage": "https://ragrails.github.io/api-playground/",
29
29
  "bugs": {
30
30
  "url": "https://github.com/ragrails/api-playground/issues"
31
31
  },
@@ -53,13 +53,13 @@
53
53
  "access": "public"
54
54
  },
55
55
  "scripts": {
56
- "dev": "vite",
56
+ "dev": "npm run build:lib && vite",
57
57
  "build": "npm run build:lib",
58
58
  "build:app": "tsc -b && vite build",
59
59
  "build:lib": "vite build --config vite.lib.config.ts && npm run build:css && npm run build:inject-css",
60
60
  "build:css": "tailwindcss -i ./src/styles/package.css -o ./dist/styles.css --minify",
61
61
  "build:inject-css": "node scripts/embed-css.mjs",
62
- "check": "npm run lint && npm run build:app && npm run build:lib",
62
+ "check": "npm run lint && npm run build:lib && npm run build:app",
63
63
  "lint": "oxlint",
64
64
  "pack:dry": "npm run build:lib && npm pack --dry-run",
65
65
  "prepublishOnly": "npm run check",
@@ -73,12 +73,10 @@
73
73
  "@tailwindcss/cli": "^4.3.1",
74
74
  "@tailwindcss/vite": "^4.3.1",
75
75
  "@types/node": "^24.13.2",
76
- "@types/prismjs": "^1.26.6",
77
76
  "@types/react": "^19.2.17",
78
77
  "@types/react-dom": "^19.2.3",
79
78
  "@vitejs/plugin-react": "^6.0.2",
80
79
  "oxlint": "^1.69.0",
81
- "prismjs": "^1.30.0",
82
80
  "react": "^19.2.7",
83
81
  "react-dom": "^19.2.7",
84
82
  "tailwindcss": "^4.3.1",