@squiz/generic-browser-lib 1.65.0 → 1.66.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @squiz/generic-browser-lib
2
2
 
3
+ ## 1.66.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5fa9b39: Updated resource browser to allow replacing the previously selected resource. Replacing will open the resource browser to the location where the resource resides.
8
+
3
9
  ## 1.65.0
4
10
 
5
11
  ### Minor Changes
@@ -18,7 +18,7 @@ function ModalTrigger({ label, labelClasses, showLabel, containerClasses, icon,
18
18
  ariaAttr = { ...ariaAttr, 'aria-label': label };
19
19
  }
20
20
  return (react_1.default.createElement("div", { className: scope },
21
- react_1.default.createElement(ModalOpeningButton_1.ModalOpeningButton, { type: "button", ...triggerProps, ...ariaAttr, isDisabled: isDisabled, className: (0, clsx_1.default)(`${containerClasses ||
21
+ react_1.default.createElement(ModalOpeningButton_1.ModalOpeningButton, { type: "button", title: label, ...triggerProps, ...ariaAttr, isDisabled: isDisabled, className: (0, clsx_1.default)(`${containerClasses ||
22
22
  'flex p-1 px-1.5 rounded mr-auto text-blue-300 hover:bg-blue-100 focus:bg-blue-100 focus:outline-none'}`, isDisabled && 'hover:bg-transparent cursor-not-allowed text-gray-600') },
23
23
  icon,
24
24
  showLabel && react_1.default.createElement("span", { className: `${labelClasses || 'ml-1 text-sm font-semibold leading-4'}` }, label)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/generic-browser-lib",
3
- "version": "1.65.0",
3
+ "version": "1.66.0",
4
4
  "description": "Package with reusable components used by resource/component browsers",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -39,6 +39,7 @@ export function ModalTrigger({
39
39
  <div className={scope}>
40
40
  <ModalOpeningButton
41
41
  type="button"
42
+ title={label}
42
43
  {...triggerProps}
43
44
  {...ariaAttr}
44
45
  isDisabled={isDisabled}
File without changes