@dxos/plugin-chess 0.8.4-main.fd6878d → 0.8.4-main.fffef41

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 (122) hide show
  1. package/dist/lib/browser/{ChessboardContainer-NNIOQIRP.mjs → ChessboardContainer-5YXEM4VR.mjs} +29 -23
  2. package/dist/lib/browser/ChessboardContainer-5YXEM4VR.mjs.map +7 -0
  3. package/dist/lib/browser/blueprint-definition-FD4TL5EE.mjs +11 -0
  4. package/dist/lib/browser/blueprint-definition-FD4TL5EE.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-5DOZV3PW.mjs +294 -0
  6. package/dist/lib/browser/chunk-5DOZV3PW.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-PE3IWOFR.mjs → chunk-DUO4WTAM.mjs} +5 -5
  8. package/dist/lib/browser/chunk-DUO4WTAM.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-OBJAHY6H.mjs → chunk-FBLAVAMY.mjs} +17 -12
  10. package/dist/lib/browser/chunk-FBLAVAMY.mjs.map +7 -0
  11. package/dist/lib/browser/{chunk-PPBBLHAC.mjs → chunk-Q5TZCIH7.mjs} +2 -2
  12. package/dist/lib/browser/chunk-TIIGNOGK.mjs +169 -0
  13. package/dist/lib/browser/chunk-TIIGNOGK.mjs.map +7 -0
  14. package/dist/lib/browser/index.mjs +27 -19
  15. package/dist/lib/browser/index.mjs.map +3 -3
  16. package/dist/lib/browser/{intent-resolver-JWKKRNGG.mjs → intent-resolver-GXZN2EBT.mjs} +5 -5
  17. package/dist/lib/browser/{intent-resolver-JWKKRNGG.mjs.map → intent-resolver-GXZN2EBT.mjs.map} +1 -1
  18. package/dist/lib/browser/meta.json +1 -1
  19. package/dist/lib/browser/{react-surface-RIXD6RTS.mjs → react-surface-KTTAUHAA.mjs} +7 -7
  20. package/dist/lib/browser/{react-surface-RIXD6RTS.mjs.map → react-surface-KTTAUHAA.mjs.map} +1 -1
  21. package/dist/lib/browser/types/index.mjs +2 -2
  22. package/dist/lib/node-esm/{ChessboardContainer-FCPUV2T2.mjs → ChessboardContainer-7OQ6TOKB.mjs} +29 -23
  23. package/dist/lib/node-esm/ChessboardContainer-7OQ6TOKB.mjs.map +7 -0
  24. package/dist/lib/node-esm/blueprint-definition-O7ZM3HUF.mjs +12 -0
  25. package/dist/lib/node-esm/blueprint-definition-O7ZM3HUF.mjs.map +7 -0
  26. package/dist/lib/node-esm/chunk-F4C2HVZL.mjs +295 -0
  27. package/dist/lib/node-esm/chunk-F4C2HVZL.mjs.map +7 -0
  28. package/dist/lib/node-esm/{chunk-6OWCPDUA.mjs → chunk-KNOOJFIR.mjs} +5 -5
  29. package/dist/lib/node-esm/chunk-KNOOJFIR.mjs.map +7 -0
  30. package/dist/lib/node-esm/{chunk-LCCUF5X5.mjs → chunk-MP3A3AGA.mjs} +17 -12
  31. package/dist/lib/node-esm/chunk-MP3A3AGA.mjs.map +7 -0
  32. package/dist/lib/node-esm/chunk-RTCAAOLF.mjs +170 -0
  33. package/dist/lib/node-esm/chunk-RTCAAOLF.mjs.map +7 -0
  34. package/dist/lib/node-esm/{chunk-42EKKMOO.mjs → chunk-VVXTAVIS.mjs} +2 -2
  35. package/dist/lib/node-esm/index.mjs +27 -19
  36. package/dist/lib/node-esm/index.mjs.map +3 -3
  37. package/dist/lib/node-esm/{intent-resolver-G6XJAW6C.mjs → intent-resolver-HK5L6P6Z.mjs} +5 -5
  38. package/dist/lib/node-esm/{intent-resolver-G6XJAW6C.mjs.map → intent-resolver-HK5L6P6Z.mjs.map} +1 -1
  39. package/dist/lib/node-esm/meta.json +1 -1
  40. package/dist/lib/node-esm/{react-surface-GGRDWZJT.mjs → react-surface-VO4PSY6O.mjs} +7 -7
  41. package/dist/lib/node-esm/{react-surface-GGRDWZJT.mjs.map → react-surface-VO4PSY6O.mjs.map} +1 -1
  42. package/dist/lib/node-esm/types/index.mjs +2 -2
  43. package/dist/types/src/ChessPlugin.d.ts +1 -1
  44. package/dist/types/src/ChessPlugin.d.ts.map +1 -1
  45. package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
  46. package/dist/types/src/capabilities/blueprint-definition.d.ts +4 -1
  47. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
  48. package/dist/types/src/capabilities/index.d.ts +3 -2
  49. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  50. package/dist/types/src/capabilities/intent-resolver.d.ts +1 -1
  51. package/dist/types/src/capabilities/react-surface.d.ts +1 -1
  52. package/dist/types/src/components/Card.stories.d.ts +14 -41
  53. package/dist/types/src/components/Card.stories.d.ts.map +1 -1
  54. package/dist/types/src/components/Chessboard.d.ts +19 -13
  55. package/dist/types/src/components/Chessboard.d.ts.map +1 -1
  56. package/dist/types/src/components/Chessboard.stories.d.ts +41 -39
  57. package/dist/types/src/components/Chessboard.stories.d.ts.map +1 -1
  58. package/dist/types/src/components/ChessboardArticle.d.ts +2 -1
  59. package/dist/types/src/components/ChessboardArticle.d.ts.map +1 -1
  60. package/dist/types/src/components/{ChessboardInfo.d.ts → Info.d.ts} +7 -6
  61. package/dist/types/src/components/Info.d.ts.map +1 -0
  62. package/dist/types/src/functions/create.d.ts +14 -0
  63. package/dist/types/src/functions/create.d.ts.map +1 -0
  64. package/dist/types/src/functions/index.d.ts +1 -0
  65. package/dist/types/src/functions/index.d.ts.map +1 -1
  66. package/dist/types/src/functions/move.d.ts +3 -1
  67. package/dist/types/src/functions/move.d.ts.map +1 -1
  68. package/dist/types/src/functions/play.d.ts +2 -1
  69. package/dist/types/src/functions/play.d.ts.map +1 -1
  70. package/dist/types/src/meta.d.ts +0 -1
  71. package/dist/types/src/meta.d.ts.map +1 -1
  72. package/dist/types/src/translations.d.ts +8 -6
  73. package/dist/types/src/translations.d.ts.map +1 -1
  74. package/dist/types/src/types/Chess.d.ts +8 -5
  75. package/dist/types/src/types/Chess.d.ts.map +1 -1
  76. package/dist/types/src/types/ChessAction.d.ts +3 -2
  77. package/dist/types/src/types/ChessAction.d.ts.map +1 -1
  78. package/dist/types/tsconfig.tsbuildinfo +1 -1
  79. package/package.json +42 -35
  80. package/src/ChessPlugin.tsx +47 -46
  81. package/src/capabilities/artifact-definition.ts +3 -2
  82. package/src/capabilities/blueprint-definition.ts +9 -7
  83. package/src/capabilities/index.ts +2 -0
  84. package/src/components/Card.stories.tsx +13 -15
  85. package/src/components/Chessboard.stories.tsx +13 -14
  86. package/src/components/Chessboard.tsx +104 -28
  87. package/src/components/ChessboardArticle.tsx +32 -21
  88. package/src/components/ChessboardContainer.tsx +1 -1
  89. package/src/components/Info.tsx +236 -0
  90. package/src/functions/create.ts +32 -0
  91. package/src/functions/index.ts +1 -0
  92. package/src/functions/move.ts +16 -14
  93. package/src/functions/play.ts +25 -15
  94. package/src/meta.ts +4 -4
  95. package/src/translations.ts +8 -6
  96. package/src/types/Chess.ts +23 -19
  97. package/src/types/ChessAction.ts +1 -1
  98. package/dist/lib/browser/ChessboardContainer-NNIOQIRP.mjs.map +0 -7
  99. package/dist/lib/browser/blueprint-definition-OJQYAZGZ.mjs +0 -38
  100. package/dist/lib/browser/blueprint-definition-OJQYAZGZ.mjs.map +0 -7
  101. package/dist/lib/browser/chunk-2W3S5N6C.mjs +0 -257
  102. package/dist/lib/browser/chunk-2W3S5N6C.mjs.map +0 -7
  103. package/dist/lib/browser/chunk-EJMPHRSR.mjs +0 -94
  104. package/dist/lib/browser/chunk-EJMPHRSR.mjs.map +0 -7
  105. package/dist/lib/browser/chunk-OBJAHY6H.mjs.map +0 -7
  106. package/dist/lib/browser/chunk-PE3IWOFR.mjs.map +0 -7
  107. package/dist/lib/node-esm/ChessboardContainer-FCPUV2T2.mjs.map +0 -7
  108. package/dist/lib/node-esm/blueprint-definition-F5SGHCDA.mjs +0 -39
  109. package/dist/lib/node-esm/blueprint-definition-F5SGHCDA.mjs.map +0 -7
  110. package/dist/lib/node-esm/chunk-5APYXPBX.mjs +0 -95
  111. package/dist/lib/node-esm/chunk-5APYXPBX.mjs.map +0 -7
  112. package/dist/lib/node-esm/chunk-6OWCPDUA.mjs.map +0 -7
  113. package/dist/lib/node-esm/chunk-LCCUF5X5.mjs.map +0 -7
  114. package/dist/lib/node-esm/chunk-QAGOXJGH.mjs +0 -258
  115. package/dist/lib/node-esm/chunk-QAGOXJGH.mjs.map +0 -7
  116. package/dist/types/src/components/ChessboardInfo.d.ts.map +0 -1
  117. package/dist/types/src/components/ChessboardPlayers.d.ts +0 -8
  118. package/dist/types/src/components/ChessboardPlayers.d.ts.map +0 -1
  119. package/src/components/ChessboardInfo.tsx +0 -140
  120. package/src/components/ChessboardPlayers.tsx +0 -97
  121. /package/dist/lib/browser/{chunk-PPBBLHAC.mjs.map → chunk-Q5TZCIH7.mjs.map} +0 -0
  122. /package/dist/lib/node-esm/{chunk-42EKKMOO.mjs.map → chunk-VVXTAVIS.mjs.map} +0 -0
@@ -1,3 +1,6 @@
1
- declare const _default: () => import("@dxos/app-framework").Capability<any>[];
1
+ import { Blueprint } from '@dxos/blueprints';
2
+ import { type FunctionDefinition } from '@dxos/functions';
3
+ export declare const CHESS_BLUEPRINT_KEY = "dxos.org/blueprint/chess";
4
+ declare const _default: () => (import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<FunctionDefinition.Any[]>> | import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Blueprint.Blueprint>>)[];
2
5
  export default _default;
3
6
  //# sourceMappingURL=blueprint-definition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/blueprint-definition.ts"],"names":[],"mappings":";AAaA,wBAoBE"}
1
+ {"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/blueprint-definition.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAY,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAO1D,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;;AAE9D,wBAoBE"}
@@ -1,4 +1,5 @@
1
1
  export declare const BlueprintDefinition: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").AnyCapability[] | import("@dxos/app-framework").Capability<unknown>>>;
2
- export declare const IntentResolver: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
3
- export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
2
+ export declare const IntentResolver: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-framework").Capabilities.IntentResolver>> | import("@dxos/app-framework").AnyCapability[]>>;
3
+ export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-framework").Capabilities.ReactSurface>> | import("@dxos/app-framework").AnyCapability[]>>;
4
+ export * from './blueprint-definition';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB,gJAA+C,CAAC;AAChF,eAAO,MAAM,cAAc,kMAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,gMAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB,gJAA+C,CAAC;AAChF,eAAO,MAAM,cAAc,8OAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,4OAAwC,CAAC;AAElE,cAAc,wBAAwB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { Capabilities } from '@dxos/app-framework';
2
- declare const _default: () => import("@dxos/app-framework").Capability<Capabilities.IntentResolver>;
2
+ declare const _default: () => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Capabilities.IntentResolver>>;
3
3
  export default _default;
4
4
  //# sourceMappingURL=intent-resolver.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import { Capabilities } from '@dxos/app-framework';
2
- declare const _default: () => import("@dxos/app-framework").Capability<Capabilities.ReactSurface>;
2
+ declare const _default: () => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Capabilities.ReactSurface>>;
3
3
  export default _default;
4
4
  //# sourceMappingURL=react-surface.d.ts.map
@@ -1,49 +1,22 @@
1
- import '@dxos-theme';
2
- import { type Meta } from '@storybook/react-vite';
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
3
  import { Chess } from '../types';
4
4
  type DefaultStoryProps = {
5
5
  role: 'card--popover' | 'card--intrinsic' | 'card--extrinsic';
6
6
  game: Chess.Game;
7
7
  };
8
- declare const storybook: Meta<DefaultStoryProps>;
9
- export default storybook;
10
- export declare const Popover: {
11
- args: {
12
- role: "card--popover";
13
- game: import("@dxos/live-object").Live<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
14
- name?: string | undefined;
15
- players?: {
16
- white?: string | undefined;
17
- black?: string | undefined;
18
- } | undefined;
19
- pgn: string;
20
- }>;
21
- };
22
- };
23
- export declare const Intrinsic: {
24
- args: {
25
- role: "card--intrinsic";
26
- game: import("@dxos/live-object").Live<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
27
- name?: string | undefined;
28
- players?: {
29
- white?: string | undefined;
30
- black?: string | undefined;
31
- } | undefined;
32
- pgn: string;
33
- }>;
34
- };
35
- };
36
- export declare const Extrinsic: {
37
- args: {
38
- role: "card--extrinsic";
39
- game: import("@dxos/live-object").Live<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
40
- name?: string | undefined;
41
- players?: {
42
- white?: string | undefined;
43
- black?: string | undefined;
44
- } | undefined;
45
- pgn: string;
46
- }>;
8
+ declare const meta: {
9
+ title: string;
10
+ render: ({ role, game }: DefaultStoryProps) => React.JSX.Element;
11
+ decorators: import("@storybook/react").Decorator[];
12
+ parameters: {
13
+ layout: string;
47
14
  };
15
+ tags: string[];
48
16
  };
17
+ export default meta;
18
+ type Story = StoryObj<typeof meta>;
19
+ export declare const Popover: Story;
20
+ export declare const Intrinsic: Story;
21
+ export declare const Extrinsic: Story;
49
22
  //# sourceMappingURL=Card.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Card.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAiB,MAAM,uBAAuB,CAAC;AAOjE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,eAAe,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;IAC9D,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAgBtC,CAAC;AAEF,eAAe,SAAS,CAAC;AAQzB,eAAO,MAAM,OAAO;;;;;;;;;;;;CAKH,CAAC;AAElB,eAAO,MAAM,SAAS;;;;;;;;;;;;CAKL,CAAC;AAElB,eAAO,MAAM,SAAS;;;;;;;;;;;;CAKL,CAAC"}
1
+ {"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Card.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,eAAe,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;IAC9D,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;;;CAgByB,CAAC;AAEpC,eAAe,IAAI,CAAC;AAMpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC"}
@@ -1,32 +1,38 @@
1
1
  import React, { type PropsWithChildren } from 'react';
2
2
  import { type ThemedClassName } from '@dxos/react-ui';
3
- import { ChessModel, type ChessboardProps as NativeChessboardProps } from '@dxos/react-ui-gameboard';
3
+ import { ChessModel, type ChessboardProps as NaturalChessboardProps } from '@dxos/react-ui-gameboard';
4
4
  import { type Chess } from '../types';
5
- import { type ChessboardInfoProps } from './ChessboardInfo';
6
- import { type ChessboardPlayersProps } from './ChessboardPlayers';
5
+ import { type InfoProps } from './Info';
6
+ export interface ChessboardController {
7
+ setMoveNumber(index: number): void;
8
+ }
7
9
  export declare class ExtendedChessModel extends ChessModel {
8
10
  readonly object: Chess.Game;
9
11
  constructor(object: Chess.Game);
10
12
  }
11
- type ChessboardRootProps = PropsWithChildren<{
13
+ type RootProps = PropsWithChildren<{
12
14
  game: Chess.Game;
13
15
  }>;
14
16
  type Role = 'card--popover' | 'card--intrinsic' | 'card--extrinsic';
15
- type ChessboardContentProps = ThemedClassName<PropsWithChildren<{
17
+ type ContentProps = ThemedClassName<PropsWithChildren<{
16
18
  role?: Role;
17
19
  }>>;
20
+ type BoardProps = NaturalChessboardProps;
18
21
  export declare const Chessboard: {
19
- Root: ({ game, children }: ChessboardRootProps) => React.JSX.Element;
20
- Content: ({ classNames, children, role }: ChessboardContentProps) => React.JSX.Element;
21
- Board: React.MemoExoticComponent<({ orientation, showLabels, debug, rows, cols, classNames }: NativeChessboardProps) => React.JSX.Element>;
22
- Info: {
23
- ({ classNames, orientation, onOrientationChange, onClose, ...props }: ChessboardInfoProps): React.JSX.Element;
22
+ Root: React.ForwardRefExoticComponent<{
23
+ game: Chess.Game;
24
+ } & {
25
+ children?: React.ReactNode | undefined;
26
+ } & React.RefAttributes<ChessboardController>>;
27
+ Content: ({ classNames, children, role }: ContentProps) => React.JSX.Element;
28
+ Board: {
29
+ (props: BoardProps): React.JSX.Element;
24
30
  displayName: string;
25
31
  };
26
- Players: {
27
- ({ classNames, children }: ChessboardPlayersProps): React.JSX.Element | null;
32
+ Info: {
33
+ ({ classNames, orientation, onOrientationChange, onClose, ...props }: InfoProps): React.JSX.Element;
28
34
  displayName: string;
29
35
  };
30
36
  };
31
- export type { ChessboardRootProps, ChessboardContentProps, NativeChessboardProps as ChessboardBoardProps, ChessboardInfoProps, ChessboardPlayersProps, };
37
+ export type { RootProps as ChessboardRootProps, ContentProps as ChessboardContentProps, BoardProps as ChessboardBoardProps, InfoProps as ChessboardInfoProps, };
32
38
  //# sourceMappingURL=Chessboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chessboard.d.ts","sourceRoot":"","sources":["../../../../src/components/Chessboard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAmC,MAAM,OAAO,CAAC;AAGvF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EACL,UAAU,EAIV,KAAK,eAAe,IAAI,qBAAqB,EAC9C,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAErF,qBAAa,kBAAmB,SAAQ,UAAU;IACpC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI;gBAAlB,MAAM,EAAE,KAAK,CAAC,IAAI;CAGxC;AAMD,KAAK,mBAAmB,GAAG,iBAAiB,CAAC;IAC3C,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;CAClB,CAAC,CAAC;AAgCH,KAAK,IAAI,GAAG,eAAe,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;AAEpE,KAAK,sBAAsB,GAAG,eAAe,CAAC,iBAAiB,CAAC;IAAE,IAAI,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC,CAAC;AAkBlF,eAAO,MAAM,UAAU;+BAlDqB,mBAAmB;8CAkCJ,sBAAsB;;;;;;;;;;CAsBhF,CAAC;AAEF,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,IAAI,oBAAoB,EAC7C,mBAAmB,EACnB,sBAAsB,GACvB,CAAC"}
1
+ {"version":3,"file":"Chessboard.d.ts","sourceRoot":"","sources":["../../../../src/components/Chessboard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EACZ,KAAK,iBAAiB,EAOvB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EACL,UAAU,EAIV,KAAK,eAAe,IAAI,sBAAsB,EAG/C,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,WAAW,oBAAoB;IACnC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED,qBAAa,kBAAmB,SAAQ,UAAU;IACpC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI;gBAAlB,MAAM,EAAE,KAAK,CAAC,IAAI;CAGxC;AAMD,KAAK,SAAS,GAAG,iBAAiB,CAAC;IACjC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;CAClB,CAAC,CAAC;AAkDH,KAAK,IAAI,GAAG,eAAe,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;AAEpE,KAAK,YAAY,GAAG,eAAe,CAAC,iBAAiB,CAAC;IAAE,IAAI,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC,CAAC;AAkBxE,KAAK,UAAU,GAAG,sBAAsB,CAAC;AA8CzC,eAAO,MAAM,UAAU;;cArHf,KAAK,CAAC,IAAI;;;;8CAuD+B,YAAY;;gBAkBvC,UAAU;;;;;;;CAiD/B,CAAC;AAEF,YAAY,EACV,SAAS,IAAI,mBAAmB,EAChC,YAAY,IAAI,sBAAsB,EACtC,UAAU,IAAI,oBAAoB,EAClC,SAAS,IAAI,mBAAmB,GACjC,CAAC"}
@@ -1,42 +1,44 @@
1
- import '@dxos-theme';
2
- import { type Meta } from '@storybook/react-vite';
3
- import { ChessboardArticle } from './ChessboardArticle';
4
- declare const meta: Meta<typeof ChessboardArticle>;
5
- export default meta;
6
- export declare const Default: {
7
- args: {
8
- game: import("@dxos/live-object").Live<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
9
- name?: string | undefined;
10
- players?: {
11
- white?: string | undefined;
12
- black?: string | undefined;
13
- } | undefined;
14
- pgn: string;
15
- }>;
16
- };
17
- };
18
- export declare const EndGame: {
19
- args: {
20
- game: import("@dxos/live-object").Live<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
21
- name?: string | undefined;
22
- players?: {
23
- white?: string | undefined;
24
- black?: string | undefined;
25
- } | undefined;
26
- pgn: string;
27
- }>;
28
- };
29
- };
30
- export declare const Promption: {
31
- args: {
32
- game: import("@dxos/live-object").Live<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
33
- name?: string | undefined;
34
- players?: {
35
- white?: string | undefined;
36
- black?: string | undefined;
37
- } | undefined;
38
- pgn: string;
39
- }>;
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import { Chess } from '../types';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ game, role }: {
6
+ game: Chess.Game;
7
+ role?: string;
8
+ }) => import("react").JSX.Element;
9
+ decorators: import("@storybook/react").Decorator[];
10
+ parameters: {
11
+ layout: string;
12
+ translations: [{
13
+ readonly 'en-US': {
14
+ readonly [Chess.Game.typename]: {
15
+ readonly 'typename label': "Game";
16
+ readonly 'typename label_zero': "Games";
17
+ readonly 'typename label_one': "Game";
18
+ readonly 'typename label_other': "Games";
19
+ readonly 'object name placeholder': "New game";
20
+ readonly 'rename object label': "Rename game";
21
+ readonly 'delete object label': "Delete game";
22
+ };
23
+ readonly [meta.id]: {
24
+ readonly 'plugin name': "Chess";
25
+ readonly 'delete game label': "Delete";
26
+ readonly 'game.checkmate label': "Checkmate";
27
+ readonly 'game.stalemate label': "Stalemate";
28
+ readonly 'game.draw label': "Draw";
29
+ readonly 'game.check label': "Check";
30
+ readonly 'select player button': "Select player";
31
+ readonly 'toggle info button': "Toggle info";
32
+ readonly 'close info button': "Close info";
33
+ readonly 'flip board button': "Flip board";
34
+ };
35
+ };
36
+ }];
40
37
  };
41
38
  };
39
+ export default meta;
40
+ type Story = StoryObj<typeof meta>;
41
+ export declare const Default: Story;
42
+ export declare const EndGame: Story;
43
+ export declare const Promption: Story;
42
44
  //# sourceMappingURL=Chessboard.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chessboard.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Chessboard.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAiB,MAAM,uBAAuB,CAAC;AAQjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAOxC,CAAC;AAIF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO;;;;;;;;;;;CAIH,CAAC;AAElB,eAAO,MAAM,OAAO;;;;;;;;;;;CAMH,CAAC;AAElB,eAAO,MAAM,SAAS;;;;;;;;;;;CAML,CAAC"}
1
+ {"version":3,"file":"Chessboard.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Chessboard.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMjE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,QAAA,MAAM,IAAI;;;;YAKF,CAAC;;;;;;;yBAZqB,CAAQ,KAAK,CAAC,IAAI,CAAC,QAE7C,CAAC;;;;;;;;;yBASD,CAAQ,IACZ,CAAI,EAAD,CAAC;;;;;;;;;;;;;;;CAGsC,CAAC;AAE3C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { type Chess } from '../types';
3
- export declare const ChessboardArticle: ({ game }: {
3
+ export declare const ChessboardArticle: ({ game, role }: {
4
4
  game: Chess.Game;
5
+ role?: string;
5
6
  }) => React.JSX.Element;
6
7
  //# sourceMappingURL=ChessboardArticle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChessboardArticle.d.ts","sourceRoot":"","sources":["../../../../src/components/ChessboardArticle.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAItC,eAAO,MAAM,iBAAiB,GAAI,UAAU;IAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAA;CAAE,sBAwC/D,CAAC"}
1
+ {"version":3,"file":"ChessboardArticle.d.ts","sourceRoot":"","sources":["../../../../src/components/ChessboardArticle.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAQ7D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAItC,eAAO,MAAM,iBAAiB,GAAI,gBAAgB;IAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,sBAmDpF,CAAC"}
@@ -1,20 +1,21 @@
1
- import React from 'react';
1
+ import { type JSX } from 'react';
2
2
  import { type ThemedClassName } from '@dxos/react-ui';
3
3
  import { type Player } from '@dxos/react-ui-gameboard';
4
4
  import { type ExtendedChessModel } from './Chessboard';
5
- export type ChessboardInfoProps = ThemedClassName<{
5
+ export type InfoProps = ThemedClassName<{
6
6
  orientation?: Player;
7
7
  onOrientationChange?: (orientation: Player) => void;
8
8
  onClose?: () => void;
9
- } & Pick<HistoryProps, 'min' | 'max'>>;
10
- export declare const ChessboardInfo: {
11
- ({ classNames, orientation, onOrientationChange, onClose, ...props }: ChessboardInfoProps): React.JSX.Element;
9
+ } & Pick<HistoryProps, 'min' | 'max' | 'onSelect'>>;
10
+ export declare const Info: {
11
+ ({ classNames, orientation, onOrientationChange, onClose, ...props }: InfoProps): JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  type HistoryProps = ThemedClassName<{
15
15
  model: ExtendedChessModel;
16
16
  min?: number;
17
17
  max?: number;
18
+ onSelect?: (index: number) => void;
18
19
  }>;
19
20
  export {};
20
- //# sourceMappingURL=ChessboardInfo.d.ts.map
21
+ //# sourceMappingURL=Info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../../src/components/Info.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,GAAG,EAAsD,MAAM,OAAO,CAAC;AAI5F,OAAO,EAA4B,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAChG,OAAO,EAAE,KAAK,MAAM,EAAuB,MAAM,0BAA0B,CAAC;AAK5E,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,MAAM,SAAS,GAAG,eAAe,CACrC;IACE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,IAAI,CAAC,YAAY,EAAE,KAAK,GAAG,KAAK,GAAG,UAAU,CAAC,CACnD,CAAC;AAEF,eAAO,MAAM,IAAI;0EAAmF,SAAS;;CA0D5G,CAAC;AAQF,KAAK,YAAY,GAAG,eAAe,CAAC;IAClC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ declare const _default: import("@dxos/functions").FunctionDefinition<{
2
+ readonly pgn?: string | undefined;
3
+ readonly fen?: string | undefined;
4
+ }, import("@dxos/live-object").Live<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
5
+ name?: string | undefined;
6
+ players?: {
7
+ white?: string | undefined;
8
+ black?: string | undefined;
9
+ } | undefined;
10
+ pgn?: string | undefined;
11
+ fen?: string | undefined;
12
+ }>, import("@dxos/functions").FunctionServices>;
13
+ export default _default;
14
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/functions/create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,wBAoBG"}
@@ -1,3 +1,4 @@
1
+ export { default as create } from './create';
1
2
  export { default as move } from './move';
2
3
  export { default as play } from './play';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,6 +1,8 @@
1
1
  declare const _default: import("@dxos/functions").FunctionDefinition<{
2
2
  readonly id: string;
3
3
  readonly move: string;
4
- }, boolean>;
4
+ }, {
5
+ readonly pgn: string;
6
+ }, import("@dxos/functions").FunctionServices>;
5
7
  export default _default;
6
8
  //# sourceMappingURL=move.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"move.d.ts","sourceRoot":"","sources":["../../../../src/functions/move.ts"],"names":[],"mappings":";;;;AAYA,wBA8BG"}
1
+ {"version":3,"file":"move.d.ts","sourceRoot":"","sources":["../../../../src/functions/move.ts"],"names":[],"mappings":";;;;;;AAaA,wBA+BG"}
@@ -1,8 +1,9 @@
1
1
  declare const _default: import("@dxos/functions").FunctionDefinition<{
2
2
  readonly id: string;
3
+ readonly side?: "white" | "black" | "any" | undefined;
3
4
  }, {
4
5
  readonly pgn: string;
5
6
  readonly move?: string | undefined;
6
- }>;
7
+ }, import("@dxos/functions").FunctionServices>;
7
8
  export default _default;
8
9
  //# sourceMappingURL=play.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"play.d.ts","sourceRoot":"","sources":["../../../../src/functions/play.ts"],"names":[],"mappings":";;;;;;AAaA,wBA+BG"}
1
+ {"version":3,"file":"play.d.ts","sourceRoot":"","sources":["../../../../src/functions/play.ts"],"names":[],"mappings":";;;;;;;AAaA,wBAyCG"}
@@ -1,4 +1,3 @@
1
1
  import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const CHESS_PLUGIN = "dxos.org/plugin/chess";
3
2
  export declare const meta: PluginMeta;
4
3
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,eAAO,MAAM,YAAY,0BAA0B,CAAC;AAEpD,eAAO,MAAM,IAAI,EAAE,UASlB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,eAAO,MAAM,IAAI,EAAE,UAWlB,CAAC"}
@@ -10,16 +10,18 @@ export declare const translations: [{
10
10
  readonly 'object name placeholder': "New game";
11
11
  readonly 'rename object label': "Rename game";
12
12
  readonly 'delete object label': "Delete game";
13
- readonly 'button toggle info': "Toggle info";
14
- readonly 'button flip': "Flip board";
15
13
  };
16
14
  readonly [meta.id]: {
17
15
  readonly 'plugin name': "Chess";
18
16
  readonly 'delete game label': "Delete";
19
- readonly 'game.checkmate': "Checkmate";
20
- readonly 'game.stalemate': "Stalemate";
21
- readonly 'game.draw': "Draw";
22
- readonly 'game.check': "Check";
17
+ readonly 'game.checkmate label': "Checkmate";
18
+ readonly 'game.stalemate label': "Stalemate";
19
+ readonly 'game.draw label': "Draw";
20
+ readonly 'game.check label': "Check";
21
+ readonly 'select player button': "Select player";
22
+ readonly 'toggle info button': "Toggle info";
23
+ readonly 'close info button': "Close info";
24
+ readonly 'flip board button': "Flip board";
23
25
  };
24
26
  };
25
27
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;;;;;;;;;;UAUpB;QACD,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;UAOR;;EAGwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;;;;;;;;UAQpB;QACD,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;UAWR;;EAGwB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
2
  import { Type } from '@dxos/echo';
3
3
  export declare const Game: Type.obj<Schema.Struct<{
4
4
  name: Schema.optional<typeof Schema.String>;
@@ -6,19 +6,22 @@ export declare const Game: Type.obj<Schema.Struct<{
6
6
  white: Schema.optional<Schema.SchemaClass<string, string, never>>;
7
7
  black: Schema.optional<Schema.SchemaClass<string, string, never>>;
8
8
  }>>>;
9
- pgn: Schema.SchemaClass<string, string, never>;
9
+ pgn: Schema.optional<Schema.SchemaClass<string, string, never>>;
10
+ fen: Schema.optional<Schema.SchemaClass<string, string, never>>;
10
11
  }>>;
11
12
  export interface Game extends Schema.Schema.Type<typeof Game> {
12
13
  }
13
- export declare const makeGame: ({ name, pgn }?: {
14
+ export declare const makeGame: ({ name, pgn, fen }?: {
14
15
  name?: string;
15
16
  pgn?: string;
16
- }) => import("@dxos/live-object").Live<Type.OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
17
+ fen?: string;
18
+ }) => import("@dxos/live-object").Live<Type.OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
17
19
  name?: string | undefined;
18
20
  players?: {
19
21
  white?: string | undefined;
20
22
  black?: string | undefined;
21
23
  } | undefined;
22
- pgn: string;
24
+ pgn?: string | undefined;
25
+ fen?: string | undefined;
23
26
  }>;
24
27
  //# sourceMappingURL=Chess.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chess.d.ts","sourceRoot":"","sources":["../../../../src/types/Chess.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAO,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC,eAAO,MAAM,IAAI;;;;;;;GAyBhB,CAAC;AAEF,MAAM,WAAW,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;CAAG;AAEhE,eAAO,MAAM,QAAQ,GAAI,gBAAe;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO;;;;;;;EAe3E,CAAC"}
1
+ {"version":3,"file":"Chess.d.ts","sourceRoot":"","sources":["../../../../src/types/Chess.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAO,IAAI,EAAE,MAAM,YAAY,CAAC;AAKvC,eAAO,MAAM,IAAI;;;;;;;;GA2BhB,CAAC;AAEF,MAAM,WAAW,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;CAAG;AAEhE,eAAO,MAAM,QAAQ,GAAI,qBAAoB;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO;;;;;;;;EAgB9F,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
2
  declare const Create_base: Schema.TaggedClass<Create, `${string}/action/create`, {
3
3
  readonly _tag: Schema.tag<`${string}/action/create`>;
4
4
  } & {
@@ -13,7 +13,8 @@ declare const Create_base: Schema.TaggedClass<Create, `${string}/action/create`,
13
13
  white: Schema.optional<Schema.SchemaClass<string, string, never>>;
14
14
  black: Schema.optional<Schema.SchemaClass<string, string, never>>;
15
15
  }>>>;
16
- pgn: Schema.SchemaClass<string, string, never>;
16
+ pgn: Schema.optional<Schema.SchemaClass<string, string, never>>;
17
+ fen: Schema.optional<Schema.SchemaClass<string, string, never>>;
17
18
  }>>;
18
19
  }>;
19
20
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"ChessAction.d.ts","sourceRoot":"","sources":["../../../../src/types/ChessAction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;AAMhC,qBAAa,MAAO,SAAQ,WAQ1B;CAAG"}
1
+ {"version":3,"file":"ChessAction.d.ts","sourceRoot":"","sources":["../../../../src/types/ChessAction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;AAMxC,qBAAa,MAAO,SAAQ,WAQ1B;CAAG"}