@tightknitai/block-kitchen 0.10.23 → 0.10.24

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.
@@ -1161,6 +1161,13 @@ interface BlockKitchenBaseProps {
1161
1161
  * host can find a block on the canvas to scroll to or highlight it.
1162
1162
  */
1163
1163
  blockActions?: readonly BlockAction[];
1164
+ /**
1165
+ * Opt-in host content shown beside every block, at its right edge, all the
1166
+ * time (unlike `blockActions`, which show on hover): e.g. a count of
1167
+ * comments on the block. Called with the block's position (see
1168
+ * {@link BlockPosition}); return `null` for a block with nothing to show.
1169
+ */
1170
+ renderBlockAdornment?: (position: BlockPosition) => ReactNode;
1164
1171
  /**
1165
1172
  * Workspace custom emoji (`emoji.list`) the preview should resolve. Entries
1166
1173
  * with a non-null `url` render as the workspace image; alias entries fall
@@ -1161,6 +1161,13 @@ interface BlockKitchenBaseProps {
1161
1161
  * host can find a block on the canvas to scroll to or highlight it.
1162
1162
  */
1163
1163
  blockActions?: readonly BlockAction[];
1164
+ /**
1165
+ * Opt-in host content shown beside every block, at its right edge, all the
1166
+ * time (unlike `blockActions`, which show on hover): e.g. a count of
1167
+ * comments on the block. Called with the block's position (see
1168
+ * {@link BlockPosition}); return `null` for a block with nothing to show.
1169
+ */
1170
+ renderBlockAdornment?: (position: BlockPosition) => ReactNode;
1164
1171
  /**
1165
1172
  * Workspace custom emoji (`emoji.list`) the preview should resolve. Entries
1166
1173
  * with a non-null `url` render as the workspace image; alias entries fall
@@ -1,3 +1,3 @@
1
- export { $ as PaletteMode, a0 as PaletteSection, a1 as PaletteVariant, S as SupportedBlock, aa as SupportedBlockType, aq as buildVariantById, an as defaultPalette, ao as extraAlertVariant, ap as legacyInputVariants } from './palette-DFTL0Han.cjs';
1
+ export { $ as PaletteMode, a0 as PaletteSection, a1 as PaletteVariant, S as SupportedBlock, aa as SupportedBlockType, aq as buildVariantById, an as defaultPalette, ao as extraAlertVariant, ap as legacyInputVariants } from './palette-Bup6i-9c.cjs';
2
2
  import 'react';
3
3
  import 'slack-web-api-client';
package/dist/palette.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { $ as PaletteMode, a0 as PaletteSection, a1 as PaletteVariant, S as SupportedBlock, aa as SupportedBlockType, aq as buildVariantById, an as defaultPalette, ao as extraAlertVariant, ap as legacyInputVariants } from './palette-DFTL0Han.js';
1
+ export { $ as PaletteMode, a0 as PaletteSection, a1 as PaletteVariant, S as SupportedBlock, aa as SupportedBlockType, aq as buildVariantById, an as defaultPalette, ao as extraAlertVariant, ap as legacyInputVariants } from './palette-Bup6i-9c.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.10.23",
3
+ "version": "0.10.24",
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",