@scaleflex/widget-attach-dnd 4.0.7 → 4.1.0

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.
Files changed (4) hide show
  1. package/CHANGELOG.md +6921 -6909
  2. package/LICENSE +21 -21
  3. package/README.md +102 -102
  4. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 scaleflex
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2019 scaleflex
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,102 +1,102 @@
1
- # `@scaleflex/widget-attach-dnd`
2
-
3
- [![Plugins][plugins-image]](#plugins)
4
- [![Website][filerobot-image]][sfx-url]
5
- [![Version][filerobot-version]][version-url]
6
- [![Scaleflex team][made-by-image]][sfx-url]
7
- [![License][license-image]][license-url]
8
- [![CodeSandbox][codeSandbox-image]][codeSandbox-url]
9
-
10
-
11
- <div align='center'>
12
- <img title="Scaleflex Widget logo" alt="Scaleflex Widget logo" src="https://assets.scaleflex.com/Corporate+Branding/%5B2025%5D+ALL+LOGOS+%2B+ICONS/SCALEFLEX/VXP+logo/Horizontal+White/VXP+logo+WHITE.png?vh=663932" width="140"/>
13
- </div>
14
-
15
-
16
- Attaches drag & drop (dnd) zone of the Scaleflex widget to some HTML element of your page [Scaleflex Media Asset Widget](https://www.npmjs.com/package/@scaleflex/widget-core).
17
-
18
- > Note: This plugin requires [@scaleflex/widget-explorer](../@scaleflex/widget-explorer) plugin to be existed & used in the widget, as the `attach-dnd` plugin role is only attaching the drag & drop zone to some element of your page and the rest is handled through the explorer & widget.
19
-
20
- ## Usage
21
-
22
- ### NPM
23
-
24
- ```bash
25
- npm install --save @scaleflex/widget-attach-dnd
26
- ```
27
-
28
- ### YARN
29
-
30
- ```bash
31
- yarn add @scaleflex/widget-attach-dnd
32
- ```
33
-
34
- then
35
-
36
- ```js
37
- import AttachDragAndDrop from '@scaleflex/widget-attach-dnd'
38
- ...
39
- ...
40
- ...
41
- scaleflexWidget.use(AttachDragAndDrop, propertiesObject)
42
- ```
43
-
44
- ### CDN
45
-
46
- If installed via a [CDN link](../@scaleflex/widget-core#installation), the plugin is inside the `ScaleflexWidget` global object as `ScaleflexWidget.AttachDnD`
47
-
48
- ```js
49
- const AttachDragAndDrop = window.ScaleflexWidget.AttachDnD
50
- ...
51
- ...
52
- ...
53
- scaleflexWidget.use(AttachDragAndDrop, propertiesObject)
54
- ```
55
-
56
- ## Properties
57
-
58
- Required attributes are marked with ***(Required)***.
59
-
60
- ### `target`
61
-
62
- <u>Type:</u> `string or HTML Element` **_Required_**.
63
-
64
- <u>Default:</u> `document.body`
65
-
66
- The selector (ID, Class) of an HTML element or an existed HTML element that would be attached with the drag & drop zone, also the drop hint would be shown to this target selector's element, by default it's the body of the document page.
67
-
68
- ### `fixedDropHint`
69
-
70
- <u>Type:</u> `boolean`.
71
-
72
- <u>Default:</u> `false`
73
-
74
- If set to `true`, the drop hint shown while dragging the file/folder on the `target` element would be in a fixed position.
75
-
76
- > Note: it might be useful to use this property if your page scroll and the drop zone doesn't keep in the same scroll position.
77
-
78
- ### `noDropHint`
79
-
80
- <u>Type:</u> `boolean`.
81
-
82
- <u>Default:</u> `false`
83
-
84
- If you don't want to show the drop hint shown while dragging the file/folder over the target element then provide `true` value here, otherwise it would be shown normally.
85
-
86
-
87
- <!-- Variables -->
88
-
89
- [npm-url]: https://www.npmjs.com/package/@scaleflex/widget-attach-dnd
90
- [license-url]: https://opensource.org/licenses/MIT
91
- [sfx-url]: https://www.scaleflex.com/
92
- [version-url]: https://www.npmjs.com/package/@scaleflex/widget-attach-dnd
93
- [codeSandbox-url]: https://codesandbox.io/p/sandbox/scalelfex-widget-v4-sandbox-dtp6l3?file=%2Fsrc%2Findex.js
94
-
95
-
96
- [npm-image]: https://img.shields.io/npm/v/@telus/remark-config.svg?style=for-the-badge&logo=npm
97
- [license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge
98
- [made-by-image]: https://img.shields.io/badge/%3C%2F%3E%20with%20%E2%99%A5%20by-the%20Scaleflex%20team-6986fa.svg?style=for-the-badge
99
- [plugins-image]: https://img.shields.io/static/v1?label=Scaleflex&message=Plugins&color=yellow&style=for-the-badge
100
- [filerobot-image]: https://img.shields.io/static/v1?label=Scaleflex&message=website&color=orange&style=for-the-badge
101
- [filerobot-version]: https://img.shields.io/npm/v/@scaleflex/widget-attach-dnd?label=Version&style=for-the-badge&logo=npm
102
- [codeSandbox-image]: https://img.shields.io/badge/CodeSandbox-black?style=for-the-badge&logo=CodeSandbox
1
+ # `@scaleflex/widget-attach-dnd`
2
+
3
+ [![Plugins][plugins-image]](#plugins)
4
+ [![Website][filerobot-image]][sfx-url]
5
+ [![Version][filerobot-version]][version-url]
6
+ [![Scaleflex team][made-by-image]][sfx-url]
7
+ [![License][license-image]][license-url]
8
+ [![CodeSandbox][codeSandbox-image]][codeSandbox-url]
9
+
10
+
11
+ <div align='center'>
12
+ <img title="Scaleflex Widget logo" alt="Scaleflex Widget logo" src="https://assets.scaleflex.com/Corporate+Branding/%5B2025%5D+ALL+LOGOS+%2B+ICONS/SCALEFLEX/VXP+logo/Horizontal+White/VXP+logo+WHITE.png?vh=663932" width="140"/>
13
+ </div>
14
+
15
+
16
+ Attaches drag & drop (dnd) zone of the Scaleflex widget to some HTML element of your page [Scaleflex Media Asset Widget](https://www.npmjs.com/package/@scaleflex/widget-core).
17
+
18
+ > Note: This plugin requires [@scaleflex/widget-explorer](../@scaleflex/widget-explorer) plugin to be existed & used in the widget, as the `attach-dnd` plugin role is only attaching the drag & drop zone to some element of your page and the rest is handled through the explorer & widget.
19
+
20
+ ## Usage
21
+
22
+ ### NPM
23
+
24
+ ```bash
25
+ npm install --save @scaleflex/widget-attach-dnd
26
+ ```
27
+
28
+ ### YARN
29
+
30
+ ```bash
31
+ yarn add @scaleflex/widget-attach-dnd
32
+ ```
33
+
34
+ then
35
+
36
+ ```js
37
+ import AttachDragAndDrop from '@scaleflex/widget-attach-dnd'
38
+ ...
39
+ ...
40
+ ...
41
+ scaleflexWidget.use(AttachDragAndDrop, propertiesObject)
42
+ ```
43
+
44
+ ### CDN
45
+
46
+ If installed via a [CDN link](../@scaleflex/widget-core#installation), the plugin is inside the `ScaleflexWidget` global object as `ScaleflexWidget.AttachDnD`
47
+
48
+ ```js
49
+ const AttachDragAndDrop = window.ScaleflexWidget.AttachDnD
50
+ ...
51
+ ...
52
+ ...
53
+ scaleflexWidget.use(AttachDragAndDrop, propertiesObject)
54
+ ```
55
+
56
+ ## Properties
57
+
58
+ Required attributes are marked with ***(Required)***.
59
+
60
+ ### `target`
61
+
62
+ <u>Type:</u> `string or HTML Element` **_Required_**.
63
+
64
+ <u>Default:</u> `document.body`
65
+
66
+ The selector (ID, Class) of an HTML element or an existed HTML element that would be attached with the drag & drop zone, also the drop hint would be shown to this target selector's element, by default it's the body of the document page.
67
+
68
+ ### `fixedDropHint`
69
+
70
+ <u>Type:</u> `boolean`.
71
+
72
+ <u>Default:</u> `false`
73
+
74
+ If set to `true`, the drop hint shown while dragging the file/folder on the `target` element would be in a fixed position.
75
+
76
+ > Note: it might be useful to use this property if your page scroll and the drop zone doesn't keep in the same scroll position.
77
+
78
+ ### `noDropHint`
79
+
80
+ <u>Type:</u> `boolean`.
81
+
82
+ <u>Default:</u> `false`
83
+
84
+ If you don't want to show the drop hint shown while dragging the file/folder over the target element then provide `true` value here, otherwise it would be shown normally.
85
+
86
+
87
+ <!-- Variables -->
88
+
89
+ [npm-url]: https://www.npmjs.com/package/@scaleflex/widget-attach-dnd
90
+ [license-url]: https://opensource.org/licenses/MIT
91
+ [sfx-url]: https://www.scaleflex.com/
92
+ [version-url]: https://www.npmjs.com/package/@scaleflex/widget-attach-dnd
93
+ [codeSandbox-url]: https://codesandbox.io/p/sandbox/scalelfex-widget-v4-sandbox-dtp6l3?file=%2Fsrc%2Findex.js
94
+
95
+
96
+ [npm-image]: https://img.shields.io/npm/v/@telus/remark-config.svg?style=for-the-badge&logo=npm
97
+ [license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge
98
+ [made-by-image]: https://img.shields.io/badge/%3C%2F%3E%20with%20%E2%99%A5%20by-the%20Scaleflex%20team-6986fa.svg?style=for-the-badge
99
+ [plugins-image]: https://img.shields.io/static/v1?label=Scaleflex&message=Plugins&color=yellow&style=for-the-badge
100
+ [filerobot-image]: https://img.shields.io/static/v1?label=Scaleflex&message=website&color=orange&style=for-the-badge
101
+ [filerobot-version]: https://img.shields.io/npm/v/@scaleflex/widget-attach-dnd?label=Version&style=for-the-badge&logo=npm
102
+ [codeSandbox-image]: https://img.shields.io/badge/CodeSandbox-black?style=for-the-badge&logo=CodeSandbox
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleflex/widget-attach-dnd",
3
- "version": "4.0.7",
3
+ "version": "4.1.0",
4
4
  "description": "Attaches drag & drop zone to the specified HTML target, so any file dropped in that target would be uploaded.",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -12,7 +12,7 @@
12
12
  "access": "public"
13
13
  },
14
14
  "dependencies": {
15
- "@scaleflex/widget-utils": "^4.0.7"
15
+ "@scaleflex/widget-utils": "^4.1.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "react": "^19.0.0",
@@ -25,5 +25,5 @@
25
25
  "react-dom": ">=19.0.0"
26
26
  },
27
27
  "license": "MIT",
28
- "gitHead": "a940492ab76142f7041379f9a8a1d0bc8367214f"
28
+ "gitHead": "471120d67066617a0d8824eae11b07d1f2259473"
29
29
  }