@enplug/sdk-dashboard 5.4.60 → 5.4.61
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/README.md +8 -0
- package/package.json +2 -1
- package/types/external-types.d.ts +1 -0
package/README.md
CHANGED
|
@@ -81,3 +81,11 @@ Use [`enplug.dashboard`](/docs/sdk-dashboard/classes/Dashboard) to use standardi
|
|
|
81
81
|
- {@link setAppHasUnsavedChanges|`enplug.dashboard.setAppHasUnsavedChanges()`} - sets dashboard's navigation guard
|
|
82
82
|
|
|
83
83
|
*See more: [`enplug.dashboard`](/docs/sdk-dashboard/classes/Dashboard)*
|
|
84
|
+
|
|
85
|
+
### Menu Board upload integration
|
|
86
|
+
|
|
87
|
+
For a code-grounded example of `enplug.dashboard.upload()` crossing iframe, Dashboard, uploader, persistence, canvas, and runtime-player boundaries, see [Dashboard docs](../../../dashboard/docs/menu-board-upload-architecture.md).
|
|
88
|
+
|
|
89
|
+
Upload options include `UploaderOptions.enableCropping`, which Dashboard forwards to the shared uploader to control destructive pre-upload crop/edit behavior.
|
|
90
|
+
|
|
91
|
+
Versioning note: iframe apps normally load the runtime SDK from `https://apps.enplug.com/sdk/v1/dashboard.js`, while TypeScript projects consume `@enplug/sdk-dashboard` for typings. Keep the npm typings and deployed runtime script compatible when changing upload options, message names, or result models.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enplug/sdk-dashboard",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.61",
|
|
4
4
|
"description": "Enplug Dashboard SDK",
|
|
5
5
|
"typings": "./index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"bundle:prod": "npm-run-all lint test bundle",
|
|
12
12
|
"start": "npm-run-all clean lint test",
|
|
13
13
|
"publish-dev": "npm run bundle && npm publish --tag dev",
|
|
14
|
+
"package:local": "npm run bundle && npm pack",
|
|
14
15
|
"release": "npm run bundle && enplug-release-sdk",
|
|
15
16
|
"release:prod": "npm run bundle:prod && enplug-release-sdk && npm run release:docs",
|
|
16
17
|
"release:dev": "npm run bundle && enplug-release-sdk --dev",
|
|
@@ -265,6 +265,7 @@ export interface UploaderOptions extends FilepickerOptions {
|
|
|
265
265
|
showMyLibrary?: boolean;
|
|
266
266
|
/** forceCrop should be used together with isMultipleSelection = false */
|
|
267
267
|
forceCrop?: boolean;
|
|
268
|
+
enableCropping?: boolean;
|
|
268
269
|
cropForceAspectRatio?: number;
|
|
269
270
|
cropMaximumImageWidth?: number;
|
|
270
271
|
zoningConfig?: ZoningConfig;
|