Skip to content

Commit

Permalink
Fix #1271 Add slack_file object to image block / block element classes
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Jan 23, 2024
1 parent fdab0f2 commit 5600149
Show file tree
Hide file tree
Showing 35 changed files with 2,329 additions and 312 deletions.
135 changes: 118 additions & 17 deletions json-logs/samples/api/chat.postMessage.json
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
},
{
"type": "overflow",
Expand Down Expand Up @@ -1052,7 +1056,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
}
],
"block_id": ""
Expand All @@ -1068,6 +1076,11 @@
"image_width": 123,
"image_height": 123,
"image_bytes": 123,
"is_animated": false,
"slack_file": {
"id": "",
"url": ""
},
"alt_text": "",
"title": {
"type": "plain_text",
Expand Down Expand Up @@ -1103,7 +1116,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
}
},
{
Expand Down Expand Up @@ -3757,7 +3774,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
}
},
{
Expand Down Expand Up @@ -4712,7 +4733,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
},
{
"type": "overflow",
Expand Down Expand Up @@ -5020,7 +5045,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
}
],
"block_id": ""
Expand All @@ -5036,6 +5065,11 @@
"image_width": 123,
"image_height": 123,
"image_bytes": 123,
"is_animated": false,
"slack_file": {
"id": "",
"url": ""
},
"alt_text": "",
"title": {
"type": "plain_text",
Expand Down Expand Up @@ -5071,7 +5105,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
}
},
{
Expand Down Expand Up @@ -7725,7 +7763,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
}
},
{
Expand Down Expand Up @@ -9357,7 +9399,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
},
{
"type": "overflow",
Expand Down Expand Up @@ -9665,7 +9711,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
}
],
"block_id": ""
Expand All @@ -9681,6 +9731,11 @@
"image_width": 123,
"image_height": 123,
"image_bytes": 123,
"is_animated": false,
"slack_file": {
"id": "",
"url": ""
},
"alt_text": "",
"title": {
"type": "plain_text",
Expand Down Expand Up @@ -9716,7 +9771,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
}
},
{
Expand Down Expand Up @@ -12370,7 +12429,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
}
},
{
Expand Down Expand Up @@ -13356,7 +13419,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
},
{
"type": "overflow",
Expand Down Expand Up @@ -13664,7 +13731,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
}
],
"block_id": ""
Expand All @@ -13680,6 +13751,11 @@
"image_width": 123,
"image_height": 123,
"image_bytes": 123,
"is_animated": false,
"slack_file": {
"id": "",
"url": ""
},
"alt_text": "",
"title": {
"type": "plain_text",
Expand Down Expand Up @@ -13715,7 +13791,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
}
},
{
Expand Down Expand Up @@ -16369,7 +16449,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
}
},
{
Expand Down Expand Up @@ -17333,7 +17417,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
},
{
"type": "overflow",
Expand Down Expand Up @@ -19648,6 +19736,11 @@
"image_width": 123,
"image_height": 123,
"image_bytes": 123,
"is_animated": false,
"slack_file": {
"id": "",
"url": ""
},
"alt_text": "",
"title": {
"type": "plain_text",
Expand Down Expand Up @@ -19818,6 +19911,10 @@
"image_width": 123,
"image_height": 123,
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
},
"option_groups": [
{
"label": {
Expand Down Expand Up @@ -19978,6 +20075,10 @@
"image_width": 123,
"image_height": 123,
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
},
"option_groups": [
{
"label": {
Expand Down
19 changes: 18 additions & 1 deletion json-logs/samples/api/chat.scheduleMessage.json
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,11 @@
"fallback": "",
"image_width": 123,
"image_height": 123,
"image_bytes": 123
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
}
},
{
"type": "overflow",
Expand Down Expand Up @@ -2931,6 +2935,11 @@
"image_width": 123,
"image_height": 123,
"image_bytes": 123,
"is_animated": false,
"slack_file": {
"id": "",
"url": ""
},
"alt_text": "",
"title": {
"type": "plain_text",
Expand Down Expand Up @@ -3101,6 +3110,10 @@
"image_width": 123,
"image_height": 123,
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
},
"option_groups": [
{
"label": {
Expand Down Expand Up @@ -3261,6 +3274,10 @@
"image_width": 123,
"image_height": 123,
"image_bytes": 123,
"slack_file": {
"id": "",
"url": ""
},
"option_groups": [
{
"label": {
Expand Down
Loading

0 comments on commit 5600149

Please sign in to comment.