@guidelytech/shared

v0.9.0

Published

Shared schemas, types and pure utilities for Guidely

Readme

@guidelytech/shared

Zod schemas, TypeScript types and pure utilities shared by the Guidely dashboard, editor and SDK: GuideConfig, GuideStep, targeting Rule/RuleGroup and evaluateRules, event schemas, the public SDK API contracts, and the guide template library.

npm install @guidelytech/shared
import { GuideConfigSchema, evaluateRules, GUIDE_TEMPLATES } from "@guidelytech/shared";
// zod-free entry for browser runtimes:
import { evaluateRules, matchUrlPattern, randomId } from "@guidelytech/shared/runtime";

You normally don't install this directly; @guidelytech/react, @guidelytech/svelte and friends depend on it.