jaml-ui 4.2.4 → 4.2.6

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,8 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type JimboTextSize = "micro" | "xs" | "sm" | "md" | "lg" | "xl" | "display";
3
+ export type JimboTextTone = "white" | "grey" | "gold" | "red" | "blue" | "green" | "orange" | "purple";
4
+ export interface JimboTextProps extends HTMLAttributes<HTMLSpanElement> {
5
+ size?: JimboTextSize;
6
+ tone?: JimboTextTone;
7
+ }
8
+ export declare function JimboText({ size, tone, className, children, ...rest }: JimboTextProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export type JimboTone = "red" | "blue" | "green" | "orange" | "purple" | "grey" | "gold" | "tarot" | "planet" | "spectral";
3
+ export { JimboButton } from './JimboButton.js';
4
+ export type JimboInnerPanelProps = HTMLAttributes<HTMLDivElement>;
5
+ export declare function JimboInnerPanel({ className, children, ...rest }: JimboInnerPanelProps): import("react").JSX.Element;
6
+ export interface JimboModalProps {
7
+ open: boolean;
8
+ onClose?: () => void;
9
+ title?: ReactNode;
10
+ className?: string;
11
+ children?: ReactNode;
12
+ }
13
+ export declare function JimboModal({ open, onClose, title, className, children }: JimboModalProps): import("react").JSX.Element | null;
@@ -0,0 +1,10 @@
1
+ import { CSSProperties } from 'react';
2
+ import { SpriteSheetType } from '../sprites/spriteMapper.js';
3
+ export interface JimboSpriteProps {
4
+ name: string;
5
+ sheet: SpriteSheetType;
6
+ width: number;
7
+ className?: string;
8
+ style?: CSSProperties;
9
+ }
10
+ export declare function JimboSprite({ name, sheet, width, className, style }: JimboSpriteProps): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ export type JamlPreviewSection = "must" | "should" | "mustNot";
2
+ export type JamlPreviewVisualType = "joker" | "consumable" | "voucher" | "tag" | "boss";
3
+ export interface JamlPreviewItem {
4
+ id: string;
5
+ section: JamlPreviewSection;
6
+ clauseKey: string;
7
+ visualType: JamlPreviewVisualType;
8
+ value: string;
9
+ source: string;
10
+ }
11
+ export type JamlPreviewGroups = Record<JamlPreviewSection, JamlPreviewItem[]>;
12
+ export declare function extractVisualJamlItems(jaml: string): JamlPreviewGroups;
@@ -0,0 +1,3 @@
1
+ import { JamlVisualFilter } from '../components/JamlIdeVisual.js';
2
+ export declare function jamlTextToVisualFilter(text: string): JamlVisualFilter;
3
+ export declare function visualFilterToJamlText(filter: JamlVisualFilter): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jaml-ui",
3
- "version": "4.2.4",
3
+ "version": "4.2.6",
4
4
  "description": "Zero-dependency json-render engine + Balatro card sprites for MCP Apps.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -45,8 +45,8 @@
45
45
  "typecheck": "tsc --noEmit --pretty false",
46
46
  "typecheck:all": "pnpm typecheck && pnpm -r --if-present run typecheck",
47
47
  "prepack": "npm run build",
48
- "storybook": "pnpm run build && pnpm --filter jaml-codemirror build && storybook dev -p 3141",
49
- "build-storybook": "pnpm run build && pnpm --filter jaml-codemirror build && storybook build",
48
+ "storybook": "pnpm run build && storybook dev -p 3141",
49
+ "build-storybook": "pnpm run build && storybook build",
50
50
  "lint": "eslint ."
51
51
  },
52
52
  "engines": {
@@ -77,7 +77,8 @@
77
77
  "author": "pifreak",
78
78
  "license": "MIT",
79
79
  "dependencies": {
80
- "yaml": "^2.7.1"
80
+ "react-icons": "^5.7.0",
81
+ "yaml": "^2.9.0"
81
82
  },
82
83
  "peerDependencies": {
83
84
  "motely-wasm": "^24.1.0",
@@ -86,24 +87,25 @@
86
87
  },
87
88
  "devDependencies": {
88
89
  "@eslint/js": "^10.0.1",
89
- "@storybook/addon-docs": "^10.4.6",
90
- "@storybook/react": "^10.4.6",
91
- "@storybook/react-vite": "^10.4.6",
92
- "@types/node": "^25.9.4",
90
+ "@storybook/addon-docs": "^10.5.0",
91
+ "@storybook/react": "^10.5.0",
92
+ "@storybook/react-vite": "^10.5.0",
93
+ "@types/node": "^25.9.5",
93
94
  "@types/react": "^19.2.17",
94
95
  "@types/react-dom": "^19.2.3",
95
96
  "@vitejs/plugin-react": "^5.2.0",
96
- "eslint": "^10.6.0",
97
+ "eslint": "^10.7.0",
97
98
  "eslint-plugin-react-hooks": "^7.1.1",
98
99
  "eslint-plugin-react-refresh": "^0.5.3",
99
100
  "eslint-plugin-storybook": "10.4.6",
100
101
  "globals": "^17.7.0",
102
+ "jaml-codemirror": "^0.2.1",
101
103
  "motely-wasm": "^24.1.0",
102
104
  "react": "^19.2.7",
103
105
  "react-dom": "^19.2.7",
104
- "storybook": "^10.4.6",
106
+ "storybook": "^10.5.0",
105
107
  "typescript": "^5.9.3",
106
- "typescript-eslint": "^8.62.1",
108
+ "typescript-eslint": "^8.63.0",
107
109
  "vite": "^6.4.3",
108
110
  "vite-plugin-dts": "^5.0.3"
109
111
  }