jaml-ui 0.24.20 → 0.25.2
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/README.md +0 -13
- package/assets/WeeJokerExampleDAilyGame.png +0 -0
- package/assets/balatro-stake-chips.png +0 -0
- package/dist/assets.d.ts +1 -2
- package/dist/chunks/Layer-BBPJFHfs.js +17 -0
- package/dist/chunks/Layer-BBPJFHfs.js.map +1 -0
- package/dist/chunks/assets-RWUiFSTc.js +37 -0
- package/dist/chunks/assets-RWUiFSTc.js.map +1 -0
- package/dist/chunks/motelyItemDecoder-CueyZ0XD.js +6039 -0
- package/dist/chunks/motelyItemDecoder-CueyZ0XD.js.map +1 -0
- package/dist/chunks/spriteMapper-CFjN0_TV.js +2415 -0
- package/dist/chunks/spriteMapper-CFjN0_TV.js.map +1 -0
- package/dist/chunks/tokens-B65Fzble.js +57 -0
- package/dist/chunks/tokens-B65Fzble.js.map +1 -0
- package/dist/chunks/ui-5cBy3zAm.js +1387 -0
- package/dist/chunks/ui-5cBy3zAm.js.map +1 -0
- package/dist/components/AnalyzerExplorer.d.ts +1 -1
- package/dist/components/CardFan.d.ts +1 -1
- package/dist/components/CardList.d.ts +1 -1
- package/dist/components/DeckSprite.d.ts +1 -1
- package/dist/components/JamlAestheticSelector.d.ts +1 -1
- package/dist/components/JamlAnalyzerFullscreen.d.ts +5 -5
- package/dist/components/JamlCurator.d.ts +1 -6
- package/dist/components/JamlIde.d.ts +5 -5
- package/dist/components/JamlSeedInput.d.ts +1 -1
- package/dist/components/JamlSpeedometer.d.ts +1 -1
- package/dist/components/MotelyVersionBadge.d.ts +1 -1
- package/dist/components/Standardcard.d.ts +1 -1
- package/dist/components/jamlMap/CategoryPicker.d.ts +3 -3
- package/dist/components/jamlMap/JamlMapEditor.d.ts +1 -1
- package/dist/components/jamlMap/JokerPicker.d.ts +1 -1
- package/dist/components/jamlMap/MysterySlot.d.ts +2 -2
- package/dist/components/jamlMap/index.d.ts +4 -4
- package/dist/core.d.ts +5 -5
- package/dist/core.js +27 -5
- package/dist/core.js.map +1 -0
- package/dist/decode/motelyItemDecoder.d.ts +0 -10
- package/dist/decode/motelySprite.d.ts +1 -1
- package/dist/fonts/m6x11plus.otf +0 -0
- package/dist/hooks/analyzerStreamRegistry.d.ts +2 -2
- package/dist/hooks/useAnalyzer.d.ts +3 -3
- package/dist/hooks/useSearch.d.ts +2 -2
- package/dist/index.d.ts +29 -31
- package/dist/index.js +16721 -34
- package/dist/index.js.map +1 -0
- package/dist/lib/const.d.ts +2 -2
- package/dist/lib/hooks/useDragScroll.d.ts +1 -1
- package/dist/lib/hooks/useJamlFilter.d.ts +2 -2
- package/dist/lib/hooks/useSeedAnalyzer.d.ts +2 -2
- package/dist/lib/utils.d.ts +1 -1
- package/dist/motely.d.ts +4 -3
- package/dist/motely.js +65 -3
- package/dist/motely.js.map +1 -0
- package/dist/motelyBoot.d.ts +2 -0
- package/dist/motelyDisplay.d.ts +0 -2
- package/dist/r3f/Card3D.d.ts +2 -2
- package/dist/r3f/JimboBillboard.d.ts +1 -1
- package/dist/r3f.js +235 -3
- package/dist/r3f.js.map +1 -0
- package/dist/render/CanvasRenderer.d.ts +1 -1
- package/dist/sprites/spriteData.d.ts +1 -6
- package/dist/sprites/spriteMapper.d.ts +1 -1
- package/dist/ui/JimboBadge.d.ts +1 -1
- package/dist/ui/JimboFloating.d.ts +1 -1
- package/dist/ui/JimboIconButton.d.ts +1 -1
- package/dist/ui/JimboSelect.d.ts +1 -1
- package/dist/ui/footer.d.ts +2 -3
- package/dist/ui/hooks.d.ts +1 -1
- package/dist/ui/ide/DeckSprite.d.ts +1 -1
- package/dist/ui/jimbo.css +2 -1856
- package/dist/ui/jimboApp.d.ts +1 -1
- package/dist/ui/jimboFilterBar.d.ts +1 -1
- package/dist/ui/jimboFlankNav.d.ts +1 -1
- package/dist/ui/jimboInfoCard.d.ts +1 -1
- package/dist/ui/jimboInset.d.ts +1 -1
- package/dist/ui/jimboStatGrid.d.ts +1 -1
- package/dist/ui/jimboText.d.ts +1 -1
- package/dist/ui/jimboTooltip.d.ts +2 -2
- package/dist/ui/mascot/SeedMascot.d.ts +2 -2
- package/dist/ui/panel.d.ts +1 -1
- package/dist/ui/radial/RadialBadge.d.ts +1 -2
- package/dist/ui/radial/RadialButton.d.ts +1 -2
- package/dist/ui/radial/RadialMenu.d.ts +2 -2
- package/dist/ui/radial/RadialPill.d.ts +1 -2
- package/dist/ui/radial/index.d.ts +16 -16
- package/dist/ui/radial/radialMenuStore.d.ts +1 -1
- package/dist/ui/showcase.d.ts +1 -1
- package/dist/ui/sprites.d.ts +2 -2
- package/dist/ui.d.ts +0 -1
- package/dist/ui.js +3 -36
- package/dist/utils/gameCardUtils.d.ts +1 -1
- package/dist/utils/jamlVisualFilter.d.ts +1 -7
- package/package.json +13 -25
- package/dist/assets.js +0 -48
- package/dist/components/AnalyzerExplorer.js +0 -391
- package/dist/components/CardFan.js +0 -80
- package/dist/components/CardList.js +0 -5
- package/dist/components/DeckSprite.js +0 -75
- package/dist/components/GameCard.js +0 -355
- package/dist/components/JamlAestheticSelector.js +0 -22
- package/dist/components/JamlAnalyzerFullscreen.js +0 -263
- package/dist/components/JamlCodeEditor.js +0 -137
- package/dist/components/JamlCurator.js +0 -64
- package/dist/components/JamlCurator.stories.d.ts +0 -6
- package/dist/components/JamlCurator.stories.js +0 -14
- package/dist/components/JamlIde.js +0 -193
- package/dist/components/JamlIdeToolbar.js +0 -23
- package/dist/components/JamlIdeVisual.js +0 -218
- package/dist/components/JamlMapPreview.js +0 -121
- package/dist/components/JamlSeedInput.js +0 -26
- package/dist/components/JamlSpeedometer.js +0 -70
- package/dist/components/Jimbolate.js +0 -17
- package/dist/components/MotelyVersionBadge.js +0 -19
- package/dist/components/PaginatedFilterBrowser.js +0 -54
- package/dist/components/RunConfigModal.js +0 -59
- package/dist/components/Standardcard.js +0 -80
- package/dist/components/jamlMap/CategoryPicker.js +0 -135
- package/dist/components/jamlMap/JamlMapEditor.js +0 -304
- package/dist/components/jamlMap/JamlMapEditor.stories.d.ts +0 -7
- package/dist/components/jamlMap/JamlMapEditor.stories.js +0 -26
- package/dist/components/jamlMap/JamlMapEditorDemo.d.ts +0 -8
- package/dist/components/jamlMap/JamlMapEditorDemo.js +0 -323
- package/dist/components/jamlMap/JokerPicker.js +0 -113
- package/dist/components/jamlMap/MysterySlot.js +0 -128
- package/dist/components/jamlMap/MysterySlot.stories.d.ts +0 -7
- package/dist/components/jamlMap/MysterySlot.stories.js +0 -31
- package/dist/components/jamlMap/index.js +0 -4
- package/dist/decode/motelyItemDecoder.js +0 -164
- package/dist/decode/motelySprite.js +0 -84
- package/dist/hooks/analyzerStreamRegistry.js +0 -96
- package/dist/hooks/searchWorker.d.ts +0 -1
- package/dist/hooks/searchWorker.js +0 -119
- package/dist/hooks/searchWorkerCode.d.ts +0 -1
- package/dist/hooks/searchWorkerCode.js +0 -85
- package/dist/hooks/useAnalyzer.js +0 -91
- package/dist/hooks/useIntersectionObserver.js +0 -52
- package/dist/hooks/useSearch.js +0 -161
- package/dist/hooks/useShopStream.js +0 -85
- package/dist/lib/SpriteMapper.js +0 -48
- package/dist/lib/cardParser.js +0 -67
- package/dist/lib/classes/BuyMetaData.js +0 -1
- package/dist/lib/config.js +0 -15
- package/dist/lib/const.js +0 -521
- package/dist/lib/data/constants.js +0 -14
- package/dist/lib/hooks/useDragScroll.js +0 -48
- package/dist/lib/hooks/useJamlFilter.js +0 -219
- package/dist/lib/hooks/useSeedAnalyzer.js +0 -50
- package/dist/lib/jaml/jamlCompletion.js +0 -13
- package/dist/lib/jaml/jamlData.js +0 -6
- package/dist/lib/jaml/jamlObjectives.js +0 -97
- package/dist/lib/jaml/jamlParser.js +0 -47
- package/dist/lib/jaml/jamlPresets.js +0 -61
- package/dist/lib/jaml/jamlSchema.js +0 -91
- package/dist/lib/parseDailyRitual.js +0 -70
- package/dist/lib/tts/getRevealPos.js +0 -16
- package/dist/lib/tts/splitTtsDisplay.js +0 -35
- package/dist/lib/types.js +0 -1
- package/dist/lib/utils.js +0 -5
- package/dist/motelyDisplay.js +0 -59
- package/dist/r3f/Card3D.js +0 -72
- package/dist/r3f/JimboBillboard.js +0 -32
- package/dist/r3f/JimboText3D.js +0 -8
- package/dist/render/CanvasRenderer.js +0 -11
- package/dist/render/Layer.js +0 -18
- package/dist/sprites/spriteData.js +0 -100
- package/dist/sprites/spriteMapper.js +0 -75
- package/dist/stories/Button.d.ts +0 -15
- package/dist/stories/Button.js +0 -7
- package/dist/stories/Button.stories.d.ts +0 -24
- package/dist/stories/Button.stories.js +0 -50
- package/dist/stories/Header.d.ts +0 -12
- package/dist/stories/Header.js +0 -4
- package/dist/stories/Header.stories.d.ts +0 -18
- package/dist/stories/Header.stories.js +0 -26
- package/dist/stories/Page.d.ts +0 -3
- package/dist/stories/Page.js +0 -8
- package/dist/stories/Page.stories.d.ts +0 -12
- package/dist/stories/Page.stories.js +0 -24
- package/dist/ui/Jimbo.stories.d.ts +0 -7
- package/dist/ui/Jimbo.stories.js +0 -28
- package/dist/ui/JimboBadge.js +0 -8
- package/dist/ui/JimboFloating.js +0 -17
- package/dist/ui/JimboIconButton.js +0 -28
- package/dist/ui/JimboInputModal.js +0 -66
- package/dist/ui/JimboSelect.js +0 -43
- package/dist/ui/JimboToggleList.js +0 -5
- package/dist/ui/PanelSplitter.js +0 -78
- package/dist/ui/codeBlock.js +0 -14
- package/dist/ui/footer.js +0 -20
- package/dist/ui/hooks.js +0 -634
- package/dist/ui/ide/AgnosticSeedCard.d.ts +0 -19
- package/dist/ui/ide/AgnosticSeedCard.js +0 -48
- package/dist/ui/ide/DeckSprite.js +0 -2
- package/dist/ui/ide/JamlBuilder.d.ts +0 -1
- package/dist/ui/ide/JamlBuilder.js +0 -112
- package/dist/ui/ide/JamlEditor.js +0 -486
- package/dist/ui/ide/JamlEditorMonaco.d.ts +0 -8
- package/dist/ui/ide/JamlEditorMonaco.js +0 -78
- package/dist/ui/ide/WasmStatus.d.ts +0 -1
- package/dist/ui/ide/WasmStatus.js +0 -42
- package/dist/ui/jimboApp.js +0 -15
- package/dist/ui/jimboBackground.js +0 -27
- package/dist/ui/jimboCopyRow.js +0 -18
- package/dist/ui/jimboFilterBar.js +0 -16
- package/dist/ui/jimboFlankNav.js +0 -18
- package/dist/ui/jimboInfoCard.js +0 -26
- package/dist/ui/jimboInset.js +0 -9
- package/dist/ui/jimboSectionHeader.js +0 -9
- package/dist/ui/jimboStatGrid.js +0 -9
- package/dist/ui/jimboTabs.js +0 -22
- package/dist/ui/jimboText.js +0 -33
- package/dist/ui/jimboTooltip.js +0 -39
- package/dist/ui/jimboWordmark.js +0 -9
- package/dist/ui/mascot/JammySpeechBox.js +0 -30
- package/dist/ui/mascot/SeedMascot.js +0 -17
- package/dist/ui/mascot/index.js +0 -3
- package/dist/ui/mascot/menuConfig.js +0 -12
- package/dist/ui/panel.js +0 -24
- package/dist/ui/radial/RadialBadge.js +0 -43
- package/dist/ui/radial/RadialBreadcrumb.js +0 -18
- package/dist/ui/radial/RadialButton.js +0 -102
- package/dist/ui/radial/RadialMenu.js +0 -168
- package/dist/ui/radial/RadialPill.js +0 -15
- package/dist/ui/radial/index.js +0 -18
- package/dist/ui/radial/radialMenuStore.js +0 -122
- package/dist/ui/radial/radialMenuViewport.js +0 -59
- package/dist/ui/radial/useRadialMenu.js +0 -107
- package/dist/ui/showcase.js +0 -20
- package/dist/ui/sprites.js +0 -77
- package/dist/ui/tokens.js +0 -64
- package/dist/utils/gameCardUtils.js +0 -15
- package/dist/utils/jamlMapPreview.js +0 -106
- package/dist/utils/jamlVisualFilter.js +0 -210
package/dist/ui/jimboApp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
export interface JimboAppProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
/** Unlock width/height for MCP inline or desktop use. Default: false (320×568 locked). */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
export type JimboInfoCardTone = 'red' | 'blue' | 'green' | 'gold' | 'orange' | 'purple';
|
|
3
3
|
export interface JimboInfoCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
tone?: JimboInfoCardTone;
|
package/dist/ui/jimboInset.d.ts
CHANGED
package/dist/ui/jimboText.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
export type JimboTextTone = 'default' | 'mult' | 'chips' | 'gold' | 'green' | 'red' | 'blue' | 'orange' | 'purple' | 'grey' | 'white';
|
|
3
3
|
export type JimboTextSize = 'micro' | 'label' | 'xs' | 'body' | 'sm' | 'md' | 'heading' | 'lg' | 'xl' | 'display';
|
|
4
4
|
export interface JimboTextProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { JimboTooltipMode, JimboTooltipPlacement } from './hooks.js';
|
|
3
3
|
export interface JimboTooltipProps {
|
|
4
4
|
/** Content rendered inside the tooltip panel. Typically a card's ability text, joker description, etc. */
|
|
5
5
|
content: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MenuItem } from './menuConfig';
|
|
3
3
|
export interface SeedMascotProps {
|
|
4
4
|
/** Hit target size for the mascot image (px). Default 160. */
|
|
5
5
|
size?: number;
|
package/dist/ui/panel.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { RadialButtonColor } from "./RadialButton";
|
|
1
|
+
import { RadialButtonColor } from './RadialButton';
|
|
3
2
|
export type RadialBadgeState = "loading" | "success" | "error" | "info" | "warning";
|
|
4
3
|
export interface RadialBadgeProps {
|
|
5
4
|
label: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MenuItem } from '../mascot/menuConfig';
|
|
3
3
|
export interface RadialMenuProps {
|
|
4
4
|
/** Menu items to display. The item flagged _south is always pinned at the bottom. */
|
|
5
5
|
items: MenuItem[];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { RadialMenu } from
|
|
2
|
-
export type { RadialMenuProps } from
|
|
3
|
-
export { RadialPill } from
|
|
4
|
-
export type { RadialPillProps } from
|
|
5
|
-
export { RadialButton } from
|
|
6
|
-
export type { RadialButtonProps, RadialButtonColor, RadialButtonActionProps, RadialButtonToggleProps, RadialButtonCountProps, RadialButtonBackProps, } from
|
|
7
|
-
export { RadialBadge } from
|
|
8
|
-
export type { RadialBadgeProps, RadialBadgeState } from
|
|
9
|
-
export { RadialBreadcrumb } from
|
|
10
|
-
export type { RadialBreadcrumbProps } from
|
|
11
|
-
export { useRadialMenu } from
|
|
12
|
-
export type { UseRadialMenuProps, RadialMenuState } from
|
|
13
|
-
export { RadialButton as JimboRadialNavigationButton } from
|
|
14
|
-
export { RadialBadge as JimboRadialNavigationBadge } from
|
|
15
|
-
export { RadialBreadcrumb as BreadcrumNavPill } from
|
|
16
|
-
export { RadialPill as JimboOrbitalPill } from
|
|
1
|
+
export { RadialMenu } from './RadialMenu';
|
|
2
|
+
export type { RadialMenuProps } from './RadialMenu';
|
|
3
|
+
export { RadialPill } from './RadialPill';
|
|
4
|
+
export type { RadialPillProps } from './RadialPill';
|
|
5
|
+
export { RadialButton } from './RadialButton';
|
|
6
|
+
export type { RadialButtonProps, RadialButtonColor, RadialButtonActionProps, RadialButtonToggleProps, RadialButtonCountProps, RadialButtonBackProps, } from './RadialButton';
|
|
7
|
+
export { RadialBadge } from './RadialBadge';
|
|
8
|
+
export type { RadialBadgeProps, RadialBadgeState } from './RadialBadge';
|
|
9
|
+
export { RadialBreadcrumb } from './RadialBreadcrumb';
|
|
10
|
+
export type { RadialBreadcrumbProps } from './RadialBreadcrumb';
|
|
11
|
+
export { useRadialMenu } from './useRadialMenu';
|
|
12
|
+
export type { UseRadialMenuProps, RadialMenuState } from './useRadialMenu';
|
|
13
|
+
export { RadialButton as JimboRadialNavigationButton } from './RadialButton';
|
|
14
|
+
export { RadialBadge as JimboRadialNavigationBadge } from './RadialBadge';
|
|
15
|
+
export { RadialBreadcrumb as BreadcrumNavPill } from './RadialBreadcrumb';
|
|
16
|
+
export { RadialPill as JimboOrbitalPill } from './RadialPill';
|
|
@@ -27,5 +27,5 @@ export interface RadialMenuStore extends RadialMenuSlice {
|
|
|
27
27
|
score: number;
|
|
28
28
|
}>) => void;
|
|
29
29
|
}
|
|
30
|
-
export declare const useRadialMenuStore: import(
|
|
30
|
+
export declare const useRadialMenuStore: import('zustand').UseBoundStore<import('zustand').StoreApi<RadialMenuStore>>;
|
|
31
31
|
export {};
|
package/dist/ui/showcase.d.ts
CHANGED
package/dist/ui/sprites.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SpriteSheetType } from '../sprites/spriteMapper.js';
|
|
3
3
|
export interface JimboSpriteProps {
|
|
4
4
|
name: string;
|
|
5
5
|
sheet?: SpriteSheetType;
|
package/dist/ui.d.ts
CHANGED
package/dist/ui.js
CHANGED
|
@@ -1,36 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export * from './ui/jimboText.js';
|
|
5
|
-
export * from './ui/panel.js';
|
|
6
|
-
export * from './ui/jimboTabs.js';
|
|
7
|
-
export * from './ui/JimboFloating.js';
|
|
8
|
-
export * from './ui/JimboToggleList.js';
|
|
9
|
-
export * from './ui/JimboBadge.js';
|
|
10
|
-
export * from './ui/jimboFlankNav.js';
|
|
11
|
-
export * from './ui/jimboFilterBar.js';
|
|
12
|
-
export * from './ui/jimboBackground.js';
|
|
13
|
-
export * from './ui/jimboTooltip.js';
|
|
14
|
-
export * from './ui/codeBlock.js';
|
|
15
|
-
export * from './ui/footer.js';
|
|
16
|
-
export * from './ui/sprites.js';
|
|
17
|
-
export * from './ui/showcase.js';
|
|
18
|
-
export * from './ui/jimboCopyRow.js';
|
|
19
|
-
// Primitives
|
|
20
|
-
export * from './ui/jimboApp.js';
|
|
21
|
-
export * from './ui/jimboWordmark.js';
|
|
22
|
-
export * from './ui/jimboStatGrid.js';
|
|
23
|
-
export * from './ui/jimboSectionHeader.js';
|
|
24
|
-
export * from './ui/jimboInfoCard.js';
|
|
25
|
-
export * from './ui/jimboInset.js';
|
|
26
|
-
// Old IDE prototypes — orphaned, statically import motely-wasm + use Vite-only
|
|
27
|
-
// `?worker` syntax. Removed from the public surface so webpack consumers don't
|
|
28
|
-
// transitively bundle motely-wasm. Files left on disk for triage.
|
|
29
|
-
// export * from './ui/ide/JamlBuilder.js'
|
|
30
|
-
export * from './ui/ide/JamlEditor.js';
|
|
31
|
-
// export * from './ui/ide/WasmStatus.js'
|
|
32
|
-
// export * from './ui/ide/AgnosticSeedCard.js'
|
|
33
|
-
export * from './ui/JimboIconButton.js';
|
|
34
|
-
export * from './ui/JimboInputModal.js';
|
|
35
|
-
export * from './ui/JimboSelect.js';
|
|
36
|
-
export * from './ui/PanelSplitter.js';
|
|
1
|
+
import { A as e, C as t, D as n, E as r, F as i, I as a, L as o, M as s, N as c, O as l, P as u, R as d, S as f, T as p, _ as m, a as h, b as g, c as _, d as v, f as y, g as b, h as x, i as S, j as C, k as w, l as T, m as E, n as D, o as O, p as k, r as A, s as j, t as M, u as N, v as P, w as F, x as I, y as L } from "./chunks/ui-5cBy3zAm.js";
|
|
2
|
+
import { n as R, r as z, t as B } from "./chunks/tokens-B65Fzble.js";
|
|
3
|
+
export { a as DeckSprite, B as JIMBO_ANIMATIONS, b as JimboApp, m as JimboAppFooter, P as JimboAppScroll, e as JimboBackButton, I as JimboBackground, p as JimboBadge, f as JimboBalatroFooter, C as JimboButton, L as JimboCodeBlock, R as JimboColorOption, _ as JimboCopyRow, t as JimboFilterBar, F as JimboFlankNav, n as JimboFloating, S as JimboIconButton, N as JimboInfoCard, v as JimboInfoCardAside, y as JimboInfoCardBody, k as JimboInfoCardSub, E as JimboInfoCardTitle, s as JimboInnerPanel, A as JimboInputModal, h as JimboInset, c as JimboModal, u as JimboPanel, x as JimboSectionHeader, D as JimboSelect, o as JimboSprite, O as JimboStatGrid, l as JimboTabs, i as JimboText, r as JimboToggleList, g as JimboTooltip, w as JimboVerticalTabs, j as JimboWordmark, M as PanelSplitter, T as Showcase, d as StakeSprite, z as withAlpha };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SpritePos } from '../sprites/spriteData.js';
|
|
2
2
|
export declare function getStandardCardPosition(rank: string, suit: string): SpritePos;
|
|
3
3
|
export declare function getSealPosition(seal: string): SpritePos | undefined;
|
|
4
4
|
export declare function getEnhancerPosition(modifiers: string[]): SpritePos;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
* Utilities for converting between JAML text and JamlVisualFilter.
|
|
3
|
-
*
|
|
4
|
-
* Intentionally does NOT depend on a YAML library — uses the same
|
|
5
|
-
* line-by-line approach as jamlMapPreview.ts to stay zero-dep.
|
|
6
|
-
*/
|
|
7
|
-
import type { JamlVisualFilter } from "../components/JamlIdeVisual.js";
|
|
1
|
+
import { JamlVisualFilter } from '../components/JamlIdeVisual.js';
|
|
8
2
|
export declare function jamlTextToVisualFilter(text: string): JamlVisualFilter;
|
|
9
3
|
export declare function visualFilterToJamlText(filter: JamlVisualFilter): string;
|
package/package.json
CHANGED
|
@@ -1,38 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jaml-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.2",
|
|
4
4
|
"description": "Balatro rendering components, sprite metadata, and optional Motely helpers for React apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"import": "./dist/index.js",
|
|
11
|
-
"require": "./dist/index.js",
|
|
12
10
|
"types": "./dist/index.d.ts",
|
|
13
11
|
"default": "./dist/index.js"
|
|
14
12
|
},
|
|
15
13
|
"./ui": {
|
|
16
|
-
"import": "./dist/ui.js",
|
|
17
|
-
"require": "./dist/ui.js",
|
|
18
14
|
"types": "./dist/ui.d.ts",
|
|
19
15
|
"default": "./dist/ui.js"
|
|
20
16
|
},
|
|
21
17
|
"./core": {
|
|
22
|
-
"import": "./dist/core.js",
|
|
23
|
-
"require": "./dist/core.js",
|
|
24
18
|
"types": "./dist/core.d.ts",
|
|
25
19
|
"default": "./dist/core.js"
|
|
26
20
|
},
|
|
27
21
|
"./motely": {
|
|
28
|
-
"import": "./dist/motely.js",
|
|
29
|
-
"require": "./dist/motely.js",
|
|
30
22
|
"types": "./dist/motely.d.ts",
|
|
31
23
|
"default": "./dist/motely.js"
|
|
32
24
|
},
|
|
33
25
|
"./r3f": {
|
|
34
|
-
"import": "./dist/r3f.js",
|
|
35
|
-
"require": "./dist/r3f.js",
|
|
36
26
|
"types": "./dist/r3f.d.ts",
|
|
37
27
|
"default": "./dist/r3f.js"
|
|
38
28
|
},
|
|
@@ -57,8 +47,7 @@
|
|
|
57
47
|
"LICENSE"
|
|
58
48
|
],
|
|
59
49
|
"engines": {
|
|
60
|
-
"node": ">=18"
|
|
61
|
-
"pnpm": ">=10"
|
|
50
|
+
"node": ">=18"
|
|
62
51
|
},
|
|
63
52
|
"publishConfig": {
|
|
64
53
|
"access": "public"
|
|
@@ -86,7 +75,6 @@
|
|
|
86
75
|
"@react-spring/three": ">=9.0.0",
|
|
87
76
|
"@react-three/drei": ">=9.0.0",
|
|
88
77
|
"@react-three/fiber": ">=8.0.0",
|
|
89
|
-
"motely-wasm": "^15.1.3",
|
|
90
78
|
"react": "^18.2.0 || ^19.0.0",
|
|
91
79
|
"react-dom": "^18.2.0 || ^19.0.0",
|
|
92
80
|
"react-icons": ">=5.0.0",
|
|
@@ -99,9 +87,6 @@
|
|
|
99
87
|
"@react-three/fiber": {
|
|
100
88
|
"optional": true
|
|
101
89
|
},
|
|
102
|
-
"motely-wasm": {
|
|
103
|
-
"optional": true
|
|
104
|
-
},
|
|
105
90
|
"react-icons": {
|
|
106
91
|
"optional": true
|
|
107
92
|
},
|
|
@@ -115,6 +100,7 @@
|
|
|
115
100
|
"devDependencies": {
|
|
116
101
|
"@chromatic-com/storybook": "^5.1.2",
|
|
117
102
|
"@eslint/js": "^10.0.1",
|
|
103
|
+
"@google/design.md": "^0.1.1",
|
|
118
104
|
"@react-spring/three": "^10.0.3",
|
|
119
105
|
"@react-three/drei": "^10.7.7",
|
|
120
106
|
"@react-three/fiber": "^9.6.1",
|
|
@@ -123,10 +109,10 @@
|
|
|
123
109
|
"@storybook/addon-onboarding": "^10.3.6",
|
|
124
110
|
"@storybook/addon-vitest": "^10.3.6",
|
|
125
111
|
"@storybook/react-vite": "^10.3.6",
|
|
126
|
-
"@types/node": "^25.6.
|
|
112
|
+
"@types/node": "^25.6.1",
|
|
127
113
|
"@types/react": "^19.2.14",
|
|
128
114
|
"@types/react-dom": "^19.2.3",
|
|
129
|
-
"@types/three": "^0.184.
|
|
115
|
+
"@types/three": "^0.184.1",
|
|
130
116
|
"@vitejs/plugin-react": "^5.2.0",
|
|
131
117
|
"@vitest/browser-playwright": "^4.1.5",
|
|
132
118
|
"@vitest/coverage-v8": "^4.1.5",
|
|
@@ -134,7 +120,7 @@
|
|
|
134
120
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
135
121
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
136
122
|
"globals": "^17.6.0",
|
|
137
|
-
"motely-wasm": "^15.
|
|
123
|
+
"motely-wasm": "^15.3.0",
|
|
138
124
|
"playwright": "^1.59.1",
|
|
139
125
|
"react": "^19.2.6",
|
|
140
126
|
"react-dom": "^19.2.6",
|
|
@@ -143,7 +129,8 @@
|
|
|
143
129
|
"three": "^0.184.0",
|
|
144
130
|
"typescript": "^5.9.3",
|
|
145
131
|
"typescript-eslint": "^8.59.2",
|
|
146
|
-
"vite": "^8.0.
|
|
132
|
+
"vite": "^8.0.11",
|
|
133
|
+
"vite-plugin-dts": "^5.0.0",
|
|
147
134
|
"vitest": "^4.1.5"
|
|
148
135
|
},
|
|
149
136
|
"dependencies": {
|
|
@@ -152,22 +139,23 @@
|
|
|
152
139
|
"@codemirror/lang-yaml": "^6.1.3",
|
|
153
140
|
"@codemirror/language": "^6.12.3",
|
|
154
141
|
"@codemirror/state": "^6.6.0",
|
|
155
|
-
"@codemirror/view": "^6.42.
|
|
142
|
+
"@codemirror/view": "^6.42.1",
|
|
156
143
|
"@json-render/core": "^0.18.0",
|
|
157
144
|
"@lezer/highlight": "^1.2.3",
|
|
158
145
|
"@types/js-yaml": "^4.0.9",
|
|
159
146
|
"clsx": "^2.1.1",
|
|
160
147
|
"js-yaml": "^4.1.1",
|
|
161
148
|
"lucide-react": "^1.14.0",
|
|
149
|
+
"motely-wasm": "^15.3.0",
|
|
162
150
|
"tailwind-merge": "^2.6.1",
|
|
163
151
|
"zustand": "^5.0.13"
|
|
164
152
|
},
|
|
165
153
|
"scripts": {
|
|
166
|
-
"build": "
|
|
167
|
-
"dev": "
|
|
154
|
+
"build": "vite build",
|
|
155
|
+
"dev": "vite build --watch",
|
|
168
156
|
"demo": "vite --config demo/vite.config.ts",
|
|
169
157
|
"typecheck": "tsc --noEmit --pretty false",
|
|
170
|
-
"storybook": "storybook dev -p
|
|
158
|
+
"storybook": "storybook dev -p 3141",
|
|
171
159
|
"build-storybook": "storybook build",
|
|
172
160
|
"lint": "eslint ."
|
|
173
161
|
}
|
package/dist/assets.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export const JAML_ASSET_FILES = {
|
|
2
|
-
deck: "8BitDeck.png",
|
|
3
|
-
blinds: "BlindChips.png",
|
|
4
|
-
boosters: "Boosters.png",
|
|
5
|
-
editions: "Editions.png",
|
|
6
|
-
enhancers: "Enhancers.png",
|
|
7
|
-
jokers: "Jokers.png",
|
|
8
|
-
tarots: "Tarots.png",
|
|
9
|
-
vouchers: "Vouchers.png",
|
|
10
|
-
stickers: "stickers.png",
|
|
11
|
-
tags: "tags.png",
|
|
12
|
-
stakes: "balatro-stake-chips.png",
|
|
13
|
-
font: "fonts/m6x11plusplus.otf",
|
|
14
|
-
};
|
|
15
|
-
const assetKeyByFileName = Object.fromEntries(Object.entries(JAML_ASSET_FILES).map(([key, fileName]) => [fileName, key]));
|
|
16
|
-
const defaultAssetUrls = Object.fromEntries(Object.entries(JAML_ASSET_FILES).map(([key, fileName]) => [key, new URL(`../assets/${fileName}`, import.meta.url).href]));
|
|
17
|
-
let customAssetBaseUrl = null;
|
|
18
|
-
function normalizeBaseUrl(baseUrl) {
|
|
19
|
-
return baseUrl.endsWith("/") ? baseUrl : `${baseUrl}/`;
|
|
20
|
-
}
|
|
21
|
-
// `new URL(file, base)` requires `base` to be absolute. weejoker.app passes
|
|
22
|
-
// "/assets" (relative path), so we fall back to string concatenation for that case.
|
|
23
|
-
function joinAssetUrl(baseUrl, fileName) {
|
|
24
|
-
const normalized = normalizeBaseUrl(baseUrl);
|
|
25
|
-
if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(normalized) || normalized.startsWith("//")) {
|
|
26
|
-
return new URL(fileName, normalized).href;
|
|
27
|
-
}
|
|
28
|
-
return `${normalized}${fileName}`;
|
|
29
|
-
}
|
|
30
|
-
export function setJamlAssetBaseUrl(baseUrl) {
|
|
31
|
-
if (baseUrl == null) {
|
|
32
|
-
customAssetBaseUrl = null;
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
const trimmed = baseUrl.trim();
|
|
36
|
-
customAssetBaseUrl = trimmed.length === 0 ? null : normalizeBaseUrl(trimmed);
|
|
37
|
-
}
|
|
38
|
-
export function resolveJamlAssetUrl(asset) {
|
|
39
|
-
const assetKey = asset in JAML_ASSET_FILES
|
|
40
|
-
? asset
|
|
41
|
-
: assetKeyByFileName[asset];
|
|
42
|
-
if (!assetKey) {
|
|
43
|
-
throw new Error(`Unknown Jaml asset '${asset}'.`);
|
|
44
|
-
}
|
|
45
|
-
return customAssetBaseUrl
|
|
46
|
-
? joinAssetUrl(customAssetBaseUrl, JAML_ASSET_FILES[assetKey])
|
|
47
|
-
: defaultAssetUrls[assetKey];
|
|
48
|
-
}
|