@walkeros/explorer 4.7.0 → 4.7.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/dist/styles.css CHANGED
@@ -77,7 +77,9 @@
77
77
  --grid-row-min-height: 250px;
78
78
  --grid-row-max-height: 450px;
79
79
  --grid-box-max-height-mobile: 500px;
80
- --height-snippet-min: 20px;
80
+ --height-code-view-max: 600px;
81
+ --step-example-min-box-width: 220px;
82
+ --step-example-max-height: 360px;
81
83
  --monaco-font-size: 13px;
82
84
  --monaco-line-height: 1.5;
83
85
  --monaco-font-size-snippet: 16px;
@@ -175,7 +177,9 @@
175
177
  --grid-row-min-height: 250px;
176
178
  --grid-row-max-height: 450px;
177
179
  --grid-box-max-height-mobile: 500px;
178
- --height-snippet-min: 20px;
180
+ --height-code-view-max: 600px;
181
+ --step-example-min-box-width: 220px;
182
+ --step-example-max-height: 360px;
179
183
  --monaco-font-size: 13px;
180
184
  --monaco-line-height: 1.5;
181
185
  --monaco-font-size-snippet: 16px;
@@ -341,6 +345,12 @@
341
345
  }
342
346
  }
343
347
  }
348
+ @container grid-container (min-width: 800px) {
349
+ .elb-explorer-grid.elb-explorer-grid--columns {
350
+ grid-auto-flow: row;
351
+ grid-template-columns: repeat(var(--grid-columns), minmax(var(--grid-min-box-width), 1fr));
352
+ }
353
+ }
344
354
  @container grid-container (min-width: 800px) {
345
355
  .elb-explorer-grid.elb-explorer-grid--row-auto {
346
356
  grid-auto-rows: auto;
@@ -945,12 +955,51 @@ html[data-theme=dark] .shiki span {
945
955
  text-overflow: ellipsis;
946
956
  white-space: nowrap;
947
957
  }
948
- .elb-code-snippet {
949
- min-height: var(--height-snippet-min);
950
- }
951
958
  .elb-code-snippet .elb-code-static {
952
959
  font-size: 15px;
953
960
  }
961
+ .elb-code-view--fit.elb-explorer-box {
962
+ height: auto;
963
+ min-height: 0;
964
+ max-height: var(--height-code-view-max);
965
+ }
966
+ .elb-code-view--fit > .elb-explorer-content,
967
+ .elb-code-view--fit .elb-code-static,
968
+ .elb-code-view--fit .elb-code-static pre {
969
+ flex: 0 1 auto;
970
+ min-height: 0;
971
+ }
972
+ .elb-code-view-actions {
973
+ position: absolute;
974
+ top: 6px;
975
+ right: 6px;
976
+ z-index: 1;
977
+ display: flex;
978
+ background: var(--bg-box);
979
+ border-radius: var(--radius-button);
980
+ opacity: 0;
981
+ transition: opacity 0.15s;
982
+ }
983
+ .elb-explorer-content:hover > .elb-code-view-actions,
984
+ .elb-code-view-actions:focus-within {
985
+ opacity: 1;
986
+ }
987
+ @media (hover: none) {
988
+ .elb-code-view-actions {
989
+ opacity: 1;
990
+ }
991
+ }
992
+ .elb-step-example-boxes {
993
+ display: flex;
994
+ flex-wrap: wrap;
995
+ align-items: stretch;
996
+ gap: var(--spacing-grid-gap);
997
+ }
998
+ .elb-step-example .elb-step-example-boxes > .elb-explorer-box {
999
+ flex: 1 1 var(--step-example-min-box-width);
1000
+ min-width: 0;
1001
+ max-height: var(--step-example-max-height);
1002
+ }
954
1003
  .elb-preview-content {
955
1004
  flex: 1;
956
1005
  min-height: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walkeros/explorer",
3
- "version": "4.7.0",
3
+ "version": "4.7.1",
4
4
  "description": "Interactive React components for walkerOS documentation and exploration",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,10 +36,10 @@
36
36
  "@rjsf/core": "^6.1.2",
37
37
  "@rjsf/utils": "^6.1.2",
38
38
  "@rjsf/validator-ajv8": "^6.1.2",
39
- "@walkeros/collector": "4.7.0",
40
- "@walkeros/core": "4.7.0",
41
- "@walkeros/web-core": "4.7.0",
42
- "@walkeros/web-source-browser": "4.7.0",
39
+ "@walkeros/collector": "4.7.1",
40
+ "@walkeros/core": "4.7.1",
41
+ "@walkeros/web-core": "4.7.1",
42
+ "@walkeros/web-source-browser": "4.7.1",
43
43
  "clsx": "^2.1.1",
44
44
  "monaco-editor": "^0.55.1",
45
45
  "prettier": "^3.7.4",
@@ -65,8 +65,8 @@
65
65
  "@typescript-eslint/eslint-plugin": "^8.28.0",
66
66
  "@typescript-eslint/parser": "^8.28.0",
67
67
  "@vitejs/plugin-react": "^6.0.2",
68
- "@walkeros/config": "4.7.0",
69
- "@walkeros/web-destination-gtag": "4.7.0",
68
+ "@walkeros/config": "4.7.1",
69
+ "@walkeros/web-destination-gtag": "4.7.1",
70
70
  "eslint": "^9.23.0",
71
71
  "eslint-plugin-jest": "^29.15.2",
72
72
  "eslint-plugin-storybook": "^10.1.11",