@raketa-builder/support 0.8.0 → 0.9.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @raketa-builder/support@0.8.0 build
2
+ > @raketa-builder/support@0.9.0 build
3
3
  > tsup src/index.js --format cjs --loader ".js=jsx"
4
4
 
5
5
  CLI Building entry: src/index.js
@@ -7,5 +7,5 @@ CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v6.5.0
8
8
  CLI Target: es6
9
9
  CJS Build start
10
- CJS dist/index.js 20.64 KB
11
- CJS ⚡️ Build success in 69ms
10
+ CJS dist/index.js 20.67 KB
11
+ CJS ⚡️ Build success in 358ms
package/dist/index.js CHANGED
@@ -576,7 +576,7 @@ var AdminPageRender = ({
576
576
  onCopy: () => handleCopyWidgets(selectedWidgets, "multiple")
577
577
  }
578
578
  ),
579
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
579
+ page.widgets.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
580
580
  "button",
581
581
  {
582
582
  className: `r-button-reset r-button-select-all ${areAllSelected ? "r-all-selected" : ""}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-builder/support",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",
@@ -60,12 +60,14 @@ const AdminPageRender = ({
60
60
  />
61
61
  )}
62
62
 
63
- <button
64
- className={`r-button-reset r-button-select-all ${areAllSelected ? "r-all-selected" : ""}`}
65
- type="button"
66
- title="Select all (or Deselect all)"
67
- onClick={() => handleSelectAll()}
68
- />
63
+ {page.widgets.length > 0 && (
64
+ <button
65
+ className={`r-button-reset r-button-select-all ${areAllSelected ? "r-all-selected" : ""}`}
66
+ type="button"
67
+ title="Select all (or Deselect all)"
68
+ onClick={() => handleSelectAll()}
69
+ />
70
+ )}
69
71
 
70
72
  <a href={detailPath} className="r-reset r-details-link" title="Details" />
71
73