@teambit/api-reference 0.0.0-cbccc08d6aa602f4b2d697c951a78747bcfda38e → 0.0.0-cc47f3343f7338a4c03c7cd894fd2fd496f28a82

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/.npmignore ADDED
@@ -0,0 +1,18 @@
1
+ dist/tsconfig.tsbuildinfo
2
+ dist/tsconfig.json
3
+ /tsconfig.json
4
+
5
+ package-tar/
6
+ .bit-capsule-ready
7
+ /*.ts
8
+ artifacts/*
9
+ !artifacts/env-template
10
+ !artifacts/ui-bundle
11
+ !artifacts/preview-bundle
12
+ package-tar/
13
+ .bit-capsule-ready
14
+ /*.ts
15
+ artifacts/*
16
+ !artifacts/env-template
17
+ !artifacts/ui-bundle
18
+ !artifacts/preview-bundle
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { APIDiffResult, APIDiffChange, APIDiffDetail } from './api-compare.types';
2
3
  export type { APIDiffResult, APIDiffChange, APIDiffDetail };
3
- export declare function APICompare(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function APICompare(): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { Section } from '@teambit/component';
2
3
  import type { TabItem } from '@teambit/component.ui.component-compare.models.component-compare-props';
3
4
  import type { ChangeType } from '@teambit/component.ui.component-compare.models.component-compare-change-type';
@@ -12,7 +13,7 @@ export declare class APICompareSection implements TabItem, Section {
12
13
  };
13
14
  route: {
14
15
  path: string;
15
- element: import("react/jsx-runtime").JSX.Element;
16
+ element: React.JSX.Element;
16
17
  };
17
18
  order: number;
18
19
  changeType: ChangeType;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { ComponentUI } from '@teambit/component';
2
3
  import type { Harmony, SlotRegistry } from '@teambit/harmony';
3
4
  import type { APINodeRenderer } from '@teambit/api-reference.models.api-node-renderer';
@@ -15,10 +16,10 @@ export declare class APIReferenceUI {
15
16
  static dependencies: import("@teambit/harmony").Aspect[];
16
17
  static runtime: import("@teambit/harmony").RuntimeDefinition;
17
18
  static slots: ((registerFn: () => string) => SlotRegistry<APINodeRenderer[]>)[];
18
- getAPIPage(): import("react/jsx-runtime").JSX.Element;
19
+ getAPIPage(): React.JSX.Element;
19
20
  TaggedAPIPage: ({ componentId }: {
20
21
  componentId: string;
21
- }) => import("react/jsx-runtime").JSX.Element;
22
+ }) => React.JSX.Element;
22
23
  /**
23
24
  * @deprecated use registerSchemaClasses instead
24
25
  * registerSchemaClasses is better for performance as it lazy-loads the schemas.
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
1
  {
2
2
  "name": "@teambit/api-reference",
3
- "version": "0.0.0-cbccc08d6aa602f4b2d697c951a78747bcfda38e",
3
+ "version": "0.0.0-cc47f3343f7338a4c03c7cd894fd2fd496f28a82",
4
4
  "homepage": "https://bit.cloud/teambit/api-reference/api-reference",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.api-reference",
8
8
  "name": "api-reference",
9
- "version": "cbccc08d6aa602f4b2d697c951a78747bcfda38e"
9
+ "version": "cc47f3343f7338a4c03c7cd894fd2fd496f28a82"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
13
13
  "@teambit/component.ui.component-compare.models.component-compare-change-type": "0.0.7",
14
- "@teambit/component.ui.component-compare.models.component-compare-props": "0.0.126",
15
- "@teambit/component.ui.component-compare.context": "0.0.124",
16
- "@teambit/harmony": "0.4.7",
14
+ "@teambit/component.ui.component-compare.models.component-compare-props": "0.0.130",
15
+ "@teambit/component.ui.component-compare.context": "0.0.125",
16
+ "@teambit/harmony": "0.4.12",
17
17
  "@teambit/api-reference.hooks.use-api-renderers": "0.0.37",
18
18
  "@teambit/api-reference.models.api-node-renderer": "0.0.53",
19
- "@teambit/api-reference.renderers.default-node-renderers": "0.0.8",
20
- "@teambit/api-reference.sections.api-reference-section": "0.0.16",
21
- "@teambit/semantics.entities.semantic-schema": "0.0.101",
22
- "@teambit/tagged-exports": "0.0.49",
19
+ "@teambit/api-reference.renderers.default-node-renderers": "0.0.17",
23
20
  "@teambit/api-reference.sections.api-reference-page": "0.0.120",
24
- "@teambit/component": "0.0.0-73139e9a1839d7318565ecb8e326854d75d187d8",
25
- "@teambit/code": "0.0.0-91a9296640eaa25dde46ab51dc4ec6cd5d3719c2",
26
- "@teambit/component-compare": "0.0.0-e7d8a734aadd590df8087699d8803db198f0c3c0",
27
- "@teambit/ui": "0.0.0-18dcd844ea083213e8baa7ea7dcb962c365affb1",
28
- "@teambit/workspace": "0.0.0-0931efed076807aedcb88a111c207e0951ffada1"
21
+ "@teambit/api-reference.sections.api-reference-section": "0.0.16",
22
+ "@teambit/semantics.entities.semantic-schema": "0.0.107",
23
+ "@teambit/tagged-exports": "0.0.53",
24
+ "@teambit/component": "0.0.0-50f317eb24ec871ccbde6f44ebb2241b9807efc1",
25
+ "@teambit/code": "0.0.0-83abfce6b37128514b6e4f707d0b36671cdc672c",
26
+ "@teambit/component-compare": "0.0.0-76e9c593c7186e993802e30fcd6dbd4e56a65ba0",
27
+ "@teambit/ui": "0.0.0-4e1b4a14c24943ffe6ce7957b8ce29aad7f8c55d",
28
+ "@teambit/workspace": "0.0.0-a3beb3f080dab9aa267e17c4b8d752cc0ba6aecc"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/lodash": "4.14.165",
32
32
  "@types/mocha": "9.1.0",
33
- "@teambit/harmony.envs.core-aspect-env": "0.1.4"
33
+ "@teambit/harmony.envs.core-aspect-env": "1.0.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "react": "^17.0.0 || ^18.0.0",
37
- "@types/react": "^17.0.73"
36
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0"
38
37
  },
39
38
  "license": "Apache-2.0",
40
39
  "optionalDependencies": {},
41
40
  "peerDependenciesMeta": {},
42
41
  "exports": {
43
42
  ".": {
43
+ "types": "./dist/index.d.ts",
44
44
  "node": {
45
45
  "require": "./dist/index.js",
46
46
  "import": "./dist/esm.mjs"
@@ -48,8 +48,7 @@
48
48
  "default": "./dist/index.js"
49
49
  },
50
50
  "./dist/*": "./dist/*",
51
- "./artifacts/*": "./artifacts/*",
52
- "./*": "./*.ts"
51
+ "./artifacts/*": "./artifacts/*"
53
52
  },
54
53
  "private": false,
55
54
  "engines": {
package/types/style.d.ts CHANGED
@@ -40,3 +40,7 @@ declare module '*.mdx' {
40
40
  const component: any;
41
41
  export default component;
42
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';