@webflow/designer-extension-typings 0.1.10 → 0.1.12
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/elements-generated.d.ts +43 -15
- package/elements.d.ts +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/pages.d.ts +11 -0
package/elements-generated.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ interface CustomAttributes {
|
|
|
19
19
|
getCustomAttribute(name: string): null | string;
|
|
20
20
|
setCustomAttribute(name: string, value: string): undefined;
|
|
21
21
|
removeCustomAttribute(name: string): undefined;
|
|
22
|
-
getAllCustomAttributes(): Array<
|
|
22
|
+
getAllCustomAttributes(): Array<NamedValue>;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
interface NoCustomAttributes {
|
|
@@ -161,6 +161,19 @@ interface BlockquoteElement
|
|
|
161
161
|
readonly plugin: 'Basic';
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
interface CodeBlockElement
|
|
165
|
+
extends WebflowElement,
|
|
166
|
+
Configurable,
|
|
167
|
+
NoCustomAttributes,
|
|
168
|
+
NoDomId,
|
|
169
|
+
NoStyles,
|
|
170
|
+
NoChildren,
|
|
171
|
+
NoTextContent {
|
|
172
|
+
readonly id: ElementId;
|
|
173
|
+
readonly type: 'CodeBlock';
|
|
174
|
+
readonly plugin: 'Basic';
|
|
175
|
+
}
|
|
176
|
+
|
|
164
177
|
interface EmphasizedElement
|
|
165
178
|
extends WebflowElement,
|
|
166
179
|
Configurable,
|
|
@@ -2543,6 +2556,19 @@ interface YouTubeVideoElement
|
|
|
2543
2556
|
readonly plugin: 'Embed';
|
|
2544
2557
|
}
|
|
2545
2558
|
|
|
2559
|
+
interface LightboxWrapperElement
|
|
2560
|
+
extends WebflowElement,
|
|
2561
|
+
Configurable,
|
|
2562
|
+
CustomAttributes,
|
|
2563
|
+
NoDomId,
|
|
2564
|
+
Styles,
|
|
2565
|
+
Children,
|
|
2566
|
+
TextContent {
|
|
2567
|
+
readonly id: ElementId;
|
|
2568
|
+
readonly type: 'LightboxWrapper';
|
|
2569
|
+
readonly plugin: 'Lightbox';
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2546
2572
|
interface FormBlockLabelElement
|
|
2547
2573
|
extends WebflowElement,
|
|
2548
2574
|
Configurable,
|
|
@@ -2959,6 +2985,19 @@ interface IconElement
|
|
|
2959
2985
|
readonly plugin: 'Icon';
|
|
2960
2986
|
}
|
|
2961
2987
|
|
|
2988
|
+
interface HreflangsElement
|
|
2989
|
+
extends WebflowElement,
|
|
2990
|
+
Configurable,
|
|
2991
|
+
CustomAttributes,
|
|
2992
|
+
DomId,
|
|
2993
|
+
Styles,
|
|
2994
|
+
NoChildren,
|
|
2995
|
+
NoTextContent {
|
|
2996
|
+
readonly id: ElementId;
|
|
2997
|
+
readonly type: 'Hreflangs';
|
|
2998
|
+
readonly plugin: 'Localization';
|
|
2999
|
+
}
|
|
3000
|
+
|
|
2962
3001
|
interface LocalesWrapperElement
|
|
2963
3002
|
extends WebflowElement,
|
|
2964
3003
|
Configurable,
|
|
@@ -3141,19 +3180,6 @@ interface HFlexElement
|
|
|
3141
3180
|
readonly plugin: 'Layout';
|
|
3142
3181
|
}
|
|
3143
3182
|
|
|
3144
|
-
interface LightboxWrapperElement
|
|
3145
|
-
extends WebflowElement,
|
|
3146
|
-
Configurable,
|
|
3147
|
-
CustomAttributes,
|
|
3148
|
-
NoDomId,
|
|
3149
|
-
Styles,
|
|
3150
|
-
Children,
|
|
3151
|
-
TextContent {
|
|
3152
|
-
readonly id: ElementId;
|
|
3153
|
-
readonly type: 'LightboxWrapper';
|
|
3154
|
-
readonly plugin: 'Lightbox';
|
|
3155
|
-
}
|
|
3156
|
-
|
|
3157
3183
|
interface NavbarBrandElement
|
|
3158
3184
|
extends WebflowElement,
|
|
3159
3185
|
Configurable,
|
|
@@ -4228,6 +4254,7 @@ declare type AnyElement =
|
|
|
4228
4254
|
| SplineElement
|
|
4229
4255
|
| BlockElement
|
|
4230
4256
|
| BlockquoteElement
|
|
4257
|
+
| CodeBlockElement
|
|
4231
4258
|
| EmphasizedElement
|
|
4232
4259
|
| FigcaptionElement
|
|
4233
4260
|
| FigureElement
|
|
@@ -4411,6 +4438,7 @@ declare type AnyElement =
|
|
|
4411
4438
|
| HtmlEmbedElement
|
|
4412
4439
|
| VideoElement
|
|
4413
4440
|
| YouTubeVideoElement
|
|
4441
|
+
| LightboxWrapperElement
|
|
4414
4442
|
| FormBlockLabelElement
|
|
4415
4443
|
| FormButtonElement
|
|
4416
4444
|
| FormCheckboxInputElement
|
|
@@ -4443,6 +4471,7 @@ declare type AnyElement =
|
|
|
4443
4471
|
| FormFileUploadInfoElement
|
|
4444
4472
|
| FormFileUploadTextElement
|
|
4445
4473
|
| IconElement
|
|
4474
|
+
| HreflangsElement
|
|
4446
4475
|
| LocalesWrapperElement
|
|
4447
4476
|
| LocalesEmptyElement
|
|
4448
4477
|
| LocalesListElement
|
|
@@ -4457,7 +4486,6 @@ declare type AnyElement =
|
|
|
4457
4486
|
| BlockContainerElement
|
|
4458
4487
|
| VFlexElement
|
|
4459
4488
|
| HFlexElement
|
|
4460
|
-
| LightboxWrapperElement
|
|
4461
4489
|
| NavbarBrandElement
|
|
4462
4490
|
| NavbarButtonElement
|
|
4463
4491
|
| NavbarContainerElement
|
package/elements.d.ts
CHANGED
package/index.d.ts
CHANGED
package/package.json
CHANGED
package/pages.d.ts
CHANGED
|
@@ -57,6 +57,17 @@ interface Page {
|
|
|
57
57
|
isPasswordProtected(): boolean;
|
|
58
58
|
getUtilityPageKey(): null | string;
|
|
59
59
|
isHomepage(): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Retrieves the full page URL upon publish
|
|
62
|
+
* @returns A Promise that resolves to a string representing the publish URL for a Page object
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* let currentPage = await webflow.getCurrentPage();
|
|
66
|
+
* let currentPageUrl = await currentPage.getPublishUrl();
|
|
67
|
+
* console.log("Publish URL for current page:", currentPageUrl);
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
getPublishUrl(): Promise<string>;
|
|
60
71
|
|
|
61
72
|
save(): Promise<undefined>;
|
|
62
73
|
destroy(): undefined;
|