@pipedream/slack 0.6.6 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,43 @@
1
+ import buildBlocks from "../common/build-blocks.mjs";
2
+ import common from "../common/send-message.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ ...buildBlocks,
7
+ key: "slack-send-block-kit-message",
8
+ name: "Build and Send a Block Kit Message",
9
+ description: "Configure custom blocks and send to a channel, group, or user. [See the documentation](https://api.slack.com/tools/block-kit-builder).",
10
+ version: "0.4.0",
11
+ type: "action",
12
+ props: {
13
+ slack: common.props.slack,
14
+ conversation: {
15
+ propDefinition: [
16
+ common.props.slack,
17
+ "conversation",
18
+ ],
19
+ },
20
+ text: {
21
+ type: "string",
22
+ label: "Notification Text",
23
+ description: "Optionally provide a string for Slack to display as the new message notification (if you do not provide this, notification will be blank).",
24
+ optional: true,
25
+ },
26
+ ...common.props,
27
+ ...buildBlocks.props,
28
+ },
29
+ methods: {
30
+ ...common.methods,
31
+ ...buildBlocks.methods,
32
+ async getGeneratedBlocks() {
33
+ return await buildBlocks.run.call(this); // call buildBlocks.run with the current context
34
+ },
35
+ },
36
+ async run({ $ }) {
37
+ this.blocks = await this.getGeneratedBlocks(); // set the blocks prop for common.run to use
38
+ const resp = await common.run.call(this, {
39
+ $,
40
+ }); // call common.run with the current context
41
+ return resp;
42
+ },
43
+ };
@@ -6,7 +6,7 @@ export default {
6
6
  key: "slack-send-message",
7
7
  name: "Send Message",
8
8
  description: "Send a message to a user, group, private channel or public channel. [See the documentation](https://api.slack.com/methods/chat.postMessage)",
9
- version: "0.0.14",
9
+ version: "0.0.15",
10
10
  type: "action",
11
11
  props: {
12
12
  slack: common.props.slack,
@@ -21,7 +21,7 @@ export default {
21
21
  conversation: {
22
22
  propDefinition: [
23
23
  common.props.slack,
24
- "channelId",
24
+ "conversation",
25
25
  (c) => ({
26
26
  types: c.channelType === "Channels"
27
27
  ? [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/slack",
3
- "version": "0.6.6",
3
+ "version": "0.7.0",
4
4
  "description": "Pipedream Slack Components",
5
5
  "main": "slack.app.mjs",
6
6
  "keywords": [