Public Utilities Import from @verbb/plugin-kit-react/utils (src/utils/index.ts).
This page covers the utility surface added by plugin-kit-react, plus the fact that the barrel also re-exports @verbb/plugin-kit.
From @verbb/plugin-kit The barrel re-exports export * from '@verbb/plugin-kit' . Anything documented for base plugin-kit remains available here; this page lists additions in plugin-kit-react.
Classes / styling Symbol Module Notes cnutils/classes.tsclsx + tailwind-merge helper for components.
App configuration Symbol Notes configurePluginKitReactPortal + i18n + host bridge setup. PluginKitReactConfigOptions type for configurePluginKitReact. createCraftHostBridgeCraft CP bridge factory.
Host bridge Symbol Notes setHostBridge, getHostBridgeMerge / read global bridge. hostRequest, hostOpenElementSelector, hostFormatDate, hostGetTimepickerOptions, hostGetLocaleCall through configured bridge. HostRequestMethod, HostRequestConfig, HostElementSelectorOptions, HostSelectedElement, PluginKitReactHostBridgeTypes.
Portals Symbol Notes setPortalClassName, getPortalClassNameClass for portaled UI. setPortalContainer, getPortalContainerShadow root / element target. setShadowRootSelectors, getShadowRootSelectorsHost lookup helpers. getPortalTargetForAppendResolved append target.
Translation Symbol Notes setTranslationCategory, setTranslateFunction, translateCP / test overrides. TranslateParamsString map type.
Schema helpers Symbol Notes evaluateCondition, traverseSchema, extractFields, extractFieldNames, normalizeAttrsutils/schema.tsgetSchemaFieldNamesutils/schemaFieldNames.tscreateSchemaFieldIndex, hasSchemaErrorsutils/schemaIndex.tsgetSchemaFieldIndex, hasSchemaErrorsCachedutils/schemaIndexCache.tsnormalizeSchemaNodeutils/schemaNormalize.ts
Validation Symbol Notes validateFormValuesValibot validation from schema + values → { fields } map.
Handles Symbol Notes buildUniqueHandleFromSource, getDynamicReservedHandlesutils/handle.ts
Rich text Symbol Notes getRichTextHtml, getRichTextTextutils/tiptap.ts
Time Symbol Notes generateTimeOptions, clearTimeOptionsCacheutils/timeOptions.ts
Store Symbol Notes zustandHmrFixHMR helper for Zustand-like stores in Vite.
Example ts import {
cn,
configurePluginKitReact,
createCraftHostBridge,
evaluateCondition,
validateFormValues,
} from '@verbb/plugin-kit-react/utils' ;