@digital-ai/dot-components 4.9.0 → 4.9.2

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.esm.js CHANGED
@@ -2253,7 +2253,7 @@ const getPlatformConsoleUrlFromToken = encodedToken => {
2253
2253
  const pathArray = issUrl.pathname.split('/');
2254
2254
  const vanityDomain = pathArray[pathArray.length - 1];
2255
2255
  let host = issUrl.hostname === 'localhost' ? 'local.digital.ai:4200' : issUrl.host;
2256
- const identityRe = /^identity(-\d+)+\.(.+)$/i;
2256
+ const identityRe = /^identity(-\d+)?\.(.+)$/i;
2257
2257
  const match = host.match(identityRe);
2258
2258
  if (match && match.length === 3) {
2259
2259
  host = match[2];
@@ -14642,9 +14642,7 @@ const DotInlineEdit = ({
14642
14642
  const bindingsValue = bindings ? applyBindings(bindings, inputValue) : null;
14643
14643
  const typographyClasses = useStylesWithRootClass('dot-view-mode-typography', !inputValue && placeholderClassName);
14644
14644
  const viewModeClasses = useStylesWithRootClass(viewModeClassName, readOnly && readOnlyClassName);
14645
- const viewModeChildren = jsxs(StyledInlineViewMode, {
14646
- maxRows: maxRows,
14647
- typography: typography,
14645
+ const viewModeChildren = jsxs(Fragment, {
14648
14646
  children: [jsx(DotTypography, {
14649
14647
  className: typographyClasses,
14650
14648
  "data-testid": dataTestId && `${dataTestId}-view-mode-typography`,
@@ -14662,8 +14660,10 @@ const DotInlineEdit = ({
14662
14660
  "data-testid": dataTestId && `${dataTestId}-view-mode-tooltip-wrapper`,
14663
14661
  open: showTooltip,
14664
14662
  children: viewModeChildren
14665
- }) : jsx("div", {
14663
+ }) : jsx(StyledInlineViewMode, {
14666
14664
  className: viewModeClasses,
14665
+ maxRows: maxRows,
14666
+ typography: typography,
14667
14667
  "data-testid": dataTestId && `${dataTestId}-view-mode-wrapper`,
14668
14668
  role: "presentation",
14669
14669
  children: viewModeChildren
@@ -16532,7 +16532,8 @@ const CollapsibleTableBody = ({
16532
16532
  typography: nestedTableBodyTypography,
16533
16533
  noWrap: column.truncate,
16534
16534
  style: {
16535
- maxWidth: parseCellMaxWidth(column.width)
16535
+ maxWidth: parseCellMaxWidth(column.width),
16536
+ minWidth: parseCellMaxWidth(column.minWidth)
16536
16537
  },
16537
16538
  value: row[colId]
16538
16539
  }, colId);
@@ -16557,7 +16558,7 @@ const StyledCollapsibleTableWrapper = styled.div`
16557
16558
  .dot-table-container {
16558
16559
  th.MuiTableCell-root:first-child,
16559
16560
  td.MuiTableCell-root:first-child {
16560
- padding-left: ${theme.spacing(9)};
16561
+ max-width: 40px;
16561
16562
  }
16562
16563
  }
16563
16564
 
@@ -16826,7 +16827,8 @@ const DotTableRow = ({
16826
16827
  noWrap: column.truncate,
16827
16828
  onActionMenuTrigger: (menuRef, menuItem) => onActionMenuTrigger(menuRef, menuItem),
16828
16829
  style: {
16829
- maxWidth: parseCellMaxWidth(column.width)
16830
+ maxWidth: parseCellMaxWidth(column.width),
16831
+ minWidth: parseCellMaxWidth(column.minWidth)
16830
16832
  },
16831
16833
  value: rowData[column.id]
16832
16834
  }, column.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "4.9.0",
3
+ "version": "4.9.2",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -70,6 +70,7 @@ export interface DotColumnHeader {
70
70
  align?: TextAlignment;
71
71
  id: string;
72
72
  label?: string;
73
+ minWidth?: string;
73
74
  sortable?: boolean;
74
75
  truncate?: boolean;
75
76
  width?: string;