@ankhorage/zora-tabletop 0.0.9 → 0.1.1
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/CHANGELOG.md +16 -0
- package/README.md +45 -1
- package/dist/features/game-presentations/adapters/inbound/PokerTrainingTable.d.ts +16 -0
- package/dist/features/game-presentations/adapters/inbound/PokerTrainingTable.d.ts.map +1 -0
- package/dist/features/game-presentations/adapters/inbound/PokerTrainingTable.js +20 -0
- package/dist/features/game-presentations/adapters/inbound/PokerTrainingTable.js.map +1 -0
- package/dist/features/game-presentations/adapters/inbound/createPokerTrainingTableState.d.ts +13 -0
- package/dist/features/game-presentations/adapters/inbound/createPokerTrainingTableState.d.ts.map +1 -0
- package/dist/features/game-presentations/adapters/inbound/createPokerTrainingTableState.js +98 -0
- package/dist/features/game-presentations/adapters/inbound/createPokerTrainingTableState.js.map +1 -0
- package/dist/features/game-presentations/adapters/inbound/pokerTrainingTableMeta.d.ts +110 -0
- package/dist/features/game-presentations/adapters/inbound/pokerTrainingTableMeta.d.ts.map +1 -0
- package/dist/features/game-presentations/adapters/inbound/pokerTrainingTableMeta.js +81 -0
- package/dist/features/game-presentations/adapters/inbound/pokerTrainingTableMeta.js.map +1 -0
- package/dist/features/game-presentations/domain/createTabletopGameSeats.d.ts +25 -0
- package/dist/features/game-presentations/domain/createTabletopGameSeats.d.ts.map +1 -0
- package/dist/features/game-presentations/domain/createTabletopGameSeats.js +33 -0
- package/dist/features/game-presentations/domain/createTabletopGameSeats.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/meta.d.ts +145 -0
- package/dist/meta.d.ts.map +1 -0
- package/dist/meta.js +115 -0
- package/dist/meta.js.map +1 -0
- package/dist/plugin.d.ts +277 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +9 -0
- package/dist/plugin.js.map +1 -0
- package/dist/registry.d.ts +522 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +22 -0
- package/dist/registry.js.map +1 -0
- package/dist/types/gamePresentation.d.ts +16 -0
- package/dist/types/gamePresentation.d.ts.map +1 -0
- package/dist/types/gamePresentation.js +2 -0
- package/dist/types/gamePresentation.js.map +1 -0
- package/dist/types/pokerTraining.d.ts +42 -0
- package/dist/types/pokerTraining.d.ts.map +1 -0
- package/dist/types/pokerTraining.js +2 -0
- package/dist/types/pokerTraining.js.map +1 -0
- package/package.json +12 -5
- package/src/features/game-presentations/adapters/inbound/PokerTrainingTable.tsx +41 -0
- package/src/features/game-presentations/adapters/inbound/createPokerTrainingTableState.test.ts +130 -0
- package/src/features/game-presentations/adapters/inbound/createPokerTrainingTableState.ts +133 -0
- package/src/features/game-presentations/adapters/inbound/pokerTrainingTableMeta.ts +80 -0
- package/src/features/game-presentations/domain/createTabletopGameSeats.test.ts +55 -0
- package/src/features/game-presentations/domain/createTabletopGameSeats.ts +43 -0
- package/src/index.ts +20 -0
- package/src/meta.test.ts +54 -0
- package/src/meta.ts +114 -0
- package/src/plugin.ts +10 -0
- package/src/registry.ts +23 -0
- package/src/types/gamePresentation.ts +19 -0
- package/src/types/pokerTraining.ts +51 -0
package/dist/meta.d.ts
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export declare const tabletopTableMeta: {
|
|
2
|
+
readonly name: "TabletopTable";
|
|
3
|
+
readonly category: "component";
|
|
4
|
+
readonly description: "Arranges player seats and shared cards around a responsive tabletop surface.";
|
|
5
|
+
readonly directManifestNode: true;
|
|
6
|
+
readonly allowedChildren: readonly [];
|
|
7
|
+
readonly blueprint: {
|
|
8
|
+
readonly label: "Tabletop table";
|
|
9
|
+
readonly defaultProps: {
|
|
10
|
+
readonly seats: readonly [];
|
|
11
|
+
readonly centerCards: readonly [];
|
|
12
|
+
readonly shape: "oval";
|
|
13
|
+
readonly cardSize: "small";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
readonly bindings: {
|
|
17
|
+
readonly props: {
|
|
18
|
+
readonly seats: {
|
|
19
|
+
readonly label: "Seats";
|
|
20
|
+
readonly value: {
|
|
21
|
+
readonly type: "array";
|
|
22
|
+
readonly itemType: "object";
|
|
23
|
+
};
|
|
24
|
+
readonly acceptsFallback: true;
|
|
25
|
+
readonly acceptsTransforms: true;
|
|
26
|
+
};
|
|
27
|
+
readonly centerCards: {
|
|
28
|
+
readonly label: "Center cards";
|
|
29
|
+
readonly value: {
|
|
30
|
+
readonly type: "array";
|
|
31
|
+
readonly itemType: "object";
|
|
32
|
+
};
|
|
33
|
+
readonly acceptsFallback: true;
|
|
34
|
+
readonly acceptsTransforms: true;
|
|
35
|
+
};
|
|
36
|
+
readonly centerLabel: {
|
|
37
|
+
readonly label: "Center label";
|
|
38
|
+
readonly value: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
};
|
|
41
|
+
readonly acceptsFallback: true;
|
|
42
|
+
readonly acceptsTransforms: true;
|
|
43
|
+
};
|
|
44
|
+
readonly centerSublabel: {
|
|
45
|
+
readonly label: "Center sublabel";
|
|
46
|
+
readonly value: {
|
|
47
|
+
readonly type: "string";
|
|
48
|
+
};
|
|
49
|
+
readonly acceptsFallback: true;
|
|
50
|
+
readonly acceptsTransforms: true;
|
|
51
|
+
};
|
|
52
|
+
readonly disabled: {
|
|
53
|
+
readonly label: "Disabled";
|
|
54
|
+
readonly value: {
|
|
55
|
+
readonly type: "boolean";
|
|
56
|
+
};
|
|
57
|
+
readonly acceptsFallback: true;
|
|
58
|
+
readonly acceptsTransforms: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
readonly props: {
|
|
63
|
+
readonly seats: {
|
|
64
|
+
readonly type: "array";
|
|
65
|
+
readonly category: "Players";
|
|
66
|
+
readonly label: "Seats";
|
|
67
|
+
readonly default: readonly [];
|
|
68
|
+
readonly authoring: {
|
|
69
|
+
readonly authority: "instance";
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
readonly centerCards: {
|
|
73
|
+
readonly type: "array";
|
|
74
|
+
readonly category: "Table";
|
|
75
|
+
readonly label: "Center cards";
|
|
76
|
+
readonly default: readonly [];
|
|
77
|
+
readonly authoring: {
|
|
78
|
+
readonly authority: "instance";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
readonly centerLabel: {
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
readonly category: "Table";
|
|
84
|
+
readonly label: "Center label";
|
|
85
|
+
readonly authoring: {
|
|
86
|
+
readonly authority: "instance";
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
readonly centerSublabel: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
readonly category: "Table";
|
|
92
|
+
readonly label: "Center sublabel";
|
|
93
|
+
readonly authoring: {
|
|
94
|
+
readonly authority: "instance";
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
readonly shape: {
|
|
98
|
+
readonly type: "enum";
|
|
99
|
+
readonly category: "Table";
|
|
100
|
+
readonly label: "Shape";
|
|
101
|
+
readonly enum: readonly ["circle", "oval", "rounded"];
|
|
102
|
+
readonly default: "oval";
|
|
103
|
+
readonly authoring: {
|
|
104
|
+
readonly authority: "instance";
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
readonly seatCount: {
|
|
108
|
+
readonly type: "enum";
|
|
109
|
+
readonly category: "Players";
|
|
110
|
+
readonly label: "Seat count";
|
|
111
|
+
readonly enum: readonly [2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
112
|
+
readonly authoring: {
|
|
113
|
+
readonly authority: "instance";
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
readonly cardSize: {
|
|
117
|
+
readonly type: "enum";
|
|
118
|
+
readonly category: "Cards";
|
|
119
|
+
readonly label: "Card size";
|
|
120
|
+
readonly enum: readonly ["small", "medium", "large"];
|
|
121
|
+
readonly default: "small";
|
|
122
|
+
readonly authoring: {
|
|
123
|
+
readonly authority: "instance";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
readonly disabled: {
|
|
127
|
+
readonly type: "boolean";
|
|
128
|
+
readonly category: "State";
|
|
129
|
+
readonly label: "Disabled";
|
|
130
|
+
readonly default: false;
|
|
131
|
+
readonly authoring: {
|
|
132
|
+
readonly authority: "instance";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly accessibilityLabel: {
|
|
136
|
+
readonly type: "string";
|
|
137
|
+
readonly category: "Accessibility";
|
|
138
|
+
readonly label: "Accessibility label";
|
|
139
|
+
readonly authoring: {
|
|
140
|
+
readonly authority: "instance";
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../src/meta.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiHpB,CAAC"}
|
package/dist/meta.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export const tabletopTableMeta = {
|
|
2
|
+
name: 'TabletopTable',
|
|
3
|
+
category: 'component',
|
|
4
|
+
description: 'Arranges player seats and shared cards around a responsive tabletop surface.',
|
|
5
|
+
directManifestNode: true,
|
|
6
|
+
allowedChildren: [],
|
|
7
|
+
blueprint: {
|
|
8
|
+
label: 'Tabletop table',
|
|
9
|
+
defaultProps: {
|
|
10
|
+
seats: [],
|
|
11
|
+
centerCards: [],
|
|
12
|
+
shape: 'oval',
|
|
13
|
+
cardSize: 'small',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
bindings: {
|
|
17
|
+
props: {
|
|
18
|
+
seats: {
|
|
19
|
+
label: 'Seats',
|
|
20
|
+
value: { type: 'array', itemType: 'object' },
|
|
21
|
+
acceptsFallback: true,
|
|
22
|
+
acceptsTransforms: true,
|
|
23
|
+
},
|
|
24
|
+
centerCards: {
|
|
25
|
+
label: 'Center cards',
|
|
26
|
+
value: { type: 'array', itemType: 'object' },
|
|
27
|
+
acceptsFallback: true,
|
|
28
|
+
acceptsTransforms: true,
|
|
29
|
+
},
|
|
30
|
+
centerLabel: {
|
|
31
|
+
label: 'Center label',
|
|
32
|
+
value: { type: 'string' },
|
|
33
|
+
acceptsFallback: true,
|
|
34
|
+
acceptsTransforms: true,
|
|
35
|
+
},
|
|
36
|
+
centerSublabel: {
|
|
37
|
+
label: 'Center sublabel',
|
|
38
|
+
value: { type: 'string' },
|
|
39
|
+
acceptsFallback: true,
|
|
40
|
+
acceptsTransforms: true,
|
|
41
|
+
},
|
|
42
|
+
disabled: {
|
|
43
|
+
label: 'Disabled',
|
|
44
|
+
value: { type: 'boolean' },
|
|
45
|
+
acceptsFallback: true,
|
|
46
|
+
acceptsTransforms: true,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
props: {
|
|
51
|
+
seats: {
|
|
52
|
+
type: 'array',
|
|
53
|
+
category: 'Players',
|
|
54
|
+
label: 'Seats',
|
|
55
|
+
default: [],
|
|
56
|
+
authoring: { authority: 'instance' },
|
|
57
|
+
},
|
|
58
|
+
centerCards: {
|
|
59
|
+
type: 'array',
|
|
60
|
+
category: 'Table',
|
|
61
|
+
label: 'Center cards',
|
|
62
|
+
default: [],
|
|
63
|
+
authoring: { authority: 'instance' },
|
|
64
|
+
},
|
|
65
|
+
centerLabel: {
|
|
66
|
+
type: 'string',
|
|
67
|
+
category: 'Table',
|
|
68
|
+
label: 'Center label',
|
|
69
|
+
authoring: { authority: 'instance' },
|
|
70
|
+
},
|
|
71
|
+
centerSublabel: {
|
|
72
|
+
type: 'string',
|
|
73
|
+
category: 'Table',
|
|
74
|
+
label: 'Center sublabel',
|
|
75
|
+
authoring: { authority: 'instance' },
|
|
76
|
+
},
|
|
77
|
+
shape: {
|
|
78
|
+
type: 'enum',
|
|
79
|
+
category: 'Table',
|
|
80
|
+
label: 'Shape',
|
|
81
|
+
enum: ['circle', 'oval', 'rounded'],
|
|
82
|
+
default: 'oval',
|
|
83
|
+
authoring: { authority: 'instance' },
|
|
84
|
+
},
|
|
85
|
+
seatCount: {
|
|
86
|
+
type: 'enum',
|
|
87
|
+
category: 'Players',
|
|
88
|
+
label: 'Seat count',
|
|
89
|
+
enum: [2, 3, 4, 5, 6, 7, 8, 9, 10],
|
|
90
|
+
authoring: { authority: 'instance' },
|
|
91
|
+
},
|
|
92
|
+
cardSize: {
|
|
93
|
+
type: 'enum',
|
|
94
|
+
category: 'Cards',
|
|
95
|
+
label: 'Card size',
|
|
96
|
+
enum: ['small', 'medium', 'large'],
|
|
97
|
+
default: 'small',
|
|
98
|
+
authoring: { authority: 'instance' },
|
|
99
|
+
},
|
|
100
|
+
disabled: {
|
|
101
|
+
type: 'boolean',
|
|
102
|
+
category: 'State',
|
|
103
|
+
label: 'Disabled',
|
|
104
|
+
default: false,
|
|
105
|
+
authoring: { authority: 'instance' },
|
|
106
|
+
},
|
|
107
|
+
accessibilityLabel: {
|
|
108
|
+
type: 'string',
|
|
109
|
+
category: 'Accessibility',
|
|
110
|
+
label: 'Accessibility label',
|
|
111
|
+
authoring: { authority: 'instance' },
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=meta.js.map
|
package/dist/meta.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../src/meta.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,eAAe;IACrB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,8EAA8E;IAC3F,kBA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;YACf,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,UAAU;YACjB,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,eAAe;YACzB,KAAK,EAAE,qBAAqB;YAC5B,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;KACF;CACO,CAAC","sourcesContent":["export const tabletopTableMeta = {\n name: 'TabletopTable',\n category: 'component',\n description: 'Arranges player seats and shared cards around a responsive tabletop surface.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Tabletop table',\n defaultProps: {\n seats: [],\n centerCards: [],\n shape: 'oval',\n cardSize: 'small',\n },\n },\n bindings: {\n props: {\n seats: {\n label: 'Seats',\n value: { type: 'array', itemType: 'object' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n centerCards: {\n label: 'Center cards',\n value: { type: 'array', itemType: 'object' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n centerLabel: {\n label: 'Center label',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n centerSublabel: {\n label: 'Center sublabel',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n seats: {\n type: 'array',\n category: 'Players',\n label: 'Seats',\n default: [],\n authoring: { authority: 'instance' },\n },\n centerCards: {\n type: 'array',\n category: 'Table',\n label: 'Center cards',\n default: [],\n authoring: { authority: 'instance' },\n },\n centerLabel: {\n type: 'string',\n category: 'Table',\n label: 'Center label',\n authoring: { authority: 'instance' },\n },\n centerSublabel: {\n type: 'string',\n category: 'Table',\n label: 'Center sublabel',\n authoring: { authority: 'instance' },\n },\n shape: {\n type: 'enum',\n category: 'Table',\n label: 'Shape',\n enum: ['circle', 'oval', 'rounded'],\n default: 'oval',\n authoring: { authority: 'instance' },\n },\n seatCount: {\n type: 'enum',\n category: 'Players',\n label: 'Seat count',\n enum: [2, 3, 4, 5, 6, 7, 8, 9, 10],\n authoring: { authority: 'instance' },\n },\n cardSize: {\n type: 'enum',\n category: 'Cards',\n label: 'Card size',\n enum: ['small', 'medium', 'large'],\n default: 'small',\n authoring: { authority: 'instance' },\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n default: false,\n authoring: { authority: 'instance' },\n },\n accessibilityLabel: {\n type: 'string',\n category: 'Accessibility',\n label: 'Accessibility label',\n authoring: { authority: 'instance' },\n },\n },\n} as const;\n"]}
|
package/dist/plugin.d.ts
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { TabletopTable } from './components/tabletop-table';
|
|
2
|
+
import { PokerTrainingTable } from './features/game-presentations/adapters/inbound/PokerTrainingTable';
|
|
3
|
+
export declare const ZORA_TABLETOP_COMPONENT_REGISTRY: {
|
|
4
|
+
readonly PokerTrainingTable: typeof PokerTrainingTable;
|
|
5
|
+
readonly TabletopTable: typeof TabletopTable;
|
|
6
|
+
};
|
|
7
|
+
export declare const ZORA_TABLETOP_PLUGIN: {
|
|
8
|
+
readonly componentRegistry: {
|
|
9
|
+
readonly PokerTrainingTable: typeof PokerTrainingTable;
|
|
10
|
+
readonly TabletopTable: typeof TabletopTable;
|
|
11
|
+
};
|
|
12
|
+
readonly packageName: "@ankhorage/zora-tabletop";
|
|
13
|
+
readonly displayName: "ZORA Tabletop";
|
|
14
|
+
readonly componentMeta: {
|
|
15
|
+
readonly PokerTrainingTable: {
|
|
16
|
+
readonly name: "PokerTrainingTable";
|
|
17
|
+
readonly category: "pattern";
|
|
18
|
+
readonly description: "Reconstructs a complete nine-seat poker table from sparse training task data.";
|
|
19
|
+
readonly directManifestNode: true;
|
|
20
|
+
readonly allowedChildren: readonly [];
|
|
21
|
+
readonly blueprint: {
|
|
22
|
+
readonly label: "Poker training table";
|
|
23
|
+
readonly defaultProps: {
|
|
24
|
+
readonly task: {};
|
|
25
|
+
readonly defaultStackBigBlinds: 100;
|
|
26
|
+
readonly shape: "oval";
|
|
27
|
+
readonly cardSize: "small";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
readonly bindings: {
|
|
31
|
+
readonly props: {
|
|
32
|
+
readonly task: {
|
|
33
|
+
readonly label: "Poker training task";
|
|
34
|
+
readonly description: "Table-relevant fields from a poker training task.";
|
|
35
|
+
readonly value: {
|
|
36
|
+
readonly type: "object";
|
|
37
|
+
readonly fields: readonly [{
|
|
38
|
+
readonly path: "blinds";
|
|
39
|
+
readonly type: "object";
|
|
40
|
+
readonly label: "Blinds";
|
|
41
|
+
}, {
|
|
42
|
+
readonly path: "heroPosition";
|
|
43
|
+
readonly type: "string";
|
|
44
|
+
readonly label: "Hero position";
|
|
45
|
+
}, {
|
|
46
|
+
readonly path: "heroCards";
|
|
47
|
+
readonly type: "array";
|
|
48
|
+
readonly label: "Hero cards";
|
|
49
|
+
}, {
|
|
50
|
+
readonly path: "communityCards";
|
|
51
|
+
readonly type: "array";
|
|
52
|
+
readonly label: "Community cards";
|
|
53
|
+
}, {
|
|
54
|
+
readonly path: "pot";
|
|
55
|
+
readonly type: "number";
|
|
56
|
+
readonly label: "Pot";
|
|
57
|
+
}, {
|
|
58
|
+
readonly path: "players";
|
|
59
|
+
readonly type: "array";
|
|
60
|
+
readonly label: "Players";
|
|
61
|
+
}];
|
|
62
|
+
};
|
|
63
|
+
readonly acceptsFallback: true;
|
|
64
|
+
};
|
|
65
|
+
readonly disabled: {
|
|
66
|
+
readonly label: "Disabled";
|
|
67
|
+
readonly value: {
|
|
68
|
+
readonly type: "boolean";
|
|
69
|
+
};
|
|
70
|
+
readonly acceptsFallback: true;
|
|
71
|
+
readonly acceptsTransforms: true;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
readonly props: {
|
|
76
|
+
readonly defaultStackBigBlinds: {
|
|
77
|
+
readonly type: "number";
|
|
78
|
+
readonly category: "Players";
|
|
79
|
+
readonly label: "Default stack in big blinds";
|
|
80
|
+
readonly default: 100;
|
|
81
|
+
readonly authoring: {
|
|
82
|
+
readonly authority: "instance";
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
readonly shape: {
|
|
86
|
+
readonly type: "enum";
|
|
87
|
+
readonly category: "Table";
|
|
88
|
+
readonly label: "Shape";
|
|
89
|
+
readonly enum: readonly ["circle", "oval", "rounded"];
|
|
90
|
+
readonly default: "oval";
|
|
91
|
+
readonly authoring: {
|
|
92
|
+
readonly authority: "instance";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly cardSize: {
|
|
96
|
+
readonly type: "enum";
|
|
97
|
+
readonly category: "Cards";
|
|
98
|
+
readonly label: "Card size";
|
|
99
|
+
readonly enum: readonly ["small", "medium", "large"];
|
|
100
|
+
readonly default: "small";
|
|
101
|
+
readonly authoring: {
|
|
102
|
+
readonly authority: "instance";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
readonly disabled: {
|
|
106
|
+
readonly type: "boolean";
|
|
107
|
+
readonly category: "State";
|
|
108
|
+
readonly label: "Disabled";
|
|
109
|
+
readonly default: false;
|
|
110
|
+
readonly authoring: {
|
|
111
|
+
readonly authority: "instance";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
readonly accessibilityLabel: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
readonly category: "Accessibility";
|
|
117
|
+
readonly label: "Accessibility label";
|
|
118
|
+
readonly authoring: {
|
|
119
|
+
readonly authority: "instance";
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
readonly TabletopTable: {
|
|
125
|
+
readonly name: "TabletopTable";
|
|
126
|
+
readonly category: "component";
|
|
127
|
+
readonly description: "Arranges player seats and shared cards around a responsive tabletop surface.";
|
|
128
|
+
readonly directManifestNode: true;
|
|
129
|
+
readonly allowedChildren: readonly [];
|
|
130
|
+
readonly blueprint: {
|
|
131
|
+
readonly label: "Tabletop table";
|
|
132
|
+
readonly defaultProps: {
|
|
133
|
+
readonly seats: readonly [];
|
|
134
|
+
readonly centerCards: readonly [];
|
|
135
|
+
readonly shape: "oval";
|
|
136
|
+
readonly cardSize: "small";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly bindings: {
|
|
140
|
+
readonly props: {
|
|
141
|
+
readonly seats: {
|
|
142
|
+
readonly label: "Seats";
|
|
143
|
+
readonly value: {
|
|
144
|
+
readonly type: "array";
|
|
145
|
+
readonly itemType: "object";
|
|
146
|
+
};
|
|
147
|
+
readonly acceptsFallback: true;
|
|
148
|
+
readonly acceptsTransforms: true;
|
|
149
|
+
};
|
|
150
|
+
readonly centerCards: {
|
|
151
|
+
readonly label: "Center cards";
|
|
152
|
+
readonly value: {
|
|
153
|
+
readonly type: "array";
|
|
154
|
+
readonly itemType: "object";
|
|
155
|
+
};
|
|
156
|
+
readonly acceptsFallback: true;
|
|
157
|
+
readonly acceptsTransforms: true;
|
|
158
|
+
};
|
|
159
|
+
readonly centerLabel: {
|
|
160
|
+
readonly label: "Center label";
|
|
161
|
+
readonly value: {
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
};
|
|
164
|
+
readonly acceptsFallback: true;
|
|
165
|
+
readonly acceptsTransforms: true;
|
|
166
|
+
};
|
|
167
|
+
readonly centerSublabel: {
|
|
168
|
+
readonly label: "Center sublabel";
|
|
169
|
+
readonly value: {
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
};
|
|
172
|
+
readonly acceptsFallback: true;
|
|
173
|
+
readonly acceptsTransforms: true;
|
|
174
|
+
};
|
|
175
|
+
readonly disabled: {
|
|
176
|
+
readonly label: "Disabled";
|
|
177
|
+
readonly value: {
|
|
178
|
+
readonly type: "boolean";
|
|
179
|
+
};
|
|
180
|
+
readonly acceptsFallback: true;
|
|
181
|
+
readonly acceptsTransforms: true;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
readonly props: {
|
|
186
|
+
readonly seats: {
|
|
187
|
+
readonly type: "array";
|
|
188
|
+
readonly category: "Players";
|
|
189
|
+
readonly label: "Seats";
|
|
190
|
+
readonly default: readonly [];
|
|
191
|
+
readonly authoring: {
|
|
192
|
+
readonly authority: "instance";
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
readonly centerCards: {
|
|
196
|
+
readonly type: "array";
|
|
197
|
+
readonly category: "Table";
|
|
198
|
+
readonly label: "Center cards";
|
|
199
|
+
readonly default: readonly [];
|
|
200
|
+
readonly authoring: {
|
|
201
|
+
readonly authority: "instance";
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
readonly centerLabel: {
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
readonly category: "Table";
|
|
207
|
+
readonly label: "Center label";
|
|
208
|
+
readonly authoring: {
|
|
209
|
+
readonly authority: "instance";
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
readonly centerSublabel: {
|
|
213
|
+
readonly type: "string";
|
|
214
|
+
readonly category: "Table";
|
|
215
|
+
readonly label: "Center sublabel";
|
|
216
|
+
readonly authoring: {
|
|
217
|
+
readonly authority: "instance";
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
readonly shape: {
|
|
221
|
+
readonly type: "enum";
|
|
222
|
+
readonly category: "Table";
|
|
223
|
+
readonly label: "Shape";
|
|
224
|
+
readonly enum: readonly ["circle", "oval", "rounded"];
|
|
225
|
+
readonly default: "oval";
|
|
226
|
+
readonly authoring: {
|
|
227
|
+
readonly authority: "instance";
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
readonly seatCount: {
|
|
231
|
+
readonly type: "enum";
|
|
232
|
+
readonly category: "Players";
|
|
233
|
+
readonly label: "Seat count";
|
|
234
|
+
readonly enum: readonly [2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
235
|
+
readonly authoring: {
|
|
236
|
+
readonly authority: "instance";
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
readonly cardSize: {
|
|
240
|
+
readonly type: "enum";
|
|
241
|
+
readonly category: "Cards";
|
|
242
|
+
readonly label: "Card size";
|
|
243
|
+
readonly enum: readonly ["small", "medium", "large"];
|
|
244
|
+
readonly default: "small";
|
|
245
|
+
readonly authoring: {
|
|
246
|
+
readonly authority: "instance";
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
readonly disabled: {
|
|
250
|
+
readonly type: "boolean";
|
|
251
|
+
readonly category: "State";
|
|
252
|
+
readonly label: "Disabled";
|
|
253
|
+
readonly default: false;
|
|
254
|
+
readonly authoring: {
|
|
255
|
+
readonly authority: "instance";
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
readonly accessibilityLabel: {
|
|
259
|
+
readonly type: "string";
|
|
260
|
+
readonly category: "Accessibility";
|
|
261
|
+
readonly label: "Accessibility label";
|
|
262
|
+
readonly authoring: {
|
|
263
|
+
readonly authority: "instance";
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
readonly placements: readonly [{
|
|
270
|
+
readonly child: "PokerTrainingTable";
|
|
271
|
+
readonly parents: readonly ["Box", "Card", "Container", "Grid", "Panel", "Screen", "ScreenSection", "Stack"];
|
|
272
|
+
}, {
|
|
273
|
+
readonly child: "TabletopTable";
|
|
274
|
+
readonly parents: readonly ["Box", "Card", "Container", "Grid", "Panel", "Screen", "ScreenSection", "Stack"];
|
|
275
|
+
}];
|
|
276
|
+
};
|
|
277
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mEAAmE,CAAC;AAGvG,eAAO,MAAM,gCAAgC;;;CAAiD,CAAC;AAE/F,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAC"}
|
package/dist/plugin.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TabletopTable } from './components/tabletop-table';
|
|
2
|
+
import { PokerTrainingTable } from './features/game-presentations/adapters/inbound/PokerTrainingTable';
|
|
3
|
+
import { ZORA_PLUGIN_METADATA } from './registry';
|
|
4
|
+
export const ZORA_TABLETOP_COMPONENT_REGISTRY = { PokerTrainingTable, TabletopTable };
|
|
5
|
+
export const ZORA_TABLETOP_PLUGIN = {
|
|
6
|
+
...ZORA_PLUGIN_METADATA,
|
|
7
|
+
componentRegistry: ZORA_TABLETOP_COMPONENT_REGISTRY,
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mEAAmE,CAAC;AACvG,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,CAAC,MAAM,gCAAgC,GAAG,EAAE,kBAAkB,EAAE,aAAa,EAAW,CAAC;AAE/F,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,GAAG,oBAAoB;IACvB,iBAAiB,EAAE,gCAAgC;CAC3C,CAAC","sourcesContent":["import { TabletopTable } from './components/tabletop-table';\nimport { PokerTrainingTable } from './features/game-presentations/adapters/inbound/PokerTrainingTable';\nimport { ZORA_PLUGIN_METADATA } from './registry';\n\nexport const ZORA_TABLETOP_COMPONENT_REGISTRY = { PokerTrainingTable, TabletopTable } as const;\n\nexport const ZORA_TABLETOP_PLUGIN = {\n ...ZORA_PLUGIN_METADATA,\n componentRegistry: ZORA_TABLETOP_COMPONENT_REGISTRY,\n} as const;\n"]}
|