@tightknitai/block-kitchen 0.8.11 → 0.9.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.
- package/README.md +7 -5
- package/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/index.cjs +61 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +61 -8
- package/dist/index.js.map +1 -1
- package/dist/{palette-Bup05opK.d.cts → palette-DIbvAzRA.d.cts} +12 -8
- package/dist/{palette-Bup05opK.d.ts → palette-DIbvAzRA.d.ts} +12 -8
- package/dist/palette.d.cts +1 -1
- package/dist/palette.d.ts +1 -1
- package/package.json +1 -1
|
@@ -654,9 +654,10 @@ interface UpdateResult {
|
|
|
654
654
|
}
|
|
655
655
|
/**
|
|
656
656
|
* One entry in the "recent messages from this app" picker, returned by
|
|
657
|
-
* {@link EditingConfig.loadRecentMessages}. These are
|
|
658
|
-
* — the app authored them — so they load straight into
|
|
659
|
-
* separate verdict round-trip. `editableVia` defaults to
|
|
657
|
+
* {@link EditingConfig.loadRecentMessages} for the selected channel. These are
|
|
658
|
+
* editable-by-construction — the app authored them — so they load straight into
|
|
659
|
+
* edit mode without a separate verdict round-trip. `editableVia` defaults to
|
|
660
|
+
* `'bot'` when omitted.
|
|
660
661
|
*/
|
|
661
662
|
interface RecentMessage {
|
|
662
663
|
channelId: string;
|
|
@@ -693,11 +694,14 @@ interface EditingConfig {
|
|
|
693
694
|
onUpdate: (payload: UpdatePayload) => Promise<UpdateResult>;
|
|
694
695
|
/**
|
|
695
696
|
* Optional. When provided, the load dialog adds a "recent messages from this
|
|
696
|
-
* app" picker alongside the paste-a-link input.
|
|
697
|
-
*
|
|
698
|
-
*
|
|
699
|
-
|
|
700
|
-
|
|
697
|
+
* app" picker alongside the paste-a-link input. The user first picks a channel
|
|
698
|
+
* (reusing {@link BlockKitchenProps.loadChannels}); only then is this called
|
|
699
|
+
* with the chosen `channelId`, scoping the lookup to that single channel.
|
|
700
|
+
* Returns messages the app authored in that channel (editable-by-construction);
|
|
701
|
+
* picking one loads it straight into edit mode. Omit to offer the paste-link
|
|
702
|
+
* entry only.
|
|
703
|
+
*/
|
|
704
|
+
loadRecentMessages?: (channelId: string) => Promise<RecentMessage[]>;
|
|
701
705
|
}
|
|
702
706
|
/**
|
|
703
707
|
* A workspace custom emoji as configured in Slack. Mirrors the shape Slack's
|
|
@@ -654,9 +654,10 @@ interface UpdateResult {
|
|
|
654
654
|
}
|
|
655
655
|
/**
|
|
656
656
|
* One entry in the "recent messages from this app" picker, returned by
|
|
657
|
-
* {@link EditingConfig.loadRecentMessages}. These are
|
|
658
|
-
* — the app authored them — so they load straight into
|
|
659
|
-
* separate verdict round-trip. `editableVia` defaults to
|
|
657
|
+
* {@link EditingConfig.loadRecentMessages} for the selected channel. These are
|
|
658
|
+
* editable-by-construction — the app authored them — so they load straight into
|
|
659
|
+
* edit mode without a separate verdict round-trip. `editableVia` defaults to
|
|
660
|
+
* `'bot'` when omitted.
|
|
660
661
|
*/
|
|
661
662
|
interface RecentMessage {
|
|
662
663
|
channelId: string;
|
|
@@ -693,11 +694,14 @@ interface EditingConfig {
|
|
|
693
694
|
onUpdate: (payload: UpdatePayload) => Promise<UpdateResult>;
|
|
694
695
|
/**
|
|
695
696
|
* Optional. When provided, the load dialog adds a "recent messages from this
|
|
696
|
-
* app" picker alongside the paste-a-link input.
|
|
697
|
-
*
|
|
698
|
-
*
|
|
699
|
-
|
|
700
|
-
|
|
697
|
+
* app" picker alongside the paste-a-link input. The user first picks a channel
|
|
698
|
+
* (reusing {@link BlockKitchenProps.loadChannels}); only then is this called
|
|
699
|
+
* with the chosen `channelId`, scoping the lookup to that single channel.
|
|
700
|
+
* Returns messages the app authored in that channel (editable-by-construction);
|
|
701
|
+
* picking one loads it straight into edit mode. Omit to offer the paste-link
|
|
702
|
+
* entry only.
|
|
703
|
+
*/
|
|
704
|
+
loadRecentMessages?: (channelId: string) => Promise<RecentMessage[]>;
|
|
701
705
|
}
|
|
702
706
|
/**
|
|
703
707
|
* A workspace custom emoji as configured in Slack. Mirrors the shape Slack's
|
package/dist/palette.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as PaletteSection, x as PaletteVariant, T as SupportedBlock, U as SupportedBlockType, a4 as buildVariantById, a5 as defaultPalette, a6 as extraAlertVariant, a7 as legacyInputVariants } from './palette-
|
|
1
|
+
export { P as PaletteSection, x as PaletteVariant, T as SupportedBlock, U as SupportedBlockType, a4 as buildVariantById, a5 as defaultPalette, a6 as extraAlertVariant, a7 as legacyInputVariants } from './palette-DIbvAzRA.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'slack-web-api-client';
|
package/dist/palette.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as PaletteSection, x as PaletteVariant, T as SupportedBlock, U as SupportedBlockType, a4 as buildVariantById, a5 as defaultPalette, a6 as extraAlertVariant, a7 as legacyInputVariants } from './palette-
|
|
1
|
+
export { P as PaletteSection, x as PaletteVariant, T as SupportedBlock, U as SupportedBlockType, a4 as buildVariantById, a5 as defaultPalette, a6 as extraAlertVariant, a7 as legacyInputVariants } from './palette-DIbvAzRA.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'slack-web-api-client';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tightknitai/block-kitchen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "A drag-and-drop, no-code-friendly visual builder for Slack Block Kit messages. Integration-agnostic React component.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|