livevalidation

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package livevalidation exercises opt-in feedback using the same business rules as authoritative saves, through ordinary and plugin-owned field editors.

Index

Constants

View Source
const (
	CardSlug         = "live-card"
	NoteSlug         = "live-note"
	EmbeddedCardSlug = "live-embedded-card"
	OutlineCardSlug  = "live-outline-card"
	GlobalCardSlug   = "live-global-card"
)

Block slugs of this contract. A slug names one definition per application, and the browser fixture combines this contract with others that use plain "card" and "note" blocks, so these blocks have their own slugs while keeping the same editor labels. One definition also has one payload envelope, so the rich-text card (blockType/_key) and the outline card (schema/uid) are separate definitions.

Variables

This section is empty.

Functions

func CheckSKU

func CheckSKU(siblings operation.View, value operation.Value[string]) ([]operation.Issue, error)

func Collection

func Collection() core.Collection

func Config

func Config() core.Config

func Confirmation

func Confirmation(name string) field.CheckboxField

func Global

func Global() core.Global

func PackSizes

func PackSizes(name string) field.NumberListField

PackSizes demonstrates typed numbers and a sibling-dependent server rule.

func SKU

func SKU(name string) field.TextField

SKU keeps the read-only business rule independent from either callback phase.

func SupplierCodes

func SupplierCodes(name string) field.TextListField

SupplierCodes reuses one business rule for an entire ordered primitive list. Positional messages describe the current snapshot; no primitive item has an ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL