jaml-ui 4.2.6 → 4.2.9

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.
Files changed (64) hide show
  1. package/dist/chunks/JimboMascot-DJAe76lw.js +771 -0
  2. package/dist/chunks/JimboMascot-DJAe76lw.js.map +1 -0
  3. package/dist/chunks/motelyItemDecoder-Cb-RjvQ0.js +692 -0
  4. package/dist/chunks/motelyItemDecoder-Cb-RjvQ0.js.map +1 -0
  5. package/dist/chunks/{spriteMapper-BiDkbZrD.js → spriteMapper-Dfr2_j0_.js} +55 -34
  6. package/dist/chunks/{spriteMapper-BiDkbZrD.js.map → spriteMapper-Dfr2_j0_.js.map} +1 -1
  7. package/dist/components/JamlCodeEditor.d.ts +1 -2
  8. package/dist/components/JamlSeedInput.d.ts +24 -0
  9. package/dist/components/JamlSeedSpinner.d.ts +10 -0
  10. package/dist/components/JamlyzerBulk.d.ts +6 -2
  11. package/dist/components/jamlyzer/JamlyzerAnteDetails.d.ts +14 -0
  12. package/dist/components/jamlyzer/JamlyzerErraticDeck.d.ts +8 -0
  13. package/dist/components/jamlyzer/JamlyzerEvents.d.ts +6 -0
  14. package/dist/components/jamlyzer/JamlyzerItemCard.d.ts +9 -0
  15. package/dist/components/jamlyzer/JamlyzerPackSection.d.ts +9 -0
  16. package/dist/components/jamlyzer/JamlyzerPulls.d.ts +8 -0
  17. package/dist/components/jamlyzer/JamlyzerRail.d.ts +14 -0
  18. package/dist/components/jamlyzer/highlight.d.ts +5 -0
  19. package/dist/components/jamlyzer/names.d.ts +8 -0
  20. package/dist/core.js +2 -2
  21. package/dist/index.d.ts +5 -1
  22. package/dist/index.js +21490 -3766
  23. package/dist/index.js.map +1 -1
  24. package/dist/json-render/components/domain.d.ts +3 -2
  25. package/dist/json-render/components/layout.d.ts +2 -6
  26. package/dist/json-render/components/mascot.d.ts +10 -9
  27. package/dist/json-render/components/reference.d.ts +3 -2
  28. package/dist/lib/jaml/jamlLangCodemirror.d.ts +13 -0
  29. package/dist/lib/jaml/jamlSeeds.d.ts +7 -0
  30. package/dist/lib/motely/jamlParse.d.ts +4 -0
  31. package/dist/lib/motely/runtime.d.ts +1 -0
  32. package/dist/motely.js +44 -717
  33. package/dist/motely.js.map +1 -1
  34. package/dist/ui/JimboApp.d.ts +15 -0
  35. package/dist/ui/JimboBadge.d.ts +12 -0
  36. package/dist/ui/JimboButton.d.ts +1 -1
  37. package/dist/ui/JimboCodeSurface.d.ts +12 -0
  38. package/dist/ui/JimboDivider.d.ts +7 -0
  39. package/dist/ui/JimboErrorBlock.d.ts +8 -0
  40. package/dist/ui/JimboGrid.d.ts +14 -0
  41. package/dist/ui/JimboInset.d.ts +4 -0
  42. package/dist/ui/JimboLayout.d.ts +26 -0
  43. package/dist/ui/JimboMascot.d.ts +12 -0
  44. package/dist/ui/JimboOrbitalMenu.d.ts +15 -0
  45. package/dist/ui/JimboPanel.d.ts +10 -3
  46. package/dist/ui/JimboSectionHeader.d.ts +8 -0
  47. package/dist/ui/JimboSeedCopyChip.d.ts +16 -0
  48. package/dist/ui/JimboSpacer.d.ts +7 -0
  49. package/dist/ui/JimboSpinner.d.ts +19 -0
  50. package/dist/ui/JimboStatusPill.d.ts +8 -0
  51. package/dist/ui/JimboSwipeDeck.d.ts +17 -0
  52. package/dist/ui/JimboTextInput.d.ts +5 -3
  53. package/dist/ui/JimboWordmark.d.ts +7 -0
  54. package/dist/ui/jimbo.css +1 -1
  55. package/dist/ui/jimboFlankNav.d.ts +17 -0
  56. package/dist/ui/jimboTabs.d.ts +5 -0
  57. package/dist/ui/tokens.d.ts +20 -9
  58. package/dist/ui.d.ts +19 -0
  59. package/dist/ui.js +28 -7
  60. package/package.json +18 -11
  61. package/dist/.gitkeep +0 -0
  62. package/dist/chunks/JimboBackground-CB7u0r54.js +0 -214
  63. package/dist/chunks/JimboBackground-CB7u0r54.js.map +0 -1
  64. /package/dist/{json-render/components → ui}/jammySeedMascotImage.d.ts +0 -0
@@ -2,8 +2,9 @@ import { FC } from 'react';
2
2
  /**
3
3
  * Domain components — SearchStats, ErrorBanner, LoadingPulse, SeedCard, etc.
4
4
  *
5
- * These are Balatro-specific UI components used by the json-render system.
6
- * All use CSS tokens and the layout primitives above.
5
+ * Balatro-specific json-render nodes, composed from Jimbo primitives.
6
+ * Interactive controls are the real Jimbo button primitives; status, error,
7
+ * and layout chrome come from src/ui/ so there is one grammar, not two.
7
8
  */
8
9
  export interface SearchStatsProps {
9
10
  status: "idle" | "running" | "completed" | "error";
@@ -1,10 +1,5 @@
1
1
  import { default as React } from 'react';
2
- /**
3
- * Layout primitives — Panel, Stack, Grid, Text, Spacer, Divider, Badge.
4
- *
5
- * All use CSS custom properties from jimbo-tokens.css.
6
- * No external classes. No BEM. Just inline styles + tokens.
7
- */
2
+ import { JimboBadgeTone } from '../../ui/JimboBadge.js';
8
3
  export interface PanelProps {
9
4
  title?: string;
10
5
  subtitle?: string;
@@ -48,4 +43,5 @@ export interface BadgeProps {
48
43
  tone?: BadgeTone;
49
44
  className?: string;
50
45
  }
46
+ export declare function badgeToneToJimbo(tone: BadgeTone): JimboBadgeTone;
51
47
  export declare const Badge: React.FC<BadgeProps>;
@@ -1,22 +1,23 @@
1
1
  import { FC } from 'react';
2
+ import { JimboMascotProps } from '../../ui/JimboMascot.js';
3
+ import { JimboOrbitalMenuProps } from '../../ui/JimboOrbitalMenu.js';
2
4
  import { BadgeTone } from './layout.js';
5
+ /**
6
+ * json-render mascot nodes — thin adapters over the JimboMascot /
7
+ * JimboOrbitalMenu primitives in src/ui/. The adapter exists so json-render
8
+ * schemas can keep using the badge-tone vocabulary ("gold" included) while
9
+ * the primitive speaks real Jimbo tones.
10
+ */
3
11
  export interface JammyOrbitalMenuItem {
4
12
  label: string;
5
13
  action: string;
6
14
  tone?: BadgeTone;
7
15
  }
8
- export interface JammyOrbitalMenuProps {
16
+ export interface JammyOrbitalMenuProps extends Omit<JimboOrbitalMenuProps, "items"> {
9
17
  items: JammyOrbitalMenuItem[];
10
- onAction?: (action: string) => void;
11
- radius?: number;
12
- className?: string;
13
18
  }
14
19
  export declare const JammyOrbitalMenu: FC<JammyOrbitalMenuProps>;
15
- export interface JammyMascotProps {
16
- mood?: "idle" | "happy" | "surprised";
17
- size?: number;
20
+ export interface JammyMascotProps extends Omit<JimboMascotProps, "menuItems"> {
18
21
  menuItems?: JammyOrbitalMenuItem[];
19
- onMenuAction?: (action: string) => void;
20
- className?: string;
21
22
  }
22
23
  export declare const JammyMascot: FC<JammyMascotProps>;
@@ -2,8 +2,9 @@ import { FC } from 'react';
2
2
  /**
3
3
  * Reference Components — Encyclopedia UI for Balatro entities.
4
4
  *
5
- * All components query the knowledge base and render rich info cards.
6
- * Zero external dependencies. Pure React + CSS tokens.
5
+ * Composed from Jimbo primitives: JimboRow (between / wrap) for header and
6
+ * pill rows, JimboInnerPanel for the code snippet, Panel/Stack/Text/Badge/
7
+ * Divider from the layout adapters.
7
8
  */
8
9
  export interface JokerCardProps {
9
10
  name: string;
@@ -0,0 +1,13 @@
1
+ import { CompletionContext, CompletionResult } from '@codemirror/autocomplete';
2
+ /**
3
+ * CodeMirror completion source backed by jaml-lang's context-aware completions.
4
+ * Tap into `joker: ` and you get the joker list; type `Blue` and it narrows to
5
+ * Blueprint. Keys insert `label: `, values insert the bare value.
6
+ */
7
+ export declare function jamlCompletionSource(context: CompletionContext): CompletionResult | null;
8
+ /**
9
+ * CodeMirror lint source backed by jaml-lang diagnostics (YAML syntax + Zod
10
+ * structural validation). The Motely WASM engine stays the final authority;
11
+ * this is the fast structural gate.
12
+ */
13
+ export declare const jamlLinter: import('@codemirror/state').Extension;
@@ -0,0 +1,7 @@
1
+ /** Read top-level `seeds:` entries from a JAML document. */
2
+ export declare function parseJamlSeeds(jaml: string): string[];
3
+ /**
4
+ * Write seeds into JAML the same way Motely CLI `--save-seeds` does:
5
+ * replace the top-level `seeds:` block (or append one if missing).
6
+ */
7
+ export declare function mergeSeedsIntoJaml(jaml: string, seeds: string[], max?: number): string;
@@ -0,0 +1,4 @@
1
+ import { MotelyJamlyzer } from 'motely-wasm';
2
+ type JamlConfig = Parameters<typeof MotelyJamlyzer.analyzeSeeds>[0];
3
+ export declare const fromJaml: (content: string) => JamlConfig;
4
+ export {};
@@ -0,0 +1 @@
1
+ export declare function ensureMotelyReady(): Promise<void>;