Skip to content

Commit ffffc18

Browse files
committed
version 3.18.2
1 parent 0212cb8 commit ffffc18

File tree

24 files changed

+55
-75
lines changed

24 files changed

+55
-75
lines changed

docs/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
http-equiv="Content-Type"
66
content="text/html; charset=utf-8"
77
/>
8-
<meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
8+
<meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
99

1010
<title>About &mdash; Python Slack SDK</title>
1111

docs/api-docs/slack_sdk/models/blocks/block_elements.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ <h1 class="title">Module <code>slack_sdk.models.blocks.block_elements</code></h1
489489

490490
@property
491491
def attributes(self) -&gt; Set[str]:
492-
return super().attributes.union({&#34;initial_time&#34;})
492+
return super().attributes.union({&#34;initial_time&#34;, &#34;timezone&#34;})
493493

494494
def __init__(
495495
self,
@@ -499,6 +499,7 @@ <h1 class="title">Module <code>slack_sdk.models.blocks.block_elements</code></h1
499499
initial_time: Optional[str] = None,
500500
confirm: Optional[Union[dict, ConfirmObject]] = None,
501501
focus_on_load: Optional[bool] = None,
502+
timezone: Optional[str] = None,
502503
**others: dict,
503504
):
504505
&#34;&#34;&#34;
@@ -522,6 +523,7 @@ <h1 class="title">Module <code>slack_sdk.models.blocks.block_elements</code></h1
522523
that appears after a time is selected.
523524
focus_on_load: Indicates whether the element will be set to auto focus within the view object.
524525
Only one element can be set to true. Defaults to false.
526+
timezone: The timezone to consider for this input value.
525527
&#34;&#34;&#34;
526528
super().__init__(
527529
type=self.type,
@@ -533,6 +535,7 @@ <h1 class="title">Module <code>slack_sdk.models.blocks.block_elements</code></h1
533535
show_unknown_key_warning(self, others)
534536

535537
self.initial_time = initial_time
538+
self.timezone = timezone
536539

537540
@JsonValidator(&#34;initial_time attribute must be in format &#39;HH:mm&#39;&#34;)
538541
def _validate_initial_time_valid(self) -&gt; bool:
@@ -4316,7 +4319,7 @@ <h3>Inherited members</h3>
43164319
</dd>
43174320
<dt id="slack_sdk.models.blocks.block_elements.TimePickerElement"><code class="flex name class">
43184321
<span>class <span class="ident">TimePickerElement</span></span>
4319-
<span>(</span><span>*, action_id: Optional[str] = None, placeholder: Union[str, dict, <a title="slack_sdk.models.blocks.basic_components.TextObject" href="basic_components.html#slack_sdk.models.blocks.basic_components.TextObject">TextObject</a>, ForwardRef(None)] = None, initial_time: Optional[str] = None, confirm: Union[dict, <a title="slack_sdk.models.blocks.basic_components.ConfirmObject" href="basic_components.html#slack_sdk.models.blocks.basic_components.ConfirmObject">ConfirmObject</a>, ForwardRef(None)] = None, focus_on_load: Optional[bool] = None, **others: dict)</span>
4322+
<span>(</span><span>*, action_id: Optional[str] = None, placeholder: Union[str, dict, <a title="slack_sdk.models.blocks.basic_components.TextObject" href="basic_components.html#slack_sdk.models.blocks.basic_components.TextObject">TextObject</a>, ForwardRef(None)] = None, initial_time: Optional[str] = None, confirm: Union[dict, <a title="slack_sdk.models.blocks.basic_components.ConfirmObject" href="basic_components.html#slack_sdk.models.blocks.basic_components.ConfirmObject">ConfirmObject</a>, ForwardRef(None)] = None, focus_on_load: Optional[bool] = None, timezone: Optional[str] = None, **others: dict)</span>
43204323
</code></dt>
43214324
<dd>
43224325
<div class="desc"><p>Block Elements are things that exists inside of your Blocks.
@@ -4346,6 +4349,8 @@ <h2 id="args">Args</h2>
43464349
<dt><strong><code>focus_on_load</code></strong></dt>
43474350
<dd>Indicates whether the element will be set to auto focus within the view object.
43484351
Only one element can be set to true. Defaults to false.</dd>
4352+
<dt><strong><code>timezone</code></strong></dt>
4353+
<dd>The timezone to consider for this input value.</dd>
43494354
</dl></div>
43504355
<details class="source">
43514356
<summary>
@@ -4356,7 +4361,7 @@ <h2 id="args">Args</h2>
43564361

43574362
@property
43584363
def attributes(self) -&gt; Set[str]:
4359-
return super().attributes.union({&#34;initial_time&#34;})
4364+
return super().attributes.union({&#34;initial_time&#34;, &#34;timezone&#34;})
43604365

43614366
def __init__(
43624367
self,
@@ -4366,6 +4371,7 @@ <h2 id="args">Args</h2>
43664371
initial_time: Optional[str] = None,
43674372
confirm: Optional[Union[dict, ConfirmObject]] = None,
43684373
focus_on_load: Optional[bool] = None,
4374+
timezone: Optional[str] = None,
43694375
**others: dict,
43704376
):
43714377
&#34;&#34;&#34;
@@ -4389,6 +4395,7 @@ <h2 id="args">Args</h2>
43894395
that appears after a time is selected.
43904396
focus_on_load: Indicates whether the element will be set to auto focus within the view object.
43914397
Only one element can be set to true. Defaults to false.
4398+
timezone: The timezone to consider for this input value.
43924399
&#34;&#34;&#34;
43934400
super().__init__(
43944401
type=self.type,
@@ -4400,6 +4407,7 @@ <h2 id="args">Args</h2>
44004407
show_unknown_key_warning(self, others)
44014408

44024409
self.initial_time = initial_time
4410+
self.timezone = timezone
44034411

44044412
@JsonValidator(&#34;initial_time attribute must be in format &#39;HH:mm&#39;&#34;)
44054413
def _validate_initial_time_valid(self) -&gt; bool:

docs/api-docs/slack_sdk/models/blocks/blocks.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ <h1 class="title">Module <code>slack_sdk.models.blocks.blocks</code></h1>
285285

286286
class ActionsBlock(Block):
287287
type = &#34;actions&#34;
288-
elements_max_length = 5
288+
elements_max_length = 25
289289

290290
@property
291291
def attributes(self) -&gt; Set[str]:
@@ -303,7 +303,7 @@ <h1 class="title">Module <code>slack_sdk.models.blocks.blocks</code></h1>
303303

304304
Args:
305305
elements (required): An array of interactive element objects - buttons, select menus, overflow menus,
306-
or date pickers. There is a maximum of 5 elements in each action block.
306+
or date pickers. There is a maximum of 25 elements in each action block.
307307
block_id: A string acting as a unique identifier for a block.
308308
If not specified, a block_id will be generated.
309309
You can use this block_id when you receive an interaction payload to identify the source of the action.
@@ -644,7 +644,7 @@ <h2 id="args">Args</h2>
644644
<dl>
645645
<dt><strong><code>elements</code></strong> :&ensp;<code>required</code></dt>
646646
<dd>An array of interactive element objects - buttons, select menus, overflow menus,
647-
or date pickers. There is a maximum of 5 elements in each action block.</dd>
647+
or date pickers. There is a maximum of 25 elements in each action block.</dd>
648648
<dt><strong><code>block_id</code></strong></dt>
649649
<dd>A string acting as a unique identifier for a block.
650650
If not specified, a block_id will be generated.
@@ -659,7 +659,7 @@ <h2 id="args">Args</h2>
659659
</summary>
660660
<pre><code class="python">class ActionsBlock(Block):
661661
type = &#34;actions&#34;
662-
elements_max_length = 5
662+
elements_max_length = 25
663663

664664
@property
665665
def attributes(self) -&gt; Set[str]:
@@ -677,7 +677,7 @@ <h2 id="args">Args</h2>
677677

678678
Args:
679679
elements (required): An array of interactive element objects - buttons, select menus, overflow menus,
680-
or date pickers. There is a maximum of 5 elements in each action block.
680+
or date pickers. There is a maximum of 25 elements in each action block.
681681
block_id: A string acting as a unique identifier for a block.
682682
If not specified, a block_id will be generated.
683683
You can use this block_id when you receive an interaction payload to identify the source of the action.

docs/api-docs/slack_sdk/models/blocks/index.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ <h2 id="args">Args</h2>
170170
<dl>
171171
<dt><strong><code>elements</code></strong> :&ensp;<code>required</code></dt>
172172
<dd>An array of interactive element objects - buttons, select menus, overflow menus,
173-
or date pickers. There is a maximum of 5 elements in each action block.</dd>
173+
or date pickers. There is a maximum of 25 elements in each action block.</dd>
174174
<dt><strong><code>block_id</code></strong></dt>
175175
<dd>A string acting as a unique identifier for a block.
176176
If not specified, a block_id will be generated.
@@ -185,7 +185,7 @@ <h2 id="args">Args</h2>
185185
</summary>
186186
<pre><code class="python">class ActionsBlock(Block):
187187
type = &#34;actions&#34;
188-
elements_max_length = 5
188+
elements_max_length = 25
189189

190190
@property
191191
def attributes(self) -&gt; Set[str]:
@@ -203,7 +203,7 @@ <h2 id="args">Args</h2>
203203

204204
Args:
205205
elements (required): An array of interactive element objects - buttons, select menus, overflow menus,
206-
or date pickers. There is a maximum of 5 elements in each action block.
206+
or date pickers. There is a maximum of 25 elements in each action block.
207207
block_id: A string acting as a unique identifier for a block.
208208
If not specified, a block_id will be generated.
209209
You can use this block_id when you receive an interaction payload to identify the source of the action.
@@ -5355,7 +5355,7 @@ <h3>Inherited members</h3>
53555355
</dd>
53565356
<dt id="slack_sdk.models.blocks.TimePickerElement"><code class="flex name class">
53575357
<span>class <span class="ident">TimePickerElement</span></span>
5358-
<span>(</span><span>*, action_id: Optional[str] = None, placeholder: Union[str, dict, <a title="slack_sdk.models.blocks.basic_components.TextObject" href="basic_components.html#slack_sdk.models.blocks.basic_components.TextObject">TextObject</a>, ForwardRef(None)] = None, initial_time: Optional[str] = None, confirm: Union[dict, <a title="slack_sdk.models.blocks.basic_components.ConfirmObject" href="basic_components.html#slack_sdk.models.blocks.basic_components.ConfirmObject">ConfirmObject</a>, ForwardRef(None)] = None, focus_on_load: Optional[bool] = None, **others: dict)</span>
5358+
<span>(</span><span>*, action_id: Optional[str] = None, placeholder: Union[str, dict, <a title="slack_sdk.models.blocks.basic_components.TextObject" href="basic_components.html#slack_sdk.models.blocks.basic_components.TextObject">TextObject</a>, ForwardRef(None)] = None, initial_time: Optional[str] = None, confirm: Union[dict, <a title="slack_sdk.models.blocks.basic_components.ConfirmObject" href="basic_components.html#slack_sdk.models.blocks.basic_components.ConfirmObject">ConfirmObject</a>, ForwardRef(None)] = None, focus_on_load: Optional[bool] = None, timezone: Optional[str] = None, **others: dict)</span>
53595359
</code></dt>
53605360
<dd>
53615361
<div class="desc"><p>Block Elements are things that exists inside of your Blocks.
@@ -5385,6 +5385,8 @@ <h2 id="args">Args</h2>
53855385
<dt><strong><code>focus_on_load</code></strong></dt>
53865386
<dd>Indicates whether the element will be set to auto focus within the view object.
53875387
Only one element can be set to true. Defaults to false.</dd>
5388+
<dt><strong><code>timezone</code></strong></dt>
5389+
<dd>The timezone to consider for this input value.</dd>
53885390
</dl></div>
53895391
<details class="source">
53905392
<summary>
@@ -5395,7 +5397,7 @@ <h2 id="args">Args</h2>
53955397

53965398
@property
53975399
def attributes(self) -&gt; Set[str]:
5398-
return super().attributes.union({&#34;initial_time&#34;})
5400+
return super().attributes.union({&#34;initial_time&#34;, &#34;timezone&#34;})
53995401

54005402
def __init__(
54015403
self,
@@ -5405,6 +5407,7 @@ <h2 id="args">Args</h2>
54055407
initial_time: Optional[str] = None,
54065408
confirm: Optional[Union[dict, ConfirmObject]] = None,
54075409
focus_on_load: Optional[bool] = None,
5410+
timezone: Optional[str] = None,
54085411
**others: dict,
54095412
):
54105413
&#34;&#34;&#34;
@@ -5428,6 +5431,7 @@ <h2 id="args">Args</h2>
54285431
that appears after a time is selected.
54295432
focus_on_load: Indicates whether the element will be set to auto focus within the view object.
54305433
Only one element can be set to true. Defaults to false.
5434+
timezone: The timezone to consider for this input value.
54315435
&#34;&#34;&#34;
54325436
super().__init__(
54335437
type=self.type,
@@ -5439,6 +5443,7 @@ <h2 id="args">Args</h2>
54395443
show_unknown_key_warning(self, others)
54405444

54415445
self.initial_time = initial_time
5446+
self.timezone = timezone
54425447

54435448
@JsonValidator(&#34;initial_time attribute must be in format &#39;HH:mm&#39;&#34;)
54445449
def _validate_initial_time_valid(self) -&gt; bool:

docs/api-docs/slack_sdk/version.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1 class="title">Module <code>slack_sdk.version</code></h1>
2828
<span>Expand source code</span>
2929
</summary>
3030
<pre><code class="python">&#34;&#34;&#34;Check the latest version at https://pypi.org/project/slack-sdk/&#34;&#34;&#34;
31-
__version__ = &#34;3.18.1&#34;</code></pre>
31+
__version__ = &#34;3.18.2&#34;</code></pre>
3232
</details>
3333
</section>
3434
<section>

docs/api-docs/slack_sdk/web/internal_utils.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Module <code>slack_sdk.web.internal_utils</code></h1>
3232
import sys
3333
import warnings
3434
from ssl import SSLContext
35-
from typing import Dict, Union, Optional, Any, Sequence
35+
from typing import Any, Dict, Optional, Sequence, Union
3636
from urllib.parse import urljoin
3737

3838
from slack_sdk import version
@@ -217,12 +217,12 @@ <h1 class="title">Module <code>slack_sdk.web.internal_utils</code></h1>
217217
return obj
218218

219219
blocks = kwargs.get(&#34;blocks&#34;, None)
220-
if blocks is not None and isinstance(blocks, list):
220+
if blocks is not None and isinstance(blocks, Sequence):
221221
dict_blocks = [to_dict(b) for b in blocks]
222222
kwargs.update({&#34;blocks&#34;: dict_blocks})
223223

224224
attachments = kwargs.get(&#34;attachments&#34;, None)
225-
if attachments is not None and isinstance(attachments, list):
225+
if attachments is not None and isinstance(attachments, Sequence):
226226
dict_attachments = [to_dict(a) for a in attachments]
227227
kwargs.update({&#34;attachments&#34;: dict_attachments})
228228

docs/assets/basic.css

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -326,15 +326,13 @@ p.sidebar-title {
326326
}
327327
nav.contents,
328328
aside.topic,
329-
330329
div.admonition, div.topic, blockquote {
331330
clear: left;
332331
}
333332

334333
/* -- topics ---------------------------------------------------------------- */
335334
nav.contents,
336335
aside.topic,
337-
338336
div.topic {
339337
border: 1px solid #ccc;
340338
padding: 7px;
@@ -375,7 +373,6 @@ div.sidebar > :last-child,
375373
aside.sidebar > :last-child,
376374
nav.contents > :last-child,
377375
aside.topic > :last-child,
378-
379376
div.topic > :last-child,
380377
div.admonition > :last-child {
381378
margin-bottom: 0;
@@ -385,7 +382,6 @@ div.sidebar::after,
385382
aside.sidebar::after,
386383
nav.contents::after,
387384
aside.topic::after,
388-
389385
div.topic::after,
390386
div.admonition::after,
391387
blockquote::after {
@@ -610,26 +606,6 @@ ol.simple p,
610606
ul.simple p {
611607
margin-bottom: 0;
612608
}
613-
614-
/* Docutils 0.17 and older (footnotes & citations) */
615-
dl.footnote > dt,
616-
dl.citation > dt {
617-
float: left;
618-
margin-right: 0.5em;
619-
}
620-
621-
dl.footnote > dd,
622-
dl.citation > dd {
623-
margin-bottom: 0em;
624-
}
625-
626-
dl.footnote > dd:after,
627-
dl.citation > dd:after {
628-
content: "";
629-
clear: both;
630-
}
631-
632-
/* Docutils 0.18+ (footnotes & citations) */
633609
aside.footnote > span,
634610
div.citation > span {
635611
float: left;
@@ -654,8 +630,6 @@ div.citation > p:last-of-type:after {
654630
clear: both;
655631
}
656632

657-
/* Footnotes & citations ends */
658-
659633
dl.field-list {
660634
display: grid;
661635
grid-template-columns: fit-content(30%) auto;
@@ -668,10 +642,6 @@ dl.field-list > dt {
668642
padding-right: 5px;
669643
}
670644

671-
dl.field-list > dt:after {
672-
content: ":";
673-
}
674-
675645
dl.field-list > dd {
676646
padding-left: 0.5em;
677647
margin-top: 0em;

docs/assets/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ var DOCUMENTATION_OPTIONS = {
1010
SOURCELINK_SUFFIX: '.txt',
1111
NAVIGATION_WITH_KEYS: false,
1212
SHOW_SEARCH_SUMMARY: true,
13-
ENABLE_SEARCH_SHORTCUTS: false,
13+
ENABLE_SEARCH_SHORTCUTS: true,
1414
};

docs/assets/searchtools.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const _displayItem = (item, highlightTerms, searchTerms) => {
8888
linkEl.href = linkUrl + "?" + params.toString() + anchor;
8989
linkEl.innerHTML = title;
9090
if (descr)
91-
listItem.appendChild(document.createElement("span")).innerText =
91+
listItem.appendChild(document.createElement("span")).innerHTML =
9292
" (" + descr + ")";
9393
else if (showSearchSummary)
9494
fetch(requestUrl)
@@ -155,10 +155,8 @@ const Search = {
155155
_pulse_status: -1,
156156

157157
htmlToText: (htmlString) => {
158-
const htmlElement = document
159-
.createRange()
160-
.createContextualFragment(htmlString);
161-
_removeChildren(htmlElement.querySelectorAll(".headerlink"));
158+
const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
159+
htmlElement.querySelectorAll(".headerlink").forEach((el) => { el.remove() });
162160
const docContent = htmlElement.querySelector('[role="main"]');
163161
if (docContent !== undefined) return docContent.textContent;
164162
console.warn(
@@ -504,21 +502,22 @@ const Search = {
504502
* latter for highlighting it.
505503
*/
506504
makeSearchSummary: (htmlText, keywords, highlightWords) => {
507-
const text = Search.htmlToText(htmlText).toLowerCase();
505+
const text = Search.htmlToText(htmlText);
508506
if (text === "") return null;
509507

508+
const textLower = text.toLowerCase();
510509
const actualStartPosition = [...keywords]
511-
.map((k) => text.indexOf(k.toLowerCase()))
510+
.map((k) => textLower.indexOf(k.toLowerCase()))
512511
.filter((i) => i > -1)
513512
.slice(-1)[0];
514513
const startWithContext = Math.max(actualStartPosition - 120, 0);
515514

516515
const top = startWithContext === 0 ? "" : "...";
517516
const tail = startWithContext + 240 < text.length ? "..." : "";
518517

519-
let summary = document.createElement("div");
518+
let summary = document.createElement("p");
520519
summary.classList.add("context");
521-
summary.innerText = top + text.substr(startWithContext, 240).trim() + tail;
520+
summary.textContent = top + text.substr(startWithContext, 240).trim() + tail;
522521

523522
highlightWords.forEach((highlightWord) =>
524523
_highlightText(summary, highlightWord, "highlighted")

docs/audit-logs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
http-equiv="Content-Type"
66
content="text/html; charset=utf-8"
77
/>
8-
<meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
8+
<meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
99

1010
<title>Audit Logs API Client &mdash; Python Slack SDK</title>
1111

0 commit comments

Comments
 (0)