@ankhorage/zora 25.11.1 → 26.0.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 +12 -0
- package/README.md +1 -4
- package/dist/capabilities/index.js +65 -41
- package/dist/capabilities/index.js.map +3 -3
- package/dist/features/chess/adapters/inbound/ChessBoard.d.ts +1 -1
- package/dist/features/chess/adapters/inbound/ChessBoard.d.ts.map +1 -1
- package/dist/features/chess/adapters/inbound/ChessBoard.js +130 -83
- package/dist/features/chess/adapters/inbound/ChessBoard.js.map +1 -1
- package/dist/features/chess/meta.d.ts +97 -72
- package/dist/features/chess/meta.d.ts.map +1 -1
- package/dist/features/chess/meta.js +64 -40
- package/dist/features/chess/meta.js.map +1 -1
- package/dist/features/chess/public.d.ts +1 -7
- package/dist/features/chess/public.d.ts.map +1 -1
- package/dist/features/chess/public.js +0 -6
- package/dist/features/chess/public.js.map +1 -1
- package/dist/features/chess/utils/createChessBoardCellPressHandler.d.ts +6 -0
- package/dist/features/chess/utils/createChessBoardCellPressHandler.d.ts.map +1 -0
- package/dist/features/chess/utils/createChessBoardCellPressHandler.js +17 -0
- package/dist/features/chess/utils/createChessBoardCellPressHandler.js.map +1 -0
- package/dist/features/chess/utils/createChessBoardCells.d.ts +12 -0
- package/dist/features/chess/utils/createChessBoardCells.d.ts.map +1 -0
- package/dist/features/chess/utils/createChessBoardCells.js +28 -0
- package/dist/features/chess/utils/createChessBoardCells.js.map +1 -0
- package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphController.js +2 -3
- package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphController.js.map +1 -1
- package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.js +3 -1
- package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.js.map +1 -1
- package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphGeometryKey.d.ts +5 -5
- package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphGeometryKey.d.ts.map +1 -1
- package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphGeometryKey.js +13 -7
- package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphGeometryKey.js.map +1 -1
- package/dist/readerFree.d.ts +2 -2
- package/dist/readerFree.d.ts.map +1 -1
- package/dist/readerFree.js +1 -1
- package/dist/readerFree.js.map +1 -1
- package/dist/types/authoring.d.ts +2 -1
- package/dist/types/authoring.d.ts.map +1 -1
- package/dist/types/authoring.js.map +1 -1
- package/dist/types/chess.d.ts +27 -20
- package/dist/types/chess.d.ts.map +1 -1
- package/dist/types/chess.js.map +1 -1
- package/package.json +34 -94
- package/src/features/chess/adapters/inbound/ChessBoard.tsx +263 -112
- package/src/features/chess/meta.ts +64 -40
- package/src/features/chess/public.test.tsx +77 -228
- package/src/features/chess/public.ts +2 -9
- package/src/features/chess/utils/createChessBoardCellPressHandler.ts +30 -0
- package/src/features/chess/utils/createChessBoardCells.ts +54 -0
- package/src/features/chessTabletopOwnership.test.ts +3 -7
- package/src/features/graph-view/adapters/inbound/web-artifact/createGraphController.test.ts +1 -2
- package/src/features/graph-view/adapters/inbound/web-artifact/createGraphController.ts +2 -3
- package/src/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.test.ts +45 -0
- package/src/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.ts +3 -1
- package/src/features/graph-view/adapters/inbound/web-artifact/getGraphGeometryKey.test.ts +65 -3
- package/src/features/graph-view/adapters/inbound/web-artifact/getGraphGeometryKey.ts +13 -7
- package/src/features/registry/componentMeta.test.ts +12 -1
- package/src/readerFree.ts +3 -15
- package/src/types/authoring.ts +2 -1
- package/src/types/chess.ts +28 -21
- package/web-dist/chunks/Accordion-91sjb3zh.js +453 -0
- package/web-dist/components/chess-board/ChessBoard.js +2 -1
- package/web-dist/components/graph-view/GraphView.js +878 -317
- package/web-dist/components/opening-book/OpeningBook.js +2 -1
- package/web-dist/manifest.json +8 -4
- package/dist/features/chess/utils/chessEngine.d.ts +0 -8
- package/dist/features/chess/utils/chessEngine.d.ts.map +0 -1
- package/dist/features/chess/utils/chessEngine.js +0 -71
- package/dist/features/chess/utils/chessEngine.js.map +0 -1
- package/dist/features/chess/utils/chessSquares.d.ts +0 -4
- package/dist/features/chess/utils/chessSquares.d.ts.map +0 -1
- package/dist/features/chess/utils/chessSquares.js +0 -3
- package/dist/features/chess/utils/chessSquares.js.map +0 -1
- package/dist/features/chess/utils/createBoardSquares.d.ts +0 -4
- package/dist/features/chess/utils/createBoardSquares.d.ts.map +0 -1
- package/dist/features/chess/utils/createBoardSquares.js +0 -9
- package/dist/features/chess/utils/createBoardSquares.js.map +0 -1
- package/dist/features/chess/utils/getSquareFile.d.ts +0 -4
- package/dist/features/chess/utils/getSquareFile.d.ts.map +0 -1
- package/dist/features/chess/utils/getSquareFile.js +0 -5
- package/dist/features/chess/utils/getSquareFile.js.map +0 -1
- package/dist/features/chess/utils/getSquareRank.d.ts +0 -4
- package/dist/features/chess/utils/getSquareRank.d.ts.map +0 -1
- package/dist/features/chess/utils/getSquareRank.js +0 -5
- package/dist/features/chess/utils/getSquareRank.js.map +0 -1
- package/dist/features/chess/utils/isLightSquare.d.ts +0 -4
- package/dist/features/chess/utils/isLightSquare.d.ts.map +0 -1
- package/dist/features/chess/utils/isLightSquare.js +0 -6
- package/dist/features/chess/utils/isLightSquare.js.map +0 -1
- package/src/features/chess/utils/chessEngine.test.ts +0 -35
- package/src/features/chess/utils/chessEngine.ts +0 -83
- package/src/features/chess/utils/chessSquares.ts +0 -6
- package/src/features/chess/utils/createBoardSquares.ts +0 -13
- package/src/features/chess/utils/getSquareFile.ts +0 -6
- package/src/features/chess/utils/getSquareRank.ts +0 -6
- package/src/features/chess/utils/isLightSquare.ts +0 -8
- package/web-dist/chunks/Accordion-xcm1qc39.js +0 -3813
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 26.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 89e0e4b: Preserve GraphView node double-press hit targets by preventing class-only selection or hover updates from triggering a layout between native pointer presses.
|
|
8
|
+
|
|
9
|
+
## 26.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- c8fa749: Refactor ChessBoard into a configurable GridView-backed presentation component with caller-owned cells, dimensions, and move intents. Remove FEN parsing, move validation, and chess.js from ZORA.
|
|
14
|
+
|
|
3
15
|
## 25.11.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# @ankhorage/zora
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.
|
|
9
9
|
|
|
@@ -64,10 +64,8 @@ This package contains 6 additional examples. See the generated documentation for
|
|
|
64
64
|
- [Export graph](././paradox/diagrams/export-graph.mmd)
|
|
65
65
|
- [createPokerTrainingTableState sequence](././paradox/diagrams/sequences/create-poker-training-table-state.mmd)
|
|
66
66
|
- [createZoraThemeConfig sequence](././paradox/diagrams/sequences/create-zora-theme-config.mmd)
|
|
67
|
-
- [getLegalTargets sequence](././paradox/diagrams/sequences/get-legal-targets.mmd)
|
|
68
67
|
- [GridInteractions sequence](././paradox/diagrams/sequences/grid-interactions.mmd)
|
|
69
68
|
- [GridView sequence](././paradox/diagrams/sequences/grid-view.mmd)
|
|
70
|
-
- [readChessPieces sequence](././paradox/diagrams/sequences/read-chess-pieces.mmd)
|
|
71
69
|
- [resolveAvatarInitials sequence](././paradox/diagrams/sequences/resolve-avatar-initials.mmd)
|
|
72
70
|
- [resolveExplorerSelection sequence](././paradox/diagrams/sequences/resolve-explorer-selection.mmd)
|
|
73
71
|
- [resolveGridRulerMarks sequence](././paradox/diagrams/sequences/resolve-grid-ruler-marks.mmd)
|
|
@@ -75,7 +73,6 @@ This package contains 6 additional examples. See the generated documentation for
|
|
|
75
73
|
- [resolveOAuthProviderLabel sequence](././paradox/diagrams/sequences/resolve-oauth-provider-label.mmd)
|
|
76
74
|
- [resolveTimeGridVisibleIntervals sequence](././paradox/diagrams/sequences/resolve-time-grid-visible-intervals.mmd)
|
|
77
75
|
- [SelectionProvider sequence](././paradox/diagrams/sequences/selection-provider.mmd)
|
|
78
|
-
- [tryMove sequence](././paradox/diagrams/sequences/try-move.mmd)
|
|
79
76
|
- [useZoraTheme sequence](././paradox/diagrams/sequences/use-zora-theme.mmd)
|
|
80
77
|
- [validateField sequence](././paradox/diagrams/sequences/validate-field.mmd)
|
|
81
78
|
- [validateFields sequence](././paradox/diagrams/sequences/validate-fields.mmd)
|
|
@@ -1557,42 +1557,31 @@ var chessBoardMeta = {
|
|
|
1557
1557
|
allowedChildren: [],
|
|
1558
1558
|
blueprint: {
|
|
1559
1559
|
label: "Chess board",
|
|
1560
|
-
defaultProps: {
|
|
1560
|
+
defaultProps: {
|
|
1561
|
+
columns: 8,
|
|
1562
|
+
pieces: [],
|
|
1563
|
+
orientation: "white",
|
|
1564
|
+
rows: 8,
|
|
1565
|
+
showCoordinates: true
|
|
1566
|
+
}
|
|
1561
1567
|
},
|
|
1562
1568
|
events: {
|
|
1563
|
-
|
|
1564
|
-
label: "
|
|
1565
|
-
eventType: "chess.
|
|
1566
|
-
payloadFields: [
|
|
1569
|
+
cellPress: {
|
|
1570
|
+
label: "Cell press",
|
|
1571
|
+
eventType: "chess.cellPress",
|
|
1572
|
+
payloadFields: [
|
|
1573
|
+
{ path: "column", type: "number", label: "Column" },
|
|
1574
|
+
{ path: "row", type: "number", label: "Row" }
|
|
1575
|
+
]
|
|
1567
1576
|
},
|
|
1568
1577
|
moveAttempt: {
|
|
1569
1578
|
label: "Move attempt",
|
|
1570
1579
|
eventType: "chess.moveAttempt",
|
|
1571
1580
|
payloadFields: [
|
|
1572
|
-
{ path: "from", type: "
|
|
1573
|
-
{ path: "
|
|
1574
|
-
{ path: "
|
|
1575
|
-
|
|
1576
|
-
},
|
|
1577
|
-
legalMove: {
|
|
1578
|
-
label: "Legal move",
|
|
1579
|
-
eventType: "chess.legalMove",
|
|
1580
|
-
payloadFields: [
|
|
1581
|
-
{ path: "from", type: "string", label: "From" },
|
|
1582
|
-
{ path: "to", type: "string", label: "To" },
|
|
1583
|
-
{ path: "fen", type: "string", label: "Position" },
|
|
1584
|
-
{ path: "san", type: "string", label: "SAN" },
|
|
1585
|
-
{ path: "lan", type: "string", label: "LAN" },
|
|
1586
|
-
{ path: "promotion", type: "string", label: "Promotion" }
|
|
1587
|
-
]
|
|
1588
|
-
},
|
|
1589
|
-
invalidMove: {
|
|
1590
|
-
label: "Invalid move",
|
|
1591
|
-
eventType: "chess.invalidMove",
|
|
1592
|
-
payloadFields: [
|
|
1593
|
-
{ path: "from", type: "string", label: "From" },
|
|
1594
|
-
{ path: "to", type: "string", label: "To" },
|
|
1595
|
-
{ path: "promotion", type: "string", label: "Promotion" }
|
|
1581
|
+
{ path: "from.column", type: "number", label: "From column" },
|
|
1582
|
+
{ path: "from.row", type: "number", label: "From row" },
|
|
1583
|
+
{ path: "to.column", type: "number", label: "To column" },
|
|
1584
|
+
{ path: "to.row", type: "number", label: "To row" }
|
|
1596
1585
|
]
|
|
1597
1586
|
}
|
|
1598
1587
|
},
|
|
@@ -1604,19 +1593,46 @@ var chessBoardMeta = {
|
|
|
1604
1593
|
acceptsFallback: true,
|
|
1605
1594
|
acceptsTransforms: true
|
|
1606
1595
|
},
|
|
1596
|
+
selectedCell: {
|
|
1597
|
+
label: "Selected cell",
|
|
1598
|
+
value: {
|
|
1599
|
+
type: "object",
|
|
1600
|
+
fields: [
|
|
1601
|
+
{ path: "column", type: "number", label: "Column" },
|
|
1602
|
+
{ path: "row", type: "number", label: "Row" }
|
|
1603
|
+
]
|
|
1604
|
+
},
|
|
1605
|
+
acceptsFallback: true,
|
|
1606
|
+
acceptsTransforms: true
|
|
1607
|
+
},
|
|
1607
1608
|
legalTargets: {
|
|
1608
1609
|
label: "Legal targets",
|
|
1609
|
-
value: {
|
|
1610
|
+
value: {
|
|
1611
|
+
type: "array",
|
|
1612
|
+
itemType: "object",
|
|
1613
|
+
fields: [
|
|
1614
|
+
{ path: "[].column", type: "number", label: "Column" },
|
|
1615
|
+
{ path: "[].row", type: "number", label: "Row" }
|
|
1616
|
+
]
|
|
1617
|
+
},
|
|
1610
1618
|
acceptsFallback: true,
|
|
1611
1619
|
acceptsTransforms: true
|
|
1612
1620
|
}
|
|
1613
1621
|
}
|
|
1614
1622
|
},
|
|
1615
1623
|
props: {
|
|
1616
|
-
|
|
1617
|
-
type: "
|
|
1618
|
-
category: "
|
|
1619
|
-
label: "
|
|
1624
|
+
columns: {
|
|
1625
|
+
type: "number",
|
|
1626
|
+
category: "Board",
|
|
1627
|
+
label: "Columns",
|
|
1628
|
+
default: 8,
|
|
1629
|
+
authoring: { authority: "instance" }
|
|
1630
|
+
},
|
|
1631
|
+
rows: {
|
|
1632
|
+
type: "number",
|
|
1633
|
+
category: "Board",
|
|
1634
|
+
label: "Rows",
|
|
1635
|
+
default: 8,
|
|
1620
1636
|
authoring: { authority: "instance" }
|
|
1621
1637
|
},
|
|
1622
1638
|
pieces: {
|
|
@@ -1634,10 +1650,14 @@ var chessBoardMeta = {
|
|
|
1634
1650
|
default: "white",
|
|
1635
1651
|
authoring: { authority: "instance" }
|
|
1636
1652
|
},
|
|
1637
|
-
|
|
1638
|
-
type: "
|
|
1653
|
+
selectedCell: {
|
|
1654
|
+
type: "object",
|
|
1639
1655
|
category: "Board",
|
|
1640
|
-
label: "Selected
|
|
1656
|
+
label: "Selected cell",
|
|
1657
|
+
itemSchema: [
|
|
1658
|
+
{ key: "column", schema: { type: "number", category: "Cell" } },
|
|
1659
|
+
{ key: "row", schema: { type: "number", category: "Cell" } }
|
|
1660
|
+
],
|
|
1641
1661
|
authoring: { authority: "instance" }
|
|
1642
1662
|
},
|
|
1643
1663
|
legalTargets: {
|
|
@@ -1645,6 +1665,10 @@ var chessBoardMeta = {
|
|
|
1645
1665
|
category: "Board",
|
|
1646
1666
|
label: "Legal targets",
|
|
1647
1667
|
default: [],
|
|
1668
|
+
itemSchema: [
|
|
1669
|
+
{ key: "column", schema: { type: "number", category: "Cell" } },
|
|
1670
|
+
{ key: "row", schema: { type: "number", category: "Cell" } }
|
|
1671
|
+
],
|
|
1648
1672
|
authoring: { authority: "instance" }
|
|
1649
1673
|
},
|
|
1650
1674
|
showCoordinates: {
|
|
@@ -1654,11 +1678,11 @@ var chessBoardMeta = {
|
|
|
1654
1678
|
default: false,
|
|
1655
1679
|
authoring: { authority: "instance" }
|
|
1656
1680
|
},
|
|
1657
|
-
|
|
1681
|
+
resizable: {
|
|
1658
1682
|
type: "boolean",
|
|
1659
1683
|
category: "Behavior",
|
|
1660
|
-
label: "
|
|
1661
|
-
default:
|
|
1684
|
+
label: "Resizable",
|
|
1685
|
+
default: false,
|
|
1662
1686
|
authoring: { authority: "instance" }
|
|
1663
1687
|
},
|
|
1664
1688
|
disabled: {
|
|
@@ -6163,4 +6187,4 @@ export {
|
|
|
6163
6187
|
CAPABILITIES
|
|
6164
6188
|
};
|
|
6165
6189
|
|
|
6166
|
-
//# debugId=
|
|
6190
|
+
//# debugId=45D3B5BB1C0C641664756E2164756E21
|