Skip to content

Commit

Permalink
version 3.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Sep 1, 2022
1 parent 0212cb8 commit ffffc18
Show file tree
Hide file tree
Showing 24 changed files with 55 additions and 75 deletions.
2 changes: 1 addition & 1 deletion docs/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http-equiv="Content-Type"
content="text/html; charset=utf-8"
/>
<meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
<meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

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

Expand Down
14 changes: 11 additions & 3 deletions docs/api-docs/slack_sdk/models/blocks/block_elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ <h1 class="title">Module <code>slack_sdk.models.blocks.block_elements</code></h1

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

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

self.initial_time = initial_time
self.timezone = timezone

@JsonValidator(&#34;initial_time attribute must be in format &#39;HH:mm&#39;&#34;)
def _validate_initial_time_valid(self) -&gt; bool:
Expand Down Expand Up @@ -4316,7 +4319,7 @@ <h3>Inherited members</h3>
</dd>
<dt id="slack_sdk.models.blocks.block_elements.TimePickerElement"><code class="flex name class">
<span>class <span class="ident">TimePickerElement</span></span>
<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>
<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>
</code></dt>
<dd>
<div class="desc"><p>Block Elements are things that exists inside of your Blocks.
Expand Down Expand Up @@ -4346,6 +4349,8 @@ <h2 id="args">Args</h2>
<dt><strong><code>focus_on_load</code></strong></dt>
<dd>Indicates whether the element will be set to auto focus within the view object.
Only one element can be set to true. Defaults to false.</dd>
<dt><strong><code>timezone</code></strong></dt>
<dd>The timezone to consider for this input value.</dd>
</dl></div>
<details class="source">
<summary>
Expand All @@ -4356,7 +4361,7 @@ <h2 id="args">Args</h2>

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

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

self.initial_time = initial_time
self.timezone = timezone

@JsonValidator(&#34;initial_time attribute must be in format &#39;HH:mm&#39;&#34;)
def _validate_initial_time_valid(self) -&gt; bool:
Expand Down
10 changes: 5 additions & 5 deletions docs/api-docs/slack_sdk/models/blocks/blocks.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ <h1 class="title">Module <code>slack_sdk.models.blocks.blocks</code></h1>

class ActionsBlock(Block):
type = &#34;actions&#34;
elements_max_length = 5
elements_max_length = 25

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

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

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

Args:
elements (required): An array of interactive element objects - buttons, select menus, overflow menus,
or date pickers. There is a maximum of 5 elements in each action block.
or date pickers. There is a maximum of 25 elements in each action block.
block_id: A string acting as a unique identifier for a block.
If not specified, a block_id will be generated.
You can use this block_id when you receive an interaction payload to identify the source of the action.
Expand Down
15 changes: 10 additions & 5 deletions docs/api-docs/slack_sdk/models/blocks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h2 id="args">Args</h2>
<dl>
<dt><strong><code>elements</code></strong> :&ensp;<code>required</code></dt>
<dd>An array of interactive element objects - buttons, select menus, overflow menus,
or date pickers. There is a maximum of 5 elements in each action block.</dd>
or date pickers. There is a maximum of 25 elements in each action block.</dd>
<dt><strong><code>block_id</code></strong></dt>
<dd>A string acting as a unique identifier for a block.
If not specified, a block_id will be generated.
Expand All @@ -185,7 +185,7 @@ <h2 id="args">Args</h2>
</summary>
<pre><code class="python">class ActionsBlock(Block):
type = &#34;actions&#34;
elements_max_length = 5
elements_max_length = 25

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

Args:
elements (required): An array of interactive element objects - buttons, select menus, overflow menus,
or date pickers. There is a maximum of 5 elements in each action block.
or date pickers. There is a maximum of 25 elements in each action block.
block_id: A string acting as a unique identifier for a block.
If not specified, a block_id will be generated.
You can use this block_id when you receive an interaction payload to identify the source of the action.
Expand Down Expand Up @@ -5355,7 +5355,7 @@ <h3>Inherited members</h3>
</dd>
<dt id="slack_sdk.models.blocks.TimePickerElement"><code class="flex name class">
<span>class <span class="ident">TimePickerElement</span></span>
<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>
<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>
</code></dt>
<dd>
<div class="desc"><p>Block Elements are things that exists inside of your Blocks.
Expand Down Expand Up @@ -5385,6 +5385,8 @@ <h2 id="args">Args</h2>
<dt><strong><code>focus_on_load</code></strong></dt>
<dd>Indicates whether the element will be set to auto focus within the view object.
Only one element can be set to true. Defaults to false.</dd>
<dt><strong><code>timezone</code></strong></dt>
<dd>The timezone to consider for this input value.</dd>
</dl></div>
<details class="source">
<summary>
Expand All @@ -5395,7 +5397,7 @@ <h2 id="args">Args</h2>

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

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

self.initial_time = initial_time
self.timezone = timezone

@JsonValidator(&#34;initial_time attribute must be in format &#39;HH:mm&#39;&#34;)
def _validate_initial_time_valid(self) -&gt; bool:
Expand Down
2 changes: 1 addition & 1 deletion docs/api-docs/slack_sdk/version.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1 class="title">Module <code>slack_sdk.version</code></h1>
<span>Expand source code</span>
</summary>
<pre><code class="python">&#34;&#34;&#34;Check the latest version at https://pypi.org/project/slack-sdk/&#34;&#34;&#34;
__version__ = &#34;3.18.1&#34;</code></pre>
__version__ = &#34;3.18.2&#34;</code></pre>
</details>
</section>
<section>
Expand Down
6 changes: 3 additions & 3 deletions docs/api-docs/slack_sdk/web/internal_utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 class="title">Module <code>slack_sdk.web.internal_utils</code></h1>
import sys
import warnings
from ssl import SSLContext
from typing import Dict, Union, Optional, Any, Sequence
from typing import Any, Dict, Optional, Sequence, Union
from urllib.parse import urljoin

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

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

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

Expand Down
30 changes: 0 additions & 30 deletions docs/assets/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -326,15 +326,13 @@ p.sidebar-title {
}
nav.contents,
aside.topic,

div.admonition, div.topic, blockquote {
clear: left;
}

/* -- topics ---------------------------------------------------------------- */
nav.contents,
aside.topic,

div.topic {
border: 1px solid #ccc;
padding: 7px;
Expand Down Expand Up @@ -375,7 +373,6 @@ div.sidebar > :last-child,
aside.sidebar > :last-child,
nav.contents > :last-child,
aside.topic > :last-child,

div.topic > :last-child,
div.admonition > :last-child {
margin-bottom: 0;
Expand All @@ -385,7 +382,6 @@ div.sidebar::after,
aside.sidebar::after,
nav.contents::after,
aside.topic::after,

div.topic::after,
div.admonition::after,
blockquote::after {
Expand Down Expand Up @@ -610,26 +606,6 @@ ol.simple p,
ul.simple p {
margin-bottom: 0;
}

/* Docutils 0.17 and older (footnotes & citations) */
dl.footnote > dt,
dl.citation > dt {
float: left;
margin-right: 0.5em;
}

dl.footnote > dd,
dl.citation > dd {
margin-bottom: 0em;
}

dl.footnote > dd:after,
dl.citation > dd:after {
content: "";
clear: both;
}

/* Docutils 0.18+ (footnotes & citations) */
aside.footnote > span,
div.citation > span {
float: left;
Expand All @@ -654,8 +630,6 @@ div.citation > p:last-of-type:after {
clear: both;
}

/* Footnotes & citations ends */

dl.field-list {
display: grid;
grid-template-columns: fit-content(30%) auto;
Expand All @@ -668,10 +642,6 @@ dl.field-list > dt {
padding-right: 5px;
}

dl.field-list > dt:after {
content: ":";
}

dl.field-list > dd {
padding-left: 0.5em;
margin-top: 0em;
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/documentation_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ var DOCUMENTATION_OPTIONS = {
SOURCELINK_SUFFIX: '.txt',
NAVIGATION_WITH_KEYS: false,
SHOW_SEARCH_SUMMARY: true,
ENABLE_SEARCH_SHORTCUTS: false,
ENABLE_SEARCH_SHORTCUTS: true,
};
17 changes: 8 additions & 9 deletions docs/assets/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const _displayItem = (item, highlightTerms, searchTerms) => {
linkEl.href = linkUrl + "?" + params.toString() + anchor;
linkEl.innerHTML = title;
if (descr)
listItem.appendChild(document.createElement("span")).innerText =
listItem.appendChild(document.createElement("span")).innerHTML =
" (" + descr + ")";
else if (showSearchSummary)
fetch(requestUrl)
Expand Down Expand Up @@ -155,10 +155,8 @@ const Search = {
_pulse_status: -1,

htmlToText: (htmlString) => {
const htmlElement = document
.createRange()
.createContextualFragment(htmlString);
_removeChildren(htmlElement.querySelectorAll(".headerlink"));
const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
htmlElement.querySelectorAll(".headerlink").forEach((el) => { el.remove() });
const docContent = htmlElement.querySelector('[role="main"]');
if (docContent !== undefined) return docContent.textContent;
console.warn(
Expand Down Expand Up @@ -504,21 +502,22 @@ const Search = {
* latter for highlighting it.
*/
makeSearchSummary: (htmlText, keywords, highlightWords) => {
const text = Search.htmlToText(htmlText).toLowerCase();
const text = Search.htmlToText(htmlText);
if (text === "") return null;

const textLower = text.toLowerCase();
const actualStartPosition = [...keywords]
.map((k) => text.indexOf(k.toLowerCase()))
.map((k) => textLower.indexOf(k.toLowerCase()))
.filter((i) => i > -1)
.slice(-1)[0];
const startWithContext = Math.max(actualStartPosition - 120, 0);

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

let summary = document.createElement("div");
let summary = document.createElement("p");
summary.classList.add("context");
summary.innerText = top + text.substr(startWithContext, 240).trim() + tail;
summary.textContent = top + text.substr(startWithContext, 240).trim() + tail;

highlightWords.forEach((highlightWord) =>
_highlightText(summary, highlightWord, "highlighted")
Expand Down
2 changes: 1 addition & 1 deletion docs/audit-logs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http-equiv="Content-Type"
content="text/html; charset=utf-8"
/>
<meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
<meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

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

Expand Down
Loading

0 comments on commit ffffc18

Please sign in to comment.