@industry-theme/markdown-panels 0.2.1

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.
@@ -0,0 +1,48 @@
1
+ export type { PanelEvent, PanelEventType, PanelContextValue, PanelActions, PanelEventEmitter, PanelComponentProps, PanelDefinition, PanelMetadata, PanelLifecycleHooks, RepositoryMetadata, DataSlice, ActiveFileSlice, FileTreeSource, } from '@principal-ade/panel-framework-core';
2
+ /**
3
+ * Git change status types.
4
+ */
5
+ export type GitChangeSelectionStatus = 'staged' | 'unstaged' | 'untracked';
6
+ /**
7
+ * Git status information data structure.
8
+ */
9
+ export interface GitStatus {
10
+ staged: string[];
11
+ unstaged: string[];
12
+ untracked: string[];
13
+ deleted: string[];
14
+ }
15
+ /**
16
+ * File tree node structure.
17
+ */
18
+ export interface FileTree {
19
+ name: string;
20
+ path: string;
21
+ type: 'file' | 'directory';
22
+ children?: FileTree[];
23
+ }
24
+ /**
25
+ * Markdown file metadata.
26
+ */
27
+ export interface MarkdownFile {
28
+ path: string;
29
+ title?: string;
30
+ lastModified: number;
31
+ }
32
+ /**
33
+ * Package layer information.
34
+ */
35
+ export interface PackageLayer {
36
+ name: string;
37
+ version: string;
38
+ path: string;
39
+ }
40
+ /**
41
+ * Code quality metrics.
42
+ */
43
+ export interface QualityMetrics {
44
+ coverage?: number;
45
+ issues?: number;
46
+ complexity?: number;
47
+ }
48
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,cAAc,GACf,MAAM,qCAAqC,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
package/package.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "@industry-theme/markdown-panels",
3
+ "version": "0.2.1",
4
+ "description": "Markdown rendering panels with industry theming support",
5
+ "type": "module",
6
+ "main": "dist/panels.bundle.js",
7
+ "module": "dist/panels.bundle.js",
8
+ "types": "dist/index.d.ts",
9
+ "keywords": [
10
+ "panel-extension"
11
+ ],
12
+ "author": "Your Name",
13
+ "license": "MIT",
14
+ "scripts": {
15
+ "build": "bun run clean && bun run build:panel && bun run build:types",
16
+ "build:panel": "vite build",
17
+ "build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly --declaration --declarationMap",
18
+ "dev": "vite build --watch",
19
+ "clean": "rm -rf dist",
20
+ "typecheck": "tsc --noEmit",
21
+ "lint": "eslint . --ext .ts,.tsx",
22
+ "lint:fix": "eslint . --ext .ts,.tsx --fix",
23
+ "format": "prettier --write .",
24
+ "format:check": "prettier --check .",
25
+ "test": "bun test",
26
+ "test:watch": "bun test --watch",
27
+ "storybook": "storybook dev -p 6007",
28
+ "build-storybook": "storybook build"
29
+ },
30
+ "peerDependencies": {
31
+ "@principal-ade/panel-framework-core": "^0.1.2",
32
+ "react": ">=19.0.0",
33
+ "react-dom": ">=19.0.0"
34
+ },
35
+ "dependencies": {
36
+ "@a24z/industry-theme": "^0.1.0",
37
+ "clsx": "^2.1.1",
38
+ "hast-util-sanitize": "^5.0.2",
39
+ "highlight.js": "^11.11.1",
40
+ "lucide-react": "^0.552.0",
41
+ "react-markdown": "^10.1.0",
42
+ "react-zoom-pan-pinch": "^3.7.0",
43
+ "rehype-highlight": "^7.0.2",
44
+ "rehype-raw": "^7.0.0",
45
+ "rehype-sanitize": "^6.0.0",
46
+ "rehype-slug": "^6.0.0",
47
+ "remark-gfm": "^4.0.1",
48
+ "themed-markdown": "^0.1.0"
49
+ },
50
+ "devDependencies": {
51
+ "@chromatic-com/storybook": "^3.2.2",
52
+ "@eslint/js": "^9.32.0",
53
+ "@principal-ade/panel-framework-core": "^0.1.2",
54
+ "@storybook/addon-essentials": "^8.5.0",
55
+ "@storybook/addon-interactions": "^8.5.0",
56
+ "@storybook/addon-links": "^8.5.0",
57
+ "@storybook/addon-onboarding": "^8.5.0",
58
+ "@storybook/blocks": "^8.5.0",
59
+ "@storybook/react": "^8.5.0",
60
+ "@storybook/react-vite": "^8.5.0",
61
+ "@storybook/test": "^8.5.0",
62
+ "@types/bun": "latest",
63
+ "@types/node": "^22.15.26",
64
+ "@types/react": "^18.3.18",
65
+ "@types/react-dom": "^18.3.5",
66
+ "@typescript-eslint/eslint-plugin": "^8.38.0",
67
+ "@typescript-eslint/parser": "^8.38.0",
68
+ "@vitejs/plugin-react": "^4.3.4",
69
+ "esbuild": "^0.25.8",
70
+ "eslint": "^9.32.0",
71
+ "eslint-config-prettier": "^10.1.8",
72
+ "eslint-plugin-react": "^7.37.2",
73
+ "eslint-plugin-react-hooks": "^5.0.0",
74
+ "eslint-plugin-storybook": "^0.11.1",
75
+ "prettier": "^3.6.2",
76
+ "react": "^19.0.0",
77
+ "react-dom": "^19.0.0",
78
+ "storybook": "^8.5.0",
79
+ "typescript": "^5.0.4",
80
+ "typescript-eslint": "^8.38.0",
81
+ "vite": "^6.0.7"
82
+ },
83
+ "files": [
84
+ "dist",
85
+ "README.md",
86
+ "LICENSE"
87
+ ],
88
+ "repository": {
89
+ "type": "git",
90
+ "url": "git+https://github.com/your-org/panel-starter.git"
91
+ }
92
+ }