Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@plasmicapp/data-sources

Package Overview
Dependencies
Maintainers
1
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plasmicapp/data-sources - npm Package Compare versions

Comparing version 0.1.22 to 0.1.23

303

dist/data-sources.cjs.development.js

@@ -20,3 +20,2 @@ 'use strict';

}
if (info.done) {

@@ -28,18 +27,14 @@ resolve(value);

}
function _asyncToGenerator(fn) {
return function () {
var self = this,
args = arguments;
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(undefined);

@@ -49,8 +44,6 @@ });

}
function _extends() {
_extends = Object.assign || function (target) {
_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) {

@@ -62,6 +55,4 @@ if (Object.prototype.hasOwnProperty.call(source, key)) {

}
return target;
};
return _extends.apply(this, arguments);

@@ -81,2 +72,3 @@ }

*/
var runtime = function (exports) {

@@ -87,3 +79,2 @@

var undefined$1; // More compressible than void 0.
var $Symbol = typeof Symbol === "function" ? Symbol : {};

@@ -93,3 +84,2 @@ var iteratorSymbol = $Symbol.iterator || "@@iterator";

var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
function define(obj, key, value) {

@@ -104,3 +94,2 @@ Object.defineProperty(obj, key, {

}
try {

@@ -114,3 +103,2 @@ // IE 8 has a broken Object.defineProperty that only works on DOM objects.

}
function wrap(innerFn, outerFn, self, tryLocsList) {

@@ -120,10 +108,12 @@ // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.

var generator = Object.create(protoGenerator.prototype);
var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next,
var context = new Context(tryLocsList || []);
// The ._invoke method unifies the implementations of the .next,
// .throw, and .return methods.
generator._invoke = makeInvokeMethod(innerFn, self, context);
return generator;
}
exports.wrap = wrap;
exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion
// Try/catch helper to minimize deoptimizations. Returns a completion
// record like context.tryEntries[i].completion. This interface could

@@ -138,3 +128,2 @@ // have been (and was previously) designed to take a closure to be

// has a stable shape and so hopefully should be cheap to allocate.
function tryCatch(fn, obj, arg) {

@@ -153,22 +142,21 @@ try {

}
var GenStateSuspendedStart = "suspendedStart";
var GenStateSuspendedYield = "suspendedYield";
var GenStateExecuting = "executing";
var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as
var GenStateCompleted = "completed";
// Returning this object from the innerFn has the same effect as
// breaking out of the dispatch switch statement.
var ContinueSentinel = {};
var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and
// Dummy constructor functions that we use as the .constructor and
// .constructor.prototype properties for functions that return Generator
// objects. For full spec compliance, you may wish to configure your
// minifier not to mangle the names of these two functions.
function Generator() {}
function GeneratorFunction() {}
function GeneratorFunctionPrototype() {}
function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that
// This is a polyfill for %IteratorPrototype% for environments that
// don't natively support it.
var IteratorPrototype = {};

@@ -180,3 +168,2 @@ define(IteratorPrototype, iteratorSymbol, function () {

var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {

@@ -187,3 +174,2 @@ // This environment has a native %IteratorPrototype%; use it instead

}
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);

@@ -193,5 +179,6 @@ GeneratorFunction.prototype = GeneratorFunctionPrototype;

define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction");
// Helper for defining the .next, .throw, and .return methods of the
// Iterator interface in terms of a single ._invoke method.
function defineIteratorMethods(prototype) {

@@ -204,10 +191,9 @@ ["next", "throw", "return"].forEach(function (method) {

}
exports.isGeneratorFunction = function (genFun) {
var ctor = typeof genFun === "function" && genFun.constructor;
return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can
return ctor ? ctor === GeneratorFunction ||
// For the native GeneratorFunction constructor, the best we can
// do is to check its .name property.
(ctor.displayName || ctor.name) === "GeneratorFunction" : false;
};
exports.mark = function (genFun) {

@@ -220,11 +206,10 @@ if (Object.setPrototypeOf) {

}
genFun.prototype = Object.create(Gp);
return genFun;
}; // Within the body of any async function, `await x` is transformed to
};
// Within the body of any async function, `await x` is transformed to
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
// `hasOwn.call(value, "__await")` to determine if the yielded value is
// meant to be awaited.
exports.awrap = function (arg) {

@@ -235,7 +220,5 @@ return {

};
function AsyncIterator(generator, PromiseImpl) {
function invoke(method, arg, resolve, reject) {
var record = tryCatch(generator[method], generator, arg);
if (record.type === "throw") {

@@ -246,3 +229,2 @@ reject(record.arg);

var value = result.value;
if (value && typeof value === "object" && hasOwn.call(value, "__await")) {

@@ -255,3 +237,2 @@ return PromiseImpl.resolve(value.__await).then(function (value) {

}
return PromiseImpl.resolve(value).then(function (unwrapped) {

@@ -270,5 +251,3 @@ // When a yielded Promise is resolved, its final value becomes

}
var previousPromise;
function enqueue(method, arg) {

@@ -280,4 +259,4 @@ function callInvokeWithMethodAndArg() {

}
return previousPromise = // If enqueue has been called before, then we want to wait until
return previousPromise =
// If enqueue has been called before, then we want to wait until
// all previous Promises have been resolved before calling invoke,

@@ -294,12 +273,12 @@ // so that results are always delivered in the correct order. If

// important to get this right, even though it requires care.
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg,
// Avoid propagating failures to Promises returned by later
// invocations of the iterator.
callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
} // Define the unified helper method that is used to implement .next,
}
// Define the unified helper method that is used to implement .next,
// .throw, and .return (see defineIteratorMethods).
this._invoke = enqueue;
}
defineIteratorMethods(AsyncIterator.prototype);

@@ -309,6 +288,7 @@ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {

});
exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
exports.AsyncIterator = AsyncIterator;
// Note that simple async functions are implemented on top of
// AsyncIterator objects; they just return a Promise for the value of
// the final result produced by the iterator.
exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {

@@ -322,3 +302,2 @@ if (PromiseImpl === void 0) PromiseImpl = Promise;

};
function makeInvokeMethod(innerFn, self, context) {

@@ -330,22 +309,17 @@ var state = GenStateSuspendedStart;

}
if (state === GenStateCompleted) {
if (method === "throw") {
throw arg;
} // Be forgiving, per 25.3.3.3.3 of the spec:
}
// Be forgiving, per 25.3.3.3.3 of the spec:
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
return doneResult();
}
context.method = method;
context.arg = arg;
while (true) {
var delegate = context.delegate;
if (delegate) {
var delegateResult = maybeInvokeDelegate(delegate, context);
if (delegateResult) {

@@ -356,3 +330,2 @@ if (delegateResult === ContinueSentinel) continue;

}
if (context.method === "next") {

@@ -367,3 +340,2 @@ // Setting context._sent for legacy support of Babel's

}
context.dispatchException(context.arg);

@@ -373,6 +345,4 @@ } else if (context.method === "return") {

}
state = GenStateExecuting;
var record = tryCatch(innerFn, self, context);
if (record.type === "normal") {

@@ -382,7 +352,5 @@ // If an exception is thrown from innerFn, we leave state ===

state = context.done ? GenStateCompleted : GenStateSuspendedYield;
if (record.arg === ContinueSentinel) {
continue;
}
return {

@@ -393,5 +361,5 @@ value: record.arg,

} else if (record.type === "throw") {
state = GenStateCompleted; // Dispatch the exception by looping back around to the
state = GenStateCompleted;
// Dispatch the exception by looping back around to the
// context.dispatchException(context.arg) call above.
context.method = "throw";

@@ -402,11 +370,10 @@ context.arg = record.arg;

};
} // Call delegate.iterator[context.method](context.arg) and handle the
}
// Call delegate.iterator[context.method](context.arg) and handle the
// result, either by returning a { value, done } result from the
// delegate iterator, or by modifying context.method and context.arg,
// setting context.delegate to null, and returning the ContinueSentinel.
function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
if (method === undefined$1) {

@@ -416,3 +383,2 @@ // A .throw or .return when the delegate iterator has no .throw

context.delegate = null;
if (context.method === "throw") {

@@ -426,3 +392,2 @@ // Note: ["return"] must be used for ES3 parsing compatibility.

maybeInvokeDelegate(delegate, context);
if (context.method === "throw") {

@@ -434,12 +399,8 @@ // If maybeInvokeDelegate(context) changed context.method from

}
context.method = "throw";
context.arg = new TypeError("The iterator does not provide a 'throw' method");
}
return ContinueSentinel;
}
var record = tryCatch(method, delegate.iterator, context.arg);
if (record.type === "throw") {

@@ -451,5 +412,3 @@ context.method = "throw";

}
var info = record.arg;
if (!info) {

@@ -461,9 +420,11 @@ context.method = "throw";

}
if (info.done) {
// Assign the result of the finished delegate to the temporary
// variable specified by delegate.resultName (see delegateYield).
context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).
context[delegate.resultName] = info.value;
context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the
// Resume execution at the desired location (see delegateYield).
context.next = delegate.nextLoc;
// If context.method was "throw" but the delegate handled the
// exception, let the outer generator proceed normally. If

@@ -474,3 +435,2 @@ // context.method was "next", forget context.arg since it has been

// outer generator.
if (context.method !== "return") {

@@ -483,14 +443,16 @@ context.method = "next";

return info;
} // The delegate iterator is finished, so forget it and continue with
}
// The delegate iterator is finished, so forget it and continue with
// the outer generator.
context.delegate = null;
return ContinueSentinel;
} // Define Generator.prototype.{next,throw,return} in terms of the
}
// Define Generator.prototype.{next,throw,return} in terms of the
// unified ._invoke helper method.
defineIteratorMethods(Gp);
define(Gp, toStringTagSymbol, "Generator");
defineIteratorMethods(Gp);
define(Gp, toStringTagSymbol, "Generator"); // A Generator should always return itself as the iterator object when the
// A Generator should always return itself as the iterator object when the
// @@iterator function is called on it. Some browsers' implementations of the

@@ -500,3 +462,2 @@ // iterator prototype chain incorrectly implement this, causing the Generator

// See https://github.com/facebook/regenerator/issues/274 for more details.
define(Gp, iteratorSymbol, function () {

@@ -508,3 +469,2 @@ return this;

});
function pushTryEntry(locs) {

@@ -514,7 +474,5 @@ var entry = {

};
if (1 in locs) {
entry.catchLoc = locs[1];
}
if (2 in locs) {

@@ -524,6 +482,4 @@ entry.finallyLoc = locs[2];

}
this.tryEntries.push(entry);
}
function resetTryEntry(entry) {

@@ -535,3 +491,2 @@ var record = entry.completion || {};

}
function Context(tryLocsList) {

@@ -547,17 +502,14 @@ // The root entry object (effectively a try statement without a catch

}
exports.keys = function (object) {
var keys = [];
for (var key in object) {
keys.push(key);
}
keys.reverse();
keys.reverse(); // Rather than returning an object with a next method, we keep
// Rather than returning an object with a next method, we keep
// things simple and return the next function itself.
return function next() {
while (keys.length) {
var key = keys.pop();
if (key in object) {

@@ -568,7 +520,7 @@ next.value = key;

}
} // To avoid creating an additional object, we just hang the .value
}
// To avoid creating an additional object, we just hang the .value
// and .done properties off the next function object itself. This
// also ensures that the minifier will not anonymize the function.
next.done = true;

@@ -578,36 +530,30 @@ return next;

};
function values(iterable) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) {
return iteratorMethod.call(iterable);
}
if (typeof iterable.next === "function") {
return iterable;
}
if (!isNaN(iterable.length)) {
var i = -1,
next = function next() {
while (++i < iterable.length) {
if (hasOwn.call(iterable, i)) {
next.value = iterable[i];
next.done = false;
return next;
next = function next() {
while (++i < iterable.length) {
if (hasOwn.call(iterable, i)) {
next.value = iterable[i];
next.done = false;
return next;
}
}
}
next.value = undefined$1;
next.done = true;
return next;
};
next.value = undefined$1;
next.done = true;
return next;
};
return next.next = next;
}
} // Return an iterator with no values.
}
// Return an iterator with no values.
return {

@@ -617,5 +563,3 @@ next: doneResult

}
exports.values = values;
function doneResult() {

@@ -627,3 +571,2 @@ return {

}
Context.prototype = {

@@ -633,5 +576,5 @@ constructor: Context,

this.prev = 0;
this.next = 0; // Resetting context._sent for legacy support of Babel's
this.next = 0;
// Resetting context._sent for legacy support of Babel's
// function.sent implementation.
this.sent = this._sent = undefined$1;

@@ -643,3 +586,2 @@ this.done = false;

this.tryEntries.forEach(resetTryEntry);
if (!skipTempReset) {

@@ -658,7 +600,5 @@ for (var name in this) {

var rootRecord = rootEntry.completion;
if (rootRecord.type === "throw") {
throw rootRecord.arg;
}
return this.rval;

@@ -670,5 +610,3 @@ },

}
var context = this;
function handle(loc, caught) {

@@ -678,3 +616,2 @@ record.type = "throw";

context.next = loc;
if (caught) {

@@ -686,10 +623,7 @@ // If the dispatched exception was caught by a catch block,

}
return !!caught;
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
var record = entry.completion;
if (entry.tryLoc === "root") {

@@ -701,7 +635,5 @@ // Exception thrown outside of any try block that could handle

}
if (entry.tryLoc <= this.prev) {
var hasCatch = hasOwn.call(entry, "catchLoc");
var hasFinally = hasOwn.call(entry, "finallyLoc");
if (hasCatch && hasFinally) {

@@ -730,3 +662,2 @@ if (this.prev < entry.catchLoc) {

var entry = this.tryEntries[i];
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {

@@ -737,3 +668,2 @@ var finallyEntry = entry;

}
if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {

@@ -744,7 +674,5 @@ // Ignore the finally entry if control is not jumping to a

}
var record = finallyEntry ? finallyEntry.completion : {};
record.type = type;
record.arg = arg;
if (finallyEntry) {

@@ -755,3 +683,2 @@ this.method = "next";

}
return this.complete(record);

@@ -763,3 +690,2 @@ },

}
if (record.type === "break" || record.type === "continue") {

@@ -774,3 +700,2 @@ this.next = record.arg;

}
return ContinueSentinel;

@@ -781,3 +706,2 @@ },

var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc) {

@@ -793,6 +717,4 @@ this.complete(entry.completion, entry.afterLoc);

var entry = this.tryEntries[i];
if (entry.tryLoc === tryLoc) {
var record = entry.completion;
if (record.type === "throw") {

@@ -802,9 +724,8 @@ var thrown = record.arg;

}
return thrown;
}
} // The context.catch method must only be called with a location
}
// The context.catch method must only be called with a location
// argument that corresponds to a known catch block.
throw new Error("illegal catch attempt");

@@ -818,3 +739,2 @@ },

};
if (this.method === "next") {

@@ -825,12 +745,13 @@ // Deliberately forget the last sent value so that we don't

}
return ContinueSentinel;
}
}; // Regardless of whether this script is executing as a CommonJS module
};
// Regardless of whether this script is executing as a CommonJS module
// or not, return the runtime object so that we can declare the variable
// regeneratorRuntime in the outer scope, which allows this module to be
// injected easily by `bin/regenerator --include-runtime script.js`.
return exports;
}( // If this script is executing as a CommonJS module, use module.exports
}(
// If this script is executing as a CommonJS module, use module.exports
// as the regeneratorRuntime namespace. Otherwise create a new empty

@@ -840,3 +761,2 @@ // object. Either way, the resulting object will be used to initialize

module.exports );
try {

@@ -867,3 +787,2 @@ regeneratorRuntime = runtime;

}
function _executePlasmicDataOp2() {

@@ -879,6 +798,4 @@ _executePlasmicDataOp2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(op, opts) {

return func(op, opts);
case 3:
return _context.abrupt("return", _context.sent);
case 4:

@@ -893,11 +810,8 @@ case "end":

}
function _executePlasmicDataOp(_x3, _x4) {
return _executePlasmicDataOp3.apply(this, arguments);
}
function _executePlasmicDataOp3() {
_executePlasmicDataOp3 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(op, opts) {
var _op$userArgs;
var host, url, resp, text;

@@ -924,6 +838,4 @@ return runtime_1.wrap(function _callee2$(_context2) {

});
case 4:
resp = _context2.sent;
if (!(resp.status !== 200)) {

@@ -933,17 +845,12 @@ _context2.next = 10;

}
_context2.next = 8;
return resp.text();
case 8:
text = _context2.sent;
throw new Error(text);
case 10:
_context2.next = 12;
return resp.json();
case 12:
return _context2.abrupt("return", _context2.sent);
case 13:

@@ -958,3 +865,2 @@ case "end":

}
function getConfig(key, defaultValue) {

@@ -965,3 +871,2 @@ if (typeof globalThis === 'undefined') {

var _globalThis$key;
return (_globalThis$key = globalThis[key]) != null ? _globalThis$key : defaultValue;

@@ -980,10 +885,7 @@ }

var res = {};
for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
keys[_key - 1] = arguments[_key];
}
for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
var key = _keys[_i];
if (key in obj) {

@@ -993,3 +895,2 @@ res[key] = obj[key];

}
return res;

@@ -1018,6 +919,4 @@ }

});
case 2:
return _context.abrupt("return", _context.sent);
case 3:

@@ -1031,4 +930,4 @@ case "end":

var data = res.data,
error = res.error,
isLoading = res.isLoading;
error = res.error,
isLoading = res.isLoading;
return React.useMemo(function () {

@@ -1040,6 +939,5 @@ return _extends({}, data != null ? data : {}, pick(res, 'isLoading', 'error'));

var _ref2 = dataOp != null ? dataOp : {},
sourceId = _ref2.sourceId,
opId = _ref2.opId,
userArgs = _ref2.userArgs;
sourceId = _ref2.sourceId,
opId = _ref2.opId,
userArgs = _ref2.userArgs;
var ctx = dataSourcesContext.usePlasmicDataSourceContext();

@@ -1056,5 +954,3 @@ var userToken = ctx == null ? void 0 : ctx.userAuthToken;

}
return _context2.abrupt("return", undefined);
case 2:

@@ -1068,3 +964,2 @@ return _context2.abrupt("return", executePlasmicDataOp({

}));
case 3:

@@ -1081,8 +976,7 @@ case "end":

var _children;
var dataOp = props.dataOp,
children = props.children,
name = props.name,
pageIndex = props.pageIndex,
pageSize = props.pageSize;
children = props.children,
name = props.name,
pageIndex = props.pageIndex,
pageSize = props.pageSize;
var data = usePlasmicDataOp(dataOp, _extends({}, !!pageIndex && !!pageSize && {

@@ -1096,3 +990,2 @@ paginate: {

var _extends2;
return _extends({}, props.queries, (_extends2 = {}, _extends2[name != null ? name : 'data'] = data, _extends2));

@@ -1135,7 +1028,7 @@ }, [props.queries, name, data]);

var $queries = _ref.$queries,
getDataOp = _ref.getDataOp,
setDollarQueries = _ref.setDollarQueries,
name = _ref.name,
pageIndex = _ref.pageIndex,
pageSize = _ref.pageSize;
getDataOp = _ref.getDataOp,
setDollarQueries = _ref.setDollarQueries,
name = _ref.name,
pageIndex = _ref.pageIndex,
pageSize = _ref.pageSize;
var data = usePlasmicDataOp(swallow(getDataOp), _extends({}, !!pageIndex && !!pageSize && {

@@ -1149,6 +1042,4 @@ paginate: {

var finalName = name != null ? name : 'data';
if (!(finalName in $queries) || $queries[finalName] !== data) {
var _extends2;
setDollarQueries(_extends({}, $queries, (_extends2 = {}, _extends2[finalName] = data, _extends2)));

@@ -1155,0 +1046,0 @@ }

@@ -1,2 +0,2 @@

"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@plasmicapp/query"),r=t(require("react")),n=require("@plasmicapp/data-sources-context"),o=t(require("isomorphic-unfetch"));function a(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){a(i,n,o,u,c,"next",t)}function c(t){a(i,n,o,u,c,"throw",t)}u(void 0)}))}}function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function c(t,e){return t(e={exports:{}},e.exports),e.exports}var s=c((function(t){var e=function(t){var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=Object.create((e&&e.prototype instanceof p?e:p).prototype),a=new O(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=w(i,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),o}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function p(){}function f(){}function h(){}var d={};u(d,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==e&&r.call(y,o)&&(d=y);var g=h.prototype=p.prototype=Object.create(d);function m(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var n;this._invoke=function(o,a){function i(){return new e((function(n,i){!function n(o,a,i,u){var c=s(t[o],t,a);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(p).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,u)}))}u(c.arg)}(o,a,n,i)}))}return n=n?n.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:P}}function P(){return{value:void 0,done:!0}}return f.prototype=h,u(g,"constructor",h),u(h,"constructor",f),f.displayName=u(h,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,i,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(x.prototype),u(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(c(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},m(g),u(g,i,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));function l(t,e){return p.apply(this,arguments)}function p(){return(p=i(s.mark((function t(e,r){var n;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=d("__PLASMIC_EXECUTE_DATA_OP",f),t.next=3,n(e,r);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(t,e){return h.apply(this,arguments)}function h(){return(h=i(s.mark((function t(e,r){var n,a,i,c;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=d("__PLASMIC_DATA_HOST","https://studio.plasmic.app"),i=a+"/api/v1/server-data/sources/"+e.sourceId+"/execute",t.next=4,o(i,{method:"POST",headers:u({"Content-Type":"application/json"},(null==r?void 0:r.userAuthToken)&&{"x-plasmic-data-user-auth-token":r.userAuthToken}),body:JSON.stringify({opId:e.opId,userArgs:null!=(n=e.userArgs)?n:{},paginate:null==r?void 0:r.paginate})});case 4:if(200===(c=t.sent).status){t.next=10;break}return t.next=8,c.text();case 8:throw new Error(t.sent);case 10:return t.next=12,c.json();case 12:return t.abrupt("return",t.sent);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(t,e){return"undefined"==typeof globalThis?e:null!=(r=globalThis[t])?r:e;var r}function v(t,o){var a=n.usePlasmicDataSourceContext(),c=e.useMutablePlasmicQueryData((function(){return t?t.cacheKey?t.cacheKey:JSON.stringify({sourceId:t.sourceId,opId:t.opId,args:t.userArgs,userAuthToken:null==a?void 0:a.userAuthToken,paginate:null==o?void 0:o.paginate}):null}),i(s.mark((function e(){return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(t,{userAuthToken:null==a?void 0:a.userAuthToken,paginate:null==o?void 0:o.paginate});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))),p=c.data;return r.useMemo((function(){return u({},null!=p?p:{},function(t){for(var e={},r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(var a=0,i=n;a<i.length;a++){var u=i[a];u in t&&(e[u]=t[u])}return e}(c,"isLoading","error"))}),[p,c.error,c.isLoading])}Object.defineProperty(exports,"usePlasmicDataConfig",{enumerable:!0,get:function(){return e.usePlasmicDataConfig}}),exports.Fetcher=function(t){var e,n=t.children,o=t.name,a=t.pageIndex,i=t.pageSize,c=v(t.dataOp,u({},!!a&&!!i&&{paginate:{pageIndex:a,pageSize:i}})),s=r.useMemo((function(){var e;return u({},t.queries,((e={})[null!=o?o:"data"]=c,e))}),[t.queries,o,c]);return null!=(e=null==n?void 0:n(s))?e:null},exports.FetcherMeta={name:"plasmic-data-source-fetcher",displayName:"Data Source Fetcher",props:{dataOp:{type:"dataSourceOp",displayName:"Data"},name:{type:"string",displayName:"Variable name"},children:"slot",pageSize:{type:"number",advanced:!0,displayName:"Page size",description:"Only fetch in batches of this size; for pagination"},pageIndex:{type:"number",advanced:!0,displayName:"Page index",description:"0-based index of the paginated page to fetch"}},importPath:"@plasmicapp/react-web/lib/data-sources",importName:"Fetcher",styleSections:!1},exports.executePlasmicDataOp=l,exports.useDependencyAwareQuery=function(t){var e=t.$queries,n=t.setDollarQueries,o=t.name,a=t.pageIndex,i=t.pageSize,c=v(function(t){try{return t()}catch(t){return}}(t.getDataOp),u({},!!a&&!!i&&{paginate:{pageIndex:a,pageSize:i}}));r.useEffect((function(){var t,r=null!=o?o:"data";r in e&&e[r]===c||n(u({},e,((t={})[r]=c,t)))}),[o,c,e,n])},exports.usePlasmicDataMutationOp=function(t,e){var o=null!=t?t:{},a=o.sourceId,u=o.opId,c=o.userArgs,p=n.usePlasmicDataSourceContext(),f=null==p?void 0:p.userAuthToken;return r.useCallback(i(s.mark((function t(){return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a&&u){t.next=2;break}return t.abrupt("return",void 0);case 2:return t.abrupt("return",l({sourceId:a,opId:u,userArgs:c},{userAuthToken:f}));case 3:case"end":return t.stop()}}),t)}))),[a,u,c,f])},exports.usePlasmicDataOp=v;
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@plasmicapp/query"),r=t(require("react")),n=require("@plasmicapp/data-sources-context"),o=t(require("isomorphic-unfetch"));function a(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){a(i,n,o,u,c,"next",t)}function c(t){a(i,n,o,u,c,"throw",t)}u(void 0)}))}}function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function c(t,e){return t(e={exports:{}},e.exports),e.exports}var s=c((function(t){var e=function(t){var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=Object.create((e&&e.prototype instanceof p?e:p).prototype),a=new O(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=w(i,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),o}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function p(){}function f(){}function h(){}var d={};u(d,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==e&&r.call(y,o)&&(d=y);var g=h.prototype=p.prototype=Object.create(d);function m(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var n;this._invoke=function(o,a){function i(){return new e((function(n,i){!function n(o,a,i,u){var c=s(t[o],t,a);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(p).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,u)}))}u(c.arg)}(o,a,n,i)}))}return n=n?n.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:P}}function P(){return{value:void 0,done:!0}}return f.prototype=h,u(g,"constructor",h),u(h,"constructor",f),f.displayName=u(h,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,i,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(x.prototype),u(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(c(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},m(g),u(g,i,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));function l(t,e){return p.apply(this,arguments)}function p(){return(p=i(s.mark((function t(e,r){var n;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=d("__PLASMIC_EXECUTE_DATA_OP",f),t.next=3,n(e,r);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(t,e){return h.apply(this,arguments)}function h(){return(h=i(s.mark((function t(e,r){var n,a,i,c;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=d("__PLASMIC_DATA_HOST","https://studio.plasmic.app"),i=a+"/api/v1/server-data/sources/"+e.sourceId+"/execute",t.next=4,o(i,{method:"POST",headers:u({"Content-Type":"application/json"},(null==r?void 0:r.userAuthToken)&&{"x-plasmic-data-user-auth-token":r.userAuthToken}),body:JSON.stringify({opId:e.opId,userArgs:null!=(n=e.userArgs)?n:{},paginate:null==r?void 0:r.paginate})});case 4:if(200===(c=t.sent).status){t.next=10;break}return t.next=8,c.text();case 8:throw new Error(t.sent);case 10:return t.next=12,c.json();case 12:return t.abrupt("return",t.sent);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(t,e){return"undefined"==typeof globalThis?e:null!=(r=globalThis[t])?r:e;var r}function v(t,o){var a=n.usePlasmicDataSourceContext(),c=e.useMutablePlasmicQueryData((function(){return t?t.cacheKey?t.cacheKey:JSON.stringify({sourceId:t.sourceId,opId:t.opId,args:t.userArgs,userAuthToken:null==a?void 0:a.userAuthToken,paginate:null==o?void 0:o.paginate}):null}),i(s.mark((function e(){return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(t,{userAuthToken:null==a?void 0:a.userAuthToken,paginate:null==o?void 0:o.paginate});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))),p=c.data;return r.useMemo((function(){return u({},null!=p?p:{},function(t){for(var e={},r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(var a=0,i=n;a<i.length;a++){var u=i[a];u in t&&(e[u]=t[u])}return e}(c,"isLoading","error"))}),[p,c.error,c.isLoading])}Object.defineProperty(exports,"usePlasmicDataConfig",{enumerable:!0,get:function(){return e.usePlasmicDataConfig}}),exports.Fetcher=function(t){var e,n=t.children,o=t.name,a=t.pageIndex,i=t.pageSize,c=v(t.dataOp,u({},!!a&&!!i&&{paginate:{pageIndex:a,pageSize:i}})),s=r.useMemo((function(){var e;return u({},t.queries,((e={})[null!=o?o:"data"]=c,e))}),[t.queries,o,c]);return null!=(e=null==n?void 0:n(s))?e:null},exports.FetcherMeta={name:"plasmic-data-source-fetcher",displayName:"Data Source Fetcher",props:{dataOp:{type:"dataSourceOp",displayName:"Data"},name:{type:"string",displayName:"Variable name"},children:"slot",pageSize:{type:"number",advanced:!0,displayName:"Page size",description:"Only fetch in batches of this size; for pagination"},pageIndex:{type:"number",advanced:!0,displayName:"Page index",description:"0-based index of the paginated page to fetch"}},importPath:"@plasmicapp/react-web/lib/data-sources",importName:"Fetcher",styleSections:!1},exports.executePlasmicDataOp=l,exports.useDependencyAwareQuery=function(t){var e=t.$queries,n=t.setDollarQueries,o=t.name,a=t.pageIndex,i=t.pageSize,c=v(function(t){try{return t()}catch(t){return}}(t.getDataOp),u({},!!a&&!!i&&{paginate:{pageIndex:a,pageSize:i}}));r.useEffect((function(){var t,r=null!=o?o:"data";r in e&&e[r]===c||n(u({},e,((t={})[r]=c,t)))}),[o,c,e,n])},exports.usePlasmicDataMutationOp=function(t,e){var o=null!=t?t:{},a=o.sourceId,u=o.opId,c=o.userArgs,p=n.usePlasmicDataSourceContext(),f=null==p?void 0:p.userAuthToken;return r.useCallback(i(s.mark((function t(){return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a&&u){t.next=2;break}return t.abrupt("return",void 0);case 2:return t.abrupt("return",l({sourceId:a,opId:u,userArgs:c},{userAuthToken:f}));case 3:case"end":return t.stop()}}),t)}))),[a,u,c,f])},exports.usePlasmicDataOp=v;
//# sourceMappingURL=data-sources.cjs.production.min.js.map

@@ -15,3 +15,2 @@ import { useMutablePlasmicQueryData } from '@plasmicapp/query';

}
if (info.done) {

@@ -23,18 +22,14 @@ resolve(value);

}
function _asyncToGenerator(fn) {
return function () {
var self = this,
args = arguments;
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(undefined);

@@ -44,8 +39,6 @@ });

}
function _extends() {
_extends = Object.assign || function (target) {
_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) {

@@ -57,6 +50,4 @@ if (Object.prototype.hasOwnProperty.call(source, key)) {

}
return target;
};
return _extends.apply(this, arguments);

@@ -76,2 +67,3 @@ }

*/
var runtime = function (exports) {

@@ -82,3 +74,2 @@

var undefined$1; // More compressible than void 0.
var $Symbol = typeof Symbol === "function" ? Symbol : {};

@@ -88,3 +79,2 @@ var iteratorSymbol = $Symbol.iterator || "@@iterator";

var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
function define(obj, key, value) {

@@ -99,3 +89,2 @@ Object.defineProperty(obj, key, {

}
try {

@@ -109,3 +98,2 @@ // IE 8 has a broken Object.defineProperty that only works on DOM objects.

}
function wrap(innerFn, outerFn, self, tryLocsList) {

@@ -115,10 +103,12 @@ // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.

var generator = Object.create(protoGenerator.prototype);
var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next,
var context = new Context(tryLocsList || []);
// The ._invoke method unifies the implementations of the .next,
// .throw, and .return methods.
generator._invoke = makeInvokeMethod(innerFn, self, context);
return generator;
}
exports.wrap = wrap;
exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion
// Try/catch helper to minimize deoptimizations. Returns a completion
// record like context.tryEntries[i].completion. This interface could

@@ -133,3 +123,2 @@ // have been (and was previously) designed to take a closure to be

// has a stable shape and so hopefully should be cheap to allocate.
function tryCatch(fn, obj, arg) {

@@ -148,22 +137,21 @@ try {

}
var GenStateSuspendedStart = "suspendedStart";
var GenStateSuspendedYield = "suspendedYield";
var GenStateExecuting = "executing";
var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as
var GenStateCompleted = "completed";
// Returning this object from the innerFn has the same effect as
// breaking out of the dispatch switch statement.
var ContinueSentinel = {};
var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and
// Dummy constructor functions that we use as the .constructor and
// .constructor.prototype properties for functions that return Generator
// objects. For full spec compliance, you may wish to configure your
// minifier not to mangle the names of these two functions.
function Generator() {}
function GeneratorFunction() {}
function GeneratorFunctionPrototype() {}
function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that
// This is a polyfill for %IteratorPrototype% for environments that
// don't natively support it.
var IteratorPrototype = {};

@@ -175,3 +163,2 @@ define(IteratorPrototype, iteratorSymbol, function () {

var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {

@@ -182,3 +169,2 @@ // This environment has a native %IteratorPrototype%; use it instead

}
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);

@@ -188,5 +174,6 @@ GeneratorFunction.prototype = GeneratorFunctionPrototype;

define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction");
// Helper for defining the .next, .throw, and .return methods of the
// Iterator interface in terms of a single ._invoke method.
function defineIteratorMethods(prototype) {

@@ -199,10 +186,9 @@ ["next", "throw", "return"].forEach(function (method) {

}
exports.isGeneratorFunction = function (genFun) {
var ctor = typeof genFun === "function" && genFun.constructor;
return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can
return ctor ? ctor === GeneratorFunction ||
// For the native GeneratorFunction constructor, the best we can
// do is to check its .name property.
(ctor.displayName || ctor.name) === "GeneratorFunction" : false;
};
exports.mark = function (genFun) {

@@ -215,11 +201,10 @@ if (Object.setPrototypeOf) {

}
genFun.prototype = Object.create(Gp);
return genFun;
}; // Within the body of any async function, `await x` is transformed to
};
// Within the body of any async function, `await x` is transformed to
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
// `hasOwn.call(value, "__await")` to determine if the yielded value is
// meant to be awaited.
exports.awrap = function (arg) {

@@ -230,7 +215,5 @@ return {

};
function AsyncIterator(generator, PromiseImpl) {
function invoke(method, arg, resolve, reject) {
var record = tryCatch(generator[method], generator, arg);
if (record.type === "throw") {

@@ -241,3 +224,2 @@ reject(record.arg);

var value = result.value;
if (value && typeof value === "object" && hasOwn.call(value, "__await")) {

@@ -250,3 +232,2 @@ return PromiseImpl.resolve(value.__await).then(function (value) {

}
return PromiseImpl.resolve(value).then(function (unwrapped) {

@@ -265,5 +246,3 @@ // When a yielded Promise is resolved, its final value becomes

}
var previousPromise;
function enqueue(method, arg) {

@@ -275,4 +254,4 @@ function callInvokeWithMethodAndArg() {

}
return previousPromise = // If enqueue has been called before, then we want to wait until
return previousPromise =
// If enqueue has been called before, then we want to wait until
// all previous Promises have been resolved before calling invoke,

@@ -289,12 +268,12 @@ // so that results are always delivered in the correct order. If

// important to get this right, even though it requires care.
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg,
// Avoid propagating failures to Promises returned by later
// invocations of the iterator.
callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
} // Define the unified helper method that is used to implement .next,
}
// Define the unified helper method that is used to implement .next,
// .throw, and .return (see defineIteratorMethods).
this._invoke = enqueue;
}
defineIteratorMethods(AsyncIterator.prototype);

@@ -304,6 +283,7 @@ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {

});
exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
exports.AsyncIterator = AsyncIterator;
// Note that simple async functions are implemented on top of
// AsyncIterator objects; they just return a Promise for the value of
// the final result produced by the iterator.
exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {

@@ -317,3 +297,2 @@ if (PromiseImpl === void 0) PromiseImpl = Promise;

};
function makeInvokeMethod(innerFn, self, context) {

@@ -325,22 +304,17 @@ var state = GenStateSuspendedStart;

}
if (state === GenStateCompleted) {
if (method === "throw") {
throw arg;
} // Be forgiving, per 25.3.3.3.3 of the spec:
}
// Be forgiving, per 25.3.3.3.3 of the spec:
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
return doneResult();
}
context.method = method;
context.arg = arg;
while (true) {
var delegate = context.delegate;
if (delegate) {
var delegateResult = maybeInvokeDelegate(delegate, context);
if (delegateResult) {

@@ -351,3 +325,2 @@ if (delegateResult === ContinueSentinel) continue;

}
if (context.method === "next") {

@@ -362,3 +335,2 @@ // Setting context._sent for legacy support of Babel's

}
context.dispatchException(context.arg);

@@ -368,6 +340,4 @@ } else if (context.method === "return") {

}
state = GenStateExecuting;
var record = tryCatch(innerFn, self, context);
if (record.type === "normal") {

@@ -377,7 +347,5 @@ // If an exception is thrown from innerFn, we leave state ===

state = context.done ? GenStateCompleted : GenStateSuspendedYield;
if (record.arg === ContinueSentinel) {
continue;
}
return {

@@ -388,5 +356,5 @@ value: record.arg,

} else if (record.type === "throw") {
state = GenStateCompleted; // Dispatch the exception by looping back around to the
state = GenStateCompleted;
// Dispatch the exception by looping back around to the
// context.dispatchException(context.arg) call above.
context.method = "throw";

@@ -397,11 +365,10 @@ context.arg = record.arg;

};
} // Call delegate.iterator[context.method](context.arg) and handle the
}
// Call delegate.iterator[context.method](context.arg) and handle the
// result, either by returning a { value, done } result from the
// delegate iterator, or by modifying context.method and context.arg,
// setting context.delegate to null, and returning the ContinueSentinel.
function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
if (method === undefined$1) {

@@ -411,3 +378,2 @@ // A .throw or .return when the delegate iterator has no .throw

context.delegate = null;
if (context.method === "throw") {

@@ -421,3 +387,2 @@ // Note: ["return"] must be used for ES3 parsing compatibility.

maybeInvokeDelegate(delegate, context);
if (context.method === "throw") {

@@ -429,12 +394,8 @@ // If maybeInvokeDelegate(context) changed context.method from

}
context.method = "throw";
context.arg = new TypeError("The iterator does not provide a 'throw' method");
}
return ContinueSentinel;
}
var record = tryCatch(method, delegate.iterator, context.arg);
if (record.type === "throw") {

@@ -446,5 +407,3 @@ context.method = "throw";

}
var info = record.arg;
if (!info) {

@@ -456,9 +415,11 @@ context.method = "throw";

}
if (info.done) {
// Assign the result of the finished delegate to the temporary
// variable specified by delegate.resultName (see delegateYield).
context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).
context[delegate.resultName] = info.value;
context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the
// Resume execution at the desired location (see delegateYield).
context.next = delegate.nextLoc;
// If context.method was "throw" but the delegate handled the
// exception, let the outer generator proceed normally. If

@@ -469,3 +430,2 @@ // context.method was "next", forget context.arg since it has been

// outer generator.
if (context.method !== "return") {

@@ -478,14 +438,16 @@ context.method = "next";

return info;
} // The delegate iterator is finished, so forget it and continue with
}
// The delegate iterator is finished, so forget it and continue with
// the outer generator.
context.delegate = null;
return ContinueSentinel;
} // Define Generator.prototype.{next,throw,return} in terms of the
}
// Define Generator.prototype.{next,throw,return} in terms of the
// unified ._invoke helper method.
defineIteratorMethods(Gp);
define(Gp, toStringTagSymbol, "Generator");
defineIteratorMethods(Gp);
define(Gp, toStringTagSymbol, "Generator"); // A Generator should always return itself as the iterator object when the
// A Generator should always return itself as the iterator object when the
// @@iterator function is called on it. Some browsers' implementations of the

@@ -495,3 +457,2 @@ // iterator prototype chain incorrectly implement this, causing the Generator

// See https://github.com/facebook/regenerator/issues/274 for more details.
define(Gp, iteratorSymbol, function () {

@@ -503,3 +464,2 @@ return this;

});
function pushTryEntry(locs) {

@@ -509,7 +469,5 @@ var entry = {

};
if (1 in locs) {
entry.catchLoc = locs[1];
}
if (2 in locs) {

@@ -519,6 +477,4 @@ entry.finallyLoc = locs[2];

}
this.tryEntries.push(entry);
}
function resetTryEntry(entry) {

@@ -530,3 +486,2 @@ var record = entry.completion || {};

}
function Context(tryLocsList) {

@@ -542,17 +497,14 @@ // The root entry object (effectively a try statement without a catch

}
exports.keys = function (object) {
var keys = [];
for (var key in object) {
keys.push(key);
}
keys.reverse();
keys.reverse(); // Rather than returning an object with a next method, we keep
// Rather than returning an object with a next method, we keep
// things simple and return the next function itself.
return function next() {
while (keys.length) {
var key = keys.pop();
if (key in object) {

@@ -563,7 +515,7 @@ next.value = key;

}
} // To avoid creating an additional object, we just hang the .value
}
// To avoid creating an additional object, we just hang the .value
// and .done properties off the next function object itself. This
// also ensures that the minifier will not anonymize the function.
next.done = true;

@@ -573,36 +525,30 @@ return next;

};
function values(iterable) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) {
return iteratorMethod.call(iterable);
}
if (typeof iterable.next === "function") {
return iterable;
}
if (!isNaN(iterable.length)) {
var i = -1,
next = function next() {
while (++i < iterable.length) {
if (hasOwn.call(iterable, i)) {
next.value = iterable[i];
next.done = false;
return next;
next = function next() {
while (++i < iterable.length) {
if (hasOwn.call(iterable, i)) {
next.value = iterable[i];
next.done = false;
return next;
}
}
}
next.value = undefined$1;
next.done = true;
return next;
};
next.value = undefined$1;
next.done = true;
return next;
};
return next.next = next;
}
} // Return an iterator with no values.
}
// Return an iterator with no values.
return {

@@ -612,5 +558,3 @@ next: doneResult

}
exports.values = values;
function doneResult() {

@@ -622,3 +566,2 @@ return {

}
Context.prototype = {

@@ -628,5 +571,5 @@ constructor: Context,

this.prev = 0;
this.next = 0; // Resetting context._sent for legacy support of Babel's
this.next = 0;
// Resetting context._sent for legacy support of Babel's
// function.sent implementation.
this.sent = this._sent = undefined$1;

@@ -638,3 +581,2 @@ this.done = false;

this.tryEntries.forEach(resetTryEntry);
if (!skipTempReset) {

@@ -653,7 +595,5 @@ for (var name in this) {

var rootRecord = rootEntry.completion;
if (rootRecord.type === "throw") {
throw rootRecord.arg;
}
return this.rval;

@@ -665,5 +605,3 @@ },

}
var context = this;
function handle(loc, caught) {

@@ -673,3 +611,2 @@ record.type = "throw";

context.next = loc;
if (caught) {

@@ -681,10 +618,7 @@ // If the dispatched exception was caught by a catch block,

}
return !!caught;
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
var record = entry.completion;
if (entry.tryLoc === "root") {

@@ -696,7 +630,5 @@ // Exception thrown outside of any try block that could handle

}
if (entry.tryLoc <= this.prev) {
var hasCatch = hasOwn.call(entry, "catchLoc");
var hasFinally = hasOwn.call(entry, "finallyLoc");
if (hasCatch && hasFinally) {

@@ -725,3 +657,2 @@ if (this.prev < entry.catchLoc) {

var entry = this.tryEntries[i];
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {

@@ -732,3 +663,2 @@ var finallyEntry = entry;

}
if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {

@@ -739,7 +669,5 @@ // Ignore the finally entry if control is not jumping to a

}
var record = finallyEntry ? finallyEntry.completion : {};
record.type = type;
record.arg = arg;
if (finallyEntry) {

@@ -750,3 +678,2 @@ this.method = "next";

}
return this.complete(record);

@@ -758,3 +685,2 @@ },

}
if (record.type === "break" || record.type === "continue") {

@@ -769,3 +695,2 @@ this.next = record.arg;

}
return ContinueSentinel;

@@ -776,3 +701,2 @@ },

var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc) {

@@ -788,6 +712,4 @@ this.complete(entry.completion, entry.afterLoc);

var entry = this.tryEntries[i];
if (entry.tryLoc === tryLoc) {
var record = entry.completion;
if (record.type === "throw") {

@@ -797,9 +719,8 @@ var thrown = record.arg;

}
return thrown;
}
} // The context.catch method must only be called with a location
}
// The context.catch method must only be called with a location
// argument that corresponds to a known catch block.
throw new Error("illegal catch attempt");

@@ -813,3 +734,2 @@ },

};
if (this.method === "next") {

@@ -820,12 +740,13 @@ // Deliberately forget the last sent value so that we don't

}
return ContinueSentinel;
}
}; // Regardless of whether this script is executing as a CommonJS module
};
// Regardless of whether this script is executing as a CommonJS module
// or not, return the runtime object so that we can declare the variable
// regeneratorRuntime in the outer scope, which allows this module to be
// injected easily by `bin/regenerator --include-runtime script.js`.
return exports;
}( // If this script is executing as a CommonJS module, use module.exports
}(
// If this script is executing as a CommonJS module, use module.exports
// as the regeneratorRuntime namespace. Otherwise create a new empty

@@ -835,3 +756,2 @@ // object. Either way, the resulting object will be used to initialize

module.exports );
try {

@@ -862,3 +782,2 @@ regeneratorRuntime = runtime;

}
function _executePlasmicDataOp2() {

@@ -874,6 +793,4 @@ _executePlasmicDataOp2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(op, opts) {

return func(op, opts);
case 3:
return _context.abrupt("return", _context.sent);
case 4:

@@ -888,11 +805,8 @@ case "end":

}
function _executePlasmicDataOp(_x3, _x4) {
return _executePlasmicDataOp3.apply(this, arguments);
}
function _executePlasmicDataOp3() {
_executePlasmicDataOp3 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(op, opts) {
var _op$userArgs;
var host, url, resp, text;

@@ -919,6 +833,4 @@ return runtime_1.wrap(function _callee2$(_context2) {

});
case 4:
resp = _context2.sent;
if (!(resp.status !== 200)) {

@@ -928,17 +840,12 @@ _context2.next = 10;

}
_context2.next = 8;
return resp.text();
case 8:
text = _context2.sent;
throw new Error(text);
case 10:
_context2.next = 12;
return resp.json();
case 12:
return _context2.abrupt("return", _context2.sent);
case 13:

@@ -953,3 +860,2 @@ case "end":

}
function getConfig(key, defaultValue) {

@@ -960,3 +866,2 @@ if (typeof globalThis === 'undefined') {

var _globalThis$key;
return (_globalThis$key = globalThis[key]) != null ? _globalThis$key : defaultValue;

@@ -975,10 +880,7 @@ }

var res = {};
for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
keys[_key - 1] = arguments[_key];
}
for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
var key = _keys[_i];
if (key in obj) {

@@ -988,3 +890,2 @@ res[key] = obj[key];

}
return res;

@@ -1013,6 +914,4 @@ }

});
case 2:
return _context.abrupt("return", _context.sent);
case 3:

@@ -1026,4 +925,4 @@ case "end":

var data = res.data,
error = res.error,
isLoading = res.isLoading;
error = res.error,
isLoading = res.isLoading;
return React.useMemo(function () {

@@ -1035,6 +934,5 @@ return _extends({}, data != null ? data : {}, pick(res, 'isLoading', 'error'));

var _ref2 = dataOp != null ? dataOp : {},
sourceId = _ref2.sourceId,
opId = _ref2.opId,
userArgs = _ref2.userArgs;
sourceId = _ref2.sourceId,
opId = _ref2.opId,
userArgs = _ref2.userArgs;
var ctx = usePlasmicDataSourceContext();

@@ -1051,5 +949,3 @@ var userToken = ctx == null ? void 0 : ctx.userAuthToken;

}
return _context2.abrupt("return", undefined);
case 2:

@@ -1063,3 +959,2 @@ return _context2.abrupt("return", executePlasmicDataOp({

}));
case 3:

@@ -1076,8 +971,7 @@ case "end":

var _children;
var dataOp = props.dataOp,
children = props.children,
name = props.name,
pageIndex = props.pageIndex,
pageSize = props.pageSize;
children = props.children,
name = props.name,
pageIndex = props.pageIndex,
pageSize = props.pageSize;
var data = usePlasmicDataOp(dataOp, _extends({}, !!pageIndex && !!pageSize && {

@@ -1091,3 +985,2 @@ paginate: {

var _extends2;
return _extends({}, props.queries, (_extends2 = {}, _extends2[name != null ? name : 'data'] = data, _extends2));

@@ -1130,7 +1023,7 @@ }, [props.queries, name, data]);

var $queries = _ref.$queries,
getDataOp = _ref.getDataOp,
setDollarQueries = _ref.setDollarQueries,
name = _ref.name,
pageIndex = _ref.pageIndex,
pageSize = _ref.pageSize;
getDataOp = _ref.getDataOp,
setDollarQueries = _ref.setDollarQueries,
name = _ref.name,
pageIndex = _ref.pageIndex,
pageSize = _ref.pageSize;
var data = usePlasmicDataOp(swallow(getDataOp), _extends({}, !!pageIndex && !!pageSize && {

@@ -1144,6 +1037,4 @@ paginate: {

var finalName = name != null ? name : 'data';
if (!(finalName in $queries) || $queries[finalName] !== data) {
var _extends2;
setDollarQueries(_extends({}, $queries, (_extends2 = {}, _extends2[finalName] = data, _extends2)));

@@ -1150,0 +1041,0 @@ }

{
"version": "0.1.22",
"version": "0.1.23",
"license": "MIT",

@@ -61,4 +61,4 @@ "main": "dist/index.js",

"dependencies": {
"@plasmicapp/data-sources-context": "0.1.2",
"@plasmicapp/host": "1.0.92",
"@plasmicapp/data-sources-context": "0.1.3",
"@plasmicapp/host": "1.0.93",
"@plasmicapp/query": "0.1.58",

@@ -70,3 +70,3 @@ "isomorphic-unfetch": "^3.1.0"

},
"gitHead": "79d47b209f2166dc80c5bb5f24491e0b8cbc02a4"
"gitHead": "e282c9cca3a168a822b34a1a5e6de3a6a072c00f"
}

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc