@ohos-ports/teambit-api-reference 0.0.0-stage → 1.0.1264-beta.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/api-compare.module.scss +8 -0
- package/api-compare.section.tsx +33 -0
- package/api-compare.tsx +84 -0
- package/api-reference.ui.runtime.tsx +102 -0
- package/dist/api-compare.d.ts +13 -0
- package/dist/api-compare.js +98 -0
- package/dist/api-compare.js.map +1 -0
- package/dist/api-compare.module.scss +8 -0
- package/dist/api-compare.section.d.ts +23 -0
- package/dist/api-compare.section.js +50 -0
- package/dist/api-compare.section.js.map +1 -0
- package/dist/api-reference.aspect.d.ts +3 -0
- package/dist/api-reference.aspect.js +19 -0
- package/dist/api-reference.aspect.js.map +1 -0
- package/dist/api-reference.ui.runtime.d.ts +33 -0
- package/dist/api-reference.ui.runtime.js +189 -0
- package/dist/api-reference.ui.runtime.js.map +1 -0
- package/dist/default-node-renderers.d.ts +6 -0
- package/dist/default-node-renderers.js +132 -0
- package/dist/default-node-renderers.js.map +1 -0
- package/dist/esm.mjs +7 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/preview-1793216382803.js +7 -0
- package/esm.mjs +7 -0
- package/package.json +128 -4
- package/patches/@teambit__api-reference.models.api-node-renderer@0.0.55.patch +13 -0
- package/patches/@teambit__api-reference.overview.renderers.grouped-schema-nodes-overview-summary@0.0.79.patch +13 -0
- package/patches/@teambit__api-reference.renderers.api-node-details@0.0.0-e1c2f07a871dea42601d34ca5302f456e1f7e2bd.patch +13 -0
- package/patches/@teambit__api-reference.renderers.api-node-details@0.0.89.patch +13 -0
- package/patches/@teambit__api-reference.renderers.class@0.0.92.patch +13 -0
- package/patches/@teambit__api-reference.renderers.decorator@0.0.46.patch +12 -0
- package/patches/@teambit__api-reference.renderers.function@0.0.93.patch +13 -0
- package/patches/@teambit__api-reference.renderers.grouped-schema-nodes-summary@0.0.88.patch +13 -0
- package/patches/@teambit__api-reference.renderers.inference-type@0.0.68.patch +12 -0
- package/patches/@teambit__api-reference.renderers.parameter@0.0.74.patch +13 -0
- package/patches/@teambit__api-reference.renderers.schema-node-member-summary@0.0.0-c23b933f1924d438c3df2482134e80c3364441b8.patch +39 -0
- package/patches/@teambit__api-reference.renderers.schema-node-member-summary@0.0.88.patch +39 -0
- package/patches/@teambit__api-reference.renderers.schema-nodes-index@0.0.0-307cb8a493f9a8f2646075f4f3f694170b80f926.patch +13 -0
- package/patches/@teambit__api-reference.renderers.tuple-type@0.0.36.patch +12 -0
- package/patches/@teambit__api-reference.renderers.type-array@0.0.57.patch +12 -0
- package/patches/@teambit__api-reference.renderers.type-intersection@0.0.57.patch +13 -0
- package/patches/@teambit__api-reference.renderers.type-ref@0.0.105.patch +13 -0
- package/patches/@teambit__api-reference.renderers.type-union@0.0.57.patch +13 -0
- package/patches/@teambit__base-ui.layout.grid-component@1.0.2.patch +26 -0
- package/patches/@teambit__base-ui.routing.compare-url@1.0.2.patch +19 -0
- package/patches/@teambit__base-ui.theme.dark-theme@1.0.2.patch +26 -0
- package/patches/@teambit__code.ui.diff-viewer@0.0.6.patch +13 -0
- package/patches/@teambit__design.ui.surfaces.menu.item@0.0.354.patch +13 -0
- package/patches/@teambit__design.ui.tooltip@0.0.383.patch +19 -0
- package/patches/@teambit__docs.ui.hooks.use-element-on-fold@1.96.5.patch +45 -0
- package/patches/@teambit__documenter.ui.heading@4.1.8.patch +35 -0
- package/patches/@teambit__documenter.ui.table-column@4.0.4.patch +21 -0
- package/patches/@teambit__documenter.ui.table-heading-column@4.0.8.patch +21 -0
- package/patches/@teambit__documenter.ui.table-heading-row@4.0.11.patch +22 -0
- package/patches/@teambit__documenter.ui.table-row@4.1.17.patch +26 -0
- package/patches/@teambit__ui-foundation.ui.react-router.use-query@0.0.505.patch +9 -0
- package/patches/react-syntax-highlighter@15.6.6.patch +6064 -0
- package/patches/use-debounce@7.0.1.patch +33 -0
- package/types/asset.d.ts +41 -0
- package/types/style.d.ts +46 -0
- package/README.md +0 -3
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
diff --git a/esm/index.js b/esm/index.js
|
|
2
|
+
index fda0899..420be40 100644
|
|
3
|
+
--- a/esm/index.js
|
|
4
|
+
+++ b/esm/index.js
|
|
5
|
+
@@ -1,4 +1,4 @@
|
|
6
|
+
-import useDebounce from './useDebounce';
|
|
7
|
+
-import useDebouncedCallback from './useDebouncedCallback';
|
|
8
|
+
-import useThrottledCallback from './useThrottledCallback';
|
|
9
|
+
+import useDebounce from './useDebounce.js';
|
|
10
|
+
+import useDebouncedCallback from './useDebouncedCallback.js';
|
|
11
|
+
+import useThrottledCallback from './useThrottledCallback.js';
|
|
12
|
+
export { useDebounce, useDebouncedCallback, useThrottledCallback };
|
|
13
|
+
diff --git a/esm/useDebounce.js b/esm/useDebounce.js
|
|
14
|
+
index c0d12e9..58c08cf 100644
|
|
15
|
+
--- a/esm/useDebounce.js
|
|
16
|
+
+++ b/esm/useDebounce.js
|
|
17
|
+
@@ -1,5 +1,5 @@
|
|
18
|
+
import { useCallback, useRef, useState } from 'react';
|
|
19
|
+
-import useDebouncedCallback from './useDebouncedCallback';
|
|
20
|
+
+import useDebouncedCallback from './useDebouncedCallback.js';
|
|
21
|
+
function valueEquality(left, right) {
|
|
22
|
+
return left === right;
|
|
23
|
+
}
|
|
24
|
+
diff --git a/esm/useThrottledCallback.js b/esm/useThrottledCallback.js
|
|
25
|
+
index 7b33e84..642676b 100644
|
|
26
|
+
--- a/esm/useThrottledCallback.js
|
|
27
|
+
+++ b/esm/useThrottledCallback.js
|
|
28
|
+
@@ -1,4 +1,4 @@
|
|
29
|
+
-import useDebouncedCallback from './useDebouncedCallback';
|
|
30
|
+
+import useDebouncedCallback from './useDebouncedCallback.js';
|
|
31
|
+
/**
|
|
32
|
+
* Creates a throttled function that only invokes `func` at most once per
|
|
33
|
+
* every `wait` milliseconds (or once per browser frame). The throttled function
|
package/types/asset.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare module '*.png' {
|
|
2
|
+
const value: any;
|
|
3
|
+
export = value;
|
|
4
|
+
}
|
|
5
|
+
declare module '*.svg' {
|
|
6
|
+
import type { FunctionComponent, SVGProps } from 'react';
|
|
7
|
+
|
|
8
|
+
export const ReactComponent: FunctionComponent<
|
|
9
|
+
SVGProps<SVGSVGElement> & { title?: string }
|
|
10
|
+
>;
|
|
11
|
+
const src: string;
|
|
12
|
+
export default src;
|
|
13
|
+
}
|
|
14
|
+
declare module '*.jpg' {
|
|
15
|
+
const value: any;
|
|
16
|
+
export = value;
|
|
17
|
+
}
|
|
18
|
+
declare module '*.jpeg' {
|
|
19
|
+
const value: any;
|
|
20
|
+
export = value;
|
|
21
|
+
}
|
|
22
|
+
declare module '*.gif' {
|
|
23
|
+
const value: any;
|
|
24
|
+
export = value;
|
|
25
|
+
}
|
|
26
|
+
declare module '*.bmp' {
|
|
27
|
+
const value: any;
|
|
28
|
+
export = value;
|
|
29
|
+
}
|
|
30
|
+
declare module '*.otf' {
|
|
31
|
+
const value: any;
|
|
32
|
+
export = value;
|
|
33
|
+
}
|
|
34
|
+
declare module '*.woff' {
|
|
35
|
+
const value: any;
|
|
36
|
+
export = value;
|
|
37
|
+
}
|
|
38
|
+
declare module '*.woff2' {
|
|
39
|
+
const value: any;
|
|
40
|
+
export = value;
|
|
41
|
+
}
|
package/types/style.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare module '*.module.css' {
|
|
2
|
+
const classes: { readonly [key: string]: string };
|
|
3
|
+
export default classes;
|
|
4
|
+
}
|
|
5
|
+
declare module '*.module.scss' {
|
|
6
|
+
const classes: { readonly [key: string]: string };
|
|
7
|
+
export default classes;
|
|
8
|
+
}
|
|
9
|
+
declare module '*.module.sass' {
|
|
10
|
+
const classes: { readonly [key: string]: string };
|
|
11
|
+
export default classes;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare module '*.module.less' {
|
|
15
|
+
const classes: { readonly [key: string]: string };
|
|
16
|
+
export default classes;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare module '*.less' {
|
|
20
|
+
const classes: { readonly [key: string]: string };
|
|
21
|
+
export default classes;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare module '*.css' {
|
|
25
|
+
const classes: { readonly [key: string]: string };
|
|
26
|
+
export default classes;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare module '*.sass' {
|
|
30
|
+
const classes: { readonly [key: string]: string };
|
|
31
|
+
export default classes;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare module '*.scss' {
|
|
35
|
+
const classes: { readonly [key: string]: string };
|
|
36
|
+
export default classes;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare module '*.mdx' {
|
|
40
|
+
const component: any;
|
|
41
|
+
export default component;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// `reset-css` ships only `reset.css` (no `.d.ts`). TS6 refuses bare
|
|
45
|
+
// side-effect imports without declarations, so we declare the module here.
|
|
46
|
+
declare module 'reset-css';
|
package/README.md
DELETED