@cesdk/engine 1.7.0-alpha.0 → 1.7.0-alpha.1

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.
Binary file
package/index.d.ts CHANGED
@@ -1598,6 +1598,23 @@ export declare class EditorAPI {
1598
1598
  * @returns The value as string.
1599
1599
  */
1600
1600
  getSettingEnum(keypath: string): string;
1601
+ /**
1602
+ * Sets a custom URI resolver.
1603
+ * This function can be called more than once. Subsequent calls will overwrite previous calls.
1604
+ * To remove a previously set resolver, pass the value `null`.
1605
+ * The given function must return an absolute path with a scheme.
1606
+ * @param resolver - Custom resolution function.
1607
+ */
1608
+ setURIResolver(resolver: (URI: string) => string): void;
1609
+ /**
1610
+ * Resolves the given path.
1611
+ * If a custom resolver has been set with `setURIResolver`, it invokes it with the given path.
1612
+ * Else, it resolves it as relative to the `ubq://basePath` setting.
1613
+ * This performs NO validation of whether a file exists at the specified location.
1614
+ * @param relativePath - A relative path string
1615
+ * @returns The resolved absolute uri or an error if an invalid path was given.
1616
+ */
1617
+ getAbsoluteURI(relativePath: string): string;
1601
1618
  }
1602
1619
 
1603
1620
  /**