@teselagen/ui 0.3.64 → 0.3.66

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/index.cjs.js CHANGED
@@ -17131,25 +17131,16 @@ var toString$6 = {}.toString;
17131
17131
  var _cof = /* @__PURE__ */ __name(function(it) {
17132
17132
  return toString$6.call(it).slice(8, -1);
17133
17133
  }, "_cof");
17134
- var _iobject;
17135
- var hasRequired_iobject;
17136
- function require_iobject() {
17137
- if (hasRequired_iobject)
17138
- return _iobject;
17139
- hasRequired_iobject = 1;
17140
- var cof2 = _cof;
17141
- _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17142
- return cof2(it) == "String" ? it.split("") : Object(it);
17143
- };
17144
- return _iobject;
17145
- }
17146
- __name(require_iobject, "require_iobject");
17134
+ var cof$2 = _cof;
17135
+ var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17136
+ return cof$2(it) == "String" ? it.split("") : Object(it);
17137
+ };
17147
17138
  var _defined = /* @__PURE__ */ __name(function(it) {
17148
17139
  if (it == void 0)
17149
17140
  throw TypeError("Can't call method on " + it);
17150
17141
  return it;
17151
17142
  }, "_defined");
17152
- var IObject = require_iobject();
17143
+ var IObject = _iobject;
17153
17144
  var defined$2 = _defined;
17154
17145
  var _toIobject = /* @__PURE__ */ __name(function(it) {
17155
17146
  return IObject(defined$2(it));
@@ -17246,15 +17237,7 @@ var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
17246
17237
  var _objectGops = {};
17247
17238
  _objectGops.f = Object.getOwnPropertySymbols;
17248
17239
  var _objectPie = {};
17249
- var hasRequired_objectPie;
17250
- function require_objectPie() {
17251
- if (hasRequired_objectPie)
17252
- return _objectPie;
17253
- hasRequired_objectPie = 1;
17254
- _objectPie.f = {}.propertyIsEnumerable;
17255
- return _objectPie;
17256
- }
17257
- __name(require_objectPie, "require_objectPie");
17240
+ _objectPie.f = {}.propertyIsEnumerable;
17258
17241
  var defined$1 = _defined;
17259
17242
  var _toObject = /* @__PURE__ */ __name(function(it) {
17260
17243
  return Object(defined$1(it));
@@ -17268,9 +17251,9 @@ function require_objectAssign() {
17268
17251
  var DESCRIPTORS2 = require_descriptors();
17269
17252
  var getKeys2 = _objectKeys;
17270
17253
  var gOPS2 = _objectGops;
17271
- var pIE2 = require_objectPie();
17254
+ var pIE2 = _objectPie;
17272
17255
  var toObject2 = _toObject;
17273
- var IObject2 = require_iobject();
17256
+ var IObject2 = _iobject;
17274
17257
  var $assign = Object.assign;
17275
17258
  _objectAssign = !$assign || _fails(function() {
17276
17259
  var A2 = {};
@@ -17923,7 +17906,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name) {
17923
17906
  }, "_wksDefine");
17924
17907
  var getKeys = _objectKeys;
17925
17908
  var gOPS$1 = _objectGops;
17926
- var pIE$1 = require_objectPie();
17909
+ var pIE$1 = _objectPie;
17927
17910
  var _enumKeys = /* @__PURE__ */ __name(function(it) {
17928
17911
  var result = getKeys(it);
17929
17912
  var getSymbols2 = gOPS$1.f;
@@ -17964,7 +17947,7 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
17964
17947
  return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
17965
17948
  }, "getOwnPropertyNames");
17966
17949
  var _objectGopd = {};
17967
- var pIE = require_objectPie();
17950
+ var pIE = _objectPie;
17968
17951
  var createDesc$1 = _propertyDesc;
17969
17952
  var toIObject$1 = _toIobject;
17970
17953
  var toPrimitive$1 = _toPrimitive;
@@ -18144,7 +18127,7 @@ if (!USE_NATIVE) {
18144
18127
  $GOPD.f = $getOwnPropertyDescriptor;
18145
18128
  $DP.f = $defineProperty;
18146
18129
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
18147
- require_objectPie().f = $propertyIsEnumerable;
18130
+ _objectPie.f = $propertyIsEnumerable;
18148
18131
  $GOPS.f = $getOwnPropertySymbols;
18149
18132
  if (DESCRIPTORS && !_library) {
18150
18133
  redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
@@ -42695,6 +42678,7 @@ const _FilterAndSortMenu = class _FilterAndSortMenu extends React$1.Component {
42695
42678
  intent: core$5.Intent.SUCCESS,
42696
42679
  text: "Filter",
42697
42680
  secondaryText: "Clear",
42681
+ secondaryIntent: core$5.Intent.DANGER,
42698
42682
  secondaryAction: () => {
42699
42683
  currentFilter && removeSingleFilter(currentFilter.filterOn);
42700
42684
  }
@@ -60456,7 +60440,9 @@ function matchSchemas(_0) {
60456
60440
  officialSchema.fields.forEach((h2) => {
60457
60441
  let hasMatch = false;
60458
60442
  let result = fuse.search(h2.path) || [];
60459
- const hadNormalPathMatch = userSchema.fields.some((uh) => norm(uh.path) === norm(h2.path));
60443
+ const hadNormalPathMatch = userSchema.fields.some(
60444
+ (uh) => norm(uh.path) === norm(h2.path)
60445
+ );
60460
60446
  userSchema.fields.forEach((uh, i) => {
60461
60447
  const pathMatch = norm(uh.path) === norm(h2.path);
60462
60448
  const displayNameMatch = h2.displayName && norm(uh.path) === norm(getTextFromEl(h2.displayName));
package/index.es.js CHANGED
@@ -17113,25 +17113,16 @@ var toString$6 = {}.toString;
17113
17113
  var _cof = /* @__PURE__ */ __name(function(it) {
17114
17114
  return toString$6.call(it).slice(8, -1);
17115
17115
  }, "_cof");
17116
- var _iobject;
17117
- var hasRequired_iobject;
17118
- function require_iobject() {
17119
- if (hasRequired_iobject)
17120
- return _iobject;
17121
- hasRequired_iobject = 1;
17122
- var cof2 = _cof;
17123
- _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17124
- return cof2(it) == "String" ? it.split("") : Object(it);
17125
- };
17126
- return _iobject;
17127
- }
17128
- __name(require_iobject, "require_iobject");
17116
+ var cof$2 = _cof;
17117
+ var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17118
+ return cof$2(it) == "String" ? it.split("") : Object(it);
17119
+ };
17129
17120
  var _defined = /* @__PURE__ */ __name(function(it) {
17130
17121
  if (it == void 0)
17131
17122
  throw TypeError("Can't call method on " + it);
17132
17123
  return it;
17133
17124
  }, "_defined");
17134
- var IObject = require_iobject();
17125
+ var IObject = _iobject;
17135
17126
  var defined$2 = _defined;
17136
17127
  var _toIobject = /* @__PURE__ */ __name(function(it) {
17137
17128
  return IObject(defined$2(it));
@@ -17228,15 +17219,7 @@ var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
17228
17219
  var _objectGops = {};
17229
17220
  _objectGops.f = Object.getOwnPropertySymbols;
17230
17221
  var _objectPie = {};
17231
- var hasRequired_objectPie;
17232
- function require_objectPie() {
17233
- if (hasRequired_objectPie)
17234
- return _objectPie;
17235
- hasRequired_objectPie = 1;
17236
- _objectPie.f = {}.propertyIsEnumerable;
17237
- return _objectPie;
17238
- }
17239
- __name(require_objectPie, "require_objectPie");
17222
+ _objectPie.f = {}.propertyIsEnumerable;
17240
17223
  var defined$1 = _defined;
17241
17224
  var _toObject = /* @__PURE__ */ __name(function(it) {
17242
17225
  return Object(defined$1(it));
@@ -17250,9 +17233,9 @@ function require_objectAssign() {
17250
17233
  var DESCRIPTORS2 = require_descriptors();
17251
17234
  var getKeys2 = _objectKeys;
17252
17235
  var gOPS2 = _objectGops;
17253
- var pIE2 = require_objectPie();
17236
+ var pIE2 = _objectPie;
17254
17237
  var toObject2 = _toObject;
17255
- var IObject2 = require_iobject();
17238
+ var IObject2 = _iobject;
17256
17239
  var $assign = Object.assign;
17257
17240
  _objectAssign = !$assign || _fails(function() {
17258
17241
  var A2 = {};
@@ -17905,7 +17888,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name) {
17905
17888
  }, "_wksDefine");
17906
17889
  var getKeys = _objectKeys;
17907
17890
  var gOPS$1 = _objectGops;
17908
- var pIE$1 = require_objectPie();
17891
+ var pIE$1 = _objectPie;
17909
17892
  var _enumKeys = /* @__PURE__ */ __name(function(it) {
17910
17893
  var result = getKeys(it);
17911
17894
  var getSymbols2 = gOPS$1.f;
@@ -17946,7 +17929,7 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
17946
17929
  return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
17947
17930
  }, "getOwnPropertyNames");
17948
17931
  var _objectGopd = {};
17949
- var pIE = require_objectPie();
17932
+ var pIE = _objectPie;
17950
17933
  var createDesc$1 = _propertyDesc;
17951
17934
  var toIObject$1 = _toIobject;
17952
17935
  var toPrimitive$1 = _toPrimitive;
@@ -18126,7 +18109,7 @@ if (!USE_NATIVE) {
18126
18109
  $GOPD.f = $getOwnPropertyDescriptor;
18127
18110
  $DP.f = $defineProperty;
18128
18111
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
18129
- require_objectPie().f = $propertyIsEnumerable;
18112
+ _objectPie.f = $propertyIsEnumerable;
18130
18113
  $GOPS.f = $getOwnPropertySymbols;
18131
18114
  if (DESCRIPTORS && !_library) {
18132
18115
  redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
@@ -42677,6 +42660,7 @@ const _FilterAndSortMenu = class _FilterAndSortMenu extends React__default.Compo
42677
42660
  intent: Intent.SUCCESS,
42678
42661
  text: "Filter",
42679
42662
  secondaryText: "Clear",
42663
+ secondaryIntent: Intent.DANGER,
42680
42664
  secondaryAction: () => {
42681
42665
  currentFilter && removeSingleFilter(currentFilter.filterOn);
42682
42666
  }
@@ -60438,7 +60422,9 @@ function matchSchemas(_0) {
60438
60422
  officialSchema.fields.forEach((h2) => {
60439
60423
  let hasMatch = false;
60440
60424
  let result = fuse.search(h2.path) || [];
60441
- const hadNormalPathMatch = userSchema.fields.some((uh) => norm(uh.path) === norm(h2.path));
60425
+ const hadNormalPathMatch = userSchema.fields.some(
60426
+ (uh) => norm(uh.path) === norm(h2.path)
60427
+ );
60442
60428
  userSchema.fields.forEach((uh, i) => {
60443
60429
  const pathMatch = norm(uh.path) === norm(h2.path);
60444
60430
  const displayNameMatch = h2.displayName && norm(uh.path) === norm(getTextFromEl(h2.displayName));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.3.64",
3
+ "version": "0.3.66",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -182,6 +182,7 @@ export default class FilterAndSortMenu extends React.Component {
182
182
  intent={Intent.SUCCESS}
183
183
  text="Filter"
184
184
  secondaryText="Clear"
185
+ secondaryIntent={Intent.DANGER}
185
186
  secondaryAction={() => {
186
187
  currentFilter && removeSingleFilter(currentFilter.filterOn);
187
188
  }}
@@ -88,7 +88,9 @@ async function matchSchemas({ userSchema, officialSchema }) {
88
88
  //run fuse search for results
89
89
  let result = fuse.search(h.path) || [];
90
90
 
91
- const hadNormalPathMatch = userSchema.fields.some(uh => norm(uh.path) === norm(h.path))
91
+ const hadNormalPathMatch = userSchema.fields.some(
92
+ uh => norm(uh.path) === norm(h.path)
93
+ );
92
94
  //if there are any exact matches, push them onto the results array
93
95
  userSchema.fields.forEach((uh, i) => {
94
96
  const pathMatch = norm(uh.path) === norm(h.path);