@dxos/plugin-chess 0.8.4-main.bc674ce → 0.8.4-main.c351d160a8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/dist/lib/browser/ChessArticle-UDSL3OJ4.mjs +59 -0
  2. package/dist/lib/browser/ChessArticle-UDSL3OJ4.mjs.map +7 -0
  3. package/dist/lib/browser/ChessCard-OIRFQMOJ.mjs +21 -0
  4. package/dist/lib/browser/ChessCard-OIRFQMOJ.mjs.map +7 -0
  5. package/dist/lib/browser/blueprint-definition-OSNXLHYU.mjs +18 -0
  6. package/dist/lib/browser/blueprint-definition-OSNXLHYU.mjs.map +7 -0
  7. package/dist/lib/browser/blueprints/index.mjs +4 -4
  8. package/dist/lib/browser/{chunk-66H3V2YV.mjs → chunk-2TJN26DN.mjs} +9 -6
  9. package/dist/lib/browser/chunk-2TJN26DN.mjs.map +7 -0
  10. package/dist/lib/browser/{chunk-FO4ZNFN6.mjs → chunk-6JG4KLVU.mjs} +44 -42
  11. package/dist/lib/browser/chunk-6JG4KLVU.mjs.map +7 -0
  12. package/dist/lib/browser/{chunk-73BDP7UV.mjs → chunk-JP6G6VR6.mjs} +30 -29
  13. package/dist/lib/browser/chunk-JP6G6VR6.mjs.map +7 -0
  14. package/dist/lib/browser/{chunk-H3NUMCQ6.mjs → chunk-RGHZ5CDO.mjs} +2 -2
  15. package/dist/lib/browser/{chunk-H3NUMCQ6.mjs.map → chunk-RGHZ5CDO.mjs.map} +1 -1
  16. package/dist/lib/browser/chunk-WYUTI2K4.mjs +1 -0
  17. package/dist/lib/browser/chunk-WYUTI2K4.mjs.map +7 -0
  18. package/dist/lib/browser/cli/index.mjs +10 -10
  19. package/dist/lib/browser/cli/index.mjs.map +3 -3
  20. package/dist/lib/browser/index.mjs +25 -28
  21. package/dist/lib/browser/index.mjs.map +3 -3
  22. package/dist/lib/browser/meta.json +1 -1
  23. package/dist/lib/browser/react-surface-WD7BYDFB.mjs +50 -0
  24. package/dist/lib/browser/react-surface-WD7BYDFB.mjs.map +7 -0
  25. package/dist/lib/browser/types/index.mjs +1 -1
  26. package/dist/lib/node-esm/ChessArticle-76MOXLJM.mjs +60 -0
  27. package/dist/lib/node-esm/ChessArticle-76MOXLJM.mjs.map +7 -0
  28. package/dist/lib/node-esm/ChessCard-TKNQP6IO.mjs +22 -0
  29. package/dist/lib/node-esm/ChessCard-TKNQP6IO.mjs.map +7 -0
  30. package/dist/lib/node-esm/{blueprint-definition-SL4LBVV5.mjs → blueprint-definition-PFZMTCXY.mjs} +7 -7
  31. package/dist/lib/node-esm/blueprint-definition-PFZMTCXY.mjs.map +7 -0
  32. package/dist/lib/node-esm/blueprints/index.mjs +4 -4
  33. package/dist/lib/node-esm/{chunk-C7IWIXCJ.mjs → chunk-46DC6W7W.mjs} +44 -42
  34. package/dist/lib/node-esm/chunk-46DC6W7W.mjs.map +7 -0
  35. package/dist/lib/node-esm/chunk-7XDEO6IJ.mjs +2 -0
  36. package/dist/lib/node-esm/chunk-7XDEO6IJ.mjs.map +7 -0
  37. package/dist/lib/node-esm/{chunk-WXEPWOHT.mjs → chunk-FK7NVSOG.mjs} +30 -29
  38. package/dist/lib/node-esm/chunk-FK7NVSOG.mjs.map +7 -0
  39. package/dist/lib/node-esm/{chunk-F5OMIM4F.mjs → chunk-FYPVCMP4.mjs} +2 -2
  40. package/dist/lib/node-esm/{chunk-F5OMIM4F.mjs.map → chunk-FYPVCMP4.mjs.map} +1 -1
  41. package/dist/lib/node-esm/{chunk-OUNGNJFP.mjs → chunk-OIRJVY2R.mjs} +9 -6
  42. package/dist/lib/node-esm/chunk-OIRJVY2R.mjs.map +7 -0
  43. package/dist/lib/node-esm/cli/index.mjs +10 -10
  44. package/dist/lib/node-esm/cli/index.mjs.map +3 -3
  45. package/dist/lib/node-esm/index.mjs +25 -28
  46. package/dist/lib/node-esm/index.mjs.map +3 -3
  47. package/dist/lib/node-esm/meta.json +1 -1
  48. package/dist/lib/node-esm/react-surface-TIYEREGW.mjs +51 -0
  49. package/dist/lib/node-esm/react-surface-TIYEREGW.mjs.map +7 -0
  50. package/dist/lib/node-esm/types/index.mjs +1 -1
  51. package/dist/types/src/ChessPlugin.d.ts.map +1 -1
  52. package/dist/types/src/blueprints/chess-blueprint.d.ts +3 -20
  53. package/dist/types/src/blueprints/chess-blueprint.d.ts.map +1 -1
  54. package/dist/types/src/blueprints/functions/create.d.ts +1 -1
  55. package/dist/types/src/blueprints/functions/index.d.ts +55 -4
  56. package/dist/types/src/blueprints/functions/index.d.ts.map +1 -1
  57. package/dist/types/src/blueprints/functions/move.d.ts +9 -1
  58. package/dist/types/src/blueprints/functions/move.d.ts.map +1 -1
  59. package/dist/types/src/blueprints/functions/play.d.ts +9 -1
  60. package/dist/types/src/blueprints/functions/play.d.ts.map +1 -1
  61. package/dist/types/src/blueprints/index.d.ts +1 -1
  62. package/dist/types/src/blueprints/index.d.ts.map +1 -1
  63. package/dist/types/src/capabilities/artifact-definition/artifact-definition.d.ts +1 -1
  64. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +3 -6
  65. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -1
  66. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +1 -1
  67. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -1
  68. package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
  69. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
  70. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
  71. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
  72. package/dist/types/src/cli/plugin.d.ts.map +1 -1
  73. package/dist/types/src/components/{Chessboard.d.ts → Chessboard/Chessboard.d.ts} +3 -8
  74. package/dist/types/src/components/Chessboard/Chessboard.d.ts.map +1 -0
  75. package/dist/types/src/components/{Info.d.ts → Chessboard/Info.d.ts} +1 -1
  76. package/dist/types/src/components/Chessboard/Info.d.ts.map +1 -0
  77. package/dist/types/src/components/Chessboard/index.d.ts +2 -0
  78. package/dist/types/src/components/Chessboard/index.d.ts.map +1 -0
  79. package/dist/types/src/components/Chessboard/types.d.ts +8 -0
  80. package/dist/types/src/components/Chessboard/types.d.ts.map +1 -0
  81. package/dist/types/src/components/index.d.ts +0 -1
  82. package/dist/types/src/components/index.d.ts.map +1 -1
  83. package/dist/types/src/containers/ChessArticle/ChessArticle.d.ts +6 -0
  84. package/dist/types/src/containers/ChessArticle/ChessArticle.d.ts.map +1 -0
  85. package/dist/types/src/{components/Chessboard.stories.d.ts → containers/ChessArticle/ChessArticle.stories.d.ts} +3 -2
  86. package/dist/types/src/containers/ChessArticle/ChessArticle.stories.d.ts.map +1 -0
  87. package/dist/types/src/containers/ChessArticle/index.d.ts +3 -0
  88. package/dist/types/src/containers/ChessArticle/index.d.ts.map +1 -0
  89. package/dist/types/src/containers/ChessCard/ChessCard.d.ts +6 -0
  90. package/dist/types/src/containers/ChessCard/ChessCard.d.ts.map +1 -0
  91. package/dist/types/src/{components/Card.stories.d.ts → containers/ChessCard/ChessCard.stories.d.ts} +1 -1
  92. package/dist/types/src/containers/ChessCard/ChessCard.stories.d.ts.map +1 -0
  93. package/dist/types/src/containers/ChessCard/index.d.ts +3 -0
  94. package/dist/types/src/containers/ChessCard/index.d.ts.map +1 -0
  95. package/dist/types/src/containers/index.d.ts +4 -0
  96. package/dist/types/src/containers/index.d.ts.map +1 -0
  97. package/dist/types/src/index.d.ts +1 -1
  98. package/dist/types/src/index.d.ts.map +1 -1
  99. package/dist/types/src/translations.d.ts +1 -0
  100. package/dist/types/src/translations.d.ts.map +1 -1
  101. package/dist/types/src/types/Chess.d.ts +1 -1
  102. package/dist/types/src/types/Chess.d.ts.map +1 -1
  103. package/dist/types/tsconfig.tsbuildinfo +1 -1
  104. package/package.json +36 -35
  105. package/src/ChessPlugin.tsx +13 -10
  106. package/src/blueprints/chess-blueprint.ts +14 -6
  107. package/src/blueprints/functions/create.ts +2 -2
  108. package/src/blueprints/functions/index.ts +13 -4
  109. package/src/blueprints/functions/move.ts +11 -12
  110. package/src/blueprints/functions/play.ts +5 -6
  111. package/src/blueprints/functions/print.ts +1 -1
  112. package/src/blueprints/index.ts +1 -1
  113. package/src/capabilities/blueprint-definition/blueprint-definition.ts +6 -12
  114. package/src/capabilities/react-surface/react-surface.tsx +13 -7
  115. package/src/cli/plugin.ts +4 -4
  116. package/src/components/{Chessboard.tsx → Chessboard/Chessboard.tsx} +24 -26
  117. package/src/components/{Info.tsx → Chessboard/Info.tsx} +12 -10
  118. package/src/components/Chessboard/index.ts +5 -0
  119. package/src/components/Chessboard/types.ts +18 -0
  120. package/src/components/index.ts +1 -5
  121. package/src/{components/Chessboard.stories.tsx → containers/ChessArticle/ChessArticle.stories.tsx} +7 -7
  122. package/src/containers/ChessArticle/ChessArticle.tsx +72 -0
  123. package/src/containers/ChessArticle/index.ts +7 -0
  124. package/src/{components/Card.stories.tsx → containers/ChessCard/ChessCard.stories.tsx} +9 -14
  125. package/src/containers/ChessCard/ChessCard.tsx +22 -0
  126. package/src/containers/ChessCard/index.ts +7 -0
  127. package/src/containers/index.ts +8 -0
  128. package/src/index.ts +1 -1
  129. package/src/meta.ts +1 -1
  130. package/src/translations.ts +1 -0
  131. package/src/types/Chess.ts +7 -3
  132. package/dist/lib/browser/ChessboardContainer-JZ4ANG4O.mjs +0 -81
  133. package/dist/lib/browser/ChessboardContainer-JZ4ANG4O.mjs.map +0 -7
  134. package/dist/lib/browser/blueprint-definition-P7TYXWMF.mjs +0 -18
  135. package/dist/lib/browser/blueprint-definition-P7TYXWMF.mjs.map +0 -7
  136. package/dist/lib/browser/chunk-66H3V2YV.mjs.map +0 -7
  137. package/dist/lib/browser/chunk-73BDP7UV.mjs.map +0 -7
  138. package/dist/lib/browser/chunk-FO4ZNFN6.mjs.map +0 -7
  139. package/dist/lib/browser/chunk-OW6S2SRG.mjs +0 -8
  140. package/dist/lib/browser/chunk-OW6S2SRG.mjs.map +0 -7
  141. package/dist/lib/browser/react-surface-VNOWFKC6.mjs +0 -37
  142. package/dist/lib/browser/react-surface-VNOWFKC6.mjs.map +0 -7
  143. package/dist/lib/node-esm/ChessboardContainer-7ONFYN7L.mjs +0 -82
  144. package/dist/lib/node-esm/ChessboardContainer-7ONFYN7L.mjs.map +0 -7
  145. package/dist/lib/node-esm/blueprint-definition-SL4LBVV5.mjs.map +0 -7
  146. package/dist/lib/node-esm/chunk-24GJHLHM.mjs +0 -10
  147. package/dist/lib/node-esm/chunk-24GJHLHM.mjs.map +0 -7
  148. package/dist/lib/node-esm/chunk-C7IWIXCJ.mjs.map +0 -7
  149. package/dist/lib/node-esm/chunk-OUNGNJFP.mjs.map +0 -7
  150. package/dist/lib/node-esm/chunk-WXEPWOHT.mjs.map +0 -7
  151. package/dist/lib/node-esm/react-surface-HSHCIOAS.mjs +0 -38
  152. package/dist/lib/node-esm/react-surface-HSHCIOAS.mjs.map +0 -7
  153. package/dist/types/src/components/Card.stories.d.ts.map +0 -1
  154. package/dist/types/src/components/Chessboard.d.ts.map +0 -1
  155. package/dist/types/src/components/Chessboard.stories.d.ts.map +0 -1
  156. package/dist/types/src/components/ChessboardArticle.d.ts +0 -6
  157. package/dist/types/src/components/ChessboardArticle.d.ts.map +0 -1
  158. package/dist/types/src/components/ChessboardContainer.d.ts +0 -7
  159. package/dist/types/src/components/ChessboardContainer.d.ts.map +0 -1
  160. package/dist/types/src/components/Info.d.ts.map +0 -1
  161. package/src/components/ChessboardArticle.tsx +0 -71
  162. package/src/components/ChessboardContainer.tsx +0 -40
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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 {\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';\nimport { useSoundEffect } from '@dxos/react-ui-sfx';\nimport { mx } from '@dxos/ui-theme';\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 game: Chess.Game;\n}>;\n\nconst Root = forwardRef<ChessboardController, RootProps>(({ game, children }, forwardedRef) => {\n const registry = useContext(RegistryContext);\n const model = useMemo(() => new ExtendedChessModel(registry, game), [registry]);\n const click = useSoundEffect('Click');\n const [pgn, updatePgn] = useObject(game, '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, role }: ContentProps) => {\n return (\n <Gameboard.Content\n classNames={mx(\n classNames,\n role === 'card--content' ? 'dx-size-container dx-card-square' : 'flex flex-col justify-center',\n )}\n >\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 { generateName } from '@dxos/display-name';\nimport { Obj } from '@dxos/echo';\nimport { type SpaceMember, useMembers } from '@dxos/react-client/echo';\nimport { Icon, IconButton, Select, 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 const db = Obj.getDatabase(model.object);\n const members = useMembers(db?.spaceId);\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 icon='ph--x--regular' iconOnly label={t('close info button')} size={4} onClick={onClose} />\n )\n }\n >\n <PlayerSelector\n value={model.object.players?.[orientation === 'white' ? 'black' : 'white']}\n onValueChange={(value) => {\n Obj.change(model.object, (obj) => {\n obj.players![orientation === 'white' ? 'black' : 'white'] = value;\n });\n }}\n members={members}\n />\n </PlayerIndicator>\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 <PlayerSelector\n value={model.object.players?.[orientation]}\n onValueChange={(value) => {\n Obj.change(model.object, (obj) => {\n obj.players![orientation] = value;\n });\n }}\n members={members}\n />\n </PlayerIndicator>\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 leading-1'>\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 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 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//\n// PlayerSelector\n//\n\ntype PlayerSelectorProps = {\n value?: string;\n onValueChange: (player: string) => void;\n members: SpaceMember[];\n};\n\nconst PlayerSelector = ({ value, onValueChange, members }: PlayerSelectorProps) => {\n const { t } = useTranslation(meta.id);\n return (\n <Select.Root value={value} onValueChange={onValueChange}>\n <Select.TriggerButton placeholder={t('select player button')} />\n <Select.Portal>\n <Select.Content>\n <Select.Viewport>\n {members.map((member) => {\n const memberKey = member.identity.identityKey.toHex();\n const displayName = member.identity?.profile?.displayName || generateName(memberKey);\n return (\n <Select.Option key={memberKey} value={memberKey}>\n {displayName}\n </Select.Option>\n );\n })}\n </Select.Viewport>\n <Select.Arrow />\n </Select.Content>\n </Select.Portal>\n </Select.Root>\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.Game,\n ) {\n super(registry);\n }\n}\n"],
5
+ "mappings": "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",
6
+ "names": ["RegistryContext", "React", "forwardRef", "useCallback", "useContext", "useEffect", "useImperativeHandle", "useMemo", "useRef", "addEventListener", "useObject", "Gameboard", "Chessboard", "NaturalChessboard", "getRawPgn", "useGameboardContext", "useSoundEffect", "mx", "useAtomValue", "React", "useEffect", "useMemo", "useRef", "generateName", "Obj", "useMembers", "Icon", "IconButton", "Select", "useTranslation", "useGameboardContext", "mx", "INFO_NAME", "Info", "classNames", "orientation", "onOrientationChange", "onClose", "props", "t", "useTranslation", "meta", "id", "model", "useGameboardContext", "db", "Obj", "getDatabase", "object", "members", "useMembers", "spaceId", "div", "className", "mx", "PlayerIndicator", "player", "icon", "IconButton", "iconOnly", "label", "size", "onClick", "PlayerSelector", "value", "players", "onValueChange", "change", "obj", "History", "displayName", "min", "max", "onSelect", "moveIndex", "useAtomValue", "game", "isGameOver", "isCheckmate", "isStalemate", "isCheck", "undefined", "history", "moves", "useMemo", "reduce", "acc", "move", "index", "push", "length", "scrollerRef", "useRef", "useEffect", "current", "scrollTo", "top", "scrollHeight", "querySelector", "classList", "add", "scrollIntoView", "behavior", "remove", "ref", "style", "minHeight", "maxHeight", "map", "a", "b", "key", "data-index", "children", "turn", "Icon", "Select", "Root", "TriggerButton", "placeholder", "Portal", "Content", "Viewport", "member", "memberKey", "identity", "identityKey", "toHex", "profile", "generateName", "Option", "Arrow", "ChessModel", "ExtendedChessModel", "ChessModel", "registry", "object", "Root", "forwardRef", "game", "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", "React", "Gameboard", "onDrop", "Content", "classNames", "role", "mx", "BOARD_NAME", "Board", "props", "useGameboardContext", "ref", "useRef", "current", "setAttribute", "addEventListener", "ev", "moveIndex", "get", "key", "history", "length", "NaturalChessboard", "displayName", "Chessboard", "Info"]
7
+ }
@@ -1,7 +1,7 @@
1
1
  // src/meta.ts
2
2
  import { trim } from "@dxos/util";
3
3
  var meta = {
4
- id: "dxos.org/plugin/chess",
4
+ id: "org.dxos.plugin.chess",
5
5
  name: "Chess",
6
6
  description: trim`
7
7
  Full-featured chess game supporting multiplayer matches with friends or practice sessions against AI opponents.
@@ -18,4 +18,4 @@ var meta = {
18
18
  export {
19
19
  meta
20
20
  };
21
- //# sourceMappingURL=chunk-H3NUMCQ6.mjs.map
21
+ //# sourceMappingURL=chunk-RGHZ5CDO.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'dxos.org/plugin/chess',\n name: 'Chess',\n description: trim`\n Full-featured chess game supporting multiplayer matches with friends or practice sessions against AI opponents.\n Track game history and analyze moves in real-time.\n `,\n icon: 'ph--shield-chevron--regular',\n iconHue: 'amber',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-chess',\n screenshots: ['https://dxos.network/plugin-details-chess-dark.png'],\n};\n"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.chess',\n name: 'Chess',\n description: trim`\n Full-featured chess game supporting multiplayer matches with friends or practice sessions against AI opponents.\n Track game history and analyze moves in real-time.\n `,\n icon: 'ph--shield-chevron--regular',\n iconHue: 'amber',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-chess',\n screenshots: ['https://dxos.network/plugin-details-chess-dark.png'],\n};\n"],
5
5
  "mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,aAAa;IAAC;;AAChB;",
6
6
  "names": ["trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "screenshots"]
7
7
  }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-WYUTI2K4.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  Chess_exports
3
- } from "../chunk-66H3V2YV.mjs";
3
+ } from "../chunk-2TJN26DN.mjs";
4
4
  import {
5
5
  meta
6
- } from "../chunk-H3NUMCQ6.mjs";
6
+ } from "../chunk-RGHZ5CDO.mjs";
7
7
  import "../chunk-J5LGTIGS.mjs";
8
8
 
9
9
  // src/cli/plugin.ts
10
10
  import * as Effect from "effect/Effect";
11
- import { Common, Plugin } from "@dxos/app-framework";
12
- var ChessPlugin = Plugin.define(meta).pipe(Common.Plugin.addSchemaModule({
13
- schema: [
14
- Chess_exports.Game
15
- ]
16
- }), Common.Plugin.addMetadataModule({
11
+ import { Plugin } from "@dxos/app-framework";
12
+ import { AppPlugin } from "@dxos/app-toolkit";
13
+ var ChessPlugin = Plugin.define(meta).pipe(AppPlugin.addMetadataModule({
17
14
  metadata: {
18
15
  id: Chess_exports.Game.typename,
19
16
  metadata: {
20
- createObject: (props) => Effect.sync(() => Chess_exports.make(props)),
21
- addToCollectionOnCreate: true
17
+ createObject: (props) => Effect.sync(() => Chess_exports.make(props))
22
18
  }
23
19
  }
20
+ }), AppPlugin.addSchemaModule({
21
+ schema: [
22
+ Chess_exports.Game
23
+ ]
24
24
  }), Plugin.make);
25
25
  export {
26
26
  ChessPlugin
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/cli/plugin.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Common, Plugin } from '@dxos/app-framework';\nimport { type CreateObject } from '@dxos/plugin-space/types';\n\nimport { meta } from '../meta';\nimport { Chess } from '../types';\n\n// TODO(wittjosiah): Factor out shared modules.\nexport const ChessPlugin = Plugin.define(meta).pipe(\n Common.Plugin.addSchemaModule({ schema: [Chess.Game] }),\n Common.Plugin.addMetadataModule({\n metadata: {\n id: Chess.Game.typename,\n metadata: {\n createObject: ((props) => Effect.sync(() => Chess.make(props))) satisfies CreateObject,\n addToCollectionOnCreate: true,\n },\n },\n }),\n Plugin.make,\n);\n"],
5
- "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,QAAQC,cAAc;AAOxB,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,OAAOJ,OAAOK,gBAAgB;EAAEC,QAAQ;IAACC,cAAMC;;AAAM,CAAA,GACrDJ,OAAOJ,OAAOS,kBAAkB;EAC9BC,UAAU;IACRC,IAAIJ,cAAMC,KAAKI;IACfF,UAAU;MACRG,cAAe,CAACC,UAAiBC,YAAK,MAAMR,cAAMS,KAAKF,KAAAA,CAAAA;MACvDG,yBAAyB;IAC3B;EACF;AACF,CAAA,GACAjB,OAAOgB,IAAI;",
6
- "names": ["Effect", "Common", "Plugin", "ChessPlugin", "Plugin", "define", "meta", "pipe", "Common", "addSchemaModule", "schema", "Chess", "Game", "addMetadataModule", "metadata", "id", "typename", "createObject", "props", "sync", "make", "addToCollectionOnCreate"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { type CreateObject } from '@dxos/plugin-space/types';\n\nimport { meta } from '../meta';\nimport { Chess } from '../types';\n\n// TODO(wittjosiah): Factor out shared modules.\nexport const ChessPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: Chess.Game.typename,\n metadata: {\n createObject: ((props) => Effect.sync(() => Chess.make(props))) satisfies CreateObject,\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [Chess.Game] }),\n Plugin.make,\n);\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAOnB,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,UAAUC,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,cAAMC,KAAKC;IACfJ,UAAU;MACRK,cAAe,CAACC,UAAiBC,YAAK,MAAML,cAAMM,KAAKF,KAAAA,CAAAA;IACzD;EACF;AACF,CAAA,GACAR,UAAUW,gBAAgB;EAAEC,QAAQ;IAACR,cAAMC;;AAAM,CAAA,GACjDT,OAAOc,IAAI;",
6
+ "names": ["Effect", "Plugin", "AppPlugin", "ChessPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addMetadataModule", "metadata", "id", "Chess", "Game", "typename", "createObject", "props", "sync", "make", "addSchemaModule", "schema"]
7
7
  }
@@ -1,33 +1,32 @@
1
1
  import {
2
- chess_blueprint_exports,
2
+ chess_blueprint_default,
3
3
  functions_exports
4
- } from "./chunk-FO4ZNFN6.mjs";
4
+ } from "./chunk-6JG4KLVU.mjs";
5
5
  import {
6
- ChessboardContainer
7
- } from "./chunk-OW6S2SRG.mjs";
6
+ Chessboard
7
+ } from "./chunk-JP6G6VR6.mjs";
8
8
  import {
9
9
  Chess_exports
10
- } from "./chunk-66H3V2YV.mjs";
11
- import {
12
- Chessboard,
13
- ExtendedChessModel
14
- } from "./chunk-73BDP7UV.mjs";
10
+ } from "./chunk-2TJN26DN.mjs";
15
11
  import {
16
12
  meta
17
- } from "./chunk-H3NUMCQ6.mjs";
13
+ } from "./chunk-RGHZ5CDO.mjs";
18
14
  import "./chunk-J5LGTIGS.mjs";
19
15
 
20
16
  // src/capabilities/blueprint-definition/index.ts
21
17
  import { Capability } from "@dxos/app-framework";
22
- var BlueprintDefinition = Capability.lazy("BlueprintDefinition", () => import("./blueprint-definition-P7TYXWMF.mjs"));
18
+ var BlueprintDefinition = Capability.lazy("BlueprintDefinition", () => import("./blueprint-definition-OSNXLHYU.mjs"));
23
19
 
24
20
  // src/capabilities/react-surface/index.ts
25
21
  import { Capability as Capability2 } from "@dxos/app-framework";
26
- var ReactSurface = Capability2.lazy("ReactSurface", () => import("./react-surface-VNOWFKC6.mjs"));
22
+ var ReactSurface = Capability2.lazy("ReactSurface", () => import("./react-surface-WD7BYDFB.mjs"));
27
23
 
28
24
  // src/ChessPlugin.tsx
29
25
  import * as Effect from "effect/Effect";
30
- import { Common, Plugin } from "@dxos/app-framework";
26
+ import * as Option from "effect/Option";
27
+ import { Plugin } from "@dxos/app-framework";
28
+ import { AppPlugin } from "@dxos/app-toolkit";
29
+ import { Annotation } from "@dxos/echo";
31
30
 
32
31
  // src/translations.ts
33
32
  var translations = [
@@ -39,6 +38,7 @@ var translations = [
39
38
  "typename label_one": "Game",
40
39
  "typename label_other": "Games",
41
40
  "object name placeholder": "New game",
41
+ "add object label": "Add game",
42
42
  "rename object label": "Rename game",
43
43
  "delete object label": "Delete game",
44
44
  "object deleted label": "Game deleted"
@@ -60,39 +60,36 @@ var translations = [
60
60
  ];
61
61
 
62
62
  // src/ChessPlugin.tsx
63
- var ChessPlugin = Plugin.define(meta).pipe(Common.Plugin.addTranslationsModule({
64
- translations
65
- }), Common.Plugin.addMetadataModule({
63
+ var ChessPlugin = Plugin.define(meta).pipe(AppPlugin.addBlueprintDefinitionModule({
64
+ activate: BlueprintDefinition
65
+ }), AppPlugin.addMetadataModule({
66
66
  metadata: {
67
67
  id: Chess_exports.Game.typename,
68
68
  metadata: {
69
- icon: "ph--shield-chevron--regular",
70
- iconHue: "amber",
69
+ icon: Annotation.IconAnnotation.get(Chess_exports.Game).pipe(Option.getOrThrow).icon,
70
+ iconHue: Annotation.IconAnnotation.get(Chess_exports.Game).pipe(Option.getOrThrow).hue ?? "white",
71
71
  blueprints: [
72
- chess_blueprint_exports.Key
72
+ chess_blueprint_default.key
73
73
  ],
74
- createObject: (props) => Effect.sync(() => Chess_exports.make(props)),
75
- addToCollectionOnCreate: true
74
+ createObject: (props) => Effect.sync(() => Chess_exports.make(props))
76
75
  }
77
76
  }
78
- }), Common.Plugin.addSchemaModule({
77
+ }), AppPlugin.addSchemaModule({
79
78
  schema: [
80
79
  Chess_exports.Game
81
80
  ]
82
- }), Common.Plugin.addSurfaceModule({
81
+ }), AppPlugin.addSurfaceModule({
83
82
  activate: ReactSurface
84
- }), Common.Plugin.addBlueprintDefinitionModule({
85
- activate: BlueprintDefinition
83
+ }), AppPlugin.addTranslationsModule({
84
+ translations
86
85
  }), Plugin.make);
87
86
  export {
88
87
  BlueprintDefinition,
89
88
  Chess_exports as Chess,
90
- chess_blueprint_exports as ChessBlueprint,
89
+ chess_blueprint_default as ChessBlueprint,
91
90
  functions_exports as ChessFunctions,
92
91
  ChessPlugin,
93
92
  Chessboard,
94
- ChessboardContainer,
95
- ExtendedChessModel,
96
93
  ReactSurface,
97
94
  meta
98
95
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/capabilities/blueprint-definition/index.ts", "../../../src/capabilities/react-surface/index.ts", "../../../src/ChessPlugin.tsx", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Common, Plugin } from '@dxos/app-framework';\nimport { type CreateObject } from '@dxos/plugin-space/types';\n\nimport { ChessBlueprint } from './blueprints';\nimport { BlueprintDefinition, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\nimport { Chess } from './types';\n\nexport const ChessPlugin = Plugin.define(meta).pipe(\n Common.Plugin.addTranslationsModule({ translations }),\n Common.Plugin.addMetadataModule({\n metadata: {\n id: Chess.Game.typename,\n metadata: {\n icon: 'ph--shield-chevron--regular',\n iconHue: 'amber',\n blueprints: [ChessBlueprint.Key],\n createObject: ((props) => Effect.sync(() => Chess.make(props))) satisfies CreateObject,\n addToCollectionOnCreate: true,\n },\n },\n }),\n Common.Plugin.addSchemaModule({ schema: [Chess.Game] }),\n Common.Plugin.addSurfaceModule({ activate: ReactSurface }),\n Common.Plugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from './meta';\nimport { Chess } from './types';\n\nexport const translations = [\n {\n 'en-US': {\n [Chess.Game.typename]: {\n 'typename label': 'Game',\n 'typename label_zero': 'Games',\n 'typename label_one': 'Game',\n 'typename label_other': 'Games',\n 'object name placeholder': 'New game',\n 'rename object label': 'Rename game',\n 'delete object label': 'Delete game',\n 'object deleted label': 'Game deleted',\n },\n [meta.id]: {\n 'plugin name': 'Chess',\n 'delete game label': 'Delete',\n 'game.checkmate label': 'Checkmate',\n 'game.stalemate label': 'Stalemate',\n 'game.draw label': 'Draw',\n 'game.check label': 'Check',\n 'select player button': 'Select player',\n 'toggle info button': 'Toggle info',\n 'close info button': 'Close info',\n 'flip board button': 'Flip board',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAIA,SAASA,kBAAkB;AAEpB,IAAMC,sBAAsBC,WAAWC,KAAK,uBAAuB,MAAM,OAAO,qCAAA,CAAA;;;ACFvF,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,eAAeC,YAAWC,KAAK,gBAAgB,MAAM,OAAO,8BAAA,CAAA;;;ACFzE,YAAYC,YAAY;AAExB,SAASC,QAAQC,cAAc;;;ACGxB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,cAAMC,KAAKC,QAAQ,GAAG;QACrB,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,qBAAqB;QACrB,wBAAwB;QACxB,wBAAwB;QACxB,mBAAmB;QACnB,oBAAoB;QACpB,wBAAwB;QACxB,sBAAsB;QACtB,qBAAqB;QACrB,qBAAqB;MACvB;IACF;EACF;;;;ADpBK,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,OAAOJ,OAAOK,sBAAsB;EAAEC;AAAa,CAAA,GACnDF,OAAOJ,OAAOO,kBAAkB;EAC9BC,UAAU;IACRC,IAAIC,cAAMC,KAAKC;IACfJ,UAAU;MACRK,MAAM;MACNC,SAAS;MACTC,YAAY;QAACC,wBAAeC;;MAC5BC,cAAe,CAACC,UAAiBC,YAAK,MAAMV,cAAMW,KAAKF,KAAAA,CAAAA;MACvDG,yBAAyB;IAC3B;EACF;AACF,CAAA,GACAlB,OAAOJ,OAAOuB,gBAAgB;EAAEC,QAAQ;IAACd,cAAMC;;AAAM,CAAA,GACrDP,OAAOJ,OAAOyB,iBAAiB;EAAEC,UAAUC;AAAa,CAAA,GACxDvB,OAAOJ,OAAO4B,6BAA6B;EAAEF,UAAUG;AAAoB,CAAA,GAC3E7B,OAAOqB,IAAI;",
6
- "names": ["Capability", "BlueprintDefinition", "Capability", "lazy", "Capability", "ReactSurface", "Capability", "lazy", "Effect", "Common", "Plugin", "translations", "Chess", "Game", "typename", "meta", "id", "ChessPlugin", "Plugin", "define", "meta", "pipe", "Common", "addTranslationsModule", "translations", "addMetadataModule", "metadata", "id", "Chess", "Game", "typename", "icon", "iconHue", "blueprints", "ChessBlueprint", "Key", "createObject", "props", "sync", "make", "addToCollectionOnCreate", "addSchemaModule", "schema", "addSurfaceModule", "activate", "ReactSurface", "addBlueprintDefinitionModule", "BlueprintDefinition"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport * as Option from 'effect/Option';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Annotation } from '@dxos/echo';\nimport { type CreateObject } from '@dxos/plugin-space/types';\n\nimport { ChessBlueprint } from './blueprints';\nimport { BlueprintDefinition, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\nimport { Chess } from './types';\n\nexport const ChessPlugin = Plugin.define(meta).pipe(\n AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),\n AppPlugin.addMetadataModule({\n metadata: {\n id: Chess.Game.typename,\n metadata: {\n icon: Annotation.IconAnnotation.get(Chess.Game).pipe(Option.getOrThrow).icon,\n iconHue: Annotation.IconAnnotation.get(Chess.Game).pipe(Option.getOrThrow).hue ?? 'white',\n blueprints: [ChessBlueprint.key],\n createObject: ((props) => Effect.sync(() => Chess.make(props))) satisfies CreateObject,\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [Chess.Game] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from './meta';\nimport { Chess } from './types';\n\nexport const translations = [\n {\n 'en-US': {\n [Chess.Game.typename]: {\n 'typename label': 'Game',\n 'typename label_zero': 'Games',\n 'typename label_one': 'Game',\n 'typename label_other': 'Games',\n 'object name placeholder': 'New game',\n 'add object label': 'Add game',\n 'rename object label': 'Rename game',\n 'delete object label': 'Delete game',\n 'object deleted label': 'Game deleted',\n },\n [meta.id]: {\n 'plugin name': 'Chess',\n 'delete game label': 'Delete',\n 'game.checkmate label': 'Checkmate',\n 'game.stalemate label': 'Stalemate',\n 'game.draw label': 'Draw',\n 'game.check label': 'Check',\n 'select player button': 'Select player',\n 'toggle info button': 'Toggle info',\n 'close info button': 'Close info',\n 'flip board button': 'Flip board',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;AAIA,SAASA,kBAAkB;AAEpB,IAAMC,sBAAsBC,WAAWC,KAAK,uBAAuB,MAAM,OAAO,qCAAA,CAAA;;;ACFvF,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,eAAeC,YAAWC,KAAK,gBAAgB,MAAM,OAAO,8BAAA,CAAA;;;ACFzE,YAAYC,YAAY;AAExB,YAAYC,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,kBAAkB;;;ACDpB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,cAAMC,KAAKC,QAAQ,GAAG;QACrB,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,qBAAqB;QACrB,wBAAwB;QACxB,wBAAwB;QACxB,mBAAmB;QACnB,oBAAoB;QACpB,wBAAwB;QACxB,sBAAsB;QACtB,qBAAqB;QACrB,qBAAqB;MACvB;IACF;EACF;;;;ADjBK,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,UAAUC,6BAA6B;EAAEC,UAAUC;AAAoB,CAAA,GACvEH,UAAUI,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,cAAMC,KAAKC;IACfJ,UAAU;MACRK,MAAMC,WAAWC,eAAeC,IAAIN,cAAMC,IAAI,EAAET,KAAYe,iBAAU,EAAEJ;MACxEK,SAASJ,WAAWC,eAAeC,IAAIN,cAAMC,IAAI,EAAET,KAAYe,iBAAU,EAAEE,OAAO;MAClFC,YAAY;QAACC,wBAAeC;;MAC5BC,cAAe,CAACC,UAAiBC,YAAK,MAAMf,cAAMgB,KAAKF,KAAAA,CAAAA;IACzD;EACF;AACF,CAAA,GACArB,UAAUwB,gBAAgB;EAAEC,QAAQ;IAAClB,cAAMC;;AAAM,CAAA,GACjDR,UAAU0B,iBAAiB;EAAExB,UAAUyB;AAAa,CAAA,GACpD3B,UAAU4B,sBAAsB;EAAEC;AAAa,CAAA,GAC/CjC,OAAO2B,IAAI;",
6
+ "names": ["Capability", "BlueprintDefinition", "Capability", "lazy", "Capability", "ReactSurface", "Capability", "lazy", "Effect", "Option", "Plugin", "AppPlugin", "Annotation", "translations", "Chess", "Game", "typename", "meta", "id", "ChessPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addBlueprintDefinitionModule", "activate", "BlueprintDefinition", "addMetadataModule", "metadata", "id", "Chess", "Game", "typename", "icon", "Annotation", "IconAnnotation", "get", "getOrThrow", "iconHue", "hue", "blueprints", "ChessBlueprint", "key", "createObject", "props", "sync", "make", "addSchemaModule", "schema", "addSurfaceModule", "ReactSurface", "addTranslationsModule", "translations"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"src/types/Chess.ts":{"bytes":5679,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":508,"imports":[{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"}],"format":"esm"},"src/blueprints/functions/create.ts":{"bytes":3827,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/move.ts":{"bytes":5507,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/play.ts":{"bytes":7206,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/print.ts":{"bytes":4017,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true}],"format":"esm"},"src/blueprints/functions/index.ts":{"bytes":1031,"imports":[{"path":"src/blueprints/functions/create.ts","kind":"import-statement","original":"./create"},{"path":"src/blueprints/functions/move.ts","kind":"import-statement","original":"./move"},{"path":"src/blueprints/functions/play.ts","kind":"import-statement","original":"./play"},{"path":"src/blueprints/functions/print.ts","kind":"import-statement","original":"./print"}],"format":"esm"},"src/blueprints/chess-blueprint.ts":{"bytes":3090,"imports":[{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/blueprints/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/blueprints/index.ts":{"bytes":747,"imports":[{"path":"src/blueprints/chess-blueprint.ts","kind":"import-statement","original":"./chess-blueprint"},{"path":"src/blueprints/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/capabilities/blueprint-definition/blueprint-definition.ts":{"bytes":2391,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/blueprints/index.ts","kind":"import-statement","original":"../../blueprints"}],"format":"esm"},"src/capabilities/blueprint-definition/index.ts":{"bytes":977,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/blueprint-definition/blueprint-definition.ts","kind":"dynamic-import","original":"./blueprint-definition"}],"format":"esm"},"src/meta.ts":{"bytes":2043,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/components/Info.tsx":{"bytes":24587,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","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":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/Chessboard.tsx":{"bytes":14269,"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","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-sfx","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/components/Info.tsx","kind":"import-statement","original":"./Info"}],"format":"esm"},"src/components/ChessboardArticle.tsx":{"bytes":7938,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/components/ChessboardContainer.tsx":{"bytes":3320,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"},{"path":"src/components/ChessboardArticle.tsx","kind":"import-statement","original":"./ChessboardArticle"}],"format":"esm"},"src/components/index.ts":{"bytes":877,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"},{"path":"src/components/ChessboardContainer.tsx","kind":"dynamic-import","original":"./ChessboardContainer"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":3585,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":909,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":602,"imports":[{"path":"src/capabilities/blueprint-definition/index.ts","kind":"import-statement","original":"./blueprint-definition"},{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":3591,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/ChessPlugin.tsx":{"bytes":4502,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/blueprints/index.ts","kind":"import-statement","original":"./blueprints"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":916,"imports":[{"path":"src/blueprints/index.ts","kind":"import-statement","original":"./blueprints"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"},"src/cli/plugin.ts":{"bytes":2783,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/cli/index.ts":{"bytes":458,"imports":[{"path":"src/cli/plugin.ts","kind":"import-statement","original":"./plugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4607},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-FO4ZNFN6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-OW6S2SRG.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-66H3V2YV.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-73BDP7UV.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-H3NUMCQ6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/blueprint-definition-P7TYXWMF.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/react-surface-VNOWFKC6.mjs","kind":"dynamic-import"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["BlueprintDefinition","Chess","ChessBlueprint","ChessFunctions","ChessPlugin","Chessboard","ChessboardContainer","ExtendedChessModel","ReactSurface","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/capabilities/blueprint-definition/index.ts":{"bytesInOutput":169},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/react-surface/index.ts":{"bytesInOutput":164},"src/ChessPlugin.tsx":{"bytesInOutput":787},"src/translations.ts":{"bytesInOutput":879}},"bytes":2801},"dist/lib/browser/blueprints/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/blueprints/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-FO4ZNFN6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-66H3V2YV.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["ChessBlueprint","ChessFunctions"],"entryPoint":"src/blueprints/index.ts","inputs":{},"bytes":282},"dist/lib/browser/cli/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1438},"dist/lib/browser/cli/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-66H3V2YV.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-H3NUMCQ6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["ChessPlugin"],"entryPoint":"src/cli/index.ts","inputs":{"src/cli/plugin.ts":{"bytesInOutput":455},"src/cli/index.ts":{"bytesInOutput":0}},"bytes":675},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-66H3V2YV.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["Chess"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":161},"dist/lib/browser/blueprint-definition-P7TYXWMF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1288},"dist/lib/browser/blueprint-definition-P7TYXWMF.mjs":{"imports":[{"path":"dist/lib/browser/chunk-FO4ZNFN6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-66H3V2YV.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/blueprint-definition/blueprint-definition.ts","inputs":{"src/capabilities/blueprint-definition/blueprint-definition.ts":{"bytesInOutput":417}},"bytes":724},"dist/lib/browser/chunk-FO4ZNFN6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11990},"dist/lib/browser/chunk-FO4ZNFN6.mjs":{"imports":[{"path":"dist/lib/browser/chunk-66H3V2YV.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true}],"exports":["chess_blueprint_exports","functions_exports"],"inputs":{"src/blueprints/chess-blueprint.ts":{"bytesInOutput":836},"src/blueprints/functions/index.ts":{"bytesInOutput":179},"src/blueprints/functions/create.ts":{"bytesInOutput":883},"src/blueprints/functions/move.ts":{"bytesInOutput":1372},"src/blueprints/functions/play.ts":{"bytesInOutput":1829},"src/blueprints/functions/print.ts":{"bytesInOutput":956},"src/blueprints/index.ts":{"bytesInOutput":0}},"bytes":6531},"dist/lib/browser/ChessboardContainer-JZ4ANG4O.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5932},"dist/lib/browser/ChessboardContainer-JZ4ANG4O.mjs":{"imports":[{"path":"dist/lib/browser/chunk-73BDP7UV.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-H3NUMCQ6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","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-mosaic","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["ChessboardContainer","default"],"entryPoint":"src/components/ChessboardContainer.tsx","inputs":{"src/components/ChessboardContainer.tsx":{"bytesInOutput":659},"src/components/ChessboardArticle.tsx":{"bytesInOutput":1841}},"bytes":2892},"dist/lib/browser/react-surface-VNOWFKC6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1718},"dist/lib/browser/react-surface-VNOWFKC6.mjs":{"imports":[{"path":"dist/lib/browser/chunk-OW6S2SRG.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-66H3V2YV.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-73BDP7UV.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-H3NUMCQ6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":722}},"bytes":1101},"dist/lib/browser/chunk-OW6S2SRG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":413},"dist/lib/browser/chunk-OW6S2SRG.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/browser/ChessboardContainer-JZ4ANG4O.mjs","kind":"dynamic-import"}],"exports":["ChessboardContainer"],"inputs":{"src/components/index.ts":{"bytesInOutput":114}},"bytes":220},"dist/lib/browser/chunk-66H3V2YV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2847},"dist/lib/browser/chunk-66H3V2YV.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["Chess_exports"],"inputs":{"src/types/Chess.ts":{"bytesInOutput":1523},"src/types/index.ts":{"bytesInOutput":0}},"bytes":1670},"dist/lib/browser/chunk-73BDP7UV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":20950},"dist/lib/browser/chunk-73BDP7UV.mjs":{"imports":[{"path":"dist/lib/browser/chunk-H3NUMCQ6.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","kind":"import-statement","external":true},{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-sfx","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","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}],"exports":["Chessboard","ExtendedChessModel"],"inputs":{"src/components/Chessboard.tsx":{"bytesInOutput":3183},"src/components/Info.tsx":{"bytesInOutput":6359}},"bytes":9777},"dist/lib/browser/chunk-H3NUMCQ6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":975},"dist/lib/browser/chunk-H3NUMCQ6.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":515}},"bytes":594},"dist/lib/browser/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
1
+ {"inputs":{"src/types/Chess.ts":{"bytes":6097,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":508,"imports":[{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"}],"format":"esm"},"src/blueprints/functions/create.ts":{"bytes":3779,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/move.ts":{"bytes":5210,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/play.ts":{"bytes":6943,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/blueprints/functions/print.ts":{"bytes":4017,"imports":[{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true}],"format":"esm"},"src/blueprints/functions/index.ts":{"bytes":1266,"imports":[{"path":"src/blueprints/functions/create.ts","kind":"import-statement","original":"./create"},{"path":"src/blueprints/functions/move.ts","kind":"import-statement","original":"./move"},{"path":"src/blueprints/functions/play.ts","kind":"import-statement","original":"./play"},{"path":"src/blueprints/functions/print.ts","kind":"import-statement","original":"./print"}],"format":"esm"},"src/blueprints/chess-blueprint.ts":{"bytes":3319,"imports":[{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/blueprints/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/blueprints/index.ts":{"bytes":785,"imports":[{"path":"src/blueprints/chess-blueprint.ts","kind":"import-statement","original":"./chess-blueprint"},{"path":"src/blueprints/functions/index.ts","kind":"import-statement","original":"./functions"}],"format":"esm"},"src/capabilities/blueprint-definition/blueprint-definition.ts":{"bytes":1972,"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":"src/blueprints/index.ts","kind":"import-statement","original":"../../blueprints"}],"format":"esm"},"src/capabilities/blueprint-definition/index.ts":{"bytes":977,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/blueprint-definition/blueprint-definition.ts","kind":"dynamic-import","original":"./blueprint-definition"}],"format":"esm"},"src/meta.ts":{"bytes":2043,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/components/Chessboard/Info.tsx":{"bytes":24681,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","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":"src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"src/components/Chessboard/types.ts":{"bytes":1304,"imports":[{"path":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"format":"esm"},"src/components/Chessboard/Chessboard.tsx":{"bytes":14374,"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-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-sfx","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","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":484,"imports":[{"path":"src/components/Chessboard/Chessboard.tsx","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/components/index.ts":{"bytes":473,"imports":[{"path":"src/components/Chessboard/index.ts","kind":"import-statement","original":"./Chessboard"}],"format":"esm"},"src/containers/ChessArticle/ChessArticle.tsx":{"bytes":8127,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"src/containers/ChessArticle/index.ts":{"bytes":656,"imports":[{"path":"src/containers/ChessArticle/ChessArticle.tsx","kind":"import-statement","original":"./ChessArticle"}],"format":"esm"},"src/containers/ChessCard/ChessCard.tsx":{"bytes":1770,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"}],"format":"esm"},"src/containers/ChessCard/index.ts":{"bytes":624,"imports":[{"path":"src/containers/ChessCard/ChessCard.tsx","kind":"import-statement","original":"./ChessCard"}],"format":"esm"},"src/containers/index.ts":{"bytes":1043,"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/capabilities/react-surface/react-surface.tsx":{"bytes":4497,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/containers/index.ts","kind":"import-statement","original":"../../containers"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":909,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":602,"imports":[{"path":"src/capabilities/blueprint-definition/index.ts","kind":"import-statement","original":"./blueprint-definition"},{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":3715,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/ChessPlugin.tsx":{"bytes":5198,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/blueprints/index.ts","kind":"import-statement","original":"./blueprints"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":943,"imports":[{"path":"src/blueprints/index.ts","kind":"import-statement","original":"./blueprints"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/components/Chessboard/index.ts","kind":"import-statement","original":"./components/Chessboard"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/ChessPlugin.tsx","kind":"import-statement","original":"./ChessPlugin"}],"format":"esm"},"src/cli/plugin.ts":{"bytes":2699,"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":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/cli/index.ts":{"bytes":458,"imports":[{"path":"src/cli/plugin.ts","kind":"import-statement","original":"./plugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5024},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-6JG4KLVU.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-JP6G6VR6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-2TJN26DN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-RGHZ5CDO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/blueprint-definition-OSNXLHYU.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/react-surface-WD7BYDFB.mjs","kind":"dynamic-import"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["BlueprintDefinition","Chess","ChessBlueprint","ChessFunctions","ChessPlugin","Chessboard","ReactSurface","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/capabilities/blueprint-definition/index.ts":{"bytesInOutput":169},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/react-surface/index.ts":{"bytesInOutput":164},"src/ChessPlugin.tsx":{"bytesInOutput":981},"src/translations.ts":{"bytesInOutput":919}},"bytes":2906},"dist/lib/browser/blueprints/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/blueprints/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-6JG4KLVU.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-2TJN26DN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["ChessBlueprint","ChessFunctions"],"entryPoint":"src/blueprints/index.ts","inputs":{},"bytes":282},"dist/lib/browser/cli/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1394},"dist/lib/browser/cli/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-2TJN26DN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-RGHZ5CDO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/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}],"exports":["ChessPlugin"],"entryPoint":"src/cli/index.ts","inputs":{"src/cli/plugin.ts":{"bytesInOutput":449},"src/cli/index.ts":{"bytesInOutput":0}},"bytes":669},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-2TJN26DN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["Chess"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":161},"dist/lib/browser/blueprint-definition-OSNXLHYU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1036},"dist/lib/browser/blueprint-definition-OSNXLHYU.mjs":{"imports":[{"path":"dist/lib/browser/chunk-6JG4KLVU.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-2TJN26DN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/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}],"exports":["default"],"entryPoint":"src/capabilities/blueprint-definition/blueprint-definition.ts","inputs":{"src/capabilities/blueprint-definition/blueprint-definition.ts":{"bytesInOutput":363}},"bytes":670},"dist/lib/browser/chunk-6JG4KLVU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12007},"dist/lib/browser/chunk-6JG4KLVU.mjs":{"imports":[{"path":"dist/lib/browser/chunk-2TJN26DN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true}],"exports":["chess_blueprint_default","functions_exports"],"inputs":{"src/blueprints/chess-blueprint.ts":{"bytesInOutput":779},"src/blueprints/functions/index.ts":{"bytesInOutput":338},"src/blueprints/functions/create.ts":{"bytesInOutput":875},"src/blueprints/functions/move.ts":{"bytesInOutput":1293},"src/blueprints/functions/play.ts":{"bytesInOutput":1754},"src/blueprints/functions/print.ts":{"bytesInOutput":956},"src/blueprints/index.ts":{"bytesInOutput":0}},"bytes":6509},"dist/lib/browser/ChessArticle-UDSL3OJ4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4666},"dist/lib/browser/ChessArticle-UDSL3OJ4.mjs":{"imports":[{"path":"dist/lib/browser/chunk-WYUTI2K4.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-JP6G6VR6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-RGHZ5CDO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/ChessArticle/index.ts","inputs":{"src/containers/ChessArticle/ChessArticle.tsx":{"bytesInOutput":1918},"src/containers/ChessArticle/index.ts":{"bytesInOutput":41}},"bytes":2308},"dist/lib/browser/ChessCard-OIRFQMOJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1135},"dist/lib/browser/ChessCard-OIRFQMOJ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-WYUTI2K4.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-JP6G6VR6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-RGHZ5CDO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/ChessCard/index.ts","inputs":{"src/containers/ChessCard/ChessCard.tsx":{"bytesInOutput":274},"src/containers/ChessCard/index.ts":{"bytesInOutput":35}},"bytes":627},"dist/lib/browser/chunk-WYUTI2K4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/chunk-WYUTI2K4.mjs":{"imports":[],"exports":[],"inputs":{"src/components/index.ts":{"bytesInOutput":0}},"bytes":44},"dist/lib/browser/chunk-JP6G6VR6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":21538},"dist/lib/browser/chunk-JP6G6VR6.mjs":{"imports":[{"path":"dist/lib/browser/chunk-RGHZ5CDO.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-gameboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui-sfx","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","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":"@dxos/react-ui-gameboard","kind":"import-statement","external":true}],"exports":["Chessboard"],"inputs":{"src/components/Chessboard/Chessboard.tsx":{"bytesInOutput":2965},"src/components/Chessboard/Info.tsx":{"bytesInOutput":6381},"src/components/Chessboard/types.ts":{"bytesInOutput":201},"src/components/Chessboard/index.ts":{"bytesInOutput":0}},"bytes":9832},"dist/lib/browser/react-surface-WD7BYDFB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2622},"dist/lib/browser/react-surface-WD7BYDFB.mjs":{"imports":[{"path":"dist/lib/browser/chunk-2TJN26DN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-RGHZ5CDO.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/browser/ChessArticle-UDSL3OJ4.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/ChessCard-OIRFQMOJ.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":930},"src/containers/index.ts":{"bytesInOutput":164}},"bytes":1461},"dist/lib/browser/chunk-2TJN26DN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3074},"dist/lib/browser/chunk-2TJN26DN.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"chess.js","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["Chess_exports"],"inputs":{"src/types/Chess.ts":{"bytesInOutput":1625},"src/types/index.ts":{"bytesInOutput":0}},"bytes":1772},"dist/lib/browser/chunk-RGHZ5CDO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":975},"dist/lib/browser/chunk-RGHZ5CDO.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":515}},"bytes":594},"dist/lib/browser/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
@@ -0,0 +1,50 @@
1
+ import {
2
+ Chess_exports
3
+ } from "./chunk-2TJN26DN.mjs";
4
+ import {
5
+ meta
6
+ } from "./chunk-RGHZ5CDO.mjs";
7
+ import "./chunk-J5LGTIGS.mjs";
8
+
9
+ // src/capabilities/react-surface/react-surface.tsx
10
+ import * as Effect from "effect/Effect";
11
+ import React from "react";
12
+ import { Capabilities, Capability } from "@dxos/app-framework";
13
+ import { Surface } from "@dxos/app-framework/ui";
14
+ import { Obj } from "@dxos/echo";
15
+
16
+ // src/containers/index.ts
17
+ import { lazy } from "react";
18
+ var ChessArticle = lazy(() => import("./ChessArticle-UDSL3OJ4.mjs"));
19
+ var ChessCard = lazy(() => import("./ChessCard-OIRFQMOJ.mjs"));
20
+
21
+ // src/capabilities/react-surface/react-surface.tsx
22
+ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
23
+ Surface.create({
24
+ id: meta.id,
25
+ role: [
26
+ "article",
27
+ "section"
28
+ ],
29
+ filter: (data) => Obj.instanceOf(Chess_exports.Game, data.subject),
30
+ component: ({ data, role }) => /* @__PURE__ */ React.createElement(ChessArticle, {
31
+ role,
32
+ subject: data.subject
33
+ })
34
+ }),
35
+ Surface.create({
36
+ id: meta.id,
37
+ role: [
38
+ "card--content"
39
+ ],
40
+ filter: (data) => Obj.instanceOf(Chess_exports.Game, data.subject),
41
+ component: ({ data, role }) => /* @__PURE__ */ React.createElement(ChessCard, {
42
+ role,
43
+ subject: data.subject
44
+ })
45
+ })
46
+ ])));
47
+ export {
48
+ react_surface_default as default
49
+ };
50
+ //# sourceMappingURL=react-surface-WD7BYDFB.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface/react-surface.tsx", "../../../src/containers/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { Obj } from '@dxos/echo';\n\nimport { ChessArticle, ChessCard } from '../../containers';\nimport { meta } from '../../meta';\nimport { Chess } from '../../types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: meta.id,\n role: ['article', 'section'],\n filter: (data): data is { subject: Chess.Game } => Obj.instanceOf(Chess.Game, data.subject),\n component: ({ data, role }) => <ChessArticle role={role} subject={data.subject} />,\n }),\n Surface.create({\n id: meta.id,\n role: ['card--content'],\n filter: (data): data is { subject: Chess.Game } => Obj.instanceOf(Chess.Game, data.subject),\n component: ({ data, role }) => <ChessCard role={role} subject={data.subject} />,\n }),\n ]),\n ),\n);\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { type ComponentType, lazy } from 'react';\n\nexport const ChessArticle: ComponentType<any> = lazy(() => import('./ChessArticle'));\nexport const ChessCard: ComponentType<any> = lazy(() => import('./ChessCard'));\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,WAAW;;;ACLpB,SAA6BC,YAAY;AAElC,IAAMC,eAAmCC,KAAK,MAAM,OAAO,6BAAA,CAAA;AAC3D,IAAMC,YAAgCD,KAAK,MAAM,OAAO,0BAAA,CAAA;;;ADQ/D,IAAA,wBAAeE,WAAWC,WAAW,MAC5BC,eACLF,WAAWG,YAAYC,aAAaC,cAAc;EAChDC,QAAQC,OAAO;IACbC,IAAIC,KAAKD;IACTE,MAAM;MAAC;MAAW;;IAClBC,QAAQ,CAACC,SAA0CC,IAAIC,WAAWC,cAAMC,MAAMJ,KAAKK,OAAO;IAC1FC,WAAW,CAAC,EAAEN,MAAMF,KAAI,MAAO,sBAAA,cAACS,cAAAA;MAAaT;MAAYO,SAASL,KAAKK;;EACzE,CAAA;EACAX,QAAQC,OAAO;IACbC,IAAIC,KAAKD;IACTE,MAAM;MAAC;;IACPC,QAAQ,CAACC,SAA0CC,IAAIC,WAAWC,cAAMC,MAAMJ,KAAKK,OAAO;IAC1FC,WAAW,CAAC,EAAEN,MAAMF,KAAI,MAAO,sBAAA,cAACU,WAAAA;MAAUV;MAAYO,SAASL,KAAKK;;EACtE,CAAA;CACD,CAAA,CAAA;",
6
+ "names": ["Effect", "React", "Capabilities", "Capability", "Surface", "Obj", "lazy", "ChessArticle", "lazy", "ChessCard", "Capability", "makeModule", "succeed", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "meta", "role", "filter", "data", "Obj", "instanceOf", "Chess", "Game", "subject", "component", "ChessArticle", "ChessCard"]
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Chess_exports
3
- } from "../chunk-66H3V2YV.mjs";
3
+ } from "../chunk-2TJN26DN.mjs";
4
4
  import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  Chess_exports as Chess