Index of every page on this site: llms.txt
All skills
wix avatar

/wix-app

@e2bc48e official
by Wix.comwix/skills40 stars
42
Run it yourself

Build and review Wix CLI app extensions — dashboard pages, modals, plugins, menu plugins, custom element widgets, Editor React components, site plugins, embedded scripts, context providers, function libraries, lightbox (popup) behavior, page onLoad contexts, backend APIs, backend events, service plugins, data collections, and App Market readiness. Use when building ANY feature or extension for a Wix CLI app or preparing a Wix app for App Market review. Triggers on: add, build, create, implement, help me, dashboard, widget, plugin, backend, API, event, collection, embedded script, service plugin, Editor React component, context provider, function library, onLoad, on page load, checkout, shipping, tax, discount, SPI, CMS, schema, tracking, popup, lightbox, admin panel, menu item, modal, validate, test, verify, register extension, App Market, app review, submission readiness.

Use this Skill: https://skilld.dev/gh/wix/skills/wix-app

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencescontext-providervertical-contextseventsregistration.md

≈1.7k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Events context: @wix/events/context/registration

Read Importing a Context in Code first. Import only the hook, from @wix/events/context/registration.

CheckoutState

import { CheckoutState } from '@wix/events/context/registration';
  • Parameters: __0: { children?: ReactNode; }
  • Returns: Element

RegistrationContent

import { RegistrationContent } from '@wix/events/context/registration';
  • Parameters: __0: PropsWithChildren<{ promise: Promise<{ policies: Policy[]; invoiceData: GetInvoiceResponse \| undefined; orderData: OrderData; formData: { forms: Record<string, Form$1 \| undefined>; fallbackFormId: string \| undefined; }; reservationId: string \| undefined; }>; }>
  • Returns: Element

RegistrationDataProvider

import { RegistrationDataProvider } from '@wix/events/context/registration';
  • Parameters: __0: PropsWithChildren<{ data: { policies: Policy[]; invoiceData: GetInvoiceResponse \| undefined; orderData: OrderData; formData: { forms: Record<string, Form$1 \| undefined>; fallbackFormId: string \| undefined; }; reservationId: string \| undefined; }; }>
  • Returns: Element

RegistrationState

import { RegistrationState } from '@wix/events/context/registration';
  • Parameters: __0: PropsWithChildren<Pick<RegistrationValue, "checkout" \| "rsvp">>
  • Returns: Element

RsvpState

import { RsvpState } from '@wix/events/context/registration';
  • Parameters: __0: { children?: ReactNode; }
  • Returns: Element

useRegistrationContext

Reads the registration state for the current event: its checkout or RSVP flow, registration data, and modal state.

import { useRegistrationContext } from '@wix/events/context/registration';
  • Parameters: none
  • Returns: RegistrationValue
Returned types
RegistrationValue
Property Type Description
checkout { coupon: DiscountState<CouponErrorCode>; giftCard: DiscountState<GiftCardErrorCode>; membership: DiscountState<never>; couponVisible: boolean; giftCardVisible: boolean; membershipVisible: boolean; applyCoupon: (code: string) => Promise<void>; removeCoupon: () => Promise<void>; applyGiftCard: (code: string) => Promise<void>; removeGiftCard: () => Promise<void>; applyMembership: (planOrderId: string) => Promise<void>; steps: CheckoutStep[]; currentStep: CheckoutStep; loadingStep: CheckoutStep | undefined; completedSteps: CheckoutStep[]; error: string | undefined; order: Order | undefined; invoice: Invoice | undefined; expires: Date | null | undefined; giftCardPaymentDetails: GiftCardPaymentDetails[] | undefined; paymentMethod: string | undefined; buyerDetails: FormValues; buyerDetailsDisabledTargets: string[]; guestDetails: FormValues[]; useBuyerDetails: boolean; policiesAgreed: boolean; submitDelayed: boolean; submitDisabled: boolean; setPaymentMethod: Dispatch<SetStateAction<string | undefined>>; setBuyerDetails: Dispatch<SetStateAction<FormValues>>; setGuestDetails: (index: number, values: FormValues) => void; setUseBuyerDetails: Dispatch<SetStateAction<boolean>>; setPoliciesAgreed: (agreed: boolean) => void; expressCheckout: (paymentDetailsId: string) => Promise<ClientStatus | undefined>; submitStep: (step: CheckoutStep) => Promise<void>; editStep: (step: CheckoutStep) => void; completePayment: (status?: CheckoutStatus | undefined, placedOrder?: Order | undefined) => Promise<boolean>; } | undefined
rsvp { steps: RsvpStep[]; currentStep: RsvpStep; loadingStep: RsvpStep | undefined; completedSteps: RsvpStep[]; error: string | undefined; guestDetails: FormValues; guestDetailsDisabledTargets: string[]; policiesAgreed: boolean; submitDelayed: boolean; setGuestDetails: Dispatch<SetStateAction<FormValues>>; setPoliciesAgreed: (agreed: boolean) => void; submitStep: (step: RsvpStep) => Promise<void>; editStep: (step: RsvpStep) => void; } | undefined
modal ModalContextValue
policies Policy[]
invoiceData GetInvoiceResponse | undefined
orderData OrderData
formData { forms: Record<string, Form$1 | undefined>; fallbackFormId: string | undefined; }
reservationId string | undefined
Policy
Property Type Description
_id string | null | undefined Policy ID.
revision string | null | undefined Revision number, which increments by 1 each time the policy is updated. The existing revision must be used when updating a policy to prevent conflicting changes. You'll get an error if you try to use the previous revision.
_createdDate Date | null | undefined Date and time when the policy was created.
_updatedDate Date | null | undefined Date and time of the policy's latest update in.
name string | undefined Policy name that is visible in the dashboard and checkout form. Min: 1 character Max: 40 characters
body string | undefined Policy body, usually containing various terms and conditions. Min: 1 character Max: 50000 characters. Note: You can format text using various HTML tags such as <p>, <b>, <ul>, etc.
eventId string | undefined ID of the event to which the policy belongs.
GetInvoiceResponse
Property Type Description
invoice Invoice | undefined Invoice with applied discount.
discountErrors DiscountErrors | undefined Discount errors, if relevant.
expires Date | null | undefined Reservation expiration time.
reservationStatus ReservationStatusWithLiterals | undefined Reservation status. Possible values: - RESERVATION_PENDING: The reservation is pending confirmation. It will expire after a certain amount of time. - RESERVATION_CONFIRMED: The reservation is confirmed and will not expire. - RESERVATION_CANCELED: The reservation is canceled because it's not paid. - RESERVATION_CANCELED_MANUALLY: The reservation is canceled manually by the buyer. - RESERVATION_EXPIRED: The reservation has expired.
reservationOccupied boolean | undefined Whether this reservation is already used in a checkout.
reservations TicketReservation[] | undefined Ticket reservations.
giftCardPaymentDetails GiftCardPaymentDetails[] | undefined Projected gift card payments.
giftCardErrors GiftCardErrors | undefined Gift card errors, if relevant.
OrderData
Property Type Description
order Order | undefined
httpErrorStatus number | undefined

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warningstoday4 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    This skill provides a comprehensive environment and set of tools for building Wix CLI app extensions. It includes detailed instructions, API references, and local utility scripts for development tasks like SDK lookup and accessibility auditing. All operations and dependencies are standard for the Wix developer platform.

  • Sockettoday

    1 alert: gptAnomaly

  • Snyktoday

    Risk: MEDIUM · 1 issue

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at e2bc48e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 6 days ago
compatibility
requires `@wix/cli` >= 1.1.192.

README badge

README badge for wix/skills/wix-app

Builds dashboard pages, modals, plugins, custom widgets, Editor React components, backend APIs, events, service plugins, and data collections for Wix CLI apps. Provides decision logic, API patterns, and validation workflows; scaffolding is owned by the Wix CLI via `wix generate --params`.

Generated from the current SKILL.md.

What extension types does this skill cover?
All Wix CLI app extension types: dashboard pages, modals, plugins, menu plugins, custom element widgets, Editor React components, site plugins, embedded scripts, backend APIs, backend events, service plugins, and data collections.
Does this skill scaffold the extension files for me?
The Wix CLI owns scaffolding via `wix generate --params` for all extension types except Backend API. This skill provides decision logic, API guidance, and business-logic patterns to fill in the generated stubs. Backend API files must be created manually.
What Wix CLI version is required?
The skill requires @wix/cli >= 1.1.192.
Do I need to create a Data Collection extension for app-specific data?
Yes, if you're saving or persisting app-specific data, managing domain entities in a dashboard, or running a service plugin that reads app-configured data. The skill infers this automatically—you don't need to explicitly request it.
Does this skill cover Wix Stores API usage?
Yes. When using any Wix Stores API (products, inventory, orders), the skill requires dual V1/V3 catalog support and references the Stores Versioning guide for module selection and field mapping.

Generated from the current SKILL.md. These answers refresh after source changes.