@plitzi/sdk-authoring 0.36.0 → 0.36.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 +12 -0
- package/dist/index.d.ts +13 -4
- package/dist/index.js +388 -352
- package/package.json +7 -7
- package/skills/plitzi-authoring/SKILL.md +7 -0
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2569,7 +2569,9 @@ declare const elementDeclarations: {
|
|
|
2569
2569
|
readonly settings: {};
|
|
2570
2570
|
};
|
|
2571
2571
|
} & ElementAttributesBrand<Partial<{
|
|
2572
|
+
layout?: string | undefined;
|
|
2572
2573
|
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | undefined;
|
|
2574
|
+
layoutContainer?: string | undefined;
|
|
2573
2575
|
}>>;
|
|
2574
2576
|
readonly Link: {
|
|
2575
2577
|
readonly type: "link";
|
|
@@ -3641,8 +3643,8 @@ declare const elementDeclarations: {
|
|
|
3641
3643
|
readonly settings: {};
|
|
3642
3644
|
};
|
|
3643
3645
|
} & ElementAttributesBrand<Partial<{
|
|
3644
|
-
referenceId: string;
|
|
3645
3646
|
referenceType: ElementLayoutType;
|
|
3647
|
+
referenceId: string;
|
|
3646
3648
|
referenceContainer: string;
|
|
3647
3649
|
}>>;
|
|
3648
3650
|
readonly RichText: {
|
|
@@ -5289,13 +5291,13 @@ export declare const reconcileParams: (params: Record<string, unknown>, spec: Pa
|
|
|
5289
5291
|
|
|
5290
5292
|
export declare const reference: {
|
|
5291
5293
|
(props?: ElementProps<Partial<{
|
|
5292
|
-
referenceId: string;
|
|
5293
5294
|
referenceType: ElementLayoutType;
|
|
5295
|
+
referenceId: string;
|
|
5294
5296
|
referenceContainer: string;
|
|
5295
5297
|
}>> | undefined): ElementSpec;
|
|
5296
5298
|
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
5297
|
-
referenceId: string;
|
|
5298
5299
|
referenceType: ElementLayoutType;
|
|
5300
|
+
referenceId: string;
|
|
5299
5301
|
referenceContainer: string;
|
|
5300
5302
|
}>> | undefined): ElementSpec;
|
|
5301
5303
|
};
|
|
@@ -6094,7 +6096,14 @@ export declare const themeToggle: {
|
|
|
6094
6096
|
/** Both binding forms as one list. The map form targets attributes, which is what nearly every binding does. */
|
|
6095
6097
|
export declare const toBindingSpecs: (bind: BindingsSpec) => BindingSpec[];
|
|
6096
6098
|
|
|
6097
|
-
|
|
6099
|
+
/**
|
|
6100
|
+
* Converted once per declaration and shared.
|
|
6101
|
+
*
|
|
6102
|
+
* Declarations are module constants, and every element builds its own `setState` / `toggleState` from the same two
|
|
6103
|
+
* on every mount — so converting here each time, a regex per param, was a measurable share of mounting a page.
|
|
6104
|
+
* Callers spread what they change, which is why the shared object is read-only.
|
|
6105
|
+
*/
|
|
6106
|
+
export declare const toBuilderParams: (spec: ParamSpec) => Readonly<Record<string, InteractionCallbackParam>>;
|
|
6098
6107
|
|
|
6099
6108
|
/**
|
|
6100
6109
|
* The same write as {@link updateElement}, storing the opposite of what is there — a panel that expands on one click
|