Skip to content

Commit 48a793d

Browse files
committed
version 1.15.4
1 parent 157e7ea commit 48a793d

File tree

6 files changed

+144
-10
lines changed

6 files changed

+144
-10
lines changed

docs/api-docs/slack_bolt/logger/messages.html

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ <h1 class="title">Module <code>slack_bolt.logger.messages</code></h1>
3838
is_options,
3939
is_shortcut,
4040
is_slash_command,
41-
is_view,
41+
is_view_submission,
42+
is_view_closed,
4243
is_workflow_step_edit,
4344
is_workflow_step_save,
4445
is_workflow_step_execute,
@@ -269,13 +270,24 @@ <h1 class="title">Module <code>slack_bolt.logger.messages</code></h1>
269270
logger.info(body)
270271
&#34;&#34;&#34;,
271272
)
272-
if is_view(req.body):
273+
if is_view_submission(req.body):
273274
# @app.view
274275
return _build_unhandled_request_suggestion(
275276
default_message,
276277
f&#34;&#34;&#34;
277278
@app.view(&#34;{req.body.get(&#39;view&#39;, {}).get(&#39;callback_id&#39;, &#39;modal-view-id&#39;)}&#34;)
278-
{&#39;async &#39; if is_async else &#39;&#39;}def handle_view_events(ack, body, logger):
279+
{&#39;async &#39; if is_async else &#39;&#39;}def handle_view_submission_events(ack, body, logger):
280+
{&#39;await &#39; if is_async else &#39;&#39;}ack()
281+
logger.info(body)
282+
&#34;&#34;&#34;,
283+
)
284+
if is_view_closed(req.body):
285+
# @app.view
286+
return _build_unhandled_request_suggestion(
287+
default_message,
288+
f&#34;&#34;&#34;
289+
@app.view_closed(&#34;{req.body.get(&#39;view&#39;, {}).get(&#39;callback_id&#39;, &#39;modal-view-id&#39;)}&#34;)
290+
{&#39;async &#39; if is_async else &#39;&#39;}def handle_view_closed_events(ack, body, logger):
279291
{&#39;await &#39; if is_async else &#39;&#39;}ack()
280292
logger.info(body)
281293
&#34;&#34;&#34;,
@@ -811,13 +823,24 @@ <h2 class="section-title" id="header-functions">Functions</h2>
811823
logger.info(body)
812824
&#34;&#34;&#34;,
813825
)
814-
if is_view(req.body):
826+
if is_view_submission(req.body):
815827
# @app.view
816828
return _build_unhandled_request_suggestion(
817829
default_message,
818830
f&#34;&#34;&#34;
819831
@app.view(&#34;{req.body.get(&#39;view&#39;, {}).get(&#39;callback_id&#39;, &#39;modal-view-id&#39;)}&#34;)
820-
{&#39;async &#39; if is_async else &#39;&#39;}def handle_view_events(ack, body, logger):
832+
{&#39;async &#39; if is_async else &#39;&#39;}def handle_view_submission_events(ack, body, logger):
833+
{&#39;await &#39; if is_async else &#39;&#39;}ack()
834+
logger.info(body)
835+
&#34;&#34;&#34;,
836+
)
837+
if is_view_closed(req.body):
838+
# @app.view
839+
return _build_unhandled_request_suggestion(
840+
default_message,
841+
f&#34;&#34;&#34;
842+
@app.view_closed(&#34;{req.body.get(&#39;view&#39;, {}).get(&#39;callback_id&#39;, &#39;modal-view-id&#39;)}&#34;)
843+
{&#39;async &#39; if is_async else &#39;&#39;}def handle_view_closed_events(ack, body, logger):
821844
{&#39;await &#39; if is_async else &#39;&#39;}ack()
822845
logger.info(body)
823846
&#34;&#34;&#34;,

docs/api-docs/slack_bolt/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_bolt.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-bolt/&#34;&#34;&#34;
31-
__version__ = &#34;1.15.2&#34;</code></pre>
31+
__version__ = &#34;1.15.4&#34;</code></pre>
3232
</details>
3333
</section>
3434
<section>

docs/api-docs/slack_bolt/workflows/step/async_step.html

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,18 @@ <h1 class="title">Module <code>slack_bolt.workflows.step.async_step</code></h1>
336336
app_name: Optional[str] = None,
337337
base_logger: Optional[Logger] = None,
338338
):
339+
&#34;&#34;&#34;
340+
Args:
341+
callback_id: The callback_id for this workflow step
342+
edit: Either a single function or a list of functions for opening a modal in the builder UI
343+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
344+
save: Either a single function or a list of functions for handling modal interactions in the builder UI
345+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
346+
execute: Either a single function or a list of functions for handling workflow step executions
347+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
348+
app_name: The app name that can be mainly used for logging
349+
base_logger: The logger instance that can be used as a template when creating this step&#39;s logger
350+
&#34;&#34;&#34;
339351
self.callback_id = callback_id
340352
app_name = app_name or __name__
341353
self.edit = self.build_listener(
@@ -540,7 +552,24 @@ <h2 class="section-title" id="header-classes">Classes</h2>
540552
<span>(</span><span>*, callback_id: Union[str, Pattern], edit: Union[Callable[..., Awaitable[<a title="slack_bolt.response.response.BoltResponse" href="../../response/response.html#slack_bolt.response.response.BoltResponse">BoltResponse</a>]], <a title="slack_bolt.listener.async_listener.AsyncListener" href="../../listener/async_listener.html#slack_bolt.listener.async_listener.AsyncListener">AsyncListener</a>, Sequence[Callable]], save: Union[Callable[..., Awaitable[<a title="slack_bolt.response.response.BoltResponse" href="../../response/response.html#slack_bolt.response.response.BoltResponse">BoltResponse</a>]], <a title="slack_bolt.listener.async_listener.AsyncListener" href="../../listener/async_listener.html#slack_bolt.listener.async_listener.AsyncListener">AsyncListener</a>, Sequence[Callable]], execute: Union[Callable[..., Awaitable[<a title="slack_bolt.response.response.BoltResponse" href="../../response/response.html#slack_bolt.response.response.BoltResponse">BoltResponse</a>]], <a title="slack_bolt.listener.async_listener.AsyncListener" href="../../listener/async_listener.html#slack_bolt.listener.async_listener.AsyncListener">AsyncListener</a>, Sequence[Callable]], app_name: Optional[str] = None, base_logger: Optional[logging.Logger] = None)</span>
541553
</code></dt>
542554
<dd>
543-
<div class="desc"></div>
555+
<div class="desc"><h2 id="args">Args</h2>
556+
<dl>
557+
<dt><strong><code>callback_id</code></strong></dt>
558+
<dd>The callback_id for this workflow step</dd>
559+
<dt><strong><code>edit</code></strong></dt>
560+
<dd>Either a single function or a list of functions for opening a modal in the builder UI
561+
When it's a list, the first one is responsible for ack() while the rest are lazy listeners.</dd>
562+
<dt><strong><code>save</code></strong></dt>
563+
<dd>Either a single function or a list of functions for handling modal interactions in the builder UI
564+
When it's a list, the first one is responsible for ack() while the rest are lazy listeners.</dd>
565+
<dt><strong><code>execute</code></strong></dt>
566+
<dd>Either a single function or a list of functions for handling workflow step executions
567+
When it's a list, the first one is responsible for ack() while the rest are lazy listeners.</dd>
568+
<dt><strong><code>app_name</code></strong></dt>
569+
<dd>The app name that can be mainly used for logging</dd>
570+
<dt><strong><code>base_logger</code></strong></dt>
571+
<dd>The logger instance that can be used as a template when creating this step's logger</dd>
572+
</dl></div>
544573
<details class="source">
545574
<summary>
546575
<span>Expand source code</span>
@@ -565,6 +594,18 @@ <h2 class="section-title" id="header-classes">Classes</h2>
565594
app_name: Optional[str] = None,
566595
base_logger: Optional[Logger] = None,
567596
):
597+
&#34;&#34;&#34;
598+
Args:
599+
callback_id: The callback_id for this workflow step
600+
edit: Either a single function or a list of functions for opening a modal in the builder UI
601+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
602+
save: Either a single function or a list of functions for handling modal interactions in the builder UI
603+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
604+
execute: Either a single function or a list of functions for handling workflow step executions
605+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
606+
app_name: The app name that can be mainly used for logging
607+
base_logger: The logger instance that can be used as a template when creating this step&#39;s logger
608+
&#34;&#34;&#34;
568609
self.callback_id = callback_id
569610
app_name = app_name or __name__
570611
self.edit = self.build_listener(

docs/api-docs/slack_bolt/workflows/step/index.html

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,24 @@ <h2 class="section-title" id="header-classes">Classes</h2>
390390
<span>(</span><span>*, callback_id: Union[str, Pattern], edit: Union[Callable[..., Optional[<a title="slack_bolt.response.response.BoltResponse" href="../../response/response.html#slack_bolt.response.response.BoltResponse">BoltResponse</a>]], <a title="slack_bolt.listener.listener.Listener" href="../../listener/listener.html#slack_bolt.listener.listener.Listener">Listener</a>, Sequence[Callable]], save: Union[Callable[..., Optional[<a title="slack_bolt.response.response.BoltResponse" href="../../response/response.html#slack_bolt.response.response.BoltResponse">BoltResponse</a>]], <a title="slack_bolt.listener.listener.Listener" href="../../listener/listener.html#slack_bolt.listener.listener.Listener">Listener</a>, Sequence[Callable]], execute: Union[Callable[..., Optional[<a title="slack_bolt.response.response.BoltResponse" href="../../response/response.html#slack_bolt.response.response.BoltResponse">BoltResponse</a>]], <a title="slack_bolt.listener.listener.Listener" href="../../listener/listener.html#slack_bolt.listener.listener.Listener">Listener</a>, Sequence[Callable]], app_name: Optional[str] = None, base_logger: Optional[logging.Logger] = None)</span>
391391
</code></dt>
392392
<dd>
393-
<div class="desc"></div>
393+
<div class="desc"><h2 id="args">Args</h2>
394+
<dl>
395+
<dt><strong><code>callback_id</code></strong></dt>
396+
<dd>The callback_id for this workflow step</dd>
397+
<dt><strong><code>edit</code></strong></dt>
398+
<dd>Either a single function or a list of functions for opening a modal in the builder UI
399+
When it's a list, the first one is responsible for ack() while the rest are lazy listeners.</dd>
400+
<dt><strong><code>save</code></strong></dt>
401+
<dd>Either a single function or a list of functions for handling modal interactions in the builder UI
402+
When it's a list, the first one is responsible for ack() while the rest are lazy listeners.</dd>
403+
<dt><strong><code>execute</code></strong></dt>
404+
<dd>Either a single function or a list of functions for handling workflow step executions
405+
When it's a list, the first one is responsible for ack() while the rest are lazy listeners.</dd>
406+
<dt><strong><code>app_name</code></strong></dt>
407+
<dd>The app name that can be mainly used for logging</dd>
408+
<dt><strong><code>base_logger</code></strong></dt>
409+
<dd>The logger instance that can be used as a template when creating this step's logger</dd>
410+
</dl></div>
394411
<details class="source">
395412
<summary>
396413
<span>Expand source code</span>
@@ -415,6 +432,18 @@ <h2 class="section-title" id="header-classes">Classes</h2>
415432
app_name: Optional[str] = None,
416433
base_logger: Optional[Logger] = None,
417434
):
435+
&#34;&#34;&#34;
436+
Args:
437+
callback_id: The callback_id for this workflow step
438+
edit: Either a single function or a list of functions for opening a modal in the builder UI
439+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
440+
save: Either a single function or a list of functions for handling modal interactions in the builder UI
441+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
442+
execute: Either a single function or a list of functions for handling workflow step executions
443+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
444+
app_name: The app name that can be mainly used for logging
445+
base_logger: The logger instance that can be used as a template when creating this step&#39;s logger
446+
&#34;&#34;&#34;
418447
self.callback_id = callback_id
419448
app_name = app_name or __name__
420449
self.edit = self.build_listener(

docs/api-docs/slack_bolt/workflows/step/step.html

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,18 @@ <h1 class="title">Module <code>slack_bolt.workflows.step.step</code></h1>
347347
app_name: Optional[str] = None,
348348
base_logger: Optional[Logger] = None,
349349
):
350+
&#34;&#34;&#34;
351+
Args:
352+
callback_id: The callback_id for this workflow step
353+
edit: Either a single function or a list of functions for opening a modal in the builder UI
354+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
355+
save: Either a single function or a list of functions for handling modal interactions in the builder UI
356+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
357+
execute: Either a single function or a list of functions for handling workflow step executions
358+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
359+
app_name: The app name that can be mainly used for logging
360+
base_logger: The logger instance that can be used as a template when creating this step&#39;s logger
361+
&#34;&#34;&#34;
350362
self.callback_id = callback_id
351363
app_name = app_name or __name__
352364
self.edit = self.build_listener(
@@ -559,7 +571,24 @@ <h2 class="section-title" id="header-classes">Classes</h2>
559571
<span>(</span><span>*, callback_id: Union[str, Pattern], edit: Union[Callable[..., Optional[<a title="slack_bolt.response.response.BoltResponse" href="../../response/response.html#slack_bolt.response.response.BoltResponse">BoltResponse</a>]], <a title="slack_bolt.listener.listener.Listener" href="../../listener/listener.html#slack_bolt.listener.listener.Listener">Listener</a>, Sequence[Callable]], save: Union[Callable[..., Optional[<a title="slack_bolt.response.response.BoltResponse" href="../../response/response.html#slack_bolt.response.response.BoltResponse">BoltResponse</a>]], <a title="slack_bolt.listener.listener.Listener" href="../../listener/listener.html#slack_bolt.listener.listener.Listener">Listener</a>, Sequence[Callable]], execute: Union[Callable[..., Optional[<a title="slack_bolt.response.response.BoltResponse" href="../../response/response.html#slack_bolt.response.response.BoltResponse">BoltResponse</a>]], <a title="slack_bolt.listener.listener.Listener" href="../../listener/listener.html#slack_bolt.listener.listener.Listener">Listener</a>, Sequence[Callable]], app_name: Optional[str] = None, base_logger: Optional[logging.Logger] = None)</span>
560572
</code></dt>
561573
<dd>
562-
<div class="desc"></div>
574+
<div class="desc"><h2 id="args">Args</h2>
575+
<dl>
576+
<dt><strong><code>callback_id</code></strong></dt>
577+
<dd>The callback_id for this workflow step</dd>
578+
<dt><strong><code>edit</code></strong></dt>
579+
<dd>Either a single function or a list of functions for opening a modal in the builder UI
580+
When it's a list, the first one is responsible for ack() while the rest are lazy listeners.</dd>
581+
<dt><strong><code>save</code></strong></dt>
582+
<dd>Either a single function or a list of functions for handling modal interactions in the builder UI
583+
When it's a list, the first one is responsible for ack() while the rest are lazy listeners.</dd>
584+
<dt><strong><code>execute</code></strong></dt>
585+
<dd>Either a single function or a list of functions for handling workflow step executions
586+
When it's a list, the first one is responsible for ack() while the rest are lazy listeners.</dd>
587+
<dt><strong><code>app_name</code></strong></dt>
588+
<dd>The app name that can be mainly used for logging</dd>
589+
<dt><strong><code>base_logger</code></strong></dt>
590+
<dd>The logger instance that can be used as a template when creating this step's logger</dd>
591+
</dl></div>
563592
<details class="source">
564593
<summary>
565594
<span>Expand source code</span>
@@ -584,6 +613,18 @@ <h2 class="section-title" id="header-classes">Classes</h2>
584613
app_name: Optional[str] = None,
585614
base_logger: Optional[Logger] = None,
586615
):
616+
&#34;&#34;&#34;
617+
Args:
618+
callback_id: The callback_id for this workflow step
619+
edit: Either a single function or a list of functions for opening a modal in the builder UI
620+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
621+
save: Either a single function or a list of functions for handling modal interactions in the builder UI
622+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
623+
execute: Either a single function or a list of functions for handling workflow step executions
624+
When it&#39;s a list, the first one is responsible for ack() while the rest are lazy listeners.
625+
app_name: The app name that can be mainly used for logging
626+
base_logger: The logger instance that can be used as a template when creating this step&#39;s logger
627+
&#34;&#34;&#34;
587628
self.callback_id = callback_id
588629
app_name = app_name or __name__
589630
self.edit = self.build_listener(

slack_bolt/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Check the latest version at https://pypi.org/project/slack-bolt/"""
2-
__version__ = "1.15.3"
2+
__version__ = "1.15.4"

0 commit comments

Comments
 (0)