@edsdk/flmngr
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -14,2 +14,3 @@ export interface IFile { | ||
onOk: (files: IFile[]) => void; | ||
useImageEditor?: boolean; | ||
onlyImages?: boolean; | ||
@@ -25,2 +26,2 @@ isMultiple?: boolean; | ||
}): void; | ||
export declare function preload(onLoaded?: () => void): void; | ||
export declare function preload(useImageEditor: boolean, onLoaded?: () => void): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const imgpen_1 = require("@edsdk/imgpen"); | ||
function openFlmngr(conf) { | ||
preload(() => { | ||
if (!conf.useImageEditor) | ||
conf.useImageEditor = false; | ||
preload(conf.useImageEditor, () => { | ||
window.Flmngr.openFlmngr(conf); | ||
@@ -9,6 +12,8 @@ }); | ||
exports.openFlmngr = openFlmngr; | ||
function preload(onLoaded) { | ||
function preload(useImageEditor, onLoaded) { | ||
includeJS('//cdn.flmngr.com/flmngr.js', () => { | ||
if (onLoaded) | ||
onLoaded(); | ||
if (useImageEditor) | ||
imgpen_1.preload(onLoaded); | ||
else | ||
onLoaded && onLoaded(); | ||
}); | ||
@@ -15,0 +20,0 @@ } |
{ | ||
"name": "@edsdk/flmngr", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "File manager SDK for your application or website", | ||
@@ -25,3 +25,6 @@ "main": "./dist/flmngr.js", | ||
"imgpen" | ||
] | ||
], | ||
"dependencies": { | ||
"@edsdk/imgpen": "^1.0.7" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8422
87
1
+ Added@edsdk/imgpen@^1.0.7
+ Added@edsdk/imgpen@1.0.8(transitive)
+ Added@types/node@11.15.54(transitive)