diff --git a/abstract/connectBlocksFrom.js b/abstract/loadFileUploaderFrom.js similarity index 88% rename from abstract/connectBlocksFrom.js rename to abstract/loadFileUploaderFrom.js index 2f2afd7c..f6a7bf7d 100644 --- a/abstract/connectBlocksFrom.js +++ b/abstract/loadFileUploaderFrom.js @@ -3,11 +3,11 @@ import { registerFileUploader } from './registerFileUploader.js'; export const UC_WINDOW_KEY = 'UC'; /** - * @param {String} url Blocks pack url + * @param {String} url File Uploader pack url * @param {Boolean} [register] Register connected package, if it not registered yet * @returns {Promise} */ -export async function connectBlocksFrom(url, register = false) { +export async function loadFileUploaderFrom(url, register = false) { return new Promise((resolve, reject) => { if (typeof document !== 'object') { resolve(null); diff --git a/index.js b/index.js index e7bae374..bb20d1e4 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,7 @@ export { CloudImageEditor } from './solutions/cloud-image-editor/CloudImageEdito // Utils: export { registerFileUploader } from './abstract/registerFileUploader.js'; export { defineLocale } from './abstract/localeRegistry.js'; -export { connectBlocksFrom } from './abstract/connectBlocksFrom.js'; +export { loadFileUploaderFrom } from './abstract/loadFileUploaderFrom.js'; export { toKebabCase } from './utils/toKebabCase.js'; export * from './env.js'; diff --git a/package.json b/package.json index ee86cd4c..73edd3e4 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "browser": "./index.js", "default": "./index.js" }, - "./abstract/connectBlocksFrom.js": "./abstract/connectBlocksFrom.js", + "./abstract/loadFileUploaderFrom.js": "./abstract/loadFileUploaderFrom.js", "./env": "./env.js", "./web/*": "./web/*", "./types/*": "./types/*", diff --git a/types/global.d.ts b/types/global.d.ts index abca485c..734f6acf 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -1,4 +1,4 @@ -import { UC_WINDOW_KEY } from '../abstract/connectBlocksFrom.js'; +import { UC_WINDOW_KEY } from '../abstract/loadFileUploaderFrom.js'; import * as blocks from '../index.js'; declare global {