Skip to content

pantoken / renderers/pendo/src / BuildPendoCssOptions

インターフェース: BuildPendoCssOptions

ベータ

buildPendoCss のオプション。

プロパティ

theme?

optional theme?: Theme

ベータ

--instui-* レイヤーのソースとなるテーマ (デフォルト "rebrand")。


scopeSelector?

optional scopeSelector?: string

ベータ

@scope のルートセレクタ (デフォルト [class*="instui"]._pendo-step-container)。


scope?

optional scope?: boolean

ベータ

DOM の包含のためにコンポーネントのルールを @scope でラップする (デフォルト true)。


important?

optional important?: boolean

ベータ

Pendo のスタイルより優先されるように、コンポーネント宣言に !important を追加する (デフォルト true)。


prune?

optional prune?: boolean

ベータ

未使用の --instui-* トークンをツリーシェイクする (デフォルト true; 無効にするとトークン全体が出力されます)。


flatten?

optional flatten?: boolean | FlattenPropertyOptions

ベータ

@property の at-rule を flattenProperty を使って通常のカスタムプロパティ宣言に変換する (デフォルト false)。true はプラグインのデフォルトを injectSelector: ":scope" と共に使用し、宣言は @scope ブロック内に配置されます。個別のデフォルトを上書きするには FlattenPropertyOptions オブジェクトを渡してください。


mangle?

optional mangle?: boolean | MangleCustomPropsOptions

ベータ

--instui-* の名前を mangleCustomProps を使って最小の base-26 識別子に難読化する (デフォルト false)。完全なトークンとコンポーネントのスタイルシートが自己完結型のバンドルであるためここでは安全です。デフォルトを上書きするには MangleCustomPropsOptions オブジェクトを渡してください。