@teambit/panels 0.0.839 → 0.0.841

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
  export declare class PanelUIMain {
2
2
  static runtime: import("@teambit/harmony").RuntimeDefinition;
3
- static dependencies: never[];
3
+ static dependencies: any[];
4
4
  static provider(): Promise<PanelUIMain>;
5
5
  }
@@ -19,8 +19,8 @@ function _panelUi() {
19
19
  return data;
20
20
  }
21
21
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
23
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
22
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
23
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
24
24
  class PanelUIMain {
25
25
  static async provider() {
26
26
  return new PanelUIMain();
@@ -1 +1 @@
1
- {"version":3,"names":["_cli","data","require","_panelUi","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","PanelUIMain","provider","exports","MainRuntime","PanelUiAspect","addRuntime"],"sources":["panel-ui.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\n\nimport { PanelUiAspect } from './panel-ui.aspect';\n\nexport class PanelUIMain {\n static runtime = MainRuntime;\n static dependencies = [];\n\n static async provider() {\n return new PanelUIMain();\n }\n}\n\nPanelUiAspect.addRuntime(PanelUIMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAkD,SAAAG,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AAE3C,MAAMU,WAAW,CAAC;EAIvB,aAAaC,QAAQA,CAAA,EAAG;IACtB,OAAO,IAAID,WAAW,CAAC,CAAC;EAC1B;AACF;AAACE,OAAA,CAAAF,WAAA,GAAAA,WAAA;AAAAvB,eAAA,CAPYuB,WAAW,aACLG,kBAAW;AAAA1B,eAAA,CADjBuB,WAAW,kBAEA,EAAE;AAO1BI,wBAAa,CAACC,UAAU,CAACL,WAAW,CAAC"}
1
+ {"version":3,"names":["_cli","data","require","_panelUi","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","PanelUIMain","provider","exports","MainRuntime","PanelUiAspect","addRuntime"],"sources":["panel-ui.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\n\nimport { PanelUiAspect } from './panel-ui.aspect';\n\nexport class PanelUIMain {\n static runtime = MainRuntime;\n static dependencies = [];\n\n static async provider() {\n return new PanelUIMain();\n }\n}\n\nPanelUiAspect.addRuntime(PanelUIMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAkD,SAAAG,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAE3C,MAAMW,WAAW,CAAC;EAIvB,aAAaC,QAAQA,CAAA,EAAG;IACtB,OAAO,IAAID,WAAW,CAAC,CAAC;EAC1B;AACF;AAACE,OAAA,CAAAF,WAAA,GAAAA,WAAA;AAAArB,eAAA,CAPYqB,WAAW,aACLG,kBAAW;AAAAxB,eAAA,CADjBqB,WAAW,kBAEA,EAAE;AAO1BI,wBAAa,CAACC,UAAU,CAACL,WAAW,CAAC"}
package/dist/ui/tabs.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { TabListProps as BaseTabListProps, TabPanel as TabPanelBase, TabProps as BaseTabProps, Tabs } from 'react-tabs';
3
- export declare type TabContainerProps = Tabs;
3
+ export type TabContainerProps = Tabs;
4
4
  export declare const TabContainer: typeof Tabs;
5
- export declare type TabProps = BaseTabProps;
6
- export declare type TabListProps = BaseTabListProps;
7
- export declare function TabList(props: TabListProps): React.JSX.Element;
5
+ export type TabProps = BaseTabProps;
6
+ export type TabListProps = BaseTabListProps;
7
+ export declare function TabList(props: TabListProps): JSX.Element;
8
8
  export declare namespace TabList {
9
9
  var tabsRole: string;
10
10
  }
11
11
  export declare const TabPanel: typeof TabPanelBase;
12
- export declare function Tab(props: BaseTabProps): React.JSX.Element;
12
+ export declare function Tab(props: BaseTabProps): JSX.Element;
13
13
  export declare namespace Tab {
14
14
  var tabsRole: string;
15
15
  }
package/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export type { PanelUIMain } from './panel-ui.main.runtime';
2
+ export { PanelUiAspect } from './panel-ui.aspect';
3
+ export { TabContainer, Tab, TabList, TabPanel } from './ui/tabs';
package/package.json CHANGED
@@ -1,35 +1,31 @@
1
1
  {
2
2
  "name": "@teambit/panels",
3
- "version": "0.0.839",
3
+ "version": "0.0.841",
4
4
  "homepage": "https://bit.cloud/teambit/ui-foundation/panels",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.ui-foundation",
8
8
  "name": "panels",
9
- "version": "0.0.839"
9
+ "version": "0.0.841"
10
10
  },
11
11
  "dependencies": {
12
12
  "classnames": "2.2.6",
13
13
  "react-tabs": "3.2.0",
14
- "core-js": "^3.0.0",
15
- "@babel/runtime": "7.20.0",
16
14
  "@teambit/harmony": "0.4.6",
17
- "@teambit/cli": "0.0.838"
15
+ "@teambit/cli": "0.0.840"
18
16
  },
19
17
  "devDependencies": {
20
18
  "@types/classnames": "2.2.11",
21
19
  "@types/react-tabs": "2.3.2",
22
- "@types/react": "^17.0.8",
23
20
  "@types/mocha": "9.1.0",
24
- "@types/node": "12.20.4",
25
- "@types/react-dom": "^17.0.5",
26
- "@types/jest": "^26.0.0",
27
- "@types/testing-library__jest-dom": "5.9.5"
21
+ "@types/jest": "^29.2.2",
22
+ "@types/testing-library__jest-dom": "^5.9.5",
23
+ "@teambit/harmony.envs.core-aspect-env": "0.0.13"
28
24
  },
29
25
  "peerDependencies": {
30
- "@teambit/legacy": "1.0.623",
31
- "react": "^16.8.0 || ^17.0.0",
32
- "react-dom": "^16.8.0 || ^17.0.0"
26
+ "react": "^17.0.0 || ^18.0.0",
27
+ "@types/react": "^18.2.12",
28
+ "@teambit/legacy": "1.0.624"
33
29
  },
34
30
  "license": "Apache-2.0",
35
31
  "optionalDependencies": {},
@@ -43,7 +39,7 @@
43
39
  },
44
40
  "private": false,
45
41
  "engines": {
46
- "node": ">=12.22.0"
42
+ "node": ">=16.0.0"
47
43
  },
48
44
  "repository": {
49
45
  "type": "git",
@@ -52,12 +48,9 @@
52
48
  "keywords": [
53
49
  "bit",
54
50
  "bit-aspect",
51
+ "bit-core-aspect",
55
52
  "components",
56
53
  "collaboration",
57
- "web",
58
- "react",
59
- "react-components",
60
- "angular",
61
- "angular-components"
54
+ "web"
62
55
  ]
63
56
  }
@@ -0,0 +1,7 @@
1
+ import { Aspect } from '@teambit/harmony';
2
+
3
+ export const PanelUiAspect = Aspect.create({
4
+ id: 'teambit.ui-foundation/panels',
5
+ dependencies: [],
6
+ defaultConfig: {},
7
+ });
@@ -0,0 +1,14 @@
1
+ import { MainRuntime } from '@teambit/cli';
2
+
3
+ import { PanelUiAspect } from './panel-ui.aspect';
4
+
5
+ export class PanelUIMain {
6
+ static runtime = MainRuntime;
7
+ static dependencies = [];
8
+
9
+ static async provider() {
10
+ return new PanelUIMain();
11
+ }
12
+ }
13
+
14
+ PanelUiAspect.addRuntime(PanelUIMain);
package/tsconfig.json CHANGED
@@ -1,38 +1,33 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "lib": [
4
- "es2019",
5
- "DOM",
6
- "ES6",
7
- "DOM.Iterable",
8
- "ScriptHost"
4
+ "esnext",
5
+ "dom",
6
+ "dom.Iterable"
9
7
  ],
10
- "target": "es2015",
11
- "module": "CommonJS",
12
- "jsx": "react",
13
- "allowJs": true,
14
- "composite": true,
8
+ "target": "es2020",
9
+ "module": "es2020",
10
+ "jsx": "react-jsx",
15
11
  "declaration": true,
16
12
  "sourceMap": true,
17
- "skipLibCheck": true,
18
13
  "experimentalDecorators": true,
19
- "outDir": "dist",
14
+ "skipLibCheck": true,
20
15
  "moduleResolution": "node",
21
16
  "esModuleInterop": true,
22
- "rootDir": ".",
23
17
  "resolveJsonModule": true,
24
- "emitDeclarationOnly": true,
25
- "emitDecoratorMetadata": true,
26
- "allowSyntheticDefaultImports": true,
27
- "strictPropertyInitialization": false,
28
- "strict": true,
29
- "noImplicitAny": false,
30
- "preserveConstEnums": true
18
+ "allowJs": true,
19
+ "outDir": "dist",
20
+ "emitDeclarationOnly": true
31
21
  },
32
22
  "exclude": [
23
+ "artifacts",
24
+ "public",
33
25
  "dist",
26
+ "node_modules",
27
+ "package.json",
34
28
  "esm.mjs",
35
- "package.json"
29
+ "**/*.cjs",
30
+ "./dist"
36
31
  ],
37
32
  "include": [
38
33
  "**/*",
package/types/asset.d.ts CHANGED
@@ -5,12 +5,12 @@ declare module '*.png' {
5
5
  declare module '*.svg' {
6
6
  import type { FunctionComponent, SVGProps } from 'react';
7
7
 
8
- export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
8
+ export const ReactComponent: FunctionComponent<
9
+ SVGProps<SVGSVGElement> & { title?: string }
10
+ >;
9
11
  const src: string;
10
12
  export default src;
11
13
  }
12
-
13
- // @TODO Gilad
14
14
  declare module '*.jpg' {
15
15
  const value: any;
16
16
  export = value;
@@ -27,3 +27,15 @@ declare module '*.bmp' {
27
27
  const value: any;
28
28
  export = value;
29
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
+ }