@dxos/plugin-chess 0.8.4-main.c4373fc → 0.8.4-main.c85a9c8dae
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/ChessArticle-RI2DYAO4.mjs +59 -0
- package/dist/lib/browser/ChessArticle-RI2DYAO4.mjs.map +7 -0
- package/dist/lib/browser/ChessCard-AUMESHHE.mjs +21 -0
- package/dist/lib/browser/ChessCard-AUMESHHE.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-RLA7PQBB.mjs +18 -0
- package/dist/lib/browser/blueprint-definition-RLA7PQBB.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +11 -0
- package/dist/lib/browser/{chunk-M63HYNXU.mjs → chunk-66H3V2YV.mjs} +18 -38
- package/dist/lib/browser/chunk-66H3V2YV.mjs.map +7 -0
- package/dist/lib/browser/chunk-AWDLDU43.mjs +231 -0
- package/dist/lib/browser/chunk-AWDLDU43.mjs.map +7 -0
- package/dist/lib/browser/{chunk-WSUUPPDK.mjs → chunk-H3NUMCQ6.mjs} +4 -9
- package/dist/lib/browser/chunk-H3NUMCQ6.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-KE4FN77G.mjs +276 -0
- package/dist/lib/browser/chunk-KE4FN77G.mjs.map +7 -0
- package/dist/lib/browser/chunk-WYUTI2K4.mjs +1 -0
- package/dist/lib/browser/chunk-WYUTI2K4.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +29 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +47 -76
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-7KUFGD7C.mjs +50 -0
- package/dist/lib/browser/react-surface-7KUFGD7C.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +3 -5
- package/dist/lib/node-esm/ChessArticle-6QNVYEZV.mjs +60 -0
- package/dist/lib/node-esm/ChessArticle-6QNVYEZV.mjs.map +7 -0
- package/dist/lib/node-esm/ChessCard-QK3ZMYLT.mjs +22 -0
- package/dist/lib/node-esm/ChessCard-QK3ZMYLT.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-A2FFH3Z2.mjs +19 -0
- package/dist/lib/node-esm/blueprint-definition-A2FFH3Z2.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +12 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-7XDEO6IJ.mjs +2 -0
- package/dist/lib/node-esm/chunk-7XDEO6IJ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-5C2OYL2B.mjs → chunk-F5OMIM4F.mjs} +4 -8
- package/dist/lib/node-esm/chunk-F5OMIM4F.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-7YK5RFHY.mjs → chunk-OUNGNJFP.mjs} +18 -38
- package/dist/lib/node-esm/chunk-OUNGNJFP.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-R7FXSQ2P.mjs +232 -0
- package/dist/lib/node-esm/chunk-R7FXSQ2P.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-RNPP75JE.mjs +277 -0
- package/dist/lib/node-esm/chunk-RNPP75JE.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +30 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +47 -76
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-U3HGYR5T.mjs +51 -0
- package/dist/lib/node-esm/react-surface-U3HGYR5T.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +3 -5
- package/dist/types/src/ChessPlugin.d.ts +2 -1
- package/dist/types/src/ChessPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/chess-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/chess-blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/functions/create.d.ts +15 -0
- package/dist/types/src/blueprints/functions/create.d.ts.map +1 -0
- package/dist/types/src/blueprints/functions/index.d.ts +56 -0
- package/dist/types/src/blueprints/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/functions/move.d.ts +16 -0
- package/dist/types/src/blueprints/functions/move.d.ts.map +1 -0
- package/dist/types/src/blueprints/functions/play.d.ts +17 -0
- package/dist/types/src/blueprints/functions/play.d.ts.map +1 -0
- package/dist/types/src/blueprints/functions/print.d.ts +8 -0
- package/dist/types/src/blueprints/functions/print.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +3 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/artifact-definition/artifact-definition.d.ts +12 -0
- package/dist/types/src/capabilities/artifact-definition/artifact-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/artifact-definition/index.d.ts +3 -0
- package/dist/types/src/capabilities/artifact-definition/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +6 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +1 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/cli/plugin.d.ts +3 -0
- package/dist/types/src/cli/plugin.d.ts.map +1 -0
- package/dist/types/src/components/{Chessboard.d.ts → Chessboard/Chessboard.d.ts} +3 -7
- package/dist/types/src/components/Chessboard/Chessboard.d.ts.map +1 -0
- package/dist/types/src/components/{Info.d.ts → Chessboard/Info.d.ts} +1 -1
- package/dist/types/src/components/Chessboard/Info.d.ts.map +1 -0
- package/dist/types/src/components/Chessboard/index.d.ts +2 -0
- package/dist/types/src/components/Chessboard/index.d.ts.map +1 -0
- package/dist/types/src/components/Chessboard/types.d.ts +8 -0
- package/dist/types/src/components/Chessboard/types.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +0 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/ChessArticle/ChessArticle.d.ts +6 -0
- package/dist/types/src/containers/ChessArticle/ChessArticle.d.ts.map +1 -0
- package/dist/types/src/{components/Chessboard.stories.d.ts → containers/ChessArticle/ChessArticle.stories.d.ts} +8 -6
- package/dist/types/src/containers/ChessArticle/ChessArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChessArticle/index.d.ts +3 -0
- package/dist/types/src/containers/ChessArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChessCard/ChessCard.d.ts +6 -0
- package/dist/types/src/containers/ChessCard/ChessCard.d.ts.map +1 -0
- package/dist/types/src/{components/Card.stories.d.ts → containers/ChessCard/ChessCard.stories.d.ts} +2 -9
- package/dist/types/src/containers/ChessCard/ChessCard.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChessCard/index.d.ts +3 -0
- package/dist/types/src/containers/ChessCard/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +4 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +1 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Chess.d.ts +18 -18
- package/dist/types/src/types/Chess.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +59 -43
- package/src/ChessPlugin.tsx +26 -51
- package/src/blueprints/chess-blueprint.ts +36 -0
- package/src/{functions → blueprints/functions}/create.ts +10 -4
- package/src/blueprints/functions/index.ts +17 -0
- package/src/{functions → blueprints/functions}/move.ts +15 -12
- package/src/{functions → blueprints/functions}/play.ts +11 -8
- package/src/blueprints/functions/print.ts +42 -0
- package/src/blueprints/index.ts +6 -0
- package/src/capabilities/artifact-definition/artifact-definition.ts +135 -0
- package/src/capabilities/artifact-definition/index.ts +7 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +17 -0
- package/src/capabilities/blueprint-definition/index.ts +7 -0
- package/src/capabilities/index.ts +1 -6
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +33 -0
- package/src/cli/index.ts +5 -0
- package/src/cli/plugin.ts +27 -0
- package/src/components/{Chessboard.tsx → Chessboard/Chessboard.tsx} +35 -26
- package/src/components/{Info.tsx → Chessboard/Info.tsx} +27 -17
- package/src/components/Chessboard/index.ts +5 -0
- package/src/components/Chessboard/types.ts +18 -0
- package/src/components/index.ts +1 -5
- package/src/containers/ChessArticle/ChessArticle.stories.tsx +53 -0
- package/src/containers/ChessArticle/ChessArticle.tsx +72 -0
- package/src/containers/ChessArticle/index.ts +7 -0
- package/src/containers/ChessCard/ChessCard.stories.tsx +42 -0
- package/src/containers/ChessCard/ChessCard.tsx +22 -0
- package/src/containers/ChessCard/index.ts +7 -0
- package/src/containers/index.ts +8 -0
- package/src/index.ts +2 -2
- package/src/meta.ts +5 -3
- package/src/translations.ts +1 -0
- package/src/types/Chess.ts +22 -30
- package/src/types/index.ts +0 -1
- package/dist/lib/browser/ChessboardContainer-OX6TILWD.mjs +0 -96
- package/dist/lib/browser/ChessboardContainer-OX6TILWD.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-UVRFUJYE.mjs +0 -11
- package/dist/lib/browser/chunk-E5NQWXQ7.mjs +0 -306
- package/dist/lib/browser/chunk-E5NQWXQ7.mjs.map +0 -7
- package/dist/lib/browser/chunk-KQOVCG7Z.mjs +0 -8
- package/dist/lib/browser/chunk-KQOVCG7Z.mjs.map +0 -7
- package/dist/lib/browser/chunk-M63HYNXU.mjs.map +0 -7
- package/dist/lib/browser/chunk-VA5TW6SD.mjs +0 -169
- package/dist/lib/browser/chunk-VA5TW6SD.mjs.map +0 -7
- package/dist/lib/browser/chunk-WSUUPPDK.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-OQPSVFOB.mjs +0 -25
- package/dist/lib/browser/intent-resolver-OQPSVFOB.mjs.map +0 -7
- package/dist/lib/browser/react-surface-OLAZCU2E.mjs +0 -38
- package/dist/lib/browser/react-surface-OLAZCU2E.mjs.map +0 -7
- package/dist/lib/node-esm/ChessboardContainer-PGDHBG6F.mjs +0 -97
- package/dist/lib/node-esm/ChessboardContainer-PGDHBG6F.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-Z47C4EEX.mjs +0 -12
- package/dist/lib/node-esm/chunk-5C2OYL2B.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7YK5RFHY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-C55L2OCJ.mjs +0 -10
- package/dist/lib/node-esm/chunk-C55L2OCJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-DWGG7IGH.mjs +0 -307
- package/dist/lib/node-esm/chunk-DWGG7IGH.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SW5N5XNV.mjs +0 -170
- package/dist/lib/node-esm/chunk-SW5N5XNV.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-KVGTUDXJ.mjs +0 -26
- package/dist/lib/node-esm/intent-resolver-KVGTUDXJ.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-FIKCDZ5L.mjs +0 -39
- package/dist/lib/node-esm/react-surface-FIKCDZ5L.mjs.map +0 -7
- package/dist/types/src/capabilities/artifact-definition.d.ts +0 -11
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +0 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +0 -6
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/components/Card.stories.d.ts.map +0 -1
- package/dist/types/src/components/Chessboard.d.ts.map +0 -1
- package/dist/types/src/components/Chessboard.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChessboardArticle.d.ts +0 -7
- package/dist/types/src/components/ChessboardArticle.d.ts.map +0 -1
- package/dist/types/src/components/ChessboardContainer.d.ts +0 -9
- package/dist/types/src/components/ChessboardContainer.d.ts.map +0 -1
- package/dist/types/src/components/Info.d.ts.map +0 -1
- package/dist/types/src/functions/create.d.ts +0 -14
- package/dist/types/src/functions/create.d.ts.map +0 -1
- package/dist/types/src/functions/index.d.ts +0 -4
- package/dist/types/src/functions/index.d.ts.map +0 -1
- package/dist/types/src/functions/move.d.ts +0 -8
- package/dist/types/src/functions/move.d.ts.map +0 -1
- package/dist/types/src/functions/play.d.ts +0 -9
- package/dist/types/src/functions/play.d.ts.map +0 -1
- package/dist/types/src/types/ChessAction.d.ts +0 -24
- package/dist/types/src/types/ChessAction.d.ts.map +0 -1
- package/src/capabilities/artifact-definition.ts +0 -129
- package/src/capabilities/blueprint-definition.ts +0 -36
- package/src/capabilities/intent-resolver.ts +0 -22
- package/src/capabilities/react-surface.tsx +0 -23
- package/src/components/Card.stories.tsx +0 -66
- package/src/components/Chessboard.stories.tsx +0 -49
- package/src/components/ChessboardArticle.tsx +0 -69
- package/src/components/ChessboardContainer.tsx +0 -44
- package/src/functions/index.ts +0 -7
- package/src/types/ChessAction.ts +0 -19
- /package/dist/lib/browser/{blueprint-definition-UVRFUJYE.mjs.map → blueprints/index.mjs.map} +0 -0
- /package/dist/lib/{node-esm/blueprint-definition-Z47C4EEX.mjs.map → browser/chunk-J5LGTIGS.mjs.map} +0 -0
|
@@ -1,36 +1,31 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
play_default
|
|
7
|
-
} from "./chunk-SW5N5XNV.mjs";
|
|
3
|
+
chess_blueprint_default,
|
|
4
|
+
functions_exports
|
|
5
|
+
} from "./chunk-R7FXSQ2P.mjs";
|
|
8
6
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
Chessboard
|
|
8
|
+
} from "./chunk-RNPP75JE.mjs";
|
|
11
9
|
import {
|
|
12
|
-
ChessAction_exports,
|
|
13
10
|
Chess_exports
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
Chessboard,
|
|
17
|
-
ExtendedChessModel
|
|
18
|
-
} from "./chunk-DWGG7IGH.mjs";
|
|
11
|
+
} from "./chunk-OUNGNJFP.mjs";
|
|
19
12
|
import {
|
|
20
13
|
meta
|
|
21
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-F5OMIM4F.mjs";
|
|
15
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
22
16
|
|
|
23
|
-
// src/capabilities/index.ts
|
|
24
|
-
import {
|
|
25
|
-
var BlueprintDefinition = lazy(() => import("./blueprint-definition-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
// src/capabilities/blueprint-definition/index.ts
|
|
18
|
+
import { Capability } from "@dxos/app-framework";
|
|
19
|
+
var BlueprintDefinition = Capability.lazy("BlueprintDefinition", () => import("./blueprint-definition-A2FFH3Z2.mjs"));
|
|
20
|
+
|
|
21
|
+
// src/capabilities/react-surface/index.ts
|
|
22
|
+
import { Capability as Capability2 } from "@dxos/app-framework";
|
|
23
|
+
var ReactSurface = Capability2.lazy("ReactSurface", () => import("./react-surface-U3HGYR5T.mjs"));
|
|
28
24
|
|
|
29
25
|
// src/ChessPlugin.tsx
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { defineObjectForm } from "@dxos/plugin-space/types";
|
|
26
|
+
import * as Effect from "effect/Effect";
|
|
27
|
+
import { Plugin } from "@dxos/app-framework";
|
|
28
|
+
import { AppPlugin } from "@dxos/app-toolkit";
|
|
34
29
|
|
|
35
30
|
// src/translations.ts
|
|
36
31
|
var translations = [
|
|
@@ -43,7 +38,8 @@ var translations = [
|
|
|
43
38
|
"typename label_other": "Games",
|
|
44
39
|
"object name placeholder": "New game",
|
|
45
40
|
"rename object label": "Rename game",
|
|
46
|
-
"delete object label": "Delete game"
|
|
41
|
+
"delete object label": "Delete game",
|
|
42
|
+
"object deleted label": "Game deleted"
|
|
47
43
|
},
|
|
48
44
|
[meta.id]: {
|
|
49
45
|
"plugin name": "Chess",
|
|
@@ -62,63 +58,38 @@ var translations = [
|
|
|
62
58
|
];
|
|
63
59
|
|
|
64
60
|
// src/ChessPlugin.tsx
|
|
65
|
-
var ChessPlugin =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
getIntent: () => createIntent(ChessAction_exports.Create)
|
|
90
|
-
}))
|
|
91
|
-
}),
|
|
92
|
-
defineModule({
|
|
93
|
-
id: `${meta.id}/module/react-surface`,
|
|
94
|
-
activatesOn: Events.SetupReactSurface,
|
|
95
|
-
activate: ReactSurface
|
|
96
|
-
}),
|
|
97
|
-
defineModule({
|
|
98
|
-
id: `${meta.id}/module/intent-resolver`,
|
|
99
|
-
activatesOn: Events.SetupIntentResolver,
|
|
100
|
-
activate: IntentResolver
|
|
101
|
-
}),
|
|
102
|
-
defineModule({
|
|
103
|
-
id: `${meta.id}/module/blueprint`,
|
|
104
|
-
activatesOn: Events.SetupArtifactDefinition,
|
|
105
|
-
activate: BlueprintDefinition
|
|
106
|
-
})
|
|
107
|
-
]);
|
|
61
|
+
var ChessPlugin = Plugin.define(meta).pipe(AppPlugin.addBlueprintDefinitionModule({
|
|
62
|
+
activate: BlueprintDefinition
|
|
63
|
+
}), AppPlugin.addMetadataModule({
|
|
64
|
+
metadata: {
|
|
65
|
+
id: Chess_exports.Game.typename,
|
|
66
|
+
metadata: {
|
|
67
|
+
icon: "ph--shield-chevron--regular",
|
|
68
|
+
iconHue: "amber",
|
|
69
|
+
blueprints: [
|
|
70
|
+
chess_blueprint_default.key
|
|
71
|
+
],
|
|
72
|
+
createObject: (props) => Effect.sync(() => Chess_exports.make(props)),
|
|
73
|
+
addToCollectionOnCreate: true
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}), AppPlugin.addSchemaModule({
|
|
77
|
+
schema: [
|
|
78
|
+
Chess_exports.Game
|
|
79
|
+
]
|
|
80
|
+
}), AppPlugin.addSurfaceModule({
|
|
81
|
+
activate: ReactSurface
|
|
82
|
+
}), AppPlugin.addTranslationsModule({
|
|
83
|
+
translations
|
|
84
|
+
}), Plugin.make);
|
|
108
85
|
export {
|
|
109
|
-
BLUEPRINT_KEY,
|
|
110
86
|
BlueprintDefinition,
|
|
111
87
|
Chess_exports as Chess,
|
|
112
|
-
|
|
88
|
+
chess_blueprint_default as ChessBlueprint,
|
|
89
|
+
functions_exports as ChessFunctions,
|
|
113
90
|
ChessPlugin,
|
|
114
91
|
Chessboard,
|
|
115
|
-
ChessboardContainer,
|
|
116
|
-
ExtendedChessModel,
|
|
117
|
-
IntentResolver,
|
|
118
92
|
ReactSurface,
|
|
119
|
-
|
|
120
|
-
meta,
|
|
121
|
-
move_default as move,
|
|
122
|
-
play_default as play
|
|
93
|
+
meta
|
|
123
94
|
};
|
|
124
95
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/index.ts", "../../../src/ChessPlugin.tsx", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport {
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
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 { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\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: '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 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 '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,cAAc;AACvB,SAASC,iBAAiB;;;ACEnB,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;;;;ADnBK,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,MAAM;MACNC,SAAS;MACTC,YAAY;QAACC,wBAAeC;;MAC5BC,cAAe,CAACC,UAAiBC,YAAK,MAAMV,cAAMW,KAAKF,KAAAA,CAAAA;MACvDG,yBAAyB;IAC3B;EACF;AACF,CAAA,GACAnB,UAAUoB,gBAAgB;EAAEC,QAAQ;IAACd,cAAMC;;AAAM,CAAA,GACjDR,UAAUsB,iBAAiB;EAAEpB,UAAUqB;AAAa,CAAA,GACpDvB,UAAUwB,sBAAsB;EAAEC;AAAa,CAAA,GAC/C7B,OAAOsB,IAAI;",
|
|
6
|
+
"names": ["Capability", "BlueprintDefinition", "Capability", "lazy", "Capability", "ReactSurface", "Capability", "lazy", "Effect", "Plugin", "AppPlugin", "translations", "Chess", "Game", "typename", "meta", "id", "ChessPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addBlueprintDefinitionModule", "activate", "BlueprintDefinition", "addMetadataModule", "metadata", "id", "Chess", "Game", "typename", "icon", "iconHue", "blueprints", "ChessBlueprint", "key", "createObject", "props", "sync", "make", "addToCollectionOnCreate", "addSchemaModule", "schema", "addSurfaceModule", "ReactSurface", "addTranslationsModule", "translations"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/types/Chess.ts":{"bytes":5642,"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},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":1691,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/ChessAction.ts":{"bytes":1860,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"}],"format":"esm"},"src/types/index.ts":{"bytes":682,"imports":[{"path":"src/types/Chess.ts","kind":"import-statement","original":"./Chess"},{"path":"src/types/ChessAction.ts","kind":"import-statement","original":"./ChessAction"}],"format":"esm"},"src/functions/create.ts":{"bytes":3286,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","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/functions/move.ts":{"bytes":5167,"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/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/functions/play.ts":{"bytes":6854,"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/functions","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/functions/index.ts":{"bytes":860,"imports":[{"path":"src/functions/create.ts","kind":"import-statement","original":"./create"},{"path":"src/functions/move.ts","kind":"import-statement","original":"./move"},{"path":"src/functions/play.ts","kind":"import-statement","original":"./play"}],"format":"esm"},"src/capabilities/blueprint-definition.ts":{"bytes":3906,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/blueprints","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/functions/index.ts","kind":"import-statement","original":"../functions"}],"format":"esm"},"src/capabilities/intent-resolver.ts":{"bytes":2113,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/components/Info.tsx":{"bytes":24865,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","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/react-ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/Chessboard.tsx":{"bytes":14217,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","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/react-ui-theme","kind":"import-statement","external":true},{"path":"src/components/Info.tsx","kind":"import-statement","original":"./Info"}],"format":"esm"},"src/components/ChessboardArticle.tsx":{"bytes":8160,"imports":[{"path":"@preact-signals/safe-react/tracking","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-stack","kind":"import-statement","external":true},{"path":"@dxos/react-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":3725,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/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.tsx":{"bytes":3392,"imports":[{"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/index.ts":{"bytes":1442,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/blueprint-definition.ts","kind":"import-statement","original":"./blueprint-definition"},{"path":"src/capabilities/blueprint-definition.ts","kind":"dynamic-import","original":"./blueprint-definition"},{"path":"src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":3451,"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":7439,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"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":911,"imports":[{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/functions/index.ts","kind":"import-statement","original":"./functions"},{"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"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5764},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-SW5N5XNV.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-C55L2OCJ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-7YK5RFHY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-DWGG7IGH.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-5C2OYL2B.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/blueprint-definition-Z47C4EEX.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/intent-resolver-KVGTUDXJ.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/react-surface-FIKCDZ5L.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["BLUEPRINT_KEY","BlueprintDefinition","Chess","ChessAction","ChessPlugin","Chessboard","ChessboardContainer","ExtendedChessModel","IntentResolver","ReactSurface","create","meta","move","play"],"entryPoint":"src/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":275},"src/index.ts":{"bytesInOutput":0},"src/ChessPlugin.tsx":{"bytesInOutput":1566},"src/translations.ts":{"bytesInOutput":831}},"bytes":3577},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-7YK5RFHY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-5C2OYL2B.mjs","kind":"import-statement"}],"exports":["Chess","ChessAction"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":314},"dist/lib/node-esm/blueprint-definition-Z47C4EEX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/blueprint-definition-Z47C4EEX.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-SW5N5XNV.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-7YK5RFHY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-5C2OYL2B.mjs","kind":"import-statement"}],"exports":["BLUEPRINT_KEY","default"],"entryPoint":"src/capabilities/blueprint-definition.ts","inputs":{},"bytes":372},"dist/lib/node-esm/chunk-SW5N5XNV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9573},"dist/lib/node-esm/chunk-SW5N5XNV.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-7YK5RFHY.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"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/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/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/functions","kind":"import-statement","external":true}],"exports":["BLUEPRINT_KEY","blueprint_definition_default","create_default","move_default","play_default"],"inputs":{"src/capabilities/blueprint-definition.ts":{"bytesInOutput":968},"src/functions/create.ts":{"bytesInOutput":744},"src/functions/index.ts":{"bytesInOutput":0},"src/functions/move.ts":{"bytesInOutput":1305},"src/functions/play.ts":{"bytesInOutput":1753}},"bytes":5243},"dist/lib/node-esm/intent-resolver-KVGTUDXJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1074},"dist/lib/node-esm/intent-resolver-KVGTUDXJ.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-7YK5RFHY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-5C2OYL2B.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/intent-resolver.ts","inputs":{"src/capabilities/intent-resolver.ts":{"bytesInOutput":380}},"bytes":725},"dist/lib/node-esm/ChessboardContainer-PGDHBG6F.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5888},"dist/lib/node-esm/ChessboardContainer-PGDHBG6F.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-DWGG7IGH.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-5C2OYL2B.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","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-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["ChessboardContainer","default"],"entryPoint":"src/components/ChessboardContainer.tsx","inputs":{"src/components/ChessboardContainer.tsx":{"bytesInOutput":931},"src/components/ChessboardArticle.tsx":{"bytesInOutput":2094}},"bytes":3478},"dist/lib/node-esm/react-surface-FIKCDZ5L.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1590},"dist/lib/node-esm/react-surface-FIKCDZ5L.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-C55L2OCJ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-7YK5RFHY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-DWGG7IGH.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-5C2OYL2B.mjs","kind":"import-statement"},{"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.tsx","inputs":{"src/capabilities/react-surface.tsx":{"bytesInOutput":718}},"bytes":1144},"dist/lib/node-esm/chunk-C55L2OCJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":415},"dist/lib/node-esm/chunk-C55L2OCJ.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/ChessboardContainer-PGDHBG6F.mjs","kind":"dynamic-import"}],"exports":["ChessboardContainer"],"inputs":{"src/components/index.ts":{"bytesInOutput":114}},"bytes":313},"dist/lib/node-esm/chunk-7YK5RFHY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3670},"dist/lib/node-esm/chunk-7YK5RFHY.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-5C2OYL2B.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},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true}],"exports":["ChessAction_exports","Chess_exports"],"inputs":{"src/types/Chess.ts":{"bytesInOutput":1494},"src/types/index.ts":{"bytesInOutput":0},"src/types/ChessAction.ts":{"bytesInOutput":385}},"bytes":2178},"dist/lib/node-esm/chunk-DWGG7IGH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":19974},"dist/lib/node-esm/chunk-DWGG7IGH.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-5C2OYL2B.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","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/react-ui-theme","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/display-name","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/react-ui-theme","kind":"import-statement","external":true}],"exports":["Chessboard","ExtendedChessModel"],"inputs":{"src/components/Chessboard.tsx":{"bytesInOutput":3610},"src/components/Info.tsx":{"bytesInOutput":6809}},"bytes":10746},"dist/lib/node-esm/chunk-5C2OYL2B.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":822},"dist/lib/node-esm/chunk-5C2OYL2B.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["__export","meta"],"inputs":{"src/meta.ts":{"bytesInOutput":377}},"bytes":728}}}
|
|
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":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":24668,"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":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":4505,"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"},{"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":2850,"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/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4615},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-R7FXSQ2P.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-RNPP75JE.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/blueprint-definition-A2FFH3Z2.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/react-surface-U3HGYR5T.mjs","kind":"dynamic-import"},{"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":["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":806},"src/translations.ts":{"bytesInOutput":879}},"bytes":2783},"dist/lib/node-esm/blueprints/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/blueprints/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-R7FXSQ2P.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["ChessBlueprint","ChessFunctions"],"entryPoint":"src/blueprints/index.ts","inputs":{},"bytes":374},"dist/lib/node-esm/cli/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1476},"dist/lib/node-esm/cli/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.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":486},"src/cli/index.ts":{"bytesInOutput":0}},"bytes":798},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["Chess"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":253},"dist/lib/node-esm/blueprint-definition-A2FFH3Z2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1037},"dist/lib/node-esm/blueprint-definition-A2FFH3Z2.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-R7FXSQ2P.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.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":762},"dist/lib/node-esm/chunk-R7FXSQ2P.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12008},"dist/lib/node-esm/chunk-R7FXSQ2P.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.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":6601},"dist/lib/node-esm/ChessArticle-6QNVYEZV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4667},"dist/lib/node-esm/ChessArticle-6QNVYEZV.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-7XDEO6IJ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-RNPP75JE.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.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":2400},"dist/lib/node-esm/ChessCard-QK3ZMYLT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1136},"dist/lib/node-esm/ChessCard-QK3ZMYLT.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-7XDEO6IJ.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-RNPP75JE.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.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":719},"dist/lib/node-esm/chunk-7XDEO6IJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-7XDEO6IJ.mjs":{"imports":[],"exports":[],"inputs":{"src/components/index.ts":{"bytesInOutput":0}},"bytes":136},"dist/lib/node-esm/chunk-RNPP75JE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":21533},"dist/lib/node-esm/chunk-RNPP75JE.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-F5OMIM4F.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":6376},"src/components/Chessboard/types.ts":{"bytesInOutput":201},"src/components/Chessboard/index.ts":{"bytesInOutput":0}},"bytes":9919},"dist/lib/node-esm/react-surface-U3HGYR5T.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2623},"dist/lib/node-esm/react-surface-U3HGYR5T.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-OUNGNJFP.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F5OMIM4F.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.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/node-esm/ChessArticle-6QNVYEZV.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/ChessCard-QK3ZMYLT.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":1553},"dist/lib/node-esm/chunk-OUNGNJFP.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2848},"dist/lib/node-esm/chunk-OUNGNJFP.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.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":1762},"dist/lib/node-esm/chunk-F5OMIM4F.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":977},"dist/lib/node-esm/chunk-F5OMIM4F.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":515}},"bytes":687},"dist/lib/node-esm/chunk-HSLMI22Q.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-HSLMI22Q.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":327}}}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
Chess_exports
|
|
4
|
+
} from "./chunk-OUNGNJFP.mjs";
|
|
5
|
+
import {
|
|
6
|
+
meta
|
|
7
|
+
} from "./chunk-F5OMIM4F.mjs";
|
|
8
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
9
|
+
|
|
10
|
+
// src/capabilities/react-surface/react-surface.tsx
|
|
11
|
+
import * as Effect from "effect/Effect";
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
14
|
+
import { Surface } from "@dxos/app-framework/ui";
|
|
15
|
+
import { Obj } from "@dxos/echo";
|
|
16
|
+
|
|
17
|
+
// src/containers/index.ts
|
|
18
|
+
import { lazy } from "react";
|
|
19
|
+
var ChessArticle = lazy(() => import("./ChessArticle-6QNVYEZV.mjs"));
|
|
20
|
+
var ChessCard = lazy(() => import("./ChessCard-QK3ZMYLT.mjs"));
|
|
21
|
+
|
|
22
|
+
// src/capabilities/react-surface/react-surface.tsx
|
|
23
|
+
var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
|
|
24
|
+
Surface.create({
|
|
25
|
+
id: meta.id,
|
|
26
|
+
role: [
|
|
27
|
+
"article",
|
|
28
|
+
"section"
|
|
29
|
+
],
|
|
30
|
+
filter: (data) => Obj.instanceOf(Chess_exports.Game, data.subject),
|
|
31
|
+
component: ({ data, role }) => /* @__PURE__ */ React.createElement(ChessArticle, {
|
|
32
|
+
role,
|
|
33
|
+
subject: data.subject
|
|
34
|
+
})
|
|
35
|
+
}),
|
|
36
|
+
Surface.create({
|
|
37
|
+
id: meta.id,
|
|
38
|
+
role: [
|
|
39
|
+
"card--content"
|
|
40
|
+
],
|
|
41
|
+
filter: (data) => Obj.instanceOf(Chess_exports.Game, data.subject),
|
|
42
|
+
component: ({ data, role }) => /* @__PURE__ */ React.createElement(ChessCard, {
|
|
43
|
+
role,
|
|
44
|
+
subject: data.subject
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
])));
|
|
48
|
+
export {
|
|
49
|
+
react_surface_default as default
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=react-surface-U3HGYR5T.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,11 +1,9 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
ChessAction_exports,
|
|
4
3
|
Chess_exports
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-OUNGNJFP.mjs";
|
|
5
|
+
import "../chunk-HSLMI22Q.mjs";
|
|
7
6
|
export {
|
|
8
|
-
Chess_exports as Chess
|
|
9
|
-
ChessAction_exports as ChessAction
|
|
7
|
+
Chess_exports as Chess
|
|
10
8
|
};
|
|
11
9
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChessPlugin.d.ts","sourceRoot":"","sources":["../../../src/ChessPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChessPlugin.d.ts","sourceRoot":"","sources":["../../../src/ChessPlugin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAU7C,eAAO,MAAM,WAAW,4BAkBvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chess-blueprint.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/chess-blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAyBzD,QAAA,MAAM,SAAS,EAAE,eAAe,CAAC,mBAIhC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly name?: string | undefined;
|
|
3
|
+
readonly pgn?: string | undefined;
|
|
4
|
+
readonly fen?: string | undefined;
|
|
5
|
+
}, import("@dxos/echo/Obj").OfShape<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
6
|
+
readonly name?: string | undefined;
|
|
7
|
+
readonly players?: {
|
|
8
|
+
readonly white?: string | undefined;
|
|
9
|
+
readonly black?: string | undefined;
|
|
10
|
+
} | undefined;
|
|
11
|
+
readonly pgn?: string | undefined;
|
|
12
|
+
readonly fen?: string | undefined;
|
|
13
|
+
}>, import("@dxos/functions").FunctionServices>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/create.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAYA,wBAyBG"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import Create from './create';
|
|
2
|
+
import Move from './move';
|
|
3
|
+
import Play from './play';
|
|
4
|
+
import Print from './print';
|
|
5
|
+
export { Create, Move, Play, Print };
|
|
6
|
+
export declare const ChessFunctions: {
|
|
7
|
+
Create: import("@dxos/functions").FunctionDefinition<{
|
|
8
|
+
readonly name?: string | undefined;
|
|
9
|
+
readonly pgn?: string | undefined;
|
|
10
|
+
readonly fen?: string | undefined;
|
|
11
|
+
}, import("@dxos/echo/Obj").OfShape<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
12
|
+
readonly name?: string | undefined;
|
|
13
|
+
readonly players?: {
|
|
14
|
+
readonly white?: string | undefined;
|
|
15
|
+
readonly black?: string | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
readonly pgn?: string | undefined;
|
|
18
|
+
readonly fen?: string | undefined;
|
|
19
|
+
}>, import("@dxos/functions").FunctionServices>;
|
|
20
|
+
Move: import("@dxos/functions").FunctionDefinition<{
|
|
21
|
+
readonly game: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
22
|
+
readonly name?: string | undefined;
|
|
23
|
+
readonly players?: {
|
|
24
|
+
readonly white?: string | undefined;
|
|
25
|
+
readonly black?: string | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
readonly pgn?: string | undefined;
|
|
28
|
+
readonly fen?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
readonly move: string;
|
|
31
|
+
}, {
|
|
32
|
+
readonly pgn: string;
|
|
33
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
34
|
+
Play: import("@dxos/functions").FunctionDefinition<{
|
|
35
|
+
readonly game: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
36
|
+
readonly name?: string | undefined;
|
|
37
|
+
readonly players?: {
|
|
38
|
+
readonly white?: string | undefined;
|
|
39
|
+
readonly black?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
readonly pgn?: string | undefined;
|
|
42
|
+
readonly fen?: string | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
readonly side?: "white" | "black" | "any" | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
readonly pgn: string;
|
|
47
|
+
readonly move?: string | undefined;
|
|
48
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
49
|
+
Print: import("@dxos/functions").FunctionDefinition<{
|
|
50
|
+
readonly pgn?: string | undefined;
|
|
51
|
+
readonly fen?: string | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
readonly ascii: string;
|
|
54
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAErC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK1B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly game: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
3
|
+
readonly name?: string | undefined;
|
|
4
|
+
readonly players?: {
|
|
5
|
+
readonly white?: string | undefined;
|
|
6
|
+
readonly black?: string | undefined;
|
|
7
|
+
} | undefined;
|
|
8
|
+
readonly pgn?: string | undefined;
|
|
9
|
+
readonly fen?: string | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
readonly move: string;
|
|
12
|
+
}, {
|
|
13
|
+
readonly pgn: string;
|
|
14
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=move.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/move.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAaA,wBAkCG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly game: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
3
|
+
readonly name?: string | undefined;
|
|
4
|
+
readonly players?: {
|
|
5
|
+
readonly white?: string | undefined;
|
|
6
|
+
readonly black?: string | undefined;
|
|
7
|
+
} | undefined;
|
|
8
|
+
readonly pgn?: string | undefined;
|
|
9
|
+
readonly fen?: string | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
readonly side?: "white" | "black" | "any" | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
readonly pgn: string;
|
|
14
|
+
readonly move?: string | undefined;
|
|
15
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=play.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"play.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/play.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAaA,wBA4CG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly pgn?: string | undefined;
|
|
3
|
+
readonly fen?: string | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
readonly ascii: string;
|
|
6
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=print.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/print.ts"],"names":[],"mappings":";;;;;;AAUA,wBA+BG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC"}
|