@plitzi/sdk-authoring 0.39.0 → 0.39.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/index-declare.js +1 -2
- package/dist/index-src.js +3116 -3698
- package/dist/index.d.ts +251 -47
- package/dist/index.js +2 -2
- package/dist/node.d.ts +64 -9
- package/dist/node.js +162 -146
- package/dist/plugin.d.ts +5 -0
- package/package.json +12 -12
- package/skills/plitzi-authoring/recipes/server-data.ts +4 -0
- package/skills/plitzi-authoring/reference/accessibility.md +9 -2
- package/skills/plitzi-authoring/reference/auth.md +6 -1
- package/skills/plitzi-authoring/reference/authoring-errors.md +7 -4
- package/skills/plitzi-authoring/reference/flows.md +9 -9
- package/skills/plitzi-authoring/reference/kept-state.md +12 -0
- package/skills/plitzi-authoring/reference/lists.md +7 -1
- package/skills/plitzi-authoring/reference/plugins.md +5 -2
- package/skills/plitzi-authoring/reference/testing.md +3 -3
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as readDevToolsInPage, $a as
|
|
1
|
+
import { $ as readDevToolsInPage, $a as embed, $i as onDialogClose, $n as isRuleSetSpec, $o as AUTHORING_CODES, $r as addNotification, $t as journeyStartWarnings, A as pressShortcut, Aa as scrollBy, Ai as whileRunning, An as pressFailure, Ao as element, As as t$2, At as actionToSource, B as alignPictures, Ba as apiContainer, Bi as carouselPrevious, Bn as row, Bo as hasVisibilityBinding, Br as locate, Bs as t, Bt as suggestClassOverrides, C as unquoted, Ca as onThemeChange, Ci as authorFlow, Cn as HYDRATION_MS, Co as themeToggle, Cs as t$1, Ct as searchWords, D as readSpaceTests, Da as publishOn, Di as when, Dn as hoverElement, Do as defaultAttributes, Ds as i$2, Dt as specFromSpace, E as e2eStepProblems, Ea as openModal, Ei as named, En as fieldsOf, Eo as declaresAttribute, Es as e, Et as specToSource, F as compareTexts, Fa as updateElement, Fi as cancelApi, Fn as tokens, Fo as activeWhen, Fs as s, Ft as transformerCatalog, G as loadImages, Ga as carouselTrack, Gi as focus, Gn as isClassRef, Go as variantFrom, Gr as authoringCodesTable, Gt as familyOf, H as diffPictures, Ha as blockJsx, Hi as closeModal, Hn as classNames, Ho as resolveSource, Hr as selectorFor, Hs as i$3, Ht as PAGE_SPEC_FIELDS, I as pageTexts, Ia as elementsFromManifest, Ii as carouselGoTo, In as createTw, Io as authorBinding, Ir as digest, Is as c$1, It as assertSnippetValid, J as inspectPage, Ja as container, Ji as onApiSuccess, Jn as splitClassList, Jo as actionSource, Jt as withNotificationsCss, K as unrollPage, Ka as channel, Ki as on, Kn as isStyleDeclaration, Ko as visibleWhen, Kr as defineAction, Kt as pageFamily, L as PAGE_DECORATION_LIMIT, La as withPluginCatalogs, Li as carouselNext, Ln as tw, Lo as bindTemplate, Lr as slugify, Ls as n$2, Lt as assertSpaceValid, M as inspectRenders, Ma as scrollTo, Mi as applyBuiltinCallback, Mn as settle, Mo as COMPONENT_SOURCES, Ms as c, Mt as BUILTIN_TRANSFORMERS, N as summariseRenders, Na as setFieldValue, Ni as getGlobalCallback, Nn as targetId, No as GLOBAL_SOURCES, Ns as i$1, Nt as getTransformer, O as singlePageSpace, Oa as reloadApi, Oi as whenFailed, On as locateField, Oo as defaultLabel, Os as n$3, Ot as compareSpaces, P as PAGE_TEXT_LIMIT, Pa as toggleElement, Pi as announceOn, Pn as targetOf, Po as activeOn, Ps as o, Pt as suggestTransformer, Q as readDevTools, Qa as dropdownPopup, Qi as onDialogAccept, Qn as css, Qo as scope, Qr as SET_STATE_TYPES, Qt as e2eTestProblems, R as compareDecorations, Ra as d, Ri as carouselPause, Rn as column, Ro as boundAttribute, Rr as buildHandles, Rs as r$4, Rt as suggestSpace, S as stepLines, Sa as onSubmit, Si as webHook, Sn as FIELD, So as text, Ss as r, St as searchScore, T as unit, Ta as openDialog, Ti as flowStepIds, Tn as endlesslyMovedInPage, To as component, Ts as elementAttributeNames, Tt as SPACE_FIELDS, U as pageRegions, Ua as button, Ui as declaredCallback, Un as classRefs, Uo as scopedHint, Ur as flagGateOf, Us as o$1, Ut as SpaceRefusedError, V as comparePictures, Va as blockHtml, Vi as closeDialog, Vn as className, Vo as hiddenWhen, Vr as pathForSlug, Vs as a$2, Vt as unusedDeclarations, W as profilePictures, Wa as carousel, Wi as declaredTrigger, Wn as isClassModifier, Wo as toBindingSpecs, Wr as flagSpecOf, Wt as refusalOf, X as onScreenIfChosen, Xa as dialogContainer, Xi as onChange, Xn as BREAKPOINTS, Xo as twig, Xr as applyUtility, Xt as FIXABLE_CODES, Y as onScreen, Ya as custom, Yi as onBlur, Yn as styles, Yo as source, Yr as BUILTIN_UTILITIES, Yt as navOf, Z as failedFlowText, Za as dropdown, Zi as onClick, Zn as STYLE_STATES, Zo as closest, Zr as getUtility, Zt as unitTestProblems, _ as e2eStepText, _a as onMouseLeave, _i as setState, _n as dragElement, _o as svg, _s as typeTriggerDefinitions, _t as explain, a as locateClasses, aa as onFocus, ai as cancelServerAction, an as playE2eStep, ao as image, ar as expandShorthandPatch, as as elementCallbacks, at as catalogTemplateFiles, b as parseE2eStep, ba as onPointerDown, bi as toggleState, bn as shownCopy, bo as tabContainerHeader, bs as r$3, bt as explainSearch, c as validateSnippet, ca as onInvalid, ci as cycleState, cn as unitReportText, co as listItem, cr as ambiguousShorthands, cs as elementLeafTypes, ct as space$1, d as e2eResultText, da as onLeave, di as invalidateQueries, dn as EDGES, do as nodeHtml, dr as cssProperties, ds as elementPublishes, dt as importSlug, ea as onDialogOpen, ei as appendState, en as testAccountWarnings, eo as focusGroup, er as sameBlocks, es as AuthoringError, et as dataIssues, f as journeyAccount, fa as onLoad, fi as moveState, fn as parseRelation, fo as pagination, fr as cssPropertyName, fs as elementSlots, ft as importedFiles, g as durationMs, ga as onMouseEnter, gi as runServerActionOrNotify, gn as answered, go as richText, gr as suggestCssProperty, gs as typeCallbackDefinitions, gt as GLOBAL_CALLBACK_BUILDERS, h as MAX_WAIT_FOR_MS, ha as onModalOpen, hi as runServerAction, hn as sidePx, ho as reference, hr as replacedCssProperty, hs as elementTypeNames, ht as EXPLAIN_KINDS, i as lintSpace, ia as onFlowProgress, ii as authRefreshDetails, in as isExpectation, io as heading, ir as expandShorthand, is as elementAttributeValues, it as blankTemplateFiles, j as shortcutKey, ja as scrollIntoView, ji as BUILTIN_GLOBAL_CALLBACKS, jn as pressOnce, jo as inferredLinkMode, js as a, jt as withNamedIds, k as withElement, ka as resetForm, ki as whenSucceeded, kn as locateTarget, ko as defineElement, ks as r$1, kt as actionSpecFromEntry, l as validateSpace, la as onJoin, li as delay, ln as resolveElement, lo as markdown, lr as fontUnread, ls as elementMarks, lt as space, m as E2E_STEP_USAGE, ma as onModalClose, mi as removeState, mn as relationHolds, mo as plitziSdk, mr as isCustomProperty, ms as elementTriggers, mt as BUILDER_NAMES, n as authorSpace, na as onFlowEnd, ni as authLogout, nn as pageAt, no as form, nr as toResponsive, ns as isSuggestionCode, nt as CATALOG_TEMPLATE_IDENTITY, o as locateElements, oa as onHover, oi as clearState, on as runUnitTest, oo as link, or as expandShorthandTraced, os as elementCatalog, ot as emptyTemplateFiles, p as runE2eTest, pa as onMessage, pi as navigate, pn as relationElements, po as paragraph, pr as isCssProperty, ps as elementSourceTypes, pt as importProbe, q as inspectDocument, qa as chart, qi as onApiError, qn as modifierClassName, qo as withVisibility, qr as taskAction, qt as notificationsCss, r as fixSpace, ra as onFlowError, ri as authLogoutEverywhere, rn as bridge, ro as formControl, rr as cssShorthands, rs as elementAncestorTypes, rt as blankSpace, s as planFixes, sa as onInterval, si as copyToClipboard, sn as runUnitTests, so as list, sr as shorthandLonghands, ss as elementDefaultAttributes, st as toPortableSource, t as authorSnippet, ta as onDialogReject, ti as authLogin, tn as audienceAt, to as fontAwesome, tr as toBlocks, ts as authoringCodeEntry, tt as answerAction, u as compactSvg, ua as onKey, ui as hostAction, un as openPage, uo as modalContainer, ur as cssNumberValue, us as elementPartTypes, ut as darkScheme, v as isE2eStepWord, va as onPageChange, vi as stepState, vn as giveValue, vo as tabContainer, vt as explainKindOf, w as e2e, wa as onView, wi as authorFlows, wn as awaitHydration, wo as video, wt as ELEMENT_FIELDS, x as parseE2eSteps, xa as onScroll, xi as twigTemplate, xn as valueFieldIn, xo as tabContainerItem, xs as n$1, xt as explanationText, y as leadingTarget, ya as onPageLoad, yi as toggleInState, yn as hiddenAtWidth, yo as tabContainerBody, ys as n, yt as explainList, z as pageDecorations, za as i, zi as carouselPlay, zn as grid, zo as groupBindings, zr as instanceSelectorFor, zs as s$1, zt as withoutQuieted } from "./index-src.js";
|
|
2
2
|
import { n as e$1, r as r$2, t as a$1 } from "./index-declare.js";
|
|
3
|
-
export { AUTHORING_CODES, AuthoringError, BREAKPOINTS, BUILDER_NAMES, o as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, t as BUILTIN_PARAM_TYPES, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, CATALOG_TEMPLATE_IDENTITY, COMPONENT_SOURCES, n as DOCUMENT_SCROLLS, E2E_STEP_USAGE, EDGES, ELEMENT_FIELDS, EXPLAIN_KINDS, FIELD, FIXABLE_CODES, a as FOCUS_CALLBACKS, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, HYDRATION_MS, MAX_WAIT_FOR_MS, t$1 as MOTION_ENTERS, r as MOTION_LOOPS, n$1 as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, t$2 as NOTIFICATION_APPEARANCES, r$1 as NOTIFICATION_DEFAULTS, e as NOTIFICATION_PLACEMENTS, PAGE_DECORATION_LIMIT, PAGE_SPEC_FIELDS, PAGE_TEXT_LIMIT, i$1 as SCROLL_CALLBACKS, SET_STATE_TYPES, SPACE_FIELDS, STYLE_STATES, SpaceRefusedError, actionSource, actionSpecFromEntry, actionToSource, activeOn, activeWhen, addNotification, alignPictures, ambiguousShorthands, announceOn, answerAction, answered, apiContainer, appendState, applyBuiltinCallback, c as applyElementCallback, applyUtility, assertSnippetValid, assertSpaceValid, audienceAt, authLogin, authLogout, authLogoutEverywhere, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSnippet, authorSpace, authoringCodeEntry, authoringCodesTable, awaitHydration, bindTemplate, blankSpace, space as blankSpaceSpec, blankTemplateFiles, blockHtml, blockJsx, boundAttribute, bridge, buildHandles, button, cancelApi, cancelServerAction, carousel, carouselGoTo, carouselNext, carouselPause, carouselPlay, carouselPrevious, carouselTrack, catalogTemplateFiles, channel, chart, className, classNames, classRefs, clearState, closeDialog, closeModal, closest, column, compactSvg, compareDecorations, comparePictures, compareSpaces, compareTexts, component, container, copyToClipboard, createTw, css, cssNumberValue, cssProperties, cssPropertyName, cssShorthands, custom, cycleState, darkScheme, dataIssues, declaredCallback, declaredTrigger, declaresAttribute, defaultAttributes, defaultLabel, defineAction, defineElement, a$1 as definePlugin, delay, dialogContainer, diffPictures, digest, dragElement, dropdown, dropdownPopup, durationMs, e2e, e2eResultText, e2eStepProblems, e2eStepText, e2eTestProblems, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, r$2 as elementDeclaration, elementDefaultAttributes, elementLeafTypes, elementMarks, elementPartTypes, elementPublishes, elementSlots, elementSourceTypes, elementTriggers, elementTypeNames, elementsFromManifest, embed, space$1 as emptySpaceSpec, emptyTemplateFiles, expandShorthand, expandShorthandPatch, expandShorthandTraced, explain, explainKindOf, explainList, explainSearch, explanationText, failedFlowText, familyOf, fieldsOf, fixSpace, flagGateOf, flagSpecOf, flowStepIds, focus, fontAwesome, fontUnread, form, formControl, s as getElementCallback, getGlobalCallback, getTransformer, getUtility, giveValue, grid, groupBindings, hasVisibilityBinding, heading, hiddenAtWidth, n$2 as hiddenParams, hiddenWhen, hostAction, image, importProbe, importSlug, importedFiles, inferredLinkMode, inspectDocument, inspectPage, inspectRenders, instanceSelectorFor, s$1 as invalidParams, invalidateQueries, isClassModifier, isClassRef, isCssProperty, isCustomProperty, r$3 as isDocumentScroll, isE2eStepWord, isExpectation, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, journeyAccount, journeyStartWarnings, leadingTarget, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, locateField, locateTarget, markdown, r$4 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navOf, navigate, nodeHtml, notificationsCss, on, onApiError, onApiSuccess, onBlur, onChange, onClick, onDialogAccept, onDialogClose, onDialogOpen, onDialogReject, onFlowEnd, onFlowError, onFlowProgress, onFocus, onHover, onInterval, onInvalid, onJoin, onKey, onLeave, onLoad, onMessage, onModalClose, onModalOpen, onMouseEnter, onMouseLeave, onPageChange, onPageLoad, onPointerDown, onScreen, onScreenIfChosen, onScroll, onSubmit, onThemeChange, onView, openDialog, openModal, openPage, pageAt, pageDecorations, pageFamily, pageRegions, pageTexts, pagination, paragraph, parseE2eStep, parseE2eSteps, parseRelation, pathForSlug, planFixes, playE2eStep, plitziSdk, pressFailure, pressOnce, pressShortcut, profilePictures, publishOn, readDevTools, readDevToolsInPage, n$3 as readNotificationOptions, readSpaceTests, c$1 as reconcileParams, reference, refusalOf, relationElements, relationHolds, reloadApi, removeState, replacedCssProperty, resetForm, resolveElement, resolveSource, richText, row, runE2eTest, runServerAction, runServerActionOrNotify, runUnitTest, runUnitTests, sameBlocks, scope, scopedHint, scrollBy, scrollIntoView, scrollTo, searchScore, searchWords, selectorFor, setFieldValue, setState, settle, shortcutKey, shorthandLonghands, shownCopy, sidePx, singlePageSpace, slugify, source, i$2 as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepLines, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, targetId, targetOf, taskAction, testAccountWarnings, text, themeToggle, toBindingSpecs, toBlocks, i$3 as toBuilderParams, a$2 as toInteractionCallback, o$1 as toInteractionCallbacks, toPortableSource, toResponsive, toggleElement, toggleInState, toggleState, tokens, transformerCatalog, tw, twig, twigTemplate, typeCallbackDefinitions, typeTriggerDefinitions, unit, unitReportText, unitTestProblems, unquoted, unrollPage, unusedDeclarations, updateElement, validateSnippet, validateSpace, valueFieldIn, e$1 as valuesOf, variantFrom, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, whileRunning, withElement, withNamedIds, withNotificationsCss, withPluginCatalogs, withVisibility, withoutQuieted };
|
|
3
|
+
export { AUTHORING_CODES, AuthoringError, BREAKPOINTS, BUILDER_NAMES, o as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, t as BUILTIN_PARAM_TYPES, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, CATALOG_TEMPLATE_IDENTITY, COMPONENT_SOURCES, n as DOCUMENT_SCROLLS, E2E_STEP_USAGE, EDGES, ELEMENT_FIELDS, EXPLAIN_KINDS, FIELD, FIXABLE_CODES, a as FOCUS_CALLBACKS, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, HYDRATION_MS, MAX_WAIT_FOR_MS, t$1 as MOTION_ENTERS, r as MOTION_LOOPS, n$1 as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, t$2 as NOTIFICATION_APPEARANCES, r$1 as NOTIFICATION_DEFAULTS, e as NOTIFICATION_PLACEMENTS, PAGE_DECORATION_LIMIT, PAGE_SPEC_FIELDS, PAGE_TEXT_LIMIT, i$1 as SCROLL_CALLBACKS, SET_STATE_TYPES, SPACE_FIELDS, STYLE_STATES, SpaceRefusedError, actionSource, actionSpecFromEntry, actionToSource, activeOn, activeWhen, addNotification, alignPictures, ambiguousShorthands, announceOn, answerAction, answered, apiContainer, appendState, applyBuiltinCallback, c as applyElementCallback, applyUtility, assertSnippetValid, assertSpaceValid, audienceAt, authLogin, authLogout, authLogoutEverywhere, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSnippet, authorSpace, authoringCodeEntry, authoringCodesTable, awaitHydration, bindTemplate, blankSpace, space as blankSpaceSpec, blankTemplateFiles, blockHtml, blockJsx, boundAttribute, bridge, buildHandles, button, cancelApi, cancelServerAction, carousel, carouselGoTo, carouselNext, carouselPause, carouselPlay, carouselPrevious, carouselTrack, catalogTemplateFiles, channel, chart, className, classNames, classRefs, clearState, closeDialog, closeModal, closest, column, compactSvg, compareDecorations, comparePictures, compareSpaces, compareTexts, component, container, copyToClipboard, createTw, css, cssNumberValue, cssProperties, cssPropertyName, cssShorthands, custom, cycleState, darkScheme, dataIssues, declaredCallback, declaredTrigger, declaresAttribute, defaultAttributes, defaultLabel, defineAction, defineElement, a$1 as definePlugin, delay, dialogContainer, diffPictures, digest, dragElement, dropdown, dropdownPopup, durationMs, e2e, e2eResultText, e2eStepProblems, e2eStepText, e2eTestProblems, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, r$2 as elementDeclaration, elementDefaultAttributes, elementLeafTypes, elementMarks, elementPartTypes, elementPublishes, elementSlots, elementSourceTypes, elementTriggers, elementTypeNames, elementsFromManifest, embed, space$1 as emptySpaceSpec, emptyTemplateFiles, endlesslyMovedInPage, expandShorthand, expandShorthandPatch, expandShorthandTraced, explain, explainKindOf, explainList, explainSearch, explanationText, failedFlowText, familyOf, fieldsOf, fixSpace, flagGateOf, flagSpecOf, flowStepIds, focus, focusGroup, fontAwesome, fontUnread, form, formControl, s as getElementCallback, getGlobalCallback, getTransformer, getUtility, giveValue, grid, groupBindings, hasVisibilityBinding, heading, hiddenAtWidth, n$2 as hiddenParams, hiddenWhen, hostAction, hoverElement, image, importProbe, importSlug, importedFiles, inferredLinkMode, inspectDocument, inspectPage, inspectRenders, instanceSelectorFor, s$1 as invalidParams, invalidateQueries, isClassModifier, isClassRef, isCssProperty, isCustomProperty, r$3 as isDocumentScroll, isE2eStepWord, isExpectation, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, journeyAccount, journeyStartWarnings, leadingTarget, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, locateField, locateTarget, markdown, r$4 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navOf, navigate, nodeHtml, notificationsCss, on, onApiError, onApiSuccess, onBlur, onChange, onClick, onDialogAccept, onDialogClose, onDialogOpen, onDialogReject, onFlowEnd, onFlowError, onFlowProgress, onFocus, onHover, onInterval, onInvalid, onJoin, onKey, onLeave, onLoad, onMessage, onModalClose, onModalOpen, onMouseEnter, onMouseLeave, onPageChange, onPageLoad, onPointerDown, onScreen, onScreenIfChosen, onScroll, onSubmit, onThemeChange, onView, openDialog, openModal, openPage, pageAt, pageDecorations, pageFamily, pageRegions, pageTexts, pagination, paragraph, parseE2eStep, parseE2eSteps, parseRelation, pathForSlug, planFixes, playE2eStep, plitziSdk, pressFailure, pressOnce, pressShortcut, profilePictures, publishOn, readDevTools, readDevToolsInPage, n$3 as readNotificationOptions, readSpaceTests, c$1 as reconcileParams, reference, refusalOf, relationElements, relationHolds, reloadApi, removeState, replacedCssProperty, resetForm, resolveElement, resolveSource, richText, row, runE2eTest, runServerAction, runServerActionOrNotify, runUnitTest, runUnitTests, sameBlocks, scope, scopedHint, scrollBy, scrollIntoView, scrollTo, searchScore, searchWords, selectorFor, setFieldValue, setState, settle, shortcutKey, shorthandLonghands, shownCopy, sidePx, singlePageSpace, slugify, source, i$2 as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepLines, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, targetId, targetOf, taskAction, testAccountWarnings, text, themeToggle, toBindingSpecs, toBlocks, i$3 as toBuilderParams, a$2 as toInteractionCallback, o$1 as toInteractionCallbacks, toPortableSource, toResponsive, toggleElement, toggleInState, toggleState, tokens, transformerCatalog, tw, twig, twigTemplate, typeCallbackDefinitions, typeTriggerDefinitions, unit, unitReportText, unitTestProblems, unquoted, unrollPage, unusedDeclarations, updateElement, validateSnippet, validateSpace, valueFieldIn, e$1 as valuesOf, variantFrom, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, whileRunning, withElement, withNamedIds, withNotificationsCss, withPluginCatalogs, withVisibility, withoutQuieted };
|
package/dist/node.d.ts
CHANGED
|
@@ -121,6 +121,14 @@ declare type ActionLimits = {
|
|
|
121
121
|
* response rather than per run, because it exists to stop one answer from being unbounded. 5 000 000 by default.
|
|
122
122
|
*/
|
|
123
123
|
maxResponseBytes?: number;
|
|
124
|
+
/**
|
|
125
|
+
* Bytes all of one run's outbound responses may carry back together: 10 000 000 by default.
|
|
126
|
+
*
|
|
127
|
+
* `maxResponseBytes` bounds one answer; a flow that reads twenty answers just under it holds twenty of them, and a
|
|
128
|
+
* parsed answer holds several times its size in memory. Counted as the answers stream in, across every request the
|
|
129
|
+
* run makes, and refused the moment they go over — the run fails as `over_capacity`, naming this ceiling.
|
|
130
|
+
*/
|
|
131
|
+
maxRunBytes?: number;
|
|
124
132
|
};
|
|
125
133
|
|
|
126
134
|
/**
|
|
@@ -165,6 +173,11 @@ declare interface AuthoredSpace {
|
|
|
165
173
|
|
|
166
174
|
/** Every code authoring and its lint answer with — what each means and what to write instead: `plitzi explain <code>`. */
|
|
167
175
|
declare const AUTHORING_CODES: {
|
|
176
|
+
readonly 'heading-level-skipped': {
|
|
177
|
+
readonly kind: "suggested";
|
|
178
|
+
readonly means: "an `h4` right after an `h2` on a page as it is drawn — inside its layouts, with the headings a `markdown` writes, and without those that start hidden (`visible: false`): the outline misses a level (Lighthouse: \"not in a sequentially-descending order\")";
|
|
179
|
+
readonly fix: "the next level down; size it with its class";
|
|
180
|
+
};
|
|
168
181
|
readonly 'repeated-on-pages': {
|
|
169
182
|
readonly kind: "suggested";
|
|
170
183
|
readonly means: "the same block — a header, a footer, a side panel — written into several pages";
|
|
@@ -172,8 +185,8 @@ declare const AUTHORING_CODES: {
|
|
|
172
185
|
};
|
|
173
186
|
readonly 'repeated-shape': {
|
|
174
187
|
readonly kind: "suggested";
|
|
175
|
-
readonly means: "the same structure written again and again with different words — cards, rows, tiles
|
|
176
|
-
readonly fix: "a component with props (`components`, `component(id, { props })`), or one `list` when they are rows of data side by side
|
|
188
|
+
readonly means: "the same structure written again and again with different words — cards, rows, tiles. Copies that read their data in a form of their own (their template) or render on the server are no repeats, and neither are copies side by side wired to different sources or state keys — controls written alike; copies apart that read different sources are one component, each instance handed its own";
|
|
189
|
+
readonly fix: "a component with props (`components`, `component(id, { props })`) — a source a copy reads handed in as a bound `json` prop (`component(id, { bind: [{ to: 'items', source }] })`, read inside as `props.items`) — or one `list` when they are rows of data side by side; a few cards a person rewords on the canvas can stay cards";
|
|
177
190
|
};
|
|
178
191
|
readonly 'element-color-inherited': {
|
|
179
192
|
readonly kind: "suggested";
|
|
@@ -285,11 +298,6 @@ declare const AUTHORING_CODES: {
|
|
|
285
298
|
readonly means: "a click flow on a container, text, heading, image or list item — no keyboard reaches it";
|
|
286
299
|
readonly fix: "the flow on a `button` (it holds children) or a `link`";
|
|
287
300
|
};
|
|
288
|
-
readonly 'heading-level-skipped': {
|
|
289
|
-
readonly kind: "warned";
|
|
290
|
-
readonly means: "an `h4` right after an `h2` — the outline misses a level";
|
|
291
|
-
readonly fix: "the next level down; size it with its class";
|
|
292
|
-
};
|
|
293
301
|
readonly 'label-ignored': {
|
|
294
302
|
readonly kind: "warned";
|
|
295
303
|
readonly means: "a `label` on a container whose tag is named by what it holds (`li`, a heading)";
|
|
@@ -887,7 +895,7 @@ declare const AUTHORING_CODES: {
|
|
|
887
895
|
};
|
|
888
896
|
readonly 'server-query-unresolved': {
|
|
889
897
|
readonly kind: "refused";
|
|
890
|
-
readonly means: "a `runtime: 'server'` provider whose `query` the page server cannot read — bound, a template reading what the browser alone holds (anything but the space's variables
|
|
898
|
+
readonly means: "a `runtime: 'server'` provider whose `query` the page server cannot read — bound, a template reading what the browser alone holds (anything but the space's variables, `navigation` and the state the space paints, `state.<key>`), another method than GET, or neither an address (`https://…`) nor a path (`/…`) — so it draws empty";
|
|
891
899
|
readonly fix: "write it over the space's variables and `navigation` (`'{{ apiUrl }}/posts/{{ navigation.routeParams.id }}'`); an `action` for what the browser holds; or no `runtime: 'server'`, and the browser asks it";
|
|
892
900
|
};
|
|
893
901
|
readonly 'server-when-unknown': {
|
|
@@ -1275,6 +1283,11 @@ declare const AUTHORING_CODES: {
|
|
|
1275
1283
|
readonly means: "a page that sends visitors it is not for to a page the space does not have";
|
|
1276
1284
|
readonly fix: "a page's id or slug (`''` is the home page), or a full URL";
|
|
1277
1285
|
};
|
|
1286
|
+
readonly 'when-refused-conflict': {
|
|
1287
|
+
readonly kind: "refused";
|
|
1288
|
+
readonly means: "a page's `whenRefused: 'notFound'` beside `unauthorizedRedirect`, or on a page nobody is refused";
|
|
1289
|
+
readonly fix: "keep the redirect or the not found; give the page `access` or `accessLevel: 'authenticated'`";
|
|
1290
|
+
};
|
|
1278
1291
|
readonly 'robots-unknown': {
|
|
1279
1292
|
readonly kind: "refused";
|
|
1280
1293
|
readonly means: "a page's `robots` with a directive no search engine reads, or none";
|
|
@@ -1357,7 +1370,7 @@ declare const AUTHORING_CODES: {
|
|
|
1357
1370
|
};
|
|
1358
1371
|
readonly 'state-key-list': {
|
|
1359
1372
|
readonly kind: "refused";
|
|
1360
|
-
readonly means: "`settings.transientState` / `paintedState` that is not a list of top-level state keys";
|
|
1373
|
+
readonly means: "`settings.transientState` / `paintedState` / `browserState` that is not a list of top-level state keys";
|
|
1361
1374
|
readonly fix: "`transientState: ['demoStep']` — a dotted path names its top key";
|
|
1362
1375
|
};
|
|
1363
1376
|
readonly 'state-painted-and-transient': {
|
|
@@ -1375,6 +1388,11 @@ declare const AUTHORING_CODES: {
|
|
|
1375
1388
|
readonly means: "a `paintedState` key that `keptState` does not keep — the server draws with what is kept";
|
|
1376
1389
|
readonly fix: "add it to `keptState`, or leave it out of `paintedState`";
|
|
1377
1390
|
};
|
|
1391
|
+
readonly 'state-browser-not-kept': {
|
|
1392
|
+
readonly kind: "refused";
|
|
1393
|
+
readonly means: "a `browserState` key the space does not keep — transient, or not in `keptState`";
|
|
1394
|
+
readonly fix: "keep it, or leave it out of `browserState`";
|
|
1395
|
+
};
|
|
1378
1396
|
readonly 'kept-state-without-keep-state': {
|
|
1379
1397
|
readonly kind: "warned";
|
|
1380
1398
|
readonly means: "`keptState` without `keepState` — nothing is kept in the first place";
|
|
@@ -1390,6 +1408,11 @@ declare const AUTHORING_CODES: {
|
|
|
1390
1408
|
readonly means: "`paintedState` without `keepState` — nothing is kept for the server to draw with";
|
|
1391
1409
|
readonly fix: "`settings.keepState: true`, or remove `paintedState`";
|
|
1392
1410
|
};
|
|
1411
|
+
readonly 'browser-state-without-keep-state': {
|
|
1412
|
+
readonly kind: "warned";
|
|
1413
|
+
readonly means: "`browserState` without `keepState` — nothing is kept in the first place";
|
|
1414
|
+
readonly fix: "`settings.keepState: true`, or remove `browserState`";
|
|
1415
|
+
};
|
|
1393
1416
|
readonly 'visitor-roles': {
|
|
1394
1417
|
readonly kind: "refused";
|
|
1395
1418
|
readonly means: "`settings.visitorRoles` written in a shape the runtime does not read";
|
|
@@ -2590,6 +2613,13 @@ declare interface PageSpec {
|
|
|
2590
2613
|
access?: {
|
|
2591
2614
|
permissions: string[];
|
|
2592
2615
|
};
|
|
2616
|
+
/**
|
|
2617
|
+
* What a visitor this page is not for is answered — by `accessLevel` or `access` — when it is not sent elsewhere
|
|
2618
|
+
* (`unauthorizedRedirect`). Unsaid, its refusal: 401 or 403 and `settings.withheldPage`. `'notFound'` answers as if
|
|
2619
|
+
* it did not exist — the space's 404 — and sends nothing of it, not its name nor its path: a back-office, whose
|
|
2620
|
+
* refusal would tell whoever probes the path that something is there. The builder's "Unauthorized Behaviour".
|
|
2621
|
+
*/
|
|
2622
|
+
whenRefused?: 'refusal' | 'notFound';
|
|
2593
2623
|
/**
|
|
2594
2624
|
* Where a visitor this page is not for is sent — a page's id or slug (`login`; `''` is the home page), its path, or a
|
|
2595
2625
|
* full URL for somewhere off this space. Resolved to the page's id, and refused when it names no page.
|
|
@@ -2734,6 +2764,13 @@ export declare const projectAuthoringAt: (root: string) => Promise<ProjectAuthor
|
|
|
2734
2764
|
*/
|
|
2735
2765
|
export declare const projectData: (folder: string | URL) => ((query: string) => unknown);
|
|
2736
2766
|
|
|
2767
|
+
/**
|
|
2768
|
+
* The icon a project keeps, by its name, for a space that names none (`settings.favicon`): in `public/assets/` first —
|
|
2769
|
+
* served by a project's own server, and put on the space's CDN by `plitzi space push` — else in `public/`, which only a
|
|
2770
|
+
* project's own server serves (push says so). As the page names it: `/assets/favicon.svg`, `/favicon.svg`.
|
|
2771
|
+
*/
|
|
2772
|
+
export declare const projectIcon: (root: string) => string | undefined;
|
|
2773
|
+
|
|
2737
2774
|
/**
|
|
2738
2775
|
* A module of the project that did not load — a file that does not parse, an import of nothing, a module that throws
|
|
2739
2776
|
* as it runs — said at the first of the project's own files it points at: `src/space/hero.ts:139: Expected ','…`. The
|
|
@@ -2867,6 +2904,11 @@ declare interface RuleSetSpec extends VariantSpec {
|
|
|
2867
2904
|
conditions?: Record<string, ConditionSpec>;
|
|
2868
2905
|
}
|
|
2869
2906
|
|
|
2907
|
+
/**
|
|
2908
|
+
* A condition as Plitzi stores it — a flag's rules, an interaction's `when`, a binding's condition: the schema's own
|
|
2909
|
+
* format, so sdk-shared defines it (RFC 0032, D13). plitzi-ui's QueryBuilder edits the same shape with prop types of its
|
|
2910
|
+
* own, and a type test in the builder, where the two meet, holds them assignable both ways.
|
|
2911
|
+
*/
|
|
2870
2912
|
declare type RuleValue = Date | string | number | boolean | undefined | null | object;
|
|
2871
2913
|
|
|
2872
2914
|
declare type Schema = {
|
|
@@ -2903,6 +2945,13 @@ declare type Schema = {
|
|
|
2903
2945
|
* `keepState`; a key cannot be both painted and transient. Top-level keys, as `setState` writes them.
|
|
2904
2946
|
*/
|
|
2905
2947
|
paintedState?: string[];
|
|
2948
|
+
/**
|
|
2949
|
+
* Kept keys of `runtime.state` that are the browser's rather than whoever is signed in — the cookie consent, a choice
|
|
2950
|
+
* made of the browser itself: kept in an entry of their own, and not taken away by signing in, out, or as somebody
|
|
2951
|
+
* else, which forgets the rest of what the previous owner kept. Needs `keepState`; a key cannot be both the browser's
|
|
2952
|
+
* and transient. Top-level keys, as `setState` writes them.
|
|
2953
|
+
*/
|
|
2954
|
+
browserState?: string[];
|
|
2906
2955
|
/**
|
|
2907
2956
|
* The space's `/robots.txt`, as search engines read it: what they may crawl, and where its sitemap is. Left out, the
|
|
2908
2957
|
* server answers that everything may be — `User-agent: *` then `Allow: /`. A page kept out of search says it on the
|
|
@@ -3344,7 +3393,13 @@ declare type Style = {
|
|
|
3344
3393
|
* because nothing else in the system loads a face. Optional because a document written before the manifest
|
|
3345
3394
|
* existed has none, and that is a real state every reader has to survive rather than a bug. */
|
|
3346
3395
|
fonts?: SpaceFont[];
|
|
3396
|
+
/** The compiled stylesheet. Empty on a server-rendered page that links it as `cacheHref` instead. */
|
|
3347
3397
|
cache: string;
|
|
3398
|
+
/**
|
|
3399
|
+
* Where a server-rendered page's stylesheet is served (`/_plitzi/style/<hash>.css`), when it links the compiled
|
|
3400
|
+
* stylesheet rather than carrying it: `cache` is then empty, and the page draws a `<link>` to this.
|
|
3401
|
+
*/
|
|
3402
|
+
cacheHref?: string;
|
|
3348
3403
|
};
|
|
3349
3404
|
|
|
3350
3405
|
/**
|