Skip to content

Commit 47f05ab

Browse files
authored
Merge pull request #30 from psobot/psobot/update-to-keynote-10.2
Add support for Keynote 10.2.
2 parents 8b9dbdf + 9a95a99 commit 47f05ab

File tree

7 files changed

+76
-47
lines changed

7 files changed

+76
-47
lines changed

keynote_parser/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import keynote_parser.macos_app_version
66

77
__major_version__ = 1
8-
__patch_version__ = 4
8+
__patch_version__ = 0
99
__supported_keynote_version__ = keynote_parser.macos_app_version.MacOSAppVersion(
10-
"10.1", "6913", "1A148"
10+
"10.2", "7028.0.88", "1A122"
1111
)
1212
__version_tuple__ = (
1313
__major_version__,

protos/TSAArchives.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ message DocumentArchive {
4949
optional .TSP.Reference annotation_cache_deprecated_2 = 13;
5050
optional bool collaborative_media_compatibility_upgrade_did_fail = 14;
5151
optional bool can_use_hevc = 15;
52+
optional bool is_content_master = 16;
5253
}
5354

5455
message FunctionBrowserStateArchive {
@@ -163,6 +164,15 @@ message GalleryInfoSetValueCommandArchive {
163164
optional .TSA.GalleryInfoSetValueCommandArchive.PropertyValue old_value = 5;
164165
}
165166

167+
message GalleryInfoInsertItemsCommandArchive {
168+
required .TSD.ContainerInsertChildrenCommandArchive super = 1;
169+
repeated .TSP.Reference items = 2;
170+
}
171+
172+
message GalleryInfoRemoveItemsCommandArchive {
173+
required .TSD.ContainerRemoveChildrenCommandArchive super = 1;
174+
}
175+
166176
message GalleryItemSetGeometryCommand {
167177
required .TSK.CommandArchive super = 1;
168178
optional .TSP.UUIDPath item_id_path = 2;

protos/TSDArchives.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,11 @@ message FreehandDrawingToolkitUIState {
481481
Pencil = 1;
482482
Crayon = 2;
483483
Fill = 3;
484+
Eraser = 4;
485+
MarqueeSelect = 5;
484486
}
485487
optional .TSP.Color current_color = 1 [deprecated = true];
486-
optional .TSD.FreehandDrawingToolkitUIState.FreehandDrawingToolType most_recent_pen_tool_type = 2;
488+
optional .TSD.FreehandDrawingToolkitUIState.FreehandDrawingToolType most_recent_restorable_tool_type = 2;
487489
optional float pen_tool_opacity = 3;
488490
optional float pen_tool_unscaled_width = 4;
489491
optional float pencil_tool_opacity = 5;

protos/TSKArchives.proto

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,41 @@ message TreeNode {
1515
optional .TSP.Reference object = 3;
1616
}
1717

18-
message CommandHistory {
19-
message SelectionBehaviorEntry {
20-
required .TSP.Reference command = 1;
21-
required .TSP.Reference command_selection_behavior = 2;
22-
}
18+
message LocalCommandHistoryItem {
19+
optional .TSP.Reference command = 1;
20+
optional .TSP.Reference selection_behavior = 2;
21+
}
22+
23+
message LocalCommandHistoryArray {
24+
required .TSP.LargeArray large_array = 1;
25+
}
26+
27+
message LocalCommandHistoryArraySegment {
28+
required .TSP.LargeObjectArraySegment large_object_array_segment = 1;
29+
}
30+
31+
message LocalCommandHistory {
2332
required uint32 undo_count = 1;
24-
repeated .TSP.Reference commands = 2;
25-
repeated .TSP.Reference marked_redo_commands = 3 [deprecated = true];
26-
optional .TSP.Reference pending_preflight_command = 4 [deprecated = true];
27-
repeated .TSK.CommandHistory.SelectionBehaviorEntry selection_behavior_entries = 5;
33+
optional .TSP.Reference items_array = 2;
2834
optional bool fixed_radar_13365177 = 10;
2935
}
3036

37+
message CollaborationCommandHistoryArray {
38+
required .TSP.LargeArray large_array = 1;
39+
}
40+
41+
message CollaborationCommandHistoryArraySegment {
42+
required .TSP.LargeObjectArraySegment large_object_array_segment = 1;
43+
}
44+
3145
message CollaborationCommandHistory {
32-
repeated .TSK.CollaborationCommandHistoryItem undo_items = 1;
33-
repeated .TSK.CollaborationCommandHistoryItem redo_items = 2;
34-
optional .TSP.UUID local_identifier = 3;
35-
repeated .TSP.Reference undo_transformer_entries = 4;
36-
repeated .TSP.Reference redo_transformer_entries = 5;
46+
message ItemList {
47+
optional .TSP.Reference items_array = 1;
48+
repeated .TSP.Reference transformer_entries = 2;
49+
}
50+
optional .TSP.UUID local_identifier = 1;
51+
optional .TSK.CollaborationCommandHistory.ItemList undo_items = 2;
52+
optional .TSK.CollaborationCommandHistory.ItemList redo_items = 3;
3753
}
3854

3955
message CollaborationCommandHistoryItem {
@@ -557,4 +573,18 @@ message DataReferenceRecord {
557573
repeated .TSP.DataReference unbounded_referenced_datas = 3;
558574
}
559575

576+
message PencilAnnotationUIState {
577+
enum PencilAnnotationToolType {
578+
Pen = 0;
579+
Highlighter = 1;
580+
}
581+
optional .TSK.PencilAnnotationUIState.PencilAnnotationToolType current_tool_type = 1;
582+
optional .TSP.Color pen_tool_color = 2;
583+
optional float pen_tool_opacity = 3;
584+
optional float pen_tool_width = 4;
585+
optional .TSP.Color highlighter_tool_color = 5;
586+
optional float highlighter_tool_opacity = 6;
587+
optional float highlighter_tool_width = 7;
588+
}
589+
560590

protos/TSPArchiveMessages.proto

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ message ComponentInfo {
7373
optional bool can_be_dropped = 17;
7474
repeated .TSP.ComponentExternalReference versioned_external_references = 18;
7575
optional bool is_wasteful = 19;
76+
repeated uint64 ambiguous_object_identifiers = 20;
77+
optional uint32 required_package_identifier = 21;
7678
}
7779

7880
message ComponentExternalReference {
@@ -146,6 +148,7 @@ message DataInfo {
146148
optional .TSP.DataInfo.DownloadPriority download_priority = 9 [default = Default];
147149
optional .TSP.DataAttributes attributes = 10;
148150
optional .TSP.EncryptionInfo encryption_info = 11;
151+
optional bytes last_mismatched_digest = 12;
149152
optional string pasteboard_external_file_path = 99;
150153
}
151154

@@ -200,8 +203,21 @@ message ObjectSerializationDirectory {
200203
repeated .TSP.ObjectSerializationDirectory.Entry entries = 1;
201204
}
202205

206+
message DataPropertiesEntryV1 {
207+
required bytes digest = 1;
208+
optional bool expects_matched_digest = 2;
209+
optional double creation_time_interval_since_1970 = 3;
210+
repeated uint32 creation_version = 4;
211+
optional bytes last_mismatched_digest = 5;
212+
}
213+
214+
message DataPropertiesV1 {
215+
repeated .TSP.DataPropertiesEntryV1 properties = 1;
216+
}
217+
203218
message DocumentMetadata {
204219
optional bool is_in_collaboration_mode = 1;
220+
optional .TSP.DataPropertiesV1 data_properties_v1 = 3;
205221
}
206222

207223
message SupportMetadata {

protos/TSPMessages.proto

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -241,35 +241,5 @@ message LargeUUIDArray {
241241
optional .TSP.LargeArray large_array = 1;
242242
}
243243

244-
message StringToObjectDictionaryElement {
245-
required string key = 1;
246-
required .TSP.Reference object = 2;
247-
}
248-
249-
message LargeDictionarySegment {
250-
optional bool should_delay_archiving = 1;
251-
optional uint32 delayed_archiving_priority = 2;
252-
optional string package_locator = 3;
253-
}
254-
255-
message LargeStringToObjectDictionarySegment {
256-
optional .TSP.LargeDictionarySegment large_dictionary_segment = 1;
257-
repeated .TSP.StringToObjectDictionaryElement elements = 2;
258-
}
259-
260-
message LargeDictionary {
261-
repeated .TSP.Range ranges = 1;
262-
repeated .TSP.Reference segments = 2;
263-
optional uint64 count = 3;
264-
optional uint64 max_segment_object_count = 4;
265-
optional uint64 max_segment_size = 5;
266-
optional bool should_delay_archiving = 6;
267-
optional uint32 delayed_archiving_priority = 7;
268-
optional bool store_outside_object_archive = 8;
269-
}
270-
271-
message LargeStringToObjectDictionary {
272-
optional .TSP.LargeDictionary large_dictionary = 1;
273-
}
274244

275245

protos/TSSArchives.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ message StylesheetArchive {
5151
optional bool can_cull_styles = 6;
5252
optional .TSS.StylesheetArchive.VersionedStyles styles_for_10_0 = 7;
5353
optional .TSS.StylesheetArchive.VersionedStyles styles_for_10_1 = 8;
54+
optional .TSS.StylesheetArchive.VersionedStyles styles_for_10_2 = 9;
5455
}
5556

5657
message ThemeArchive {

0 commit comments

Comments
 (0)