@trops/dash-core 0.1.104 → 0.1.105

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/index.js CHANGED
@@ -4554,7 +4554,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
4554
4554
  var hasPropertyDescriptors_1 = hasPropertyDescriptors;
4555
4555
 
4556
4556
  var keys = objectKeys$2;
4557
- var hasSymbols$5 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
4557
+ var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
4558
4558
 
4559
4559
  var toStr$4 = Object.prototype.toString;
4560
4560
  var concat = Array.prototype.concat;
@@ -4587,7 +4587,7 @@ var defineProperty$1 = function (object, name, value, predicate) {
4587
4587
  var defineProperties$1 = function (object, map) {
4588
4588
  var predicates = arguments.length > 2 ? arguments[2] : {};
4589
4589
  var props = keys(map);
4590
- if (hasSymbols$5) {
4590
+ if (hasSymbols$4) {
4591
4591
  props = concat.call(props, Object.getOwnPropertySymbols(map));
4592
4592
  }
4593
4593
  for (var i = 0; i < props.length; i += 1) {
@@ -4653,11 +4653,11 @@ var sign$1 = function sign(number) {
4653
4653
  };
4654
4654
 
4655
4655
  var shams$1;
4656
- var hasRequiredShams;
4656
+ var hasRequiredShams$1;
4657
4657
 
4658
- function requireShams () {
4659
- if (hasRequiredShams) return shams$1;
4660
- hasRequiredShams = 1;
4658
+ function requireShams$1 () {
4659
+ if (hasRequiredShams$1) return shams$1;
4660
+ hasRequiredShams$1 = 1;
4661
4661
 
4662
4662
  /** @type {import('./shams')} */
4663
4663
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
@@ -4706,10 +4706,10 @@ function requireShams () {
4706
4706
  }
4707
4707
 
4708
4708
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
4709
- var hasSymbolSham = requireShams();
4709
+ var hasSymbolSham = requireShams$1();
4710
4710
 
4711
4711
  /** @type {import('.')} */
4712
- var hasSymbols$4 = function hasNativeSymbols() {
4712
+ var hasSymbols$3 = function hasNativeSymbols() {
4713
4713
  if (typeof origSymbol !== 'function') { return false; }
4714
4714
  if (typeof Symbol !== 'function') { return false; }
4715
4715
  if (typeof origSymbol('foo') !== 'symbol') { return false; }
@@ -5013,7 +5013,7 @@ var ThrowTypeError = $gOPD$1
5013
5013
  }())
5014
5014
  : throwTypeError;
5015
5015
 
5016
- var hasSymbols$3 = hasSymbols$4();
5016
+ var hasSymbols$2 = hasSymbols$3();
5017
5017
 
5018
5018
  var getProto$2 = getProto$3;
5019
5019
  var $ObjectGPO = requireObject_getPrototypeOf();
@@ -5031,7 +5031,7 @@ var INTRINSICS = {
5031
5031
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
5032
5032
  '%Array%': Array,
5033
5033
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
5034
- '%ArrayIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
5034
+ '%ArrayIteratorPrototype%': hasSymbols$2 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
5035
5035
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
5036
5036
  '%AsyncFunction%': needsEval,
5037
5037
  '%AsyncGenerator%': needsEval,
@@ -5062,10 +5062,10 @@ var INTRINSICS = {
5062
5062
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
5063
5063
  '%isFinite%': isFinite,
5064
5064
  '%isNaN%': isNaN,
5065
- '%IteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
5065
+ '%IteratorPrototype%': hasSymbols$2 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
5066
5066
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
5067
5067
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
5068
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Map()[Symbol.iterator]()),
5068
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 || !getProto$2 ? undefined$1 : getProto$2(new Map()[Symbol.iterator]()),
5069
5069
  '%Math%': Math,
5070
5070
  '%Number%': Number,
5071
5071
  '%Object%': $Object$2,
@@ -5079,11 +5079,11 @@ var INTRINSICS = {
5079
5079
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
5080
5080
  '%RegExp%': RegExp,
5081
5081
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
5082
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Set()[Symbol.iterator]()),
5082
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 || !getProto$2 ? undefined$1 : getProto$2(new Set()[Symbol.iterator]()),
5083
5083
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
5084
5084
  '%String%': String,
5085
- '%StringIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$1,
5086
- '%Symbol%': hasSymbols$3 ? Symbol : undefined$1,
5085
+ '%StringIteratorPrototype%': hasSymbols$2 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$1,
5086
+ '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
5087
5087
  '%SyntaxError%': $SyntaxError$1,
5088
5088
  '%ThrowTypeError%': ThrowTypeError,
5089
5089
  '%TypedArray%': TypedArray,
@@ -5436,12 +5436,12 @@ var callBound$i = function callBoundIntrinsic(name, allowMissing) {
5436
5436
 
5437
5437
  // modified from https://github.com/es-shims/es6-shim
5438
5438
  var objectKeys$1 = objectKeys$2;
5439
- var hasSymbols$2 = requireShams()();
5439
+ var hasSymbols$1 = requireShams$1()();
5440
5440
  var callBound$h = callBound$i;
5441
5441
  var $Object$1 = esObjectAtoms;
5442
5442
  var $push = callBound$h('Array.prototype.push');
5443
5443
  var $propIsEnumerable = callBound$h('Object.prototype.propertyIsEnumerable');
5444
- var originalGetSymbols = hasSymbols$2 ? $Object$1.getOwnPropertySymbols : null;
5444
+ var originalGetSymbols = hasSymbols$1 ? $Object$1.getOwnPropertySymbols : null;
5445
5445
 
5446
5446
  // eslint-disable-next-line no-unused-vars
5447
5447
  var implementation$8 = function assign(target, source1) {
@@ -5455,7 +5455,7 @@ var implementation$8 = function assign(target, source1) {
5455
5455
 
5456
5456
  // step 3.a.ii:
5457
5457
  var keys = objectKeys$1(from);
5458
- var getSymbols = hasSymbols$2 && ($Object$1.getOwnPropertySymbols || originalGetSymbols);
5458
+ var getSymbols = hasSymbols$1 && ($Object$1.getOwnPropertySymbols || originalGetSymbols);
5459
5459
  if (getSymbols) {
5460
5460
  var syms = getSymbols(from);
5461
5461
  for (var j = 0; j < syms.length; ++j) {
@@ -5752,14 +5752,23 @@ var regexp_prototype_flags = flagsBound;
5752
5752
 
5753
5753
  var esGetIterator = {exports: {}};
5754
5754
 
5755
- var hasSymbols$1 = requireShams();
5755
+ var shams;
5756
+ var hasRequiredShams;
5756
5757
 
5757
- /** @type {import('.')} */
5758
- var shams = function hasToStringTagShams() {
5759
- return hasSymbols$1() && !!Symbol.toStringTag;
5760
- };
5758
+ function requireShams () {
5759
+ if (hasRequiredShams) return shams;
5760
+ hasRequiredShams = 1;
5761
5761
 
5762
- var hasToStringTag$7 = shams();
5762
+ var hasSymbols = requireShams$1();
5763
+
5764
+ /** @type {import('.')} */
5765
+ shams = function hasToStringTagShams() {
5766
+ return hasSymbols() && !!Symbol.toStringTag;
5767
+ };
5768
+ return shams;
5769
+ }
5770
+
5771
+ var hasToStringTag$7 = requireShams()();
5763
5772
  var callBound$f = callBound$i;
5764
5773
 
5765
5774
  var $toString$7 = callBound$f('Object.prototype.toString');
@@ -6796,7 +6805,7 @@ var tryStringObject = function tryStringObject(value) {
6796
6805
  /** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
6797
6806
  var $toString$6 = callBound$c('Object.prototype.toString');
6798
6807
  var strClass = '[object String]';
6799
- var hasToStringTag$6 = shams();
6808
+ var hasToStringTag$6 = requireShams()();
6800
6809
 
6801
6810
  /** @type {import('.')} */
6802
6811
  var isString$2 = function isString(value) {
@@ -6912,7 +6921,7 @@ var isSet$2 = exported$1 || function isSet(x) {
6912
6921
  var isArguments$1 = isArguments$2;
6913
6922
  var getStopIterationIterator = stopIterationIterator;
6914
6923
 
6915
- if (hasSymbols$4() || requireShams()()) {
6924
+ if (hasSymbols$3() || requireShams$1()()) {
6916
6925
  var $iterator = Symbol.iterator;
6917
6926
  // Symbol is available natively or shammed
6918
6927
  // natively:
@@ -7201,7 +7210,7 @@ var tryDateObject = function tryDateGetDayCall(value) {
7201
7210
  /** @type {(value: unknown) => string} */
7202
7211
  var toStr$2 = callBound$9('Object.prototype.toString');
7203
7212
  var dateClass = '[object Date]';
7204
- var hasToStringTag$5 = shams();
7213
+ var hasToStringTag$5 = requireShams()();
7205
7214
 
7206
7215
  /** @type {import('.')} */
7207
7216
  var isDateObject = function isDateObject(value) {
@@ -7212,7 +7221,7 @@ var isDateObject = function isDateObject(value) {
7212
7221
  };
7213
7222
 
7214
7223
  var callBound$8 = callBound$i;
7215
- var hasToStringTag$4 = shams();
7224
+ var hasToStringTag$4 = requireShams()();
7216
7225
  var hasOwn = hasown;
7217
7226
  var gOPD$1 = gopd$1;
7218
7227
 
@@ -7317,7 +7326,7 @@ var tryNumberObject = function tryNumberObject(value) {
7317
7326
  };
7318
7327
  var $toString$3 = callBound$6('Object.prototype.toString');
7319
7328
  var numClass = '[object Number]';
7320
- var hasToStringTag$3 = shams();
7329
+ var hasToStringTag$3 = requireShams()();
7321
7330
 
7322
7331
  /** @type {import('.')} */
7323
7332
  var isNumberObject = function isNumberObject(value) {
@@ -7344,7 +7353,7 @@ var tryBooleanObject = function booleanBrandCheck(value) {
7344
7353
  }
7345
7354
  };
7346
7355
  var boolClass = '[object Boolean]';
7347
- var hasToStringTag$2 = shams();
7356
+ var hasToStringTag$2 = requireShams()();
7348
7357
 
7349
7358
  /** @type {import('.')} */
7350
7359
  var isBooleanObject = function isBoolean(value) {
@@ -7386,7 +7395,7 @@ function requireSafeRegexTest () {
7386
7395
 
7387
7396
  var callBound$4 = callBound$i;
7388
7397
  var $toString$1 = callBound$4('Object.prototype.toString');
7389
- var hasSymbols = hasSymbols$4();
7398
+ var hasSymbols = hasSymbols$3();
7390
7399
  var safeRegexTest = requireSafeRegexTest();
7391
7400
 
7392
7401
  if (hasSymbols) {
@@ -7832,7 +7841,7 @@ var gOPD = gopd$1;
7832
7841
  var getProto = getProto$3;
7833
7842
 
7834
7843
  var $toString = callBound$2('Object.prototype.toString');
7835
- var hasToStringTag = shams();
7844
+ var hasToStringTag = requireShams()();
7836
7845
 
7837
7846
  var g = typeof globalThis === 'undefined' ? commonjsGlobal : globalThis;
7838
7847
  var typedArrays = availableTypedArrays();
@@ -31096,13 +31105,16 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
31096
31105
  children: authorName || "—"
31097
31106
  })]
31098
31107
  }), preview && preview.componentNames && preview.componentNames.length > 0 && /*#__PURE__*/jsxRuntime.jsxs("div", {
31099
- className: "bg-white/5 border border-white/10 rounded-lg p-3 text-sm",
31100
- children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
31101
- className: "opacity-50",
31102
- children: ["This dashboard contains ", preview.componentNames.length, " ", "widget", preview.componentNames.length !== 1 ? "s" : "", ":", " "]
31103
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
31104
- className: "opacity-80",
31105
- children: preview.componentNames.join(", ")
31108
+ children: [/*#__PURE__*/jsxRuntime.jsx("label", {
31109
+ className: "block text-sm font-medium opacity-70 mb-2",
31110
+ children: "Widgets Included"
31111
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
31112
+ className: "flex flex-wrap gap-1.5",
31113
+ children: preview.componentNames.map(function (name) {
31114
+ return /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, {
31115
+ text: name
31116
+ }, name);
31117
+ })
31106
31118
  })]
31107
31119
  }), /*#__PURE__*/jsxRuntime.jsx(DashReact.TextArea, {
31108
31120
  label: "Description",
@@ -31194,8 +31206,13 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
31194
31206
  children: [/*#__PURE__*/jsxRuntime.jsx("span", {
31195
31207
  className: "opacity-50 w-20 flex-shrink-0",
31196
31208
  children: "Widgets"
31197
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
31198
- children: preview.componentNames.join(", ")
31209
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
31210
+ className: "flex flex-wrap gap-1",
31211
+ children: preview.componentNames.map(function (name) {
31212
+ return /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, {
31213
+ text: name
31214
+ }, name);
31215
+ })
31199
31216
  })]
31200
31217
  })]
31201
31218
  })]
@@ -31267,12 +31284,22 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
31267
31284
  className: "text-xs text-amber-300/90",
31268
31285
  children: "The following widgets are not currently on the registry. This may be intentional if they are private. Dashboards referencing these widgets can only be installed by users who already have them."
31269
31286
  })]
31270
- }), /*#__PURE__*/jsxRuntime.jsx("ul", {
31271
- className: "text-xs opacity-60 pl-5 list-disc space-y-0.5",
31287
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
31288
+ className: "space-y-2 mt-1",
31272
31289
  children: result.warnings.map(function (w) {
31273
- return /*#__PURE__*/jsxRuntime.jsx("li", {
31274
- children: w
31275
- }, w);
31290
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
31291
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
31292
+ className: "text-xs font-semibold opacity-60",
31293
+ children: w["package"]
31294
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
31295
+ className: "flex flex-wrap gap-1 mt-1",
31296
+ children: w.widgets.map(function (name) {
31297
+ return /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, {
31298
+ text: name
31299
+ }, name);
31300
+ })
31301
+ })]
31302
+ }, w["package"]);
31276
31303
  })
31277
31304
  })]
31278
31305
  }), result.registryCheckFailed && /*#__PURE__*/jsxRuntime.jsx("div", {