@dxos/plugin-chess 0.9.0 → 0.9.1-staging.ee54ba693a
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/dist/lib/neutral/{ChessArticle-JHI5OXYR.mjs → ChessArticle-MPRT54KQ.mjs} +4 -3
- package/dist/lib/neutral/ChessArticle-MPRT54KQ.mjs.map +7 -0
- package/dist/lib/neutral/{ChessCard-4TUTIFB6.mjs → ChessCard-VJ3I6MIB.mjs} +8 -3
- package/dist/lib/neutral/ChessCard-VJ3I6MIB.mjs.map +7 -0
- package/dist/lib/neutral/ChessPlugin.mjs +1 -1
- package/dist/lib/neutral/ChessPlugin.node.mjs +3 -3
- package/dist/lib/neutral/ChessPlugin.node.mjs.map +3 -3
- package/dist/lib/neutral/capabilities/index.mjs +3 -3
- package/dist/lib/neutral/capabilities/index.mjs.map +3 -3
- package/dist/lib/neutral/{chunk-YB6WZOZI.mjs → chunk-AMXVX7V2.mjs} +2 -2
- package/dist/lib/neutral/{chunk-OYWDKJ5B.mjs → chunk-DXIET5G2.mjs} +12 -12
- package/dist/lib/neutral/chunk-DXIET5G2.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-PJOAFP6S.mjs → chunk-EXZ3XFEG.mjs} +7 -7
- package/dist/lib/neutral/chunk-EXZ3XFEG.mjs.map +7 -0
- package/dist/lib/neutral/chunk-IKWULCKX.mjs +38 -0
- package/dist/lib/neutral/chunk-IKWULCKX.mjs.map +7 -0
- package/dist/lib/neutral/chunk-YZTKZ5F7.mjs +42 -0
- package/dist/lib/neutral/chunk-YZTKZ5F7.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +47 -46
- package/dist/lib/neutral/components/index.mjs.map +3 -3
- package/dist/lib/neutral/containers/index.mjs +2 -2
- package/dist/lib/neutral/index.mjs +5 -5
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/meta.mjs +1 -1
- package/dist/lib/neutral/{move-6NCMKKWD.mjs → move-UMDTQST4.mjs} +2 -2
- package/dist/lib/neutral/operations/index.mjs +1 -1
- package/dist/lib/neutral/{play-F5L5LFLW.mjs → play-7XTJZ4N6.mjs} +2 -2
- package/dist/lib/neutral/plugin.mjs +2 -2
- package/dist/lib/neutral/{print-GMSNKAS2.mjs → print-JR4VB3UX.mjs} +2 -2
- package/dist/lib/neutral/skill-definition-ZGQBUE4R.mjs +15 -0
- package/dist/lib/neutral/skill-definition-ZGQBUE4R.mjs.map +7 -0
- package/dist/lib/neutral/skills/index.mjs +8 -0
- package/dist/lib/neutral/testing.mjs +1 -1
- package/dist/lib/neutral/translations.mjs +1 -1
- package/dist/lib/neutral/translations.mjs.map +3 -3
- package/dist/lib/neutral/types/index.mjs +1 -1
- package/dist/types/dx.config.d.ts +28 -0
- package/dist/types/dx.config.d.ts.map +1 -0
- package/dist/types/src/capabilities/game-variant.d.ts +1 -2
- package/dist/types/src/capabilities/game-variant.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/skill-definition.d.ts +5 -0
- package/dist/types/src/capabilities/skill-definition.d.ts.map +1 -0
- package/dist/types/src/components/Chessboard/Chessboard.d.ts +1 -1
- package/dist/types/src/components/Chessboard/Chessboard.d.ts.map +1 -1
- package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts +2 -2
- package/dist/types/src/components/Chessboard/Chessboard.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ChessArticle/ChessArticle.d.ts.map +1 -1
- package/dist/types/src/containers/ChessArticle/ChessArticle.stories.d.ts +2 -2
- package/dist/types/src/containers/ChessArticle/ChessArticle.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ChessCard/ChessCard.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +32 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/skills/chess-skill.d.ts +4 -0
- package/dist/types/src/skills/chess-skill.d.ts.map +1 -0
- package/dist/types/src/skills/index.d.ts +2 -0
- package/dist/types/src/skills/index.d.ts.map +1 -0
- package/dist/types/src/types/Chess.d.ts +8 -7
- package/dist/types/src/types/Chess.d.ts.map +1 -1
- package/dist/types/src/types/ChessOperation.d.ts +2 -8
- package/dist/types/src/types/ChessOperation.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dx.config.ts +24 -0
- package/package.json +39 -38
- package/src/ChessPlugin.node.ts +2 -2
- package/src/ChessPlugin.test.ts +2 -2
- package/src/ChessPlugin.tsx +4 -4
- package/src/capabilities/index.ts +1 -7
- package/src/capabilities/skill-definition.ts +14 -0
- package/src/components/Chessboard/Chessboard.stories.tsx +2 -2
- package/src/components/Chessboard/Chessboard.tsx +47 -45
- package/src/components/Chessboard/Info.tsx +5 -3
- package/src/containers/ChessArticle/ChessArticle.stories.tsx +2 -2
- package/src/containers/ChessArticle/ChessArticle.tsx +5 -4
- package/src/containers/ChessCard/ChessCard.stories.tsx +1 -1
- package/src/containers/ChessCard/ChessCard.tsx +12 -5
- package/src/index.ts +1 -1
- package/src/meta.ts +3 -19
- package/src/{blueprints/chess-blueprint.ts → skills/chess-skill.ts} +11 -7
- package/src/skills/index.ts +5 -0
- package/src/translations.ts +1 -1
- package/src/types/Chess.ts +21 -22
- package/dist/lib/neutral/ChessArticle-JHI5OXYR.mjs.map +0 -7
- package/dist/lib/neutral/ChessCard-4TUTIFB6.mjs.map +0 -7
- package/dist/lib/neutral/blueprint-definition-4MOWVVWD.mjs +0 -15
- package/dist/lib/neutral/blueprint-definition-4MOWVVWD.mjs.map +0 -7
- package/dist/lib/neutral/blueprints/index.mjs +0 -8
- package/dist/lib/neutral/chunk-7XZ4CRDL.mjs +0 -32
- package/dist/lib/neutral/chunk-7XZ4CRDL.mjs.map +0 -7
- package/dist/lib/neutral/chunk-OYWDKJ5B.mjs.map +0 -7
- package/dist/lib/neutral/chunk-PJOAFP6S.mjs.map +0 -7
- package/dist/lib/neutral/chunk-XWKNXG62.mjs +0 -34
- package/dist/lib/neutral/chunk-XWKNXG62.mjs.map +0 -7
- package/dist/types/src/blueprints/chess-blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/chess-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/index.d.ts +0 -2
- package/dist/types/src/blueprints/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +0 -6
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +0 -1
- package/src/blueprints/index.ts +0 -5
- package/src/capabilities/blueprint-definition.ts +0 -19
- /package/dist/lib/neutral/{chunk-YB6WZOZI.mjs.map → chunk-AMXVX7V2.mjs.map} +0 -0
- /package/dist/lib/neutral/{move-6NCMKKWD.mjs.map → move-UMDTQST4.mjs.map} +0 -0
- /package/dist/lib/neutral/{play-F5L5LFLW.mjs.map → play-7XTJZ4N6.mjs.map} +0 -0
- /package/dist/lib/neutral/{print-GMSNKAS2.mjs.map → print-JR4VB3UX.mjs.map} +0 -0
- /package/dist/lib/neutral/{blueprints → skills}/index.mjs.map +0 -0
|
@@ -2,11 +2,10 @@ import "../chunk-J5LGTIGS.mjs";
|
|
|
2
2
|
|
|
3
3
|
// src/components/Chessboard/Chessboard.tsx
|
|
4
4
|
import { RegistryContext } from "@effect-atom/atom-react";
|
|
5
|
-
import React2, { forwardRef, useCallback, useContext, useEffect as useEffect2, useImperativeHandle, useMemo as useMemo2
|
|
6
|
-
import { addEventListener } from "@dxos/async";
|
|
5
|
+
import React2, { forwardRef, useCallback, useContext, useEffect as useEffect2, useImperativeHandle, useMemo as useMemo2 } from "react";
|
|
7
6
|
import { useObject } from "@dxos/echo-react";
|
|
8
7
|
import { useSoundEffect } from "@dxos/react-ui-audio";
|
|
9
|
-
import { Gameboard, Chessboard as NaturalChessboard, getRawPgn
|
|
8
|
+
import { Gameboard, Chessboard as NaturalChessboard, getRawPgn } from "@dxos/react-ui-gameboard";
|
|
10
9
|
|
|
11
10
|
// src/components/Chessboard/Info.tsx
|
|
12
11
|
import { useAtomValue } from "@effect-atom/atom-react";
|
|
@@ -17,7 +16,7 @@ import { mx } from "@dxos/ui-theme";
|
|
|
17
16
|
import { meta } from "#meta";
|
|
18
17
|
var INFO_NAME = "Chessboard.Info";
|
|
19
18
|
var Info = ({ classNames, orientation = "white", onOrientationChange, onClose, ...props }) => {
|
|
20
|
-
const { t } = useTranslation(meta.
|
|
19
|
+
const { t } = useTranslation(meta.profile.key);
|
|
21
20
|
const { model } = useGameboardContext(INFO_NAME);
|
|
22
21
|
return /* @__PURE__ */ React.createElement("div", {
|
|
23
22
|
className: mx("grid grid-rows-[min-content_1fr_min-content] w-full min-w-[18rem] p-2 overflow-hidden bg-group-surface rounded-xs", classNames)
|
|
@@ -50,7 +49,7 @@ var Info = ({ classNames, orientation = "white", onOrientationChange, onClose, .
|
|
|
50
49
|
};
|
|
51
50
|
Info.displayName = INFO_NAME;
|
|
52
51
|
var History = ({ classNames, model, min, max, onSelect }) => {
|
|
53
|
-
const { t } = useTranslation(meta.
|
|
52
|
+
const { t } = useTranslation(meta.profile.key);
|
|
54
53
|
const moveIndex = useAtomValue(model.moveIndex);
|
|
55
54
|
const label = model.game.isGameOver() ? model.game.isCheckmate() ? t("game.checkmate.label") : model.game.isStalemate() ? t("game.stalemate.label") : t("game.draw.label") : model.game.isCheck() ? t("game.check.label") : void 0;
|
|
56
55
|
const history = model.game.history();
|
|
@@ -92,7 +91,9 @@ var History = ({ classNames, model, min, max, onSelect }) => {
|
|
|
92
91
|
]);
|
|
93
92
|
return /* @__PURE__ */ React.createElement("div", {
|
|
94
93
|
ref: scrollerRef,
|
|
95
|
-
|
|
94
|
+
tabIndex: 0,
|
|
95
|
+
"data-chessboard-arrow-navigation": true,
|
|
96
|
+
className: mx("overflow-y-auto outline-hidden focus-visible:ring-2 focus-visible:ring-primary-500", classNames),
|
|
96
97
|
style: {
|
|
97
98
|
minHeight: min === void 0 ? "auto" : `${min * 24}px`,
|
|
98
99
|
maxHeight: max === void 0 ? "auto" : `${max * 24}px`
|
|
@@ -174,10 +175,45 @@ var Root = /* @__PURE__ */ forwardRef(({ state, children }, forwardedRef) => {
|
|
|
174
175
|
}, [
|
|
175
176
|
model
|
|
176
177
|
]);
|
|
178
|
+
const handleKeyDown = useCallback((ev) => {
|
|
179
|
+
const target = ev.target instanceof HTMLElement ? ev.target : void 0;
|
|
180
|
+
if (!target?.closest("[data-chessboard-arrow-navigation]")) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
const moveIndex = registry.get(model.moveIndex);
|
|
184
|
+
switch (ev.key) {
|
|
185
|
+
case "ArrowUp":
|
|
186
|
+
ev.preventDefault();
|
|
187
|
+
model.setMoveIndex(0);
|
|
188
|
+
break;
|
|
189
|
+
case "ArrowDown":
|
|
190
|
+
ev.preventDefault();
|
|
191
|
+
model.setMoveIndex(model.game.history().length);
|
|
192
|
+
break;
|
|
193
|
+
case "ArrowLeft":
|
|
194
|
+
if (moveIndex > 0) {
|
|
195
|
+
ev.preventDefault();
|
|
196
|
+
model.setMoveIndex(moveIndex - 1);
|
|
197
|
+
}
|
|
198
|
+
break;
|
|
199
|
+
case "ArrowRight":
|
|
200
|
+
if (moveIndex < model.game.history().length) {
|
|
201
|
+
ev.preventDefault();
|
|
202
|
+
model.setMoveIndex(moveIndex + 1);
|
|
203
|
+
}
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
}, [
|
|
207
|
+
registry,
|
|
208
|
+
model
|
|
209
|
+
]);
|
|
177
210
|
return /* @__PURE__ */ React2.createElement(Gameboard.Root, {
|
|
178
211
|
model,
|
|
179
212
|
onDrop: handleDrop
|
|
180
|
-
},
|
|
213
|
+
}, /* @__PURE__ */ React2.createElement("div", {
|
|
214
|
+
className: "contents",
|
|
215
|
+
onKeyDown: handleKeyDown
|
|
216
|
+
}, children));
|
|
181
217
|
});
|
|
182
218
|
var Content = ({ classNames, children }) => {
|
|
183
219
|
return /* @__PURE__ */ React2.createElement(Gameboard.Content, {
|
|
@@ -187,45 +223,10 @@ var Content = ({ classNames, children }) => {
|
|
|
187
223
|
}, children);
|
|
188
224
|
};
|
|
189
225
|
var BOARD_NAME = "Chessboard.Board";
|
|
190
|
-
var Board = (props) => {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
useEffect2(() => {
|
|
195
|
-
if (!ref.current) {
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
ref.current.setAttribute("data-arrow-keys", "all");
|
|
199
|
-
return addEventListener(ref.current, "keydown", (ev) => {
|
|
200
|
-
const moveIndex = registry.get(model.moveIndex);
|
|
201
|
-
switch (ev.key) {
|
|
202
|
-
case "ArrowUp":
|
|
203
|
-
model.setMoveIndex(0);
|
|
204
|
-
break;
|
|
205
|
-
case "ArrowDown":
|
|
206
|
-
model.setMoveIndex(model.game.history().length);
|
|
207
|
-
break;
|
|
208
|
-
case "ArrowLeft":
|
|
209
|
-
if (moveIndex > 0) {
|
|
210
|
-
model.setMoveIndex(moveIndex - 1);
|
|
211
|
-
}
|
|
212
|
-
break;
|
|
213
|
-
case "ArrowRight":
|
|
214
|
-
if (moveIndex < model.game.history().length) {
|
|
215
|
-
model.setMoveIndex(moveIndex + 1);
|
|
216
|
-
}
|
|
217
|
-
break;
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
}, [
|
|
221
|
-
registry,
|
|
222
|
-
model
|
|
223
|
-
]);
|
|
224
|
-
return /* @__PURE__ */ React2.createElement(NaturalChessboard, {
|
|
225
|
-
...props,
|
|
226
|
-
ref
|
|
227
|
-
});
|
|
228
|
-
};
|
|
226
|
+
var Board = (props) => /* @__PURE__ */ React2.createElement("div", {
|
|
227
|
+
className: "contents",
|
|
228
|
+
"data-chessboard-arrow-navigation": true
|
|
229
|
+
}, /* @__PURE__ */ React2.createElement(NaturalChessboard, props));
|
|
229
230
|
Board.displayName = BOARD_NAME;
|
|
230
231
|
var Chessboard = {
|
|
231
232
|
Root,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/components/Chessboard/Chessboard.tsx", "../../../../src/components/Chessboard/Info.tsx", "../../../../src/components/Chessboard/types.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { RegistryContext } from '@effect-atom/atom-react';\nimport React, {\n type PropsWithChildren,\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n} from 'react';\n\nimport { addEventListener } from '@dxos/async';\nimport { useObject } from '@dxos/echo-react';\nimport { type ThemedClassName } from '@dxos/react-ui';\nimport { useSoundEffect } from '@dxos/react-ui-audio';\nimport {\n type ChessModel,\n Gameboard,\n type GameboardRootProps,\n Chessboard as NaturalChessboard,\n type ChessboardProps as NaturalChessboardProps,\n getRawPgn,\n useGameboardContext,\n} from '@dxos/react-ui-gameboard';\n\nimport { type Chess } from '#types';\n\nimport { Info, type InfoProps } from './Info';\nimport { ExtendedChessModel } from './types';\n\nexport interface ChessboardController {\n setMoveNumber(index: number): void;\n}\n\n//\n// Root\n//\n\ntype RootProps = PropsWithChildren<{\n state: Chess.State;\n}>;\n\nconst Root = forwardRef<ChessboardController, RootProps>(({ state, children }, forwardedRef) => {\n const registry = useContext(RegistryContext);\n const model = useMemo(() => new ExtendedChessModel(registry, state), [registry]);\n const click = useSoundEffect('Click');\n const [pgn, updatePgn] = useObject(state, 'pgn');\n\n // Controller.\n useImperativeHandle(forwardedRef, () => {\n return {\n setMoveNumber: (index) => model.setMoveIndex(index),\n };\n }, [model]);\n\n // TODO(wittjosiah): Rather than useEffect to sync ECHO object to model, create an alternative model implementation.\n // This model would take the ECHO object and derive game state directly from that.\n // Mutation methods would mutate the ECHO object and other state would be derived from that.\n\n // External change.\n // NOTE: Warning if user has not interacted with the board.\n useEffect(() => {\n if (model.pgn !== getRawPgn(pgn ?? '')) {\n const silent = model.pgn === '*';\n model.update(pgn);\n if (!silent) {\n void click.play();\n }\n }\n }, [pgn]);\n\n // Move.\n const handleDrop = useCallback<NonNullable<GameboardRootProps<ChessModel>['onDrop']>>(\n (move) => {\n if (!model.makeMove(move)) {\n return false;\n }\n\n void click.play();\n updatePgn(() => model.pgn);\n return true;\n },\n [model],\n );\n\n return (\n <Gameboard.Root model={model} onDrop={handleDrop}>\n {children}\n </Gameboard.Root>\n );\n});\n\n//\n// Content\n//\n\ntype Role = 'card--content';\n\ntype ContentProps = ThemedClassName<PropsWithChildren<{ role?: Role }>>;\n\nconst Content = ({ classNames, children }: ContentProps) => {\n return (\n <Gameboard.Content grow contain classNames={classNames}>\n {children}\n </Gameboard.Content>\n );\n};\n\n//\n// Board\n//\n\nconst BOARD_NAME = 'Chessboard.Board';\n\ntype BoardProps = NaturalChessboardProps;\n\nconst Board = (props: BoardProps) => {\n const registry = useContext(RegistryContext);\n const { model } = useGameboardContext<ChessModel>(BOARD_NAME);\n\n // Keyboard navigation.\n const ref = useRef<HTMLDivElement>(null);\n useEffect(() => {\n if (!ref.current) {\n return;\n }\n\n // Participate in keyboard navigation (set tabIndex={0})\n ref.current.setAttribute('data-arrow-keys', 'all');\n\n return addEventListener(ref.current, 'keydown', (ev) => {\n const moveIndex = registry.get(model.moveIndex);\n switch (ev.key) {\n case 'ArrowUp':\n model.setMoveIndex(0);\n break;\n case 'ArrowDown':\n model.setMoveIndex(model.game.history().length);\n break;\n case 'ArrowLeft':\n if (moveIndex > 0) {\n model.setMoveIndex(moveIndex - 1);\n }\n break;\n case 'ArrowRight':\n if (moveIndex < model.game.history().length) {\n model.setMoveIndex(moveIndex + 1);\n }\n break;\n }\n });\n }, [registry, model]);\n\n return <NaturalChessboard {...props} ref={ref} />;\n};\n\nBoard.displayName = BOARD_NAME;\n\n//\n// Chessboard\n//\n\nexport const Chessboard = {\n Root: Root,\n Content: Content,\n Board: Board,\n Info: Info,\n};\n\nexport type {\n RootProps as ChessboardRootProps,\n ContentProps as ChessboardContentProps,\n BoardProps as ChessboardBoardProps,\n InfoProps as ChessboardInfoProps,\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { useAtomValue } from '@effect-atom/atom-react';\nimport React, { type JSX, type PropsWithChildren, useEffect, useMemo, useRef } from 'react';\n\nimport { Icon, IconButton, type ThemedClassName, useTranslation } from '@dxos/react-ui';\nimport { type Player, useGameboardContext } from '@dxos/react-ui-gameboard';\nimport { mx } from '@dxos/ui-theme';\n\nimport { meta } from '#meta';\n\nimport { type ExtendedChessModel } from './types';\n\nconst INFO_NAME = 'Chessboard.Info';\n\nexport type InfoProps = ThemedClassName<\n {\n orientation?: Player;\n onOrientationChange?: (orientation: Player) => void;\n onClose?: () => void;\n } & Pick<HistoryProps, 'min' | 'max' | 'onSelect'>\n>;\n\nexport const Info = ({ classNames, orientation = 'white', onOrientationChange, onClose, ...props }: InfoProps) => {\n const { t } = useTranslation(meta.id);\n const { model } = useGameboardContext<ExtendedChessModel>(INFO_NAME);\n\n return (\n <div\n className={mx(\n 'grid grid-rows-[min-content_1fr_min-content] w-full min-w-[18rem] p-2 overflow-hidden bg-group-surface rounded-xs',\n classNames,\n )}\n >\n <PlayerIndicator\n model={model}\n player={orientation === 'white' ? 'black' : 'white'}\n icon={\n onClose && (\n <IconButton\n variant='ghost'\n icon='ph--x--regular'\n iconOnly\n label={t('close-info.button')}\n size={4}\n onClick={onClose}\n />\n )\n }\n />\n\n <History model={model} {...props} />\n\n <PlayerIndicator\n model={model}\n player={orientation}\n icon={\n onOrientationChange && (\n <IconButton\n classNames={mx('transition duration-200 ease-linear', orientation === 'white' && 'rotate-180')}\n icon='ph--arrows-clockwise--regular'\n iconOnly\n label={t('flip-board.button')}\n size={4}\n onClick={() => onOrientationChange(orientation === 'white' ? 'black' : 'white')}\n />\n )\n }\n />\n </div>\n );\n};\n\nInfo.displayName = INFO_NAME;\n\n//\n// History\n//\n\ntype HistoryProps = ThemedClassName<{\n model: ExtendedChessModel;\n min?: number;\n max?: number;\n onSelect?: (index: number) => void;\n}>;\n\nconst History = ({ classNames, model, min, max, onSelect }: HistoryProps) => {\n const { t } = useTranslation(meta.id);\n const moveIndex = useAtomValue(model.moveIndex);\n const label = model.game.isGameOver()\n ? model.game.isCheckmate()\n ? t('game.checkmate.label')\n : model.game.isStalemate()\n ? t('game.stalemate.label')\n : t('game.draw.label')\n : model.game.isCheck()\n ? t('game.check.label')\n : undefined;\n\n const history = model.game.history();\n const moves = useMemo(\n () =>\n history.reduce(\n (acc, move, index) => {\n if (index % 2 === 0) {\n acc.push([{ index, move }]);\n } else {\n acc[acc.length - 1].push({ index, move });\n }\n return acc;\n },\n [] as { index: number; move: string }[][],\n ),\n [history.length],\n );\n\n const scrollerRef = useRef<HTMLDivElement>(null);\n useEffect(() => {\n scrollerRef.current?.scrollTo({ top: scrollerRef.current.scrollHeight });\n }, [history.length]);\n\n useEffect(() => {\n const div = scrollerRef.current?.querySelector(`[data-index=\"${moveIndex - 1}\"]`);\n scrollerRef.current?.classList.add('scrollbar-none');\n div?.scrollIntoView({ behavior: 'smooth' });\n scrollerRef.current?.classList.remove('scrollbar-none');\n }, [moveIndex]);\n\n return (\n <div\n ref={scrollerRef}\n className={mx('overflow-y-auto', classNames)}\n style={{\n minHeight: min === undefined ? 'auto' : `${min * 24}px`,\n maxHeight: max === undefined ? 'auto' : `${max * 24}px`,\n }}\n >\n {moves.map(([a, b], index) => (\n <div key={index} className='grid grid-cols-[3rem_1fr_1fr_1rem] gap-2 ps-4'>\n <div className='content-center text-xs text-subdued'>{index + 1}</div>\n {a && (\n <div\n data-index={a.index}\n className={mx('ps-2 text-sm cursor-pointer', a.index === moveIndex - 1 && 'bg-primary-500')}\n onClick={() => onSelect?.(a.index + 1)}\n >\n {a.move}\n </div>\n )}\n {b && (\n <div\n data-index={b.index}\n className={mx('ps-2 text-sm cursor-pointer', b.index === moveIndex - 1 && 'bg-primary-500')}\n onClick={() => onSelect?.(b.index + 1)}\n >\n {b.move}\n </div>\n )}\n </div>\n ))}\n {label && <div className='text-center'>{label}</div>}\n </div>\n );\n};\n\n//\n// PlayerIndicator\n//\n\ntype PlayerIndicatorProps = PropsWithChildren<{\n model: ExtendedChessModel;\n player: Player;\n icon?: JSX.Element;\n}>;\n\nconst PlayerIndicator = ({ children, model, player, icon }: PlayerIndicatorProps) => {\n const turn = player === (model.game.turn() === 'w' ? 'white' : 'black');\n return (\n <div className='grid grid-cols-[2rem_1fr_2rem] gap-2 h-(--dx-rail-size) px-1 flex items-center overflow-hidden'>\n <div className='place-items-center'>\n <Icon\n icon={turn ? 'ph--circle--fill' : 'ph--circle--thin'}\n size={6}\n classNames={mx(turn && (model.game.isCheckmate() ? 'text-error-500' : 'text-success-text'))}\n />\n </div>\n <div className='truncate overflow-hidden items-center'>{children}</div>\n {icon}\n </div>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { type Registry } from '@effect-atom/atom-react';\n\nimport { ChessModel } from '@dxos/react-ui-gameboard';\n\nimport { type Chess } from '#types';\n\nexport class ExtendedChessModel extends ChessModel {\n constructor(\n registry: Registry.Registry,\n readonly object: Chess.State,\n ) {\n super(registry);\n }\n}\n"],
|
|
5
|
-
"mappings": ";;;AAIA,SAASA,uBAAuB;AAChC,OAAOC,UAELC,YACAC,aACAC,YACAC,aAAAA,YACAC,qBACAC,WAAAA,
|
|
6
|
-
"names": ["RegistryContext", "React", "forwardRef", "useCallback", "useContext", "useEffect", "useImperativeHandle", "useMemo", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { RegistryContext } from '@effect-atom/atom-react';\nimport React, {\n type PropsWithChildren,\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useImperativeHandle,\n useMemo,\n} from 'react';\n\nimport { useObject } from '@dxos/echo-react';\nimport { type ThemedClassName } from '@dxos/react-ui';\nimport { useSoundEffect } from '@dxos/react-ui-audio';\nimport {\n type ChessModel,\n Gameboard,\n type GameboardRootProps,\n Chessboard as NaturalChessboard,\n type ChessboardProps as NaturalChessboardProps,\n getRawPgn,\n} from '@dxos/react-ui-gameboard';\n\nimport { type Chess } from '#types';\n\nimport { Info, type InfoProps } from './Info';\nimport { ExtendedChessModel } from './types';\n\nexport interface ChessboardController {\n setMoveNumber(index: number): void;\n}\n\n//\n// Root\n//\n\ntype RootProps = PropsWithChildren<{\n state: Chess.State;\n}>;\n\nconst Root = forwardRef<ChessboardController, RootProps>(({ state, children }, forwardedRef) => {\n const registry = useContext(RegistryContext);\n const model = useMemo(() => new ExtendedChessModel(registry, state), [registry]);\n const click = useSoundEffect('Click');\n const [pgn, updatePgn] = useObject(state, 'pgn');\n\n // Controller.\n useImperativeHandle(forwardedRef, () => {\n return {\n setMoveNumber: (index) => model.setMoveIndex(index),\n };\n }, [model]);\n\n // TODO(wittjosiah): Rather than useEffect to sync ECHO object to model, create an alternative model implementation.\n // This model would take the ECHO object and derive game state directly from that.\n // Mutation methods would mutate the ECHO object and other state would be derived from that.\n\n // External change.\n // NOTE: Warning if user has not interacted with the board.\n useEffect(() => {\n if (model.pgn !== getRawPgn(pgn ?? '')) {\n const silent = model.pgn === '*';\n model.update(pgn);\n if (!silent) {\n void click.play();\n }\n }\n }, [pgn]);\n\n // Move.\n const handleDrop = useCallback<NonNullable<GameboardRootProps<ChessModel>['onDrop']>>(\n (move) => {\n if (!model.makeMove(move)) {\n return false;\n }\n\n void click.play();\n updatePgn(() => model.pgn);\n return true;\n },\n [model],\n );\n\n // Keyboard navigation — fires regardless of which descendant (Board or Info) has focus.\n // Gated to elements marked data-chessboard-arrow-navigation to avoid intercepting toolbar controls.\n const handleKeyDown = useCallback(\n (ev: React.KeyboardEvent) => {\n const target = ev.target instanceof HTMLElement ? ev.target : undefined;\n if (!target?.closest('[data-chessboard-arrow-navigation]')) {\n return;\n }\n\n const moveIndex = registry.get(model.moveIndex);\n switch (ev.key) {\n case 'ArrowUp':\n ev.preventDefault();\n model.setMoveIndex(0);\n break;\n case 'ArrowDown':\n ev.preventDefault();\n model.setMoveIndex(model.game.history().length);\n break;\n case 'ArrowLeft':\n if (moveIndex > 0) {\n ev.preventDefault();\n model.setMoveIndex(moveIndex - 1);\n }\n break;\n case 'ArrowRight':\n if (moveIndex < model.game.history().length) {\n ev.preventDefault();\n model.setMoveIndex(moveIndex + 1);\n }\n break;\n }\n },\n [registry, model],\n );\n\n return (\n <Gameboard.Root model={model} onDrop={handleDrop}>\n {/* display:contents is layout-transparent; catches keydown bubbled from any focused descendant. */}\n <div className='contents' onKeyDown={handleKeyDown}>\n {children}\n </div>\n </Gameboard.Root>\n );\n});\n\n//\n// Content\n//\n\ntype Role = 'card--content';\n\ntype ContentProps = ThemedClassName<PropsWithChildren<{ role?: Role }>>;\n\nconst Content = ({ classNames, children }: ContentProps) => {\n return (\n <Gameboard.Content grow contain classNames={classNames}>\n {children}\n </Gameboard.Content>\n );\n};\n\n//\n// Board\n//\n\nconst BOARD_NAME = 'Chessboard.Board';\n\ntype BoardProps = NaturalChessboardProps;\n\nconst Board = (props: BoardProps) => (\n <div className='contents' data-chessboard-arrow-navigation>\n <NaturalChessboard {...props} />\n </div>\n);\n\nBoard.displayName = BOARD_NAME;\n\n//\n// Chessboard\n//\n\nexport const Chessboard = {\n Root: Root,\n Content: Content,\n Board: Board,\n Info: Info,\n};\n\nexport type {\n BoardProps as ChessboardBoardProps,\n ContentProps as ChessboardContentProps,\n InfoProps as ChessboardInfoProps,\n RootProps as ChessboardRootProps,\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { useAtomValue } from '@effect-atom/atom-react';\nimport React, { type JSX, type PropsWithChildren, useEffect, useMemo, useRef } from 'react';\n\nimport { Icon, IconButton, type ThemedClassName, useTranslation } from '@dxos/react-ui';\nimport { type Player, useGameboardContext } from '@dxos/react-ui-gameboard';\nimport { mx } from '@dxos/ui-theme';\n\nimport { meta } from '#meta';\n\nimport { type ExtendedChessModel } from './types';\n\nconst INFO_NAME = 'Chessboard.Info';\n\nexport type InfoProps = ThemedClassName<\n {\n orientation?: Player;\n onOrientationChange?: (orientation: Player) => void;\n onClose?: () => void;\n } & Pick<HistoryProps, 'min' | 'max' | 'onSelect'>\n>;\n\nexport const Info = ({ classNames, orientation = 'white', onOrientationChange, onClose, ...props }: InfoProps) => {\n const { t } = useTranslation(meta.profile.key);\n const { model } = useGameboardContext<ExtendedChessModel>(INFO_NAME);\n\n return (\n <div\n className={mx(\n 'grid grid-rows-[min-content_1fr_min-content] w-full min-w-[18rem] p-2 overflow-hidden bg-group-surface rounded-xs',\n classNames,\n )}\n >\n <PlayerIndicator\n model={model}\n player={orientation === 'white' ? 'black' : 'white'}\n icon={\n onClose && (\n <IconButton\n variant='ghost'\n icon='ph--x--regular'\n iconOnly\n label={t('close-info.button')}\n size={4}\n onClick={onClose}\n />\n )\n }\n />\n\n <History model={model} {...props} />\n\n <PlayerIndicator\n model={model}\n player={orientation}\n icon={\n onOrientationChange && (\n <IconButton\n classNames={mx('transition duration-200 ease-linear', orientation === 'white' && 'rotate-180')}\n icon='ph--arrows-clockwise--regular'\n iconOnly\n label={t('flip-board.button')}\n size={4}\n onClick={() => onOrientationChange(orientation === 'white' ? 'black' : 'white')}\n />\n )\n }\n />\n </div>\n );\n};\n\nInfo.displayName = INFO_NAME;\n\n//\n// History\n//\n\ntype HistoryProps = ThemedClassName<{\n model: ExtendedChessModel;\n min?: number;\n max?: number;\n onSelect?: (index: number) => void;\n}>;\n\nconst History = ({ classNames, model, min, max, onSelect }: HistoryProps) => {\n const { t } = useTranslation(meta.profile.key);\n const moveIndex = useAtomValue(model.moveIndex);\n const label = model.game.isGameOver()\n ? model.game.isCheckmate()\n ? t('game.checkmate.label')\n : model.game.isStalemate()\n ? t('game.stalemate.label')\n : t('game.draw.label')\n : model.game.isCheck()\n ? t('game.check.label')\n : undefined;\n\n const history = model.game.history();\n const moves = useMemo(\n () =>\n history.reduce(\n (acc, move, index) => {\n if (index % 2 === 0) {\n acc.push([{ index, move }]);\n } else {\n acc[acc.length - 1].push({ index, move });\n }\n return acc;\n },\n [] as { index: number; move: string }[][],\n ),\n [history.length],\n );\n\n const scrollerRef = useRef<HTMLDivElement>(null);\n useEffect(() => {\n scrollerRef.current?.scrollTo({ top: scrollerRef.current.scrollHeight });\n }, [history.length]);\n\n useEffect(() => {\n const div = scrollerRef.current?.querySelector(`[data-index=\"${moveIndex - 1}\"]`);\n scrollerRef.current?.classList.add('scrollbar-none');\n div?.scrollIntoView({ behavior: 'smooth' });\n scrollerRef.current?.classList.remove('scrollbar-none');\n }, [moveIndex]);\n\n return (\n <div\n ref={scrollerRef}\n tabIndex={0}\n data-chessboard-arrow-navigation\n className={mx('overflow-y-auto outline-hidden focus-visible:ring-2 focus-visible:ring-primary-500', classNames)}\n style={{\n minHeight: min === undefined ? 'auto' : `${min * 24}px`,\n maxHeight: max === undefined ? 'auto' : `${max * 24}px`,\n }}\n >\n {moves.map(([a, b], index) => (\n <div key={index} className='grid grid-cols-[3rem_1fr_1fr_1rem] gap-2 ps-4'>\n <div className='content-center text-xs text-subdued'>{index + 1}</div>\n {a && (\n <div\n data-index={a.index}\n className={mx('ps-2 text-sm cursor-pointer', a.index === moveIndex - 1 && 'bg-primary-500')}\n onClick={() => onSelect?.(a.index + 1)}\n >\n {a.move}\n </div>\n )}\n {b && (\n <div\n data-index={b.index}\n className={mx('ps-2 text-sm cursor-pointer', b.index === moveIndex - 1 && 'bg-primary-500')}\n onClick={() => onSelect?.(b.index + 1)}\n >\n {b.move}\n </div>\n )}\n </div>\n ))}\n {label && <div className='text-center'>{label}</div>}\n </div>\n );\n};\n\n//\n// PlayerIndicator\n//\n\ntype PlayerIndicatorProps = PropsWithChildren<{\n model: ExtendedChessModel;\n player: Player;\n icon?: JSX.Element;\n}>;\n\nconst PlayerIndicator = ({ children, model, player, icon }: PlayerIndicatorProps) => {\n const turn = player === (model.game.turn() === 'w' ? 'white' : 'black');\n return (\n <div className='grid grid-cols-[2rem_1fr_2rem] gap-2 h-(--dx-rail-size) px-1 flex items-center overflow-hidden'>\n <div className='place-items-center'>\n <Icon\n icon={turn ? 'ph--circle--fill' : 'ph--circle--thin'}\n size={6}\n classNames={mx(turn && (model.game.isCheckmate() ? 'text-error-500' : 'text-success-text'))}\n />\n </div>\n <div className='truncate overflow-hidden items-center'>{children}</div>\n {icon}\n </div>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { type Registry } from '@effect-atom/atom-react';\n\nimport { ChessModel } from '@dxos/react-ui-gameboard';\n\nimport { type Chess } from '#types';\n\nexport class ExtendedChessModel extends ChessModel {\n constructor(\n registry: Registry.Registry,\n readonly object: Chess.State,\n ) {\n super(registry);\n }\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["RegistryContext", "React", "forwardRef", "useCallback", "useContext", "useEffect", "useImperativeHandle", "useMemo", "useObject", "useSoundEffect", "Gameboard", "Chessboard", "NaturalChessboard", "getRawPgn", "useAtomValue", "React", "useEffect", "useMemo", "useRef", "Icon", "IconButton", "useTranslation", "useGameboardContext", "mx", "meta", "INFO_NAME", "Info", "classNames", "orientation", "onOrientationChange", "onClose", "props", "t", "profile", "key", "model", "div", "className", "PlayerIndicator", "player", "icon", "variant", "iconOnly", "label", "size", "onClick", "History", "displayName", "min", "max", "onSelect", "moveIndex", "game", "isGameOver", "isCheckmate", "isStalemate", "isCheck", "undefined", "history", "moves", "reduce", "acc", "move", "index", "push", "length", "scrollerRef", "current", "scrollTo", "top", "scrollHeight", "querySelector", "classList", "add", "scrollIntoView", "behavior", "remove", "ref", "tabIndex", "data-chessboard-arrow-navigation", "style", "minHeight", "maxHeight", "map", "a", "b", "data-index", "children", "turn", "ChessModel", "ExtendedChessModel", "registry", "object", "Root", "forwardRef", "state", "children", "forwardedRef", "registry", "useContext", "RegistryContext", "model", "useMemo", "ExtendedChessModel", "click", "useSoundEffect", "pgn", "updatePgn", "useObject", "useImperativeHandle", "setMoveNumber", "index", "setMoveIndex", "useEffect", "getRawPgn", "silent", "update", "play", "handleDrop", "useCallback", "move", "makeMove", "handleKeyDown", "ev", "target", "HTMLElement", "undefined", "closest", "moveIndex", "get", "key", "preventDefault", "game", "history", "length", "React", "Gameboard", "onDrop", "div", "className", "onKeyDown", "Content", "classNames", "grow", "contain", "BOARD_NAME", "Board", "props", "data-chessboard-arrow-navigation", "NaturalChessboard", "displayName", "Chessboard", "Info"]
|
|
7
7
|
}
|
|
@@ -2,8 +2,8 @@ import "../chunk-J5LGTIGS.mjs";
|
|
|
2
2
|
|
|
3
3
|
// src/containers/index.ts
|
|
4
4
|
import { lazy } from "react";
|
|
5
|
-
var ChessArticle = lazy(() => import("../ChessArticle-
|
|
6
|
-
var ChessCard = lazy(() => import("../ChessCard-
|
|
5
|
+
var ChessArticle = lazy(() => import("../ChessArticle-MPRT54KQ.mjs"));
|
|
6
|
+
var ChessCard = lazy(() => import("../ChessCard-VJ3I6MIB.mjs"));
|
|
7
7
|
export {
|
|
8
8
|
ChessArticle,
|
|
9
9
|
ChessCard
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
meta
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YZTKZ5F7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ChessOperation_exports,
|
|
6
6
|
Chess_exports
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DXIET5G2.mjs";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
chess_skill_default
|
|
10
|
+
} from "./chunk-IKWULCKX.mjs";
|
|
11
11
|
import "./chunk-J5LGTIGS.mjs";
|
|
12
12
|
export {
|
|
13
13
|
Chess_exports as Chess,
|
|
14
|
-
chess_blueprint_default as ChessBlueprint,
|
|
15
14
|
ChessOperation_exports as ChessOperation,
|
|
15
|
+
chess_skill_default as ChessSkill,
|
|
16
16
|
meta
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/blueprints/chess-blueprint.ts":{"bytes":3171,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/blueprints/index.ts":{"bytes":519,"imports":[{"path":"src/blueprints/chess-blueprint.ts","kind":"import-statement","original":"./chess-blueprint"}],"format":"esm"},"src/meta.ts":{"bytes":2884,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/plugin-game","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/Chess.ts":{"bytes":6233,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/Annotation","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/types/ChessOperation.ts":{"bytes":8460,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game/types","kind":"import-statement","external":true},{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"}],"format":"esm"},"src/types/index.ts":{"bytes":610,"imports":[{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"},{"path":"src/types/ChessOperation.ts","kind":"import-statement","original":"./ChessOperation"}],"format":"esm"},"src/index.ts":{"bytes":539,"imports":[{"path":"src/blueprints/index.ts","kind":"import-statement","original":"./blueprints"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-chess/PLUGIN.mdl?raw":{"bytes":13360,"imports":[]},"src/ChessPlugin.tsx":{"bytes":4320,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-chess/PLUGIN.mdl?raw","kind":"import-statement","original":"../PLUGIN.mdl?raw"}],"format":"esm"},"src/ChessPlugin.node.ts":{"bytes":2761,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/ChessPlugin.workerd.ts":{"bytes":2016,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/blueprint-definition.ts":{"bytes":2076,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#blueprints","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/game-variant.ts":{"bytes":4801,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game/types","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/operation-handler.ts":{"bytes":1613,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/index.ts":{"bytes":2371,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/blueprint-definition.ts","kind":"dynamic-import","original":"./blueprint-definition"},{"path":"src/capabilities/game-variant.ts","kind":"dynamic-import","original":"./game-variant"},{"path":"src/capabilities/operation-handler.ts","kind":"dynamic-import","original":"./operation-handler"}],"format":"esm"},"src/components/Chessboard/Info.tsx":{"bytes":18373,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/components/Chessboard/types.ts":{"bytes":1194,"imports":[{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"format":"esm"},"src/components/Chessboard/Chessboard.tsx":{"bytes":13891,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-audio","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"src/components/Chessboard/Info.tsx","kind":"import-statement","original":"./Info"},{"path":"src/components/Chessboard/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/components/Chessboard/index.ts":{"bytes":382,"imports":[{"path":"src/components/Chessboard/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/components/index.ts":{"bytes":382,"imports":[{"path":"src/components/Chessboard/index.ts","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/containers/ChessArticle/ChessArticle.tsx":{"bytes":11936,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/containers/ChessArticle/index.ts":{"bytes":506,"imports":[{"path":"src/containers/ChessArticle/ChessArticle.tsx","kind":"import-statement","original":"./ChessArticle"}],"format":"esm"},"src/containers/ChessCard/ChessCard.tsx":{"bytes":2115,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/containers/ChessCard/index.ts":{"bytes":484,"imports":[{"path":"src/containers/ChessCard/ChessCard.tsx","kind":"import-statement","original":"./ChessCard"}],"format":"esm"},"src/containers/index.ts":{"bytes":952,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/containers/ChessArticle/index.ts","kind":"dynamic-import","original":"./ChessArticle"},{"path":"src/containers/ChessCard/index.ts","kind":"dynamic-import","original":"./ChessCard"}],"format":"esm"},"src/operations/move.ts":{"bytes":3638,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/play.ts":{"bytes":4894,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/print.ts":{"bytes":2385,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/index.ts":{"bytes":1006,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/move.ts","kind":"dynamic-import","original":"./move"},{"path":"src/operations/play.ts","kind":"dynamic-import","original":"./play"},{"path":"src/operations/print.ts","kind":"dynamic-import","original":"./print"}],"format":"esm"},"src/plugin.ts":{"bytes":1063,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/operations/index.ts","kind":"import-statement","original":"./operations"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/testing.ts":{"bytes":653,"imports":[{"path":"src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"},"src/translations.ts":{"bytes":3865,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/neutral/operation-handler-EKZKFQUG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":917},"dist/lib/neutral/operation-handler-EKZKFQUG.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-handler.ts","inputs":{"src/capabilities/operation-handler.ts":{"bytesInOutput":343}},"bytes":523},"dist/lib/neutral/ChessArticle-JHI5OXYR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6431},"dist/lib/neutral/ChessArticle-JHI5OXYR.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/ChessArticle/index.ts","inputs":{"src/containers/ChessArticle/ChessArticle.tsx":{"bytesInOutput":3058},"src/containers/ChessArticle/index.ts":{"bytesInOutput":0}},"bytes":3227},"dist/lib/neutral/ChessCard-4TUTIFB6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1186},"dist/lib/neutral/ChessCard-4TUTIFB6.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/ChessCard/index.ts","inputs":{"src/containers/ChessCard/ChessCard.tsx":{"bytesInOutput":454},"src/containers/ChessCard/index.ts":{"bytesInOutput":0}},"bytes":611},"dist/lib/neutral/move-6NCMKKWD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2013},"dist/lib/neutral/move-6NCMKKWD.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-OYWDKJ5B.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/move.ts","inputs":{"src/operations/move.ts":{"bytesInOutput":755}},"bytes":976},"dist/lib/neutral/play-F5L5LFLW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2686},"dist/lib/neutral/play-F5L5LFLW.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-OYWDKJ5B.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/play.ts","inputs":{"src/operations/play.ts":{"bytesInOutput":1056}},"bytes":1277},"dist/lib/neutral/print-GMSNKAS2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1306},"dist/lib/neutral/print-GMSNKAS2.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-OYWDKJ5B.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/print.ts","inputs":{"src/operations/print.ts":{"bytesInOutput":461}},"bytes":668},"dist/lib/neutral/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/meta.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-7XZ4CRDL.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":131},"dist/lib/neutral/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/operations/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-YB6WZOZI.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["ChessOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{},"bytes":174},"dist/lib/neutral/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":501},"dist/lib/neutral/plugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-YB6WZOZI.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-7XZ4CRDL.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["ChessOperationHandlerSet","ChessPlugin"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":108}},"bytes":361},"dist/lib/neutral/chunk-YB6WZOZI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":549},"dist/lib/neutral/chunk-YB6WZOZI.mjs":{"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/neutral/move-6NCMKKWD.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/play-F5L5LFLW.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/print-GMSNKAS2.mjs","kind":"dynamic-import"}],"exports":["ChessOperationHandlerSet"],"inputs":{"src/operations/index.ts":{"bytesInOutput":222}},"bytes":333},"dist/lib/neutral/testing.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/testing.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-PJOAFP6S.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["ChessPlugin"],"entryPoint":"src/testing.ts","inputs":{"src/testing.ts":{"bytesInOutput":0}},"bytes":148},"dist/lib/neutral/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1835},"dist/lib/neutral/translations.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":1052}},"bytes":1176},"dist/lib/neutral/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/types/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-OYWDKJ5B.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["Chess","ChessOperation"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":231},"dist/lib/neutral/blueprint-definition-4MOWVVWD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1096},"dist/lib/neutral/blueprint-definition-4MOWVVWD.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#blueprints","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/blueprint-definition.ts","inputs":{"src/capabilities/blueprint-definition.ts":{"bytesInOutput":377}},"bytes":566},"dist/lib/neutral/game-variant-ZLPEN2QK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2534},"dist/lib/neutral/game-variant-ZLPEN2QK.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game/types","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/game-variant.ts","inputs":{"src/capabilities/game-variant.ts":{"bytesInOutput":1146}},"bytes":1311},"dist/lib/neutral/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-7XZ4CRDL.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-OYWDKJ5B.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-XWKNXG62.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["Chess","ChessBlueprint","ChessOperation","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":395},"dist/lib/neutral/chunk-7XZ4CRDL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1408},"dist/lib/neutral/chunk-7XZ4CRDL.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/plugin-game","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":779}},"bytes":858},"dist/lib/neutral/chunk-OYWDKJ5B.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6978},"dist/lib/neutral/chunk-OYWDKJ5B.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/Annotation","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game/types","kind":"import-statement","external":true}],"exports":["ChessOperation_exports","Chess_exports"],"inputs":{"src/types/Chess.ts":{"bytesInOutput":1733},"src/types/index.ts":{"bytesInOutput":0},"src/types/ChessOperation.ts":{"bytesInOutput":2362}},"bytes":4300},"dist/lib/neutral/ChessPlugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/ChessPlugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-PJOAFP6S.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["ChessPlugin","default"],"entryPoint":"src/ChessPlugin.tsx","inputs":{},"bytes":209},"dist/lib/neutral/chunk-PJOAFP6S.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":17275},"dist/lib/neutral/chunk-PJOAFP6S.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["ChessPlugin","ChessPlugin_default"],"inputs":{"src/ChessPlugin.tsx":{"bytesInOutput":946},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-chess/PLUGIN.mdl?raw":{"bytesInOutput":14834}},"bytes":15996},"dist/lib/neutral/ChessPlugin.node.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1415},"dist/lib/neutral/ChessPlugin.node.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["ChessPlugin","default"],"entryPoint":"src/ChessPlugin.node.ts","inputs":{"src/ChessPlugin.node.ts":{"bytesInOutput":539}},"bytes":709},"dist/lib/neutral/ChessPlugin.workerd.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1060},"dist/lib/neutral/ChessPlugin.workerd.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["ChessPlugin","default"],"entryPoint":"src/ChessPlugin.workerd.ts","inputs":{"src/ChessPlugin.workerd.ts":{"bytesInOutput":444}},"bytes":623},"dist/lib/neutral/blueprints/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/blueprints/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-XWKNXG62.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["ChessBlueprint"],"entryPoint":"src/blueprints/index.ts","inputs":{},"bytes":190},"dist/lib/neutral/chunk-XWKNXG62.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1605},"dist/lib/neutral/chunk-XWKNXG62.mjs":{"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["chess_blueprint_default"],"inputs":{"src/blueprints/chess-blueprint.ts":{"bytesInOutput":820},"src/blueprints/index.ts":{"bytesInOutput":0}},"bytes":940},"dist/lib/neutral/capabilities/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1272},"dist/lib/neutral/capabilities/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/neutral/blueprint-definition-4MOWVVWD.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/game-variant-ZLPEN2QK.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/operation-handler-EKZKFQUG.mjs","kind":"dynamic-import"}],"exports":["BlueprintDefinition","GameVariant","OperationHandler"],"entryPoint":"src/capabilities/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":377}},"bytes":543},"dist/lib/neutral/components/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":17839},"dist/lib/neutral/components/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-audio","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"exports":["Chessboard"],"entryPoint":"src/components/index.ts","inputs":{"src/components/Chessboard/Chessboard.tsx":{"bytesInOutput":2842},"src/components/Chessboard/Info.tsx":{"bytesInOutput":4782},"src/components/Chessboard/types.ts":{"bytesInOutput":201},"src/components/Chessboard/index.ts":{"bytesInOutput":0},"src/components/index.ts":{"bytesInOutput":0}},"bytes":8085},"dist/lib/neutral/containers/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":536},"dist/lib/neutral/containers/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/neutral/ChessArticle-JHI5OXYR.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/ChessCard-4TUTIFB6.mjs","kind":"dynamic-import"}],"exports":["ChessArticle","ChessCard"],"entryPoint":"src/containers/index.ts","inputs":{"src/containers/index.ts":{"bytesInOutput":166}},"bytes":301},"dist/lib/neutral/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
|
|
1
|
+
{"inputs":{"src/skills/chess-skill.ts":{"bytes":3922,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/skills/index.ts":{"bytes":495,"imports":[{"path":"src/skills/chess-skill.ts","kind":"import-statement","original":"./chess-skill"}],"format":"esm"},"dx.config.ts":{"bytes":2818,"imports":[{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":799,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dx.config.ts","kind":"import-statement","original":"../dx.config"}],"format":"esm"},"src/types/Chess.ts":{"bytes":6229,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/Annotation","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/types/ChessOperation.ts":{"bytes":8460,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game/types","kind":"import-statement","external":true},{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"}],"format":"esm"},"src/types/index.ts":{"bytes":610,"imports":[{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"},{"path":"src/types/ChessOperation.ts","kind":"import-statement","original":"./ChessOperation"}],"format":"esm"},"src/index.ts":{"bytes":531,"imports":[{"path":"src/skills/index.ts","kind":"import-statement","original":"./skills"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-chess/PLUGIN.mdl":{"bytes":13360,"imports":[]},"src/ChessPlugin.tsx":{"bytes":4337,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-chess/PLUGIN.mdl","kind":"import-statement","original":"../PLUGIN.mdl?raw"}],"format":"esm"},"src/ChessPlugin.node.ts":{"bytes":2717,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/ChessPlugin.workerd.ts":{"bytes":2016,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/skill-definition.ts":{"bytes":1543,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#skills","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/game-variant.ts":{"bytes":4801,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game/types","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/operation-handler.ts":{"bytes":1613,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1660,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/skill-definition.ts","kind":"dynamic-import","original":"./skill-definition"},{"path":"src/capabilities/game-variant.ts","kind":"dynamic-import","original":"./game-variant"},{"path":"src/capabilities/operation-handler.ts","kind":"dynamic-import","original":"./operation-handler"}],"format":"esm"},"src/components/Chessboard/Info.tsx":{"bytes":18853,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/components/Chessboard/types.ts":{"bytes":1194,"imports":[{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"format":"esm"},"src/components/Chessboard/Chessboard.tsx":{"bytes":14492,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-audio","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"src/components/Chessboard/Info.tsx","kind":"import-statement","original":"./Info"},{"path":"src/components/Chessboard/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/components/Chessboard/index.ts":{"bytes":382,"imports":[{"path":"src/components/Chessboard/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/components/index.ts":{"bytes":382,"imports":[{"path":"src/components/Chessboard/index.ts","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/containers/ChessArticle/ChessArticle.tsx":{"bytes":12398,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/containers/ChessArticle/index.ts":{"bytes":506,"imports":[{"path":"src/containers/ChessArticle/ChessArticle.tsx","kind":"import-statement","original":"./ChessArticle"}],"format":"esm"},"src/containers/ChessCard/ChessCard.tsx":{"bytes":2922,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/containers/ChessCard/index.ts":{"bytes":484,"imports":[{"path":"src/containers/ChessCard/ChessCard.tsx","kind":"import-statement","original":"./ChessCard"}],"format":"esm"},"src/containers/index.ts":{"bytes":952,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/containers/ChessArticle/index.ts","kind":"dynamic-import","original":"./ChessArticle"},{"path":"src/containers/ChessCard/index.ts","kind":"dynamic-import","original":"./ChessCard"}],"format":"esm"},"src/operations/move.ts":{"bytes":3638,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/play.ts":{"bytes":4894,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/print.ts":{"bytes":2385,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/index.ts":{"bytes":1006,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/move.ts","kind":"dynamic-import","original":"./move"},{"path":"src/operations/play.ts","kind":"dynamic-import","original":"./play"},{"path":"src/operations/print.ts","kind":"dynamic-import","original":"./print"}],"format":"esm"},"src/plugin.ts":{"bytes":1063,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/operations/index.ts","kind":"import-statement","original":"./operations"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/testing.ts":{"bytes":653,"imports":[{"path":"src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"},"src/translations.ts":{"bytes":3918,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/neutral/operation-handler-EKZKFQUG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":917},"dist/lib/neutral/operation-handler-EKZKFQUG.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-handler.ts","inputs":{"src/capabilities/operation-handler.ts":{"bytesInOutput":343}},"bytes":523},"dist/lib/neutral/ChessArticle-MPRT54KQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6660},"dist/lib/neutral/ChessArticle-MPRT54KQ.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/ChessArticle/index.ts","inputs":{"src/containers/ChessArticle/ChessArticle.tsx":{"bytesInOutput":3160},"src/containers/ChessArticle/index.ts":{"bytesInOutput":0}},"bytes":3329},"dist/lib/neutral/ChessCard-VJ3I6MIB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1615},"dist/lib/neutral/ChessCard-VJ3I6MIB.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/ChessCard/index.ts","inputs":{"src/containers/ChessCard/ChessCard.tsx":{"bytesInOutput":711},"src/containers/ChessCard/index.ts":{"bytesInOutput":0}},"bytes":868},"dist/lib/neutral/move-UMDTQST4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2013},"dist/lib/neutral/move-UMDTQST4.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-DXIET5G2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/move.ts","inputs":{"src/operations/move.ts":{"bytesInOutput":755}},"bytes":976},"dist/lib/neutral/play-7XTJZ4N6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2686},"dist/lib/neutral/play-7XTJZ4N6.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-DXIET5G2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/play.ts","inputs":{"src/operations/play.ts":{"bytesInOutput":1056}},"bytes":1277},"dist/lib/neutral/print-JR4VB3UX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1306},"dist/lib/neutral/print-JR4VB3UX.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-DXIET5G2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/print.ts","inputs":{"src/operations/print.ts":{"bytesInOutput":461}},"bytes":668},"dist/lib/neutral/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/meta.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-YZTKZ5F7.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":131},"dist/lib/neutral/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/operations/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-AMXVX7V2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["ChessOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{},"bytes":174},"dist/lib/neutral/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":501},"dist/lib/neutral/plugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-AMXVX7V2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-YZTKZ5F7.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["ChessOperationHandlerSet","ChessPlugin"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":108}},"bytes":361},"dist/lib/neutral/chunk-AMXVX7V2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":549},"dist/lib/neutral/chunk-AMXVX7V2.mjs":{"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/neutral/move-UMDTQST4.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/play-7XTJZ4N6.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/print-JR4VB3UX.mjs","kind":"dynamic-import"}],"exports":["ChessOperationHandlerSet"],"inputs":{"src/operations/index.ts":{"bytesInOutput":222}},"bytes":333},"dist/lib/neutral/testing.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/testing.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-EXZ3XFEG.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["ChessPlugin"],"entryPoint":"src/testing.ts","inputs":{"src/testing.ts":{"bytesInOutput":0}},"bytes":148},"dist/lib/neutral/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1863},"dist/lib/neutral/translations.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":1061}},"bytes":1185},"dist/lib/neutral/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/types/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-DXIET5G2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["Chess","ChessOperation"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":231},"dist/lib/neutral/skill-definition-ZGQBUE4R.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":813},"dist/lib/neutral/skill-definition-ZGQBUE4R.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#skills","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/skill-definition.ts","inputs":{"src/capabilities/skill-definition.ts":{"bytesInOutput":349}},"bytes":526},"dist/lib/neutral/game-variant-ZLPEN2QK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2534},"dist/lib/neutral/game-variant-ZLPEN2QK.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game/types","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/game-variant.ts","inputs":{"src/capabilities/game-variant.ts":{"bytesInOutput":1146}},"bytes":1311},"dist/lib/neutral/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-YZTKZ5F7.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-DXIET5G2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-IKWULCKX.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["Chess","ChessOperation","ChessSkill","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":383},"dist/lib/neutral/chunk-YZTKZ5F7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1658},"dist/lib/neutral/chunk-YZTKZ5F7.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":102},"dx.config.ts":{"bytesInOutput":807}},"bytes":1021},"dist/lib/neutral/chunk-DXIET5G2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6976},"dist/lib/neutral/chunk-DXIET5G2.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/Annotation","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-game/types","kind":"import-statement","external":true}],"exports":["ChessOperation_exports","Chess_exports"],"inputs":{"src/types/Chess.ts":{"bytesInOutput":1732},"src/types/index.ts":{"bytesInOutput":0},"src/types/ChessOperation.ts":{"bytesInOutput":2362}},"bytes":4299},"dist/lib/neutral/ChessPlugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/ChessPlugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-EXZ3XFEG.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["ChessPlugin","default"],"entryPoint":"src/ChessPlugin.tsx","inputs":{},"bytes":209},"dist/lib/neutral/chunk-EXZ3XFEG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":17284},"dist/lib/neutral/chunk-EXZ3XFEG.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["ChessPlugin","ChessPlugin_default"],"inputs":{"src/ChessPlugin.tsx":{"bytesInOutput":943},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-chess/PLUGIN.mdl":{"bytesInOutput":14834}},"bytes":15989},"dist/lib/neutral/ChessPlugin.node.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1395},"dist/lib/neutral/ChessPlugin.node.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["ChessPlugin","default"],"entryPoint":"src/ChessPlugin.node.ts","inputs":{"src/ChessPlugin.node.ts":{"bytesInOutput":527}},"bytes":697},"dist/lib/neutral/ChessPlugin.workerd.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1060},"dist/lib/neutral/ChessPlugin.workerd.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["ChessPlugin","default"],"entryPoint":"src/ChessPlugin.workerd.ts","inputs":{"src/ChessPlugin.workerd.ts":{"bytesInOutput":444}},"bytes":623},"dist/lib/neutral/skills/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/skills/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-IKWULCKX.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["ChessSkill"],"entryPoint":"src/skills/index.ts","inputs":{},"bytes":178},"dist/lib/neutral/chunk-IKWULCKX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1922},"dist/lib/neutral/chunk-IKWULCKX.mjs":{"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["chess_skill_default"],"inputs":{"src/skills/chess-skill.ts":{"bytesInOutput":1139},"src/skills/index.ts":{"bytesInOutput":0}},"bytes":1247},"dist/lib/neutral/capabilities/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":906},"dist/lib/neutral/capabilities/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/neutral/skill-definition-ZGQBUE4R.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/game-variant-ZLPEN2QK.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/operation-handler-EKZKFQUG.mjs","kind":"dynamic-import"}],"exports":["GameVariant","OperationHandler","SkillDefinition"],"entryPoint":"src/capabilities/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":365}},"bytes":527},"dist/lib/neutral/components/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":18380},"dist/lib/neutral/components/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-audio","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"exports":["Chessboard"],"entryPoint":"src/components/index.ts","inputs":{"src/components/Chessboard/Chessboard.tsx":{"bytesInOutput":2886},"src/components/Chessboard/Info.tsx":{"bytesInOutput":4930},"src/components/Chessboard/types.ts":{"bytesInOutput":201},"src/components/Chessboard/index.ts":{"bytesInOutput":0},"src/components/index.ts":{"bytesInOutput":0}},"bytes":8277},"dist/lib/neutral/containers/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":536},"dist/lib/neutral/containers/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/neutral/ChessArticle-MPRT54KQ.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/ChessCard-VJ3I6MIB.mjs","kind":"dynamic-import"}],"exports":["ChessArticle","ChessCard"],"entryPoint":"src/containers/index.ts","inputs":{"src/containers/index.ts":{"bytesInOutput":166}},"bytes":301},"dist/lib/neutral/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ChessOperation_exports,
|
|
3
3
|
Chess_exports
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DXIET5G2.mjs";
|
|
5
5
|
import "./chunk-J5LGTIGS.mjs";
|
|
6
6
|
|
|
7
7
|
// src/operations/move.ts
|
|
@@ -34,4 +34,4 @@ var move_default = handler;
|
|
|
34
34
|
export {
|
|
35
35
|
move_default as default
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=move-
|
|
37
|
+
//# sourceMappingURL=move-UMDTQST4.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ChessOperation_exports,
|
|
3
3
|
Chess_exports
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DXIET5G2.mjs";
|
|
5
5
|
import "./chunk-J5LGTIGS.mjs";
|
|
6
6
|
|
|
7
7
|
// src/operations/play.ts
|
|
@@ -43,4 +43,4 @@ var play_default = handler;
|
|
|
43
43
|
export {
|
|
44
44
|
play_default as default
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=play-
|
|
46
|
+
//# sourceMappingURL=play-7XTJZ4N6.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ChessOperation_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DXIET5G2.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/operations/print.ts
|
|
@@ -26,4 +26,4 @@ var print_default = handler;
|
|
|
26
26
|
export {
|
|
27
27
|
print_default as default
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=print-
|
|
29
|
+
//# sourceMappingURL=print-JR4VB3UX.mjs.map
|