@webflow/designer-extension-typings 2.0.8 → 2.0.9

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.
Files changed (2) hide show
  1. package/api.d.ts +23 -3
  2. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -19,15 +19,35 @@ interface WebflowApi {
19
19
  * - siteId: the unique ID of the current Webflow site.
20
20
  * - siteName: the name of the current Webflow site.
21
21
  * - shortName: a shortened reference to the name of the current Webflow site.
22
+ * - isPasswordProtected: whether the site is password protected.
23
+ * - isPrivateStaging: whether the site has private staging turned on or not.
24
+ * - domains: an array of objects representing the domains associated with the site, each containing the following properties:
25
+ * - url: the URL of the domain.
26
+ * - lastPublished: the timestamp of the last time the domain was published.
27
+ * - default: a boolean indicating whether the domain is the default domain for the site.
28
+ * - stage: the target of the publish
22
29
  * @example
23
30
  * ```ts
24
31
  * const siteInfo = await webflow.getSiteInfo();
25
32
  * console.log('Site ID:', siteInfo.siteId);
26
33
  * console.log('Site Name:', siteInfo.siteName);
27
34
  * console.log('Shortened Site Name:', siteInfo.shortName);
28
- * ```
29
- */
30
- getSiteInfo(): Promise<{siteId: string; siteName: string; shortName: string}>;
35
+ * console.log('Domains:', siteInfo.domains);
36
+ * ```
37
+ */
38
+ getSiteInfo(): Promise<{
39
+ siteId: string;
40
+ siteName: string;
41
+ shortName: string;
42
+ isPasswordProtected: boolean;
43
+ isPrivateStaging: boolean;
44
+ domains: Array<{
45
+ url: string;
46
+ lastPublished: string | null;
47
+ default: boolean;
48
+ stage: 'staging' | 'production';
49
+ }>;
50
+ }>;
31
51
  /**
32
52
  * Get the currently selected element in the Webflow Designer.
33
53
  * @returns A promise that resolves to one of the following:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webflow/designer-extension-typings",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "Typings for the Webflow Designer Extension API",
6
6
  "main": "",