Manta Developers
GitHub
Menu

@manta-eu/react/plan-limits

Reference for @manta-eu/react/plan-limits as it is on main.

Type Aliases

PlanLimitChange

PlanLimitChange = object

Properties

ruleIri

ruleIri: string

ruleText

ruleText: string


PlanLimitLock

PlanLimitLock = "manta" | "staged"


PlanLimitRule

PlanLimitRule = object

Properties

hasStagedChange

hasStagedChange: boolean

A rule with an uncommitted change staged elsewhere; saving here would commit that change too.

ownedByManta

ownedByManta: boolean

A rule Manta maintains; editing it would make it the user’s and stop Manta’s updates, so it stays read-only.

ruleIri

ruleIri: string

ruleText

ruleText: string


PlanLimitsDialogProps

PlanLimitsDialogProps = object

Properties

error?

optional error?: string | null

isLoading?

optional isLoading?: boolean

isSaving?

optional isSaving?: boolean

omittedRules?

optional omittedRules?: number

Rules the dialog does not show, when the plan has more than the page read.

onOpenChange

onOpenChange: (open) => void

Parameters
open

boolean

Returns

void

onSave

onSave: (changes) => Promise<PlanLimitsSaveResult>

Parameters
changes

readonly PlanLimitChange[]

Returns

Promise<PlanLimitsSaveResult>

open

open: boolean

rules

rules: readonly PlanLimitRule[]


PlanLimitsSaveResult

PlanLimitsSaveResult = { ok: true; rulesUpdated: number; } | { error: string; ok: false; step: PlanLimitsSaveStep; }


PlanLimitsSaveStep

PlanLimitsSaveStep = "stage" | "validate" | "commit"

Functions

PlanLimitsDialog()

PlanLimitsDialog(props): Element

Parameters

props

PlanLimitsDialogProps

Returns

Element