@ankhorage/zora 27.6.1 → 27.7.0
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 +7 -0
- package/README.md +1 -1
- package/dist/capabilities/index.js +94 -5
- package/dist/capabilities/index.js.map +5 -5
- package/dist/constants/authoring.d.ts +4 -3
- package/dist/constants/authoring.d.ts.map +1 -1
- package/dist/constants/authoring.js +2 -0
- package/dist/constants/authoring.js.map +1 -1
- package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
- package/dist/features/card/cardMeta.d.ts +1 -1
- package/dist/features/card/mediaCardMeta.d.ts +1 -1
- package/dist/features/card/postCardMeta.d.ts +1 -1
- package/dist/features/chat/messageBubbleMeta.d.ts +1 -1
- package/dist/features/data-table/adapters/inbound/DataTable.d.ts.map +1 -1
- package/dist/features/data-table/adapters/inbound/DataTable.js +90 -18
- package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -1
- package/dist/features/data-table/dataTableMeta.d.ts +63 -0
- package/dist/features/data-table/dataTableMeta.d.ts.map +1 -1
- package/dist/features/data-table/dataTableMeta.js +42 -0
- package/dist/features/data-table/dataTableMeta.js.map +1 -1
- package/dist/features/data-table/public.d.ts +1 -1
- package/dist/features/data-table/public.d.ts.map +1 -1
- package/dist/features/data-table/public.js.map +1 -1
- package/dist/features/dialog/dialogMeta.d.ts +2 -2
- package/dist/features/gradient/gradientMeta.d.ts +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
- package/dist/features/layout/gridMeta.d.ts +1 -1
- package/dist/features/layout/screenMeta.d.ts +1 -1
- package/dist/features/layout/scrollViewMeta.d.ts +1 -1
- package/dist/features/layout/viewMeta.d.ts +1 -1
- package/dist/features/list/flatListMeta.d.ts +1 -1
- package/dist/features/list/sectionListMeta.d.ts +1 -1
- package/dist/features/reader/meta.d.ts +2 -2
- package/dist/features/registry/bindableComponentMeta.d.ts +42 -3
- package/dist/features/registry/bindableComponentMeta.d.ts.map +1 -1
- package/dist/features/registry/bindableComponentMeta.js +27 -10
- package/dist/features/registry/bindableComponentMeta.js.map +1 -1
- package/dist/features/scanner/meta.d.ts +2 -2
- package/dist/features/section/screenSectionMeta.d.ts +1 -1
- package/dist/features/surface/surfaceMeta.d.ts +1 -1
- package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
- package/dist/features/timeline/meta.d.ts +79 -3
- package/dist/features/timeline/meta.d.ts.map +1 -1
- package/dist/features/timeline/meta.js +50 -3
- package/dist/features/timeline/meta.js.map +1 -1
- package/dist/features/timeline/public.d.ts +1 -1
- package/dist/features/timeline/public.d.ts.map +1 -1
- package/dist/features/timeline/public.js.map +1 -1
- package/dist/readerFree.d.ts +2 -2
- package/dist/readerFree.d.ts.map +1 -1
- package/dist/readerFree.js.map +1 -1
- package/dist/types/data-table.d.ts +37 -0
- package/dist/types/data-table.d.ts.map +1 -1
- package/dist/types/data-table.js.map +1 -1
- package/dist/types/timeline.d.ts +16 -0
- package/dist/types/timeline.d.ts.map +1 -1
- package/dist/types/timeline.js.map +1 -1
- package/package.json +50 -1
- package/src/constants/authoring.ts +2 -0
- package/src/features/data-table/adapters/inbound/DataTable.test.tsx +127 -6
- package/src/features/data-table/adapters/inbound/DataTable.tsx +149 -24
- package/src/features/data-table/dataTableMeta.test.ts +23 -0
- package/src/features/data-table/dataTableMeta.ts +42 -0
- package/src/features/data-table/public.ts +4 -0
- package/src/features/registry/bindableComponentMeta.ts +27 -10
- package/src/features/registry/componentMeta.test.ts +45 -0
- package/src/features/timeline/manifest.test.tsx +115 -0
- package/src/features/timeline/meta.ts +50 -3
- package/src/features/timeline/public.ts +6 -1
- package/src/readerFree.ts +10 -1
- package/src/types/data-table.ts +45 -0
- package/src/types/timeline.ts +18 -0
- package/web-dist/components/data-table/DataTable.d.ts +1 -1
- package/web-dist/components/data-table/DataTable.dependency-3.d.ts +1 -0
- package/web-dist/components/data-table/DataTable.js +128 -17
- package/web-dist/components/data-table/DataTable.types-0.d.ts +42 -0
- package/web-dist/components/data-table/index.d.ts +1 -1
- package/web-dist/components/timeline/Timeline.d.ts +1 -1
- package/web-dist/components/timeline/Timeline.types-0.d.ts +19 -0
- package/web-dist/components/timeline/index.d.ts +1 -1
- package/web-dist/manifest.json +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 27.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3df7c3f: Add portable DataTable rich-cell descriptors, controlled selection events, and row activation events for AppManifest consumers.
|
|
8
|
+
- a9ae155: Expose Timeline as a serializable AppManifest component with portable event items and media markers.
|
|
9
|
+
|
|
3
10
|
## 27.6.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# ZORA
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Provides opinionated React Native and React Native Web UI components, theme primitives, registries, and reader surfaces built on @ankhorage/surface.
|
|
9
9
|
|
|
@@ -68,6 +68,7 @@ var CONTAINER_ALLOWED_CHILDREN = [
|
|
|
68
68
|
"ThemeModeToggle",
|
|
69
69
|
"TextInput",
|
|
70
70
|
"TimePicker",
|
|
71
|
+
"Timeline",
|
|
71
72
|
"Form",
|
|
72
73
|
"Card",
|
|
73
74
|
"EmptyState",
|
|
@@ -2026,6 +2027,16 @@ var dataTableMeta = {
|
|
|
2026
2027
|
{ path: "columnId", type: "string" },
|
|
2027
2028
|
{ path: "direction", type: "string" }
|
|
2028
2029
|
]
|
|
2030
|
+
},
|
|
2031
|
+
selectionChange: {
|
|
2032
|
+
label: "Selection change",
|
|
2033
|
+
eventType: "dataTable.selectionChange",
|
|
2034
|
+
payloadFields: [{ path: "selectedRowIds", type: "unknown", label: "Selected row IDs" }]
|
|
2035
|
+
},
|
|
2036
|
+
rowActivate: {
|
|
2037
|
+
label: "Activate row",
|
|
2038
|
+
eventType: "dataTable.rowActivate",
|
|
2039
|
+
payloadFields: [{ path: "rowId", type: "string", label: "Row ID" }]
|
|
2029
2040
|
}
|
|
2030
2041
|
},
|
|
2031
2042
|
bindings: {
|
|
@@ -2039,6 +2050,29 @@ var dataTableMeta = {
|
|
|
2039
2050
|
]
|
|
2040
2051
|
},
|
|
2041
2052
|
acceptsFallback: true
|
|
2053
|
+
},
|
|
2054
|
+
selectedRowIds: {
|
|
2055
|
+
label: "Selected row IDs",
|
|
2056
|
+
description: "Controlled stable row identities selected with the checkbox column.",
|
|
2057
|
+
value: { type: "array" },
|
|
2058
|
+
acceptsFallback: true,
|
|
2059
|
+
acceptsTransforms: true
|
|
2060
|
+
}
|
|
2061
|
+
},
|
|
2062
|
+
events: {
|
|
2063
|
+
selectionChange: {
|
|
2064
|
+
label: "Selection change",
|
|
2065
|
+
payload: {
|
|
2066
|
+
eventType: "dataTable.selectionChange",
|
|
2067
|
+
fields: [{ path: "selectedRowIds", type: "unknown", label: "Selected row IDs" }]
|
|
2068
|
+
}
|
|
2069
|
+
},
|
|
2070
|
+
rowActivate: {
|
|
2071
|
+
label: "Activate row",
|
|
2072
|
+
payload: {
|
|
2073
|
+
eventType: "dataTable.rowActivate",
|
|
2074
|
+
fields: [{ path: "rowId", type: "string", label: "Row ID" }]
|
|
2075
|
+
}
|
|
2042
2076
|
}
|
|
2043
2077
|
}
|
|
2044
2078
|
},
|
|
@@ -2058,9 +2092,18 @@ var dataTableMeta = {
|
|
|
2058
2092
|
},
|
|
2059
2093
|
{ key: "width", schema: { type: "number", category: "Layout" } },
|
|
2060
2094
|
{ key: "minWidth", schema: { type: "number", category: "Layout" } },
|
|
2061
|
-
{ key: "sortable", schema: { type: "boolean", category: "Behavior" } }
|
|
2095
|
+
{ key: "sortable", schema: { type: "boolean", category: "Behavior" } },
|
|
2096
|
+
{
|
|
2097
|
+
key: "cell",
|
|
2098
|
+
schema: {
|
|
2099
|
+
type: "object",
|
|
2100
|
+
category: "Content",
|
|
2101
|
+
label: "Portable cell presentation"
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2062
2104
|
]
|
|
2063
2105
|
},
|
|
2106
|
+
selectedRowIds: { type: "array", category: "Selection", label: "Selected row IDs" },
|
|
2064
2107
|
loading: { type: "boolean", category: "State" },
|
|
2065
2108
|
loadingRows: { type: "number", category: "State" },
|
|
2066
2109
|
emptyTitle: { type: "string", category: "Content" },
|
|
@@ -5625,10 +5668,56 @@ var timePickerMeta = {
|
|
|
5625
5668
|
var timelineMeta = {
|
|
5626
5669
|
name: "Timeline",
|
|
5627
5670
|
category: "pattern",
|
|
5628
|
-
|
|
5671
|
+
description: "Displays an ordered sequence of dated events with accessible image markers.",
|
|
5672
|
+
directManifestNode: true,
|
|
5629
5673
|
allowedChildren: [],
|
|
5630
|
-
|
|
5631
|
-
props: {
|
|
5674
|
+
blueprint: { label: "Timeline", defaultProps: { items: [] } },
|
|
5675
|
+
props: {
|
|
5676
|
+
items: {
|
|
5677
|
+
type: "array",
|
|
5678
|
+
category: "Content",
|
|
5679
|
+
label: "Events",
|
|
5680
|
+
itemSchema: [
|
|
5681
|
+
{ key: "id", schema: { type: "string", category: "Identity", label: "Event ID" } },
|
|
5682
|
+
{ key: "title", schema: { type: "string", category: "Content", label: "Title" } },
|
|
5683
|
+
{
|
|
5684
|
+
key: "description",
|
|
5685
|
+
schema: { type: "string", category: "Content", label: "Description" }
|
|
5686
|
+
},
|
|
5687
|
+
{ key: "meta", schema: { type: "string", category: "Content", label: "Date and time" } },
|
|
5688
|
+
{
|
|
5689
|
+
key: "status",
|
|
5690
|
+
schema: {
|
|
5691
|
+
type: "enum",
|
|
5692
|
+
category: "State",
|
|
5693
|
+
label: "Status",
|
|
5694
|
+
enum: ZORA_COLORS
|
|
5695
|
+
}
|
|
5696
|
+
},
|
|
5697
|
+
{
|
|
5698
|
+
key: "marker",
|
|
5699
|
+
schema: {
|
|
5700
|
+
type: "media",
|
|
5701
|
+
category: "Content",
|
|
5702
|
+
label: "SVG or image marker",
|
|
5703
|
+
mediaKinds: ["image"]
|
|
5704
|
+
}
|
|
5705
|
+
},
|
|
5706
|
+
{
|
|
5707
|
+
key: "markerAlt",
|
|
5708
|
+
schema: { type: "string", category: "Accessibility", label: "Marker alternative text" }
|
|
5709
|
+
}
|
|
5710
|
+
],
|
|
5711
|
+
authoring: { authority: "instance" }
|
|
5712
|
+
},
|
|
5713
|
+
compact: {
|
|
5714
|
+
type: "boolean",
|
|
5715
|
+
category: "Layout",
|
|
5716
|
+
label: "Compact",
|
|
5717
|
+
default: false,
|
|
5718
|
+
authoring: { authority: "instance" }
|
|
5719
|
+
}
|
|
5720
|
+
}
|
|
5632
5721
|
};
|
|
5633
5722
|
|
|
5634
5723
|
// src/features/toast/toastMeta.ts
|
|
@@ -6150,4 +6239,4 @@ export {
|
|
|
6150
6239
|
CAPABILITIES
|
|
6151
6240
|
};
|
|
6152
6241
|
|
|
6153
|
-
//# debugId=
|
|
6242
|
+
//# debugId=5F14A84AC42CC7F064756E2164756E21
|