@infinite-table/infinite-react 7.4.0 → 7.4.1

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.d.ts CHANGED
@@ -335,6 +335,14 @@ type DebugLogger = {
335
335
  destroy: () => void;
336
336
  logFn: undefined | ((...args: any[]) => void);
337
337
  };
338
+ /**
339
+ * Returns whether logging is enabled for a specific channel
340
+ *
341
+ * @param channel the name of a specific channel like "a:b:c" - cannot contain wildcards
342
+ * @param permissions we accept values like "a:b:c,d:e:f,d:x:*" - multiple values separated by a comma. can also contain wildcards
343
+ * @returns boolean
344
+ */
345
+ declare function isChannelEnabled(channel: string, permissions: string): boolean;
338
346
  declare const debug: {
339
347
  (channelName: string): DebugLogger;
340
348
  colors: string[];
@@ -342,6 +350,7 @@ declare const debug: {
342
350
  diffenable: string | boolean;
343
351
  logFn: DebugLogger["logFn"];
344
352
  destroyAll: () => void;
353
+ isChannelEnabled: typeof isChannelEnabled;
345
354
  onLogIntent: (channel: string, fn: (options: {
346
355
  timestamp: number;
347
356
  channel: string;
package/index.dev.js CHANGED
@@ -1129,6 +1129,7 @@ var onLogIntentGlobal = (intentChannel, fn) => {
1129
1129
  });
1130
1130
  };
1131
1131
  debug.onLogIntent = onLogIntentGlobal;
1132
+ debug.isChannelEnabled = isChannelEnabled;
1132
1133
  debug.destroyAll = () => {
1133
1134
  initUsedColors();
1134
1135
  initUsedColors(debug.colors);
@@ -18831,6 +18832,40 @@ function finishRowInfoReducersFor(params) {
18831
18832
  return results;
18832
18833
  }
18833
18834
 
18835
+ // src/utils/devTools/devToolsTracks.ts
18836
+ var DevToolsTracks = {
18837
+ DataSource: {
18838
+ track: "DataSource",
18839
+ labels: {
18840
+ RemoteDataLoad: "Remote data load",
18841
+ TreeUnfilteredTreePaths: "Computing unfiltered tree paths",
18842
+ Filter: "Filter",
18843
+ Sort: "Sort",
18844
+ Group: "Group",
18845
+ LazyGroup: "Lazy group",
18846
+ Tree: "Tree",
18847
+ FlattenTree: "Flatten tree",
18848
+ Flatten: "Flatten groups",
18849
+ PrepareData: "Preparing data",
18850
+ ComputeSelectionCount: "Computing selection count",
18851
+ ComputeSelectionCountLazy: "Computing selection count (lazy)",
18852
+ PrepareRowInfo: "Preparing row info array"
18853
+ }
18854
+ },
18855
+ InfiniteTable: {
18856
+ track: "InfiniteTable",
18857
+ labels: {
18858
+ Render: "Rendering"
18859
+ }
18860
+ },
18861
+ MatrixBrain: {
18862
+ track: "Layout Computations",
18863
+ labels: {
18864
+ ComputeRenderRange: "Computing render range"
18865
+ }
18866
+ }
18867
+ };
18868
+
18834
18869
  // src/utils/devTools/index.ts
18835
18870
  var DevToolsMarker = class _DevToolsMarker {
18836
18871
  constructor(debugId) {
@@ -18945,38 +18980,6 @@ var DevToolsMarker = class _DevToolsMarker {
18945
18980
  );
18946
18981
  }
18947
18982
  };
18948
- var DevToolsTracks = {
18949
- DataSource: {
18950
- track: "DataSource",
18951
- labels: {
18952
- RemoteDataLoad: "Remote data load",
18953
- TreeUnfilteredTreePaths: "Computing unfiltered tree paths",
18954
- Filter: "Filter",
18955
- Sort: "Sort",
18956
- Group: "Group",
18957
- LazyGroup: "Lazy group",
18958
- Tree: "Tree",
18959
- FlattenTree: "Flatten tree",
18960
- Flatten: "Flatten groups",
18961
- PrepareData: "Preparing data",
18962
- ComputeSelectionCount: "Computing selection count",
18963
- ComputeSelectionCountLazy: "Computing selection count (lazy)",
18964
- PrepareRowInfo: "Preparing row info array"
18965
- }
18966
- },
18967
- InfiniteTable: {
18968
- track: "InfiniteTable",
18969
- labels: {
18970
- Render: "Rendering"
18971
- }
18972
- },
18973
- MatrixBrain: {
18974
- track: "Layout Computations",
18975
- labels: {
18976
- ComputeRenderRange: "Computing render range"
18977
- }
18978
- }
18979
- };
18980
18983
  function getMarker(debugId) {
18981
18984
  return DevToolsMarker.create(debugId);
18982
18985
  }
@@ -25685,7 +25688,7 @@ var useLicense = (licenseKey = "") => {
25685
25688
  }
25686
25689
  let valid2 = isValidLicense(licenseKey, {
25687
25690
  publishedAt: 1624970570587,
25688
- version: "7.4.0"
25691
+ version: "7.4.1"
25689
25692
  });
25690
25693
  if (!licenseKey && !valid2 && isInsidePlayground) {
25691
25694
  return true;
package/index.dev.mjs CHANGED
@@ -1055,6 +1055,7 @@ var onLogIntentGlobal = (intentChannel, fn) => {
1055
1055
  });
1056
1056
  };
1057
1057
  debug.onLogIntent = onLogIntentGlobal;
1058
+ debug.isChannelEnabled = isChannelEnabled;
1058
1059
  debug.destroyAll = () => {
1059
1060
  initUsedColors();
1060
1061
  initUsedColors(debug.colors);
@@ -18771,6 +18772,40 @@ function finishRowInfoReducersFor(params) {
18771
18772
  return results;
18772
18773
  }
18773
18774
 
18775
+ // src/utils/devTools/devToolsTracks.ts
18776
+ var DevToolsTracks = {
18777
+ DataSource: {
18778
+ track: "DataSource",
18779
+ labels: {
18780
+ RemoteDataLoad: "Remote data load",
18781
+ TreeUnfilteredTreePaths: "Computing unfiltered tree paths",
18782
+ Filter: "Filter",
18783
+ Sort: "Sort",
18784
+ Group: "Group",
18785
+ LazyGroup: "Lazy group",
18786
+ Tree: "Tree",
18787
+ FlattenTree: "Flatten tree",
18788
+ Flatten: "Flatten groups",
18789
+ PrepareData: "Preparing data",
18790
+ ComputeSelectionCount: "Computing selection count",
18791
+ ComputeSelectionCountLazy: "Computing selection count (lazy)",
18792
+ PrepareRowInfo: "Preparing row info array"
18793
+ }
18794
+ },
18795
+ InfiniteTable: {
18796
+ track: "InfiniteTable",
18797
+ labels: {
18798
+ Render: "Rendering"
18799
+ }
18800
+ },
18801
+ MatrixBrain: {
18802
+ track: "Layout Computations",
18803
+ labels: {
18804
+ ComputeRenderRange: "Computing render range"
18805
+ }
18806
+ }
18807
+ };
18808
+
18774
18809
  // src/utils/devTools/index.ts
18775
18810
  var DevToolsMarker = class _DevToolsMarker {
18776
18811
  constructor(debugId) {
@@ -18885,38 +18920,6 @@ var DevToolsMarker = class _DevToolsMarker {
18885
18920
  );
18886
18921
  }
18887
18922
  };
18888
- var DevToolsTracks = {
18889
- DataSource: {
18890
- track: "DataSource",
18891
- labels: {
18892
- RemoteDataLoad: "Remote data load",
18893
- TreeUnfilteredTreePaths: "Computing unfiltered tree paths",
18894
- Filter: "Filter",
18895
- Sort: "Sort",
18896
- Group: "Group",
18897
- LazyGroup: "Lazy group",
18898
- Tree: "Tree",
18899
- FlattenTree: "Flatten tree",
18900
- Flatten: "Flatten groups",
18901
- PrepareData: "Preparing data",
18902
- ComputeSelectionCount: "Computing selection count",
18903
- ComputeSelectionCountLazy: "Computing selection count (lazy)",
18904
- PrepareRowInfo: "Preparing row info array"
18905
- }
18906
- },
18907
- InfiniteTable: {
18908
- track: "InfiniteTable",
18909
- labels: {
18910
- Render: "Rendering"
18911
- }
18912
- },
18913
- MatrixBrain: {
18914
- track: "Layout Computations",
18915
- labels: {
18916
- ComputeRenderRange: "Computing render range"
18917
- }
18918
- }
18919
- };
18920
18923
  function getMarker(debugId) {
18921
18924
  return DevToolsMarker.create(debugId);
18922
18925
  }
@@ -25634,7 +25637,7 @@ var useLicense = (licenseKey = "") => {
25634
25637
  }
25635
25638
  let valid2 = isValidLicense(licenseKey, {
25636
25639
  publishedAt: 1624970570587,
25637
- version: "7.4.0"
25640
+ version: "7.4.1"
25638
25641
  });
25639
25642
  if (!licenseKey && !valid2 && isInsidePlayground) {
25640
25643
  return true;