@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.
@@ -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 editable-by-construction
658
- * — the app authored them — so they load straight into edit mode without a
659
- * separate verdict round-trip. `editableVia` defaults to `'bot'` when omitted.
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. Returns messages the app
697
- * authored (editable-by-construction); picking one loads it straight into
698
- * edit mode. Omit to offer the paste-link entry only.
699
- */
700
- loadRecentMessages?: () => Promise<RecentMessage[]>;
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 editable-by-construction
658
- * — the app authored them — so they load straight into edit mode without a
659
- * separate verdict round-trip. `editableVia` defaults to `'bot'` when omitted.
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. Returns messages the app
697
- * authored (editable-by-construction); picking one loads it straight into
698
- * edit mode. Omit to offer the paste-link entry only.
699
- */
700
- loadRecentMessages?: () => Promise<RecentMessage[]>;
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
@@ -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-Bup05opK.cjs';
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-Bup05opK.js';
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.8.11",
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",