Socket
Socket
Sign inDemoInstall

@uppy/provider-views

Package Overview
Dependencies
Maintainers
5
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-beta.6 to 4.0.0-beta.7

7

CHANGELOG.md
# @uppy/provider-views
## 4.0.0-beta.7
Released: 2024-06-04
Included in: Uppy v4.0.0-beta.10
- @uppy/provider-views: PartialTree - get rid of `.onFirstRender()` (Evgenia Karunus / #5187)
## 4.0.0-beta.4

@@ -4,0 +11,0 @@

2

lib/Item/index.js

@@ -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); }
/* eslint-disable react/require-default-props */

@@ -3,0 +3,0 @@ import { h } from 'preact';

@@ -1,4 +0,4 @@

function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); return e; }
var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
function _classPrivateFieldLooseKey(e) { return "__private_" + id++ + "_" + e; }
import { h } from 'preact';

@@ -16,3 +16,3 @@ import PQueue from 'p-queue';

const packageJson = {
"version": "4.0.0-beta.6"
"version": "4.0.0-beta.7"
};

@@ -230,3 +230,3 @@ function formatBreadcrumbs(breadcrumbs) {

});
this.preFirstRender();
await this.getFolder(this.plugin.rootFolderId || undefined);
});

@@ -386,3 +386,7 @@ } catch (err) {

if (!didFirstRender) {
this.preFirstRender();
this.plugin.setPluginState({
didFirstRender: true
});
this.provider.fetchPreAuthToken();
this.getFolder(this.plugin.rootFolderId || undefined);
}

@@ -389,0 +393,0 @@ const targetViewOptions = {

@@ -1,4 +0,4 @@

function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); return e; }
var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
function _classPrivateFieldLooseKey(e) { return "__private_" + id++ + "_" + e; }
import { h } from 'preact';

@@ -13,3 +13,3 @@ import SearchFilterInput from "../SearchFilterInput.js";

const packageJson = {
"version": "4.0.0-beta.6"
"version": "4.0.0-beta.7"
};

@@ -120,3 +120,2 @@ const defaultState = {

const {
didFirstRender,
isInputMode,

@@ -128,5 +127,2 @@ searchTerm

} = this.plugin.uppy;
if (!didFirstRender) {
this.preFirstRender();
}
const targetViewOptions = {

@@ -133,0 +129,0 @@ ...this.opts,

@@ -24,3 +24,2 @@ import type { UnknownProviderPlugin, UnknownSearchProviderPlugin } from '@uppy/core/lib/Uppy';

constructor(plugin: SelectedPlugin<M, B, T>, opts: O);
preFirstRender(): void;
shouldHandleScroll(event: Event): boolean;

@@ -27,0 +26,0 @@ clearSelection(): void;

@@ -35,3 +35,2 @@ import getFileType from '@uppy/utils/lib/getFileType';

this.isHandlingScroll = false;
this.preFirstRender = this.preFirstRender.bind(this);
this.handleError = this.handleError.bind(this);

@@ -41,8 +40,2 @@ this.clearSelection = this.clearSelection.bind(this);

}
preFirstRender() {
this.plugin.setPluginState({
didFirstRender: true
});
this.plugin.onFirstRender();
}
shouldHandleScroll(event) {

@@ -49,0 +42,0 @@ const {

{
"name": "@uppy/provider-views",
"description": "View library for Uppy remote provider plugins.",
"version": "4.0.0-beta.6",
"version": "4.0.0-beta.7",
"license": "MIT",

@@ -22,3 +22,3 @@ "main": "lib/index.js",

"dependencies": {
"@uppy/utils": "^6.0.0-beta.7",
"@uppy/utils": "^6.0.0-beta.8",
"classnames": "^2.2.6",

@@ -30,5 +30,5 @@ "nanoid": "^5.0.0",

"peerDependencies": {
"@uppy/core": "^4.0.0-beta.8"
"@uppy/core": "^4.0.0-beta.9"
},
"stableVersion": "3.11.0"
}

@@ -27,9 +27,2 @@ # @uppy/provider-views

onFirstRender() {
return Promise.all([
this.provider.fetchPreAuthToken(),
this.view.getFolder('root'),
])
}
render(state) {

@@ -36,0 +29,0 @@ return this.view.render(state)

@@ -66,3 +66,2 @@ import type {

this.preFirstRender = this.preFirstRender.bind(this)
this.handleError = this.handleError.bind(this)

@@ -73,7 +72,2 @@ this.clearSelection = this.clearSelection.bind(this)

preFirstRender(): void {
this.plugin.setPluginState({ didFirstRender: true })
this.plugin.onFirstRender()
}
shouldHandleScroll(event: Event): boolean {

@@ -80,0 +74,0 @@ const { scrollHeight, scrollTop, offsetHeight } =

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc