@jobber/components 4.4.3 → 4.4.5
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/dist/Chips/InternalChipDismissible/hooks/useInView.d.ts +0 -1
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissibleInput.d.ts +0 -1
- package/dist/DataTable/Footer.d.ts +0 -1
- package/dist/InputAvatar/index.js +1 -1
- package/dist/InputFile/InputFile.d.ts +1 -1
- package/dist/InputFile/index.js +1 -1
- package/dist/{InputFile-9e6f4dec.js → InputFile-33d7d2fb.js} +3 -2
- package/dist/List/List.stories.d.ts +0 -1
- package/dist/Menu/Menu.stories.d.ts +0 -1
- package/dist/Tooltip/useTooltipPositioning.d.ts +0 -1
- package/package.json +2 -2
- package/rollup.config.js +1 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import React, { ChangeEvent, KeyboardEvent } from "react";
|
|
3
2
|
import { ChipDismissibleInputOptionProps, ChipDismissibleInputProps } from "../InternalChipDismissibleTypes";
|
|
4
3
|
export declare function useInternalChipDismissibleInput({ options, isLoadingMore, onCustomOptionSelect, onOptionSelect, onSearch, }: ChipDismissibleInputProps): {
|
|
@@ -6,7 +6,7 @@ var tslib_es6 = require('../tslib.es6-5b8768b7.js');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
8
8
|
var Avatar = require('../Avatar-98b59e17.js');
|
|
9
|
-
var InputFile = require('../InputFile-
|
|
9
|
+
var InputFile = require('../InputFile-33d7d2fb.js');
|
|
10
10
|
var ProgressBar = require('../ProgressBar-8438dd4c.js');
|
|
11
11
|
var Button = require('../Button-e2452625.js');
|
|
12
12
|
require('classnames');
|
package/dist/InputFile/index.js
CHANGED
|
@@ -52,7 +52,7 @@ function InputFile({ variation = "dropzone", size = "base", buttonLabel: provide
|
|
|
52
52
|
function uploadFile(file) {
|
|
53
53
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
54
54
|
const { url, key = uuid.v1(), fields = {}, httpMethod = "POST", } = yield getUploadParams(file);
|
|
55
|
-
const fileUpload =
|
|
55
|
+
const fileUpload = getFileUpload(file, key, url);
|
|
56
56
|
onUploadStart && onUploadStart(Object.assign({}, fileUpload));
|
|
57
57
|
const handleUploadProgress = (progressEvent) => {
|
|
58
58
|
onUploadProgress &&
|
|
@@ -109,7 +109,7 @@ function getLabels(providedButtonLabel, multiple, allowedTypes) {
|
|
|
109
109
|
buttonLabel = providedButtonLabel;
|
|
110
110
|
return { buttonLabel, hintText };
|
|
111
111
|
}
|
|
112
|
-
function getFileUpload(file, key) {
|
|
112
|
+
function getFileUpload(file, key, uploadUrl) {
|
|
113
113
|
return {
|
|
114
114
|
key: key,
|
|
115
115
|
name: file.name,
|
|
@@ -117,6 +117,7 @@ function getFileUpload(file, key) {
|
|
|
117
117
|
size: file.size,
|
|
118
118
|
progress: 0,
|
|
119
119
|
src: getSrc,
|
|
120
|
+
uploadUrl,
|
|
120
121
|
};
|
|
121
122
|
function getSrc() {
|
|
122
123
|
const promise = new Promise((resolve, reject) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"> 1%",
|
|
82
82
|
"IE 10"
|
|
83
83
|
],
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "dd07c01a80cb742a8392ab98df5a92733e6f9830"
|
|
85
85
|
}
|