@opencraw/studio 0.0.16 → 0.0.18

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/index.esm.js CHANGED
@@ -2545,7 +2545,7 @@ function isBracketStepType(type) {
2545
2545
  }
2546
2546
 
2547
2547
  /** Step types the plan doc names as always going to a "custom" card: nothing here renders their meaning as a sentence. */
2548
- const ALWAYS_CUSTOM = new Set(['evaluate', 'hook', 'captcha']);
2548
+ const ALWAYS_CUSTOM = new Set(['evaluate', 'captcha']);
2549
2549
  /**
2550
2550
  * Turns one step's raw JSON into its sentence parts (word/pill/code), the
2551
2551
  * way the plan doc's examples read: *Go to…*, *Read… from…*, *For each… in…
@@ -2634,6 +2634,7 @@ const BUILDERS = {
2634
2634
  forEach: step => forEachSentence(step),
2635
2635
  paginate: step => paginateSentence(step),
2636
2636
  if: step => [word('If'), codeField(step, 'test')],
2637
+ hook: step => [word('Run hook'), pillField(step, 'name', '(choose a hook)')],
2637
2638
  emit: step => emitSentence(step)
2638
2639
  };
2639
2640
  function selectChoice(step) {