@tightknitai/block-kitchen 0.9.4 → 0.9.6
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/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/index.cjs +11 -3
- 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 +12 -4
- package/dist/index.js.map +1 -1
- package/dist/{palette-inX8F01o.d.cts → palette-CKP8CK5Z.d.cts} +10 -0
- package/dist/{palette-inX8F01o.d.ts → palette-CKP8CK5Z.d.ts} +10 -0
- package/dist/palette.d.cts +1 -1
- package/dist/palette.d.ts +1 -1
- package/package.json +1 -1
|
@@ -710,6 +710,16 @@ interface EditingConfig {
|
|
|
710
710
|
* entry only.
|
|
711
711
|
*/
|
|
712
712
|
loadRecentMessages?: (channelId: string) => Promise<RecentMessage[]>;
|
|
713
|
+
/**
|
|
714
|
+
* Optional. Pre-load a message straight into edit mode at mount, skipping the
|
|
715
|
+
* load dialog. Same shape the host returns from {@link onLoadMessage} on
|
|
716
|
+
* success. Read once at mount (like {@link BlockKitchenProps.initialBlocks});
|
|
717
|
+
* changing it later needs a remount. When set, its `blocks` seed the draft and
|
|
718
|
+
* {@link BlockKitchenProps.initialBlocks} is ignored.
|
|
719
|
+
*/
|
|
720
|
+
initialTarget?: Extract<LoadResult, {
|
|
721
|
+
ok: true;
|
|
722
|
+
}>;
|
|
713
723
|
}
|
|
714
724
|
/**
|
|
715
725
|
* A workspace custom emoji as configured in Slack. Mirrors the shape Slack's
|
|
@@ -710,6 +710,16 @@ interface EditingConfig {
|
|
|
710
710
|
* entry only.
|
|
711
711
|
*/
|
|
712
712
|
loadRecentMessages?: (channelId: string) => Promise<RecentMessage[]>;
|
|
713
|
+
/**
|
|
714
|
+
* Optional. Pre-load a message straight into edit mode at mount, skipping the
|
|
715
|
+
* load dialog. Same shape the host returns from {@link onLoadMessage} on
|
|
716
|
+
* success. Read once at mount (like {@link BlockKitchenProps.initialBlocks});
|
|
717
|
+
* changing it later needs a remount. When set, its `blocks` seed the draft and
|
|
718
|
+
* {@link BlockKitchenProps.initialBlocks} is ignored.
|
|
719
|
+
*/
|
|
720
|
+
initialTarget?: Extract<LoadResult, {
|
|
721
|
+
ok: true;
|
|
722
|
+
}>;
|
|
713
723
|
}
|
|
714
724
|
/**
|
|
715
725
|
* 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-CKP8CK5Z.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-CKP8CK5Z.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.9.
|
|
3
|
+
"version": "0.9.6",
|
|
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",
|