@cakemail-org/ui-components-v2 2.2.113 → 2.2.115

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.
@@ -71,6 +71,8 @@ type TDataTableRowDataComplex = {
71
71
  export interface TDataTableRowData extends TDObject, TDataTableRowDataComplex {
72
72
  collapsedContent?: any;
73
73
  initCollapsedOpen?: boolean;
74
+ /** When set, controls expand/collapse (e.g. parent "Email config" / "Page config" actions). */
75
+ collapsedOpen?: boolean;
74
76
  isSelected?: boolean;
75
77
  }
76
78
  export type TDataTableColumnsData = {
package/dist/cjs/index.js CHANGED
@@ -8909,6 +8909,11 @@ function DataTablePaginationNoCount(_a) {
8909
8909
  function DataTableRow(_a) {
8910
8910
  var row = _a.row, columnsData = _a.columnsData, handleRowClick = _a.handleRowClick, handleRowSelect = _a.handleRowSelect, isItemSelected = _a.isItemSelected, index = _a.index, rowIdMap = _a.rowIdMap, showRowSelection = _a.showRowSelection, stickyFirstCol = _a.stickyFirstCol, stickyLastCol = _a.stickyLastCol, showCollapsibleContent = _a.showCollapsibleContent, colCount = _a.colCount;
8911
8911
  var _b = React.useState((row === null || row === void 0 ? void 0 : row.initCollapsedOpen) || false), open = _b[0], setOpen = _b[1];
8912
+ React.useEffect(function () {
8913
+ if ((row === null || row === void 0 ? void 0 : row.collapsedOpen) !== undefined) {
8914
+ setOpen(row.collapsedOpen);
8915
+ }
8916
+ }, [row === null || row === void 0 ? void 0 : row.collapsedOpen]);
8912
8917
  function handleOpen(event) {
8913
8918
  event.stopPropagation();
8914
8919
  setOpen(!open);
@@ -9621,7 +9626,7 @@ function FilterBar(_a) {
9621
9626
  //set onClick
9622
9627
  dropMenuOptions = dropMenuOptions === null || dropMenuOptions === void 0 ? void 0 : dropMenuOptions.map(function (i) {
9623
9628
  var _a;
9624
- return __assign(__assign({}, i), { disabled: (_a = dropMenuProps === null || dropMenuProps === void 0 ? void 0 : dropMenuProps.disabledTabs) === null || _a === void 0 ? void 0 : _a.includes(i.tab), onClick: function () { handleDropMenuClick(i === null || i === void 0 ? void 0 : i.value); } });
9629
+ return __assign(__assign({}, i), { disabled: i.disabled || ((_a = dropMenuProps === null || dropMenuProps === void 0 ? void 0 : dropMenuProps.disabledTabs) === null || _a === void 0 ? void 0 : _a.includes(i.tab)), onClick: function () { handleDropMenuClick(i === null || i === void 0 ? void 0 : i.value); } });
9625
9630
  });
9626
9631
  if (dropMenuOptions && (dropMenuOptions === null || dropMenuOptions === void 0 ? void 0 : dropMenuOptions.length) > 0) {
9627
9632
  var foundTitle = (_e = (_d = dropMenuProps === null || dropMenuProps === void 0 ? void 0 : dropMenuProps.options) === null || _d === void 0 ? void 0 : _d[selectedTab || ""]) === null || _e === void 0 ? void 0 : _e.title;
@@ -9677,7 +9682,7 @@ function FilterBar(_a) {
9677
9682
  " ",
9678
9683
  React.createElement(Icon, { name: "Search10" }),
9679
9684
  " ",
9680
- term.value) : term.value, color: isPartial ? "wildSand" : "secondary", squared: true, icon: React.createElement(Icon, { name: "X14" }), onClick: function () { handleRemoveTerm(term.value); } });
9685
+ term.text || term.value) : term.text || term.value, color: isPartial ? "wildSand" : "secondary", squared: true, icon: React.createElement(Icon, { name: "X14" }), onClick: function () { handleRemoveTerm(term.value); } });
9681
9686
  }).reverse()),
9682
9687
  cFilterTerms.length > 0 &&
9683
9688
  React.createElement(material.Stack, { direction: "row", className: "actionContainer", alignItems: "center", justifyContent: "center", gap: 3 },
@@ -11396,6 +11401,7 @@ exports.EEventBreakdownDimension = void 0;
11396
11401
  EEventBreakdownDimension["listId"] = "list_id";
11397
11402
  EEventBreakdownDimension["contactId"] = "contact_id";
11398
11403
  EEventBreakdownDimension["formId"] = "form_id";
11404
+ EEventBreakdownDimension["scrollDepth"] = "scroll_depth";
11399
11405
  })(exports.EEventBreakdownDimension || (exports.EEventBreakdownDimension = {}));
11400
11406
  exports.EEventTimeseriesGranularity = void 0;
11401
11407
  (function (EEventTimeseriesGranularity) {
@@ -13,7 +13,8 @@ export declare enum EEventBreakdownDimension {
13
13
  pageUrl = "page_url",
14
14
  listId = "list_id",
15
15
  contactId = "contact_id",
16
- formId = "form_id"
16
+ formId = "form_id",
17
+ scrollDepth = "scroll_depth"
17
18
  }
18
19
  export declare enum EEventTimeseriesGranularity {
19
20
  hour = "hour",
@@ -71,6 +71,8 @@ type TDataTableRowDataComplex = {
71
71
  export interface TDataTableRowData extends TDObject, TDataTableRowDataComplex {
72
72
  collapsedContent?: any;
73
73
  initCollapsedOpen?: boolean;
74
+ /** When set, controls expand/collapse (e.g. parent "Email config" / "Page config" actions). */
75
+ collapsedOpen?: boolean;
74
76
  isSelected?: boolean;
75
77
  }
76
78
  export type TDataTableColumnsData = {
package/dist/esm/index.js CHANGED
@@ -8889,6 +8889,11 @@ function DataTablePaginationNoCount(_a) {
8889
8889
  function DataTableRow(_a) {
8890
8890
  var row = _a.row, columnsData = _a.columnsData, handleRowClick = _a.handleRowClick, handleRowSelect = _a.handleRowSelect, isItemSelected = _a.isItemSelected, index = _a.index, rowIdMap = _a.rowIdMap, showRowSelection = _a.showRowSelection, stickyFirstCol = _a.stickyFirstCol, stickyLastCol = _a.stickyLastCol, showCollapsibleContent = _a.showCollapsibleContent, colCount = _a.colCount;
8891
8891
  var _b = React__default.useState((row === null || row === void 0 ? void 0 : row.initCollapsedOpen) || false), open = _b[0], setOpen = _b[1];
8892
+ React__default.useEffect(function () {
8893
+ if ((row === null || row === void 0 ? void 0 : row.collapsedOpen) !== undefined) {
8894
+ setOpen(row.collapsedOpen);
8895
+ }
8896
+ }, [row === null || row === void 0 ? void 0 : row.collapsedOpen]);
8892
8897
  function handleOpen(event) {
8893
8898
  event.stopPropagation();
8894
8899
  setOpen(!open);
@@ -9601,7 +9606,7 @@ function FilterBar(_a) {
9601
9606
  //set onClick
9602
9607
  dropMenuOptions = dropMenuOptions === null || dropMenuOptions === void 0 ? void 0 : dropMenuOptions.map(function (i) {
9603
9608
  var _a;
9604
- return __assign(__assign({}, i), { disabled: (_a = dropMenuProps === null || dropMenuProps === void 0 ? void 0 : dropMenuProps.disabledTabs) === null || _a === void 0 ? void 0 : _a.includes(i.tab), onClick: function () { handleDropMenuClick(i === null || i === void 0 ? void 0 : i.value); } });
9609
+ return __assign(__assign({}, i), { disabled: i.disabled || ((_a = dropMenuProps === null || dropMenuProps === void 0 ? void 0 : dropMenuProps.disabledTabs) === null || _a === void 0 ? void 0 : _a.includes(i.tab)), onClick: function () { handleDropMenuClick(i === null || i === void 0 ? void 0 : i.value); } });
9605
9610
  });
9606
9611
  if (dropMenuOptions && (dropMenuOptions === null || dropMenuOptions === void 0 ? void 0 : dropMenuOptions.length) > 0) {
9607
9612
  var foundTitle = (_e = (_d = dropMenuProps === null || dropMenuProps === void 0 ? void 0 : dropMenuProps.options) === null || _d === void 0 ? void 0 : _d[selectedTab || ""]) === null || _e === void 0 ? void 0 : _e.title;
@@ -9657,7 +9662,7 @@ function FilterBar(_a) {
9657
9662
  " ",
9658
9663
  React__default.createElement(Icon, { name: "Search10" }),
9659
9664
  " ",
9660
- term.value) : term.value, color: isPartial ? "wildSand" : "secondary", squared: true, icon: React__default.createElement(Icon, { name: "X14" }), onClick: function () { handleRemoveTerm(term.value); } });
9665
+ term.text || term.value) : term.text || term.value, color: isPartial ? "wildSand" : "secondary", squared: true, icon: React__default.createElement(Icon, { name: "X14" }), onClick: function () { handleRemoveTerm(term.value); } });
9661
9666
  }).reverse()),
9662
9667
  cFilterTerms.length > 0 &&
9663
9668
  React__default.createElement(Stack$1, { direction: "row", className: "actionContainer", alignItems: "center", justifyContent: "center", gap: 3 },
@@ -11376,6 +11381,7 @@ var EEventBreakdownDimension;
11376
11381
  EEventBreakdownDimension["listId"] = "list_id";
11377
11382
  EEventBreakdownDimension["contactId"] = "contact_id";
11378
11383
  EEventBreakdownDimension["formId"] = "form_id";
11384
+ EEventBreakdownDimension["scrollDepth"] = "scroll_depth";
11379
11385
  })(EEventBreakdownDimension || (EEventBreakdownDimension = {}));
11380
11386
  var EEventTimeseriesGranularity;
11381
11387
  (function (EEventTimeseriesGranularity) {
@@ -13,7 +13,8 @@ export declare enum EEventBreakdownDimension {
13
13
  pageUrl = "page_url",
14
14
  listId = "list_id",
15
15
  contactId = "contact_id",
16
- formId = "form_id"
16
+ formId = "form_id",
17
+ scrollDepth = "scroll_depth"
17
18
  }
18
19
  export declare enum EEventTimeseriesGranularity {
19
20
  hour = "hour",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.2.113",
3
+ "version": "2.2.115",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",