Migrates existing Pluma Banner description content to the new explicit
description APIs.
Before this change, React children and Ember yielded content were always
wrapped in the Banner description paragraph. Banner now renders regular
children/yielded content directly in the content area, so existing usages that
intend description text should move to description.
Run it through the Pluma CLI from inside your consuming app:
Both codemods support dry runs. The React codemod uses jscodeshift flags, so
--dry/-d skips writes and -p prints the transformed output:
The Ember codemod has its own --dry flag:
becomes:
Only Banner imports from @customerio/pluma-components,
@customerio/pluma-components/react, and
@customerio/pluma-components/react/banner are migrated. Usages that already
have a description prop are left alone.
becomes:
The Ember codemod processes .gts, .gjs, and .hbs files. Usages that
already have @description or named blocks are left alone.