@antv/dumi-theme-antv 0.3.2 → 0.3.3

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.
@@ -249,7 +249,7 @@
249
249
  font-size: 12px;
250
250
  background: #fff;
251
251
  max-height: 100vh;
252
- overflow: auto;
252
+ overflow: hidden;
253
253
 
254
254
  position: sticky;
255
255
  top: 0;
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
+ mod
22
+ ));
20
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
24
 
22
25
  // src/plugin/examples.ts
@@ -72,22 +75,24 @@ var getTopicExamples = (topicPath) => {
72
75
  }).sort((a, b) => a.order - b.order);
73
76
  };
74
77
  var getExamplesPageTopics = (exampleTopics) => {
75
- return exampleTopics.map(({ id, slug, title, icon }) => {
76
- const nid = id || slug;
77
- let examples = [];
78
- try {
79
- examples = getTopicExamples(path.join(examplesBaseDir, nid));
80
- } catch (e) {
81
- console.warn(e);
78
+ return exampleTopics.map(
79
+ ({ id, slug, title, icon }) => {
80
+ const nid = id || slug;
81
+ let examples = [];
82
+ try {
83
+ examples = getTopicExamples(path.join(examplesBaseDir, nid));
84
+ } catch (e) {
85
+ console.warn(e);
86
+ }
87
+ return {
88
+ id: nid,
89
+ title,
90
+ icon,
91
+ examples,
92
+ childrenKey: "examples"
93
+ };
82
94
  }
83
- return {
84
- id: nid,
85
- title,
86
- icon,
87
- examples,
88
- childrenKey: "examples"
89
- };
90
- });
95
+ );
91
96
  };
92
97
  function getExamplePaths() {
93
98
  const exampleTopicPaths = glob.sync(`${examplesBaseDir}/*/*`);
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
+ mod
22
+ ));
20
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
24
 
22
25
  // src/plugin/index.ts
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
+ mod
22
+ ));
20
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
24
 
22
25
  // src/plugin/utils.ts
@@ -3,7 +3,7 @@
3
3
  .shadowWrapper {
4
4
  position: relative;
5
5
  margin-bottom: 12px;
6
- overflow: auto;
6
+ overflow: unset;
7
7
  height: 100%;
8
8
 
9
9
  &::before,
@@ -254,7 +254,7 @@
254
254
  font-size: 12px;
255
255
  background: #fff;
256
256
  max-height: 100vh;
257
- overflow: scroll;
257
+ overflow: hidden;
258
258
 
259
259
  position: sticky;
260
260
  top: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/dumi-theme-antv",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "AntV website theme based on dumi2.",
5
5
  "types": "dist/types.d.ts",
6
6
  "scripts": {