@rpldy/shared-ui
Advanced tools
Comparing version 1.8.1 to 1.8.2
@@ -9,6 +9,6 @@ "use strict"; | ||
var _useUploadyContext = _interopRequireDefault(require("../hooks/useUploadyContext")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } | ||
const createRequestUpdateHoc = ({ | ||
@@ -15,0 +15,0 @@ eventType, |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _useUploadyContext = _interopRequireDefault(require("./useUploadyContext")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const useEventEffect = (event, fn) => { | ||
@@ -13,0 +13,0 @@ const context = (0, _useUploadyContext.default)(); |
@@ -9,3 +9,3 @@ "use strict"; | ||
var _useUploadyContext = _interopRequireDefault(require("./useUploadyContext")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const useAbortAll = () => { | ||
@@ -12,0 +12,0 @@ const context = (0, _useUploadyContext.default)(); |
@@ -9,3 +9,3 @@ "use strict"; | ||
var _useUploadyContext = _interopRequireDefault(require("./useUploadyContext")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const useAbortBatch = () => { | ||
@@ -12,0 +12,0 @@ const context = (0, _useUploadyContext.default)(); |
@@ -9,3 +9,3 @@ "use strict"; | ||
var _useUploadyContext = _interopRequireDefault(require("./useUploadyContext")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const useAbortItem = () => { | ||
@@ -12,0 +12,0 @@ const context = (0, _useUploadyContext.default)(); |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _uploader = _interopRequireDefault(require("@rpldy/uploader")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const useUploader = (options, listeners) => { | ||
@@ -13,0 +13,0 @@ const uploader = (0, _react.useMemo)(() => { |
@@ -8,3 +8,3 @@ "use strict"; | ||
var _useUploadyContext = _interopRequireDefault(require("./useUploadyContext")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const useUploadOptions = options => { | ||
@@ -11,0 +11,0 @@ const context = (0, _useUploadyContext.default)(); |
@@ -10,4 +10,4 @@ "use strict"; | ||
var _assertContext = _interopRequireDefault(require("../assertContext")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const useUploadyContext = () => (0, _assertContext.default)((0, _react.useContext)(_UploadyContext.default)); | ||
var _default = exports.default = useUploadyContext; |
@@ -231,3 +231,3 @@ "use strict"; | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } |
@@ -11,5 +11,5 @@ "use strict"; | ||
var _useUploader = _interopRequireDefault(require("./hooks/useUploader")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
const NoDomUploady = props => { | ||
@@ -16,0 +16,0 @@ const { |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _uploadyVersion = require("./uploadyVersion"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const UploadyContext = /*#__PURE__*/_react.default.createContext(null); | ||
@@ -13,0 +13,0 @@ const NO_INPUT_ERROR_MSG = "Uploady - Context. File input isn't available"; |
@@ -9,3 +9,3 @@ "use strict"; | ||
const GLOBAL_VERSION_SYM = exports.GLOBAL_VERSION_SYM = Symbol.for("_rpldy-version_"); | ||
const getVersion = () => "1.8.1" || ""; | ||
const getVersion = () => "1.8.2" || ""; | ||
exports.getVersion = getVersion; | ||
@@ -12,0 +12,0 @@ const getGlobal = () => (0, _shared.hasWindow)() ? window : globalThis || process; |
@@ -1,2 +0,2 @@ | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } | ||
import React, { useLayoutEffect, useState } from "react"; | ||
@@ -3,0 +3,0 @@ import useUploadyContext from "../hooks/useUploadyContext"; |
import { hasWindow } from "@rpldy/shared"; | ||
export const GLOBAL_VERSION_SYM = Symbol.for("_rpldy-version_"); | ||
const getVersion = () => "1.8.1" || ""; | ||
const getVersion = () => "1.8.2" || ""; | ||
const getGlobal = () => hasWindow() ? window : globalThis || process; | ||
@@ -5,0 +5,0 @@ const getRegisteredVersion = () => { |
{ | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"name": "@rpldy/shared-ui", | ||
@@ -25,10 +25,10 @@ "description": "internal set of utils+types for react-uploady UI", | ||
"dependencies": { | ||
"@rpldy/shared": "1.8.1", | ||
"@rpldy/uploader": "1.8.1" | ||
"@rpldy/shared": "1.8.2", | ||
"@rpldy/uploader": "1.8.2" | ||
}, | ||
"devDependencies": { | ||
"@rpldy/life-events": "1.8.1", | ||
"@rpldy/life-events": "1.8.2", | ||
"flow-bin": "^0.229.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1" | ||
}, | ||
@@ -41,3 +41,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "42499e9a3b55c3996dcdf502df093da6b22d9927" | ||
"gitHead": "3704b7109c8492d67ac9aba12e4e7a5060da074f" | ||
} |
@@ -117,17 +117,17 @@ import * as React from "react"; | ||
export interface NoDomUploadyProps extends CreateOptions { | ||
debug?: boolean; | ||
listeners?: UploaderListeners; | ||
inputRef?: InputRef; | ||
children?: JSX.Element[] | JSX.Element; | ||
debug?: boolean | undefined; | ||
listeners?: UploaderListeners | undefined; | ||
inputRef?: InputRef | undefined; | ||
children?: React.ReactNode | undefined; | ||
} | ||
export interface UploadyProps extends NoDomUploadyProps { | ||
customInput?: boolean; | ||
inputFieldContainer?: HTMLElement; | ||
capture?: string; | ||
multiple?: boolean; | ||
accept?: string; | ||
webkitdirectory?: boolean; | ||
fileInputId?: string; | ||
noPortal?: boolean; | ||
customInput?: boolean | undefined; | ||
inputFieldContainer?: HTMLElement | undefined; | ||
capture?: string | undefined; | ||
multiple?: boolean | undefined; | ||
accept?: string | undefined; | ||
webkitdirectory?: boolean | undefined; | ||
fileInputId?: string | undefined; | ||
noPortal?: boolean | undefined; | ||
} | ||
@@ -134,0 +134,0 @@ |
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
58898
1342
+ Added@rpldy/shared@1.8.2(transitive)
+ Added@rpldy/uploader@1.8.2(transitive)
- Removed@rpldy/shared@1.8.1(transitive)
- Removed@rpldy/uploader@1.8.1(transitive)
Updated@rpldy/shared@1.8.2
Updated@rpldy/uploader@1.8.2