@webflow/designer-extension-typings 0.2.0-beta.6 → 0.2.0-beta.7

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/assets.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ interface Asset {
2
+ readonly id: AssetId;
3
+
4
+ getUrl(): Promise<string>;
5
+ }
6
+
7
+ type AssetId = string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webflow/designer-extension-typings",
3
- "version": "0.2.0-beta.6",
3
+ "version": "0.2.0-beta.7",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "Typings for the Webflow Designer Extension API",
6
6
  "main": "",
package/pages.d.ts CHANGED
@@ -389,13 +389,13 @@ interface Page {
389
389
  */
390
390
  isHomepage(): Promise<boolean>;
391
391
  /**
392
- * Retrieves the full URL that will be used when the page is published.
392
+ * Retrieves the path that will be used when the page is published.
393
393
  * @example
394
394
  * ```ts
395
- * let publishUrl = await myPage.getPublishUrl();
396
- * console.log("Publish URL: ", publishUrl);
395
+ * let publishPath = await myPage.getPublishPath();
396
+ * console.log("Publish path: ", publishPath);
397
397
  */
398
- getPublishUrl(): Promise<null | string>;
398
+ getPublishPath(): Promise<null | string>;
399
399
  }
400
400
 
401
401
  type FolderId = string;
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "es6",
4
- "lib": ["es6"],
4
+ "lib": ["es6", "dom"],
5
5
  "noEmit": true,
6
6
  "noUncheckedIndexedAccess": true,
7
7
  "strict": true,