@teambit/component.ui.component-compare.context 0.0.117 → 0.0.119
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/{component-compare-context.tsx → component-compare-context.ts} +7 -6
- package/dist/component-compare-context.d.ts +8 -7
- package/dist/component-compare-context.js.map +1 -1
- package/dist/preview-1733851236714.js +7 -0
- package/package.json +8 -6
- package/types/asset.d.ts +29 -0
- package/types/style.d.ts +42 -0
- package/.bit-capsule-ready +0 -0
- package/dist/tsconfig.json +0 -32
- package/package-tar/teambit-component.ui.component-compare.context-0.0.117.tgz +0 -0
- package/schema.json +0 -646
- package/teambit_component_ui_component_compare_context-component.js +0 -1
- package/teambit_component_ui_component_compare_context-preview.js +0 -1
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { ComponentCompareModel } from '@teambit/component.ui.component-compare.models.component-compare-model';
|
|
2
2
|
import { ComponentCompareState } from '@teambit/component.ui.component-compare.models.component-compare-state';
|
|
3
3
|
import { ComponentCompareHooks } from '@teambit/component.ui.component-compare.models.component-compare-hooks';
|
|
4
|
-
import
|
|
4
|
+
import { createContext, useContext } from 'react';
|
|
5
5
|
|
|
6
6
|
export type StateAndHooks = {
|
|
7
7
|
state?: ComponentCompareState;
|
|
8
8
|
hooks?: ComponentCompareHooks;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
+
export type ViewState = {
|
|
12
|
+
isFullScreen?: boolean;
|
|
13
|
+
hidden?: boolean;
|
|
14
|
+
};
|
|
11
15
|
export type ComponentCompareContextType = ComponentCompareModel &
|
|
12
16
|
StateAndHooks & {
|
|
13
17
|
baseContext?: StateAndHooks;
|
|
14
18
|
compareContext?: StateAndHooks;
|
|
15
|
-
} &
|
|
16
|
-
isFullScreen?: boolean;
|
|
17
|
-
hidden?: boolean;
|
|
18
|
-
};
|
|
19
|
+
} & ViewState;
|
|
19
20
|
|
|
20
|
-
export const ComponentCompareContext
|
|
21
|
+
export const ComponentCompareContext = createContext<ComponentCompareContextType | undefined>(undefined);
|
|
21
22
|
|
|
22
23
|
export const useComponentCompare: () => ComponentCompareContextType | undefined = () => {
|
|
23
24
|
const componentCompareContext = useContext(ComponentCompareContext);
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentCompareModel } from '@teambit/component.ui.component-compare.models.component-compare-model';
|
|
2
3
|
import { ComponentCompareState } from '@teambit/component.ui.component-compare.models.component-compare-state';
|
|
3
4
|
import { ComponentCompareHooks } from '@teambit/component.ui.component-compare.models.component-compare-hooks';
|
|
4
|
-
|
|
5
|
-
export declare type StateAndHooks = {
|
|
5
|
+
export type StateAndHooks = {
|
|
6
6
|
state?: ComponentCompareState;
|
|
7
7
|
hooks?: ComponentCompareHooks;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
10
|
-
baseContext?: StateAndHooks;
|
|
11
|
-
compareContext?: StateAndHooks;
|
|
12
|
-
} & {
|
|
9
|
+
export type ViewState = {
|
|
13
10
|
isFullScreen?: boolean;
|
|
14
11
|
hidden?: boolean;
|
|
15
12
|
};
|
|
16
|
-
export
|
|
13
|
+
export type ComponentCompareContextType = ComponentCompareModel & StateAndHooks & {
|
|
14
|
+
baseContext?: StateAndHooks;
|
|
15
|
+
compareContext?: StateAndHooks;
|
|
16
|
+
} & ViewState;
|
|
17
|
+
export declare const ComponentCompareContext: import("react").Context<ComponentCompareContextType>;
|
|
17
18
|
export declare const useComponentCompare: () => ComponentCompareContextType | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-compare-context.js","sourceRoot":"","sources":["../component-compare-context.
|
|
1
|
+
{"version":3,"file":"component-compare-context.js","sourceRoot":"","sources":["../component-compare-context.ts"],"names":[],"mappings":";;;AAGA,iCAAkD;AAiBrC,QAAA,uBAAuB,GAAG,IAAA,qBAAa,EAA0C,SAAS,CAAC,CAAC;AAElG,MAAM,mBAAmB,GAAkD,GAAG,EAAE;IACrF,MAAM,uBAAuB,GAAG,IAAA,kBAAU,EAAC,+BAAuB,CAAC,CAAC;IACpE,OAAO,uBAAuB,CAAC;AACjC,CAAC,CAAC;AAHW,QAAA,mBAAmB,uBAG9B"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component.ui.component-compare.context",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.119",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/ui/component-compare/context",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "ui/component-compare/context",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.119"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"core-js": "^3.0.0",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"@teambit/component.ui.component-compare.models.component-compare-state": "0.0.7"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@
|
|
19
|
-
"@types/jest": "^26.0.0",
|
|
18
|
+
"@types/react": "^17.0.8",
|
|
20
19
|
"@types/mocha": "9.1.0",
|
|
21
20
|
"@types/node": "12.20.4",
|
|
22
|
-
"@types/react": "^17.0.8",
|
|
23
21
|
"@types/react-dom": "^17.0.5",
|
|
22
|
+
"@types/jest": "^26.0.0",
|
|
23
|
+
"@babel/runtime": "7.20.0",
|
|
24
24
|
"@types/testing-library__jest-dom": "5.9.5"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
|
+
"optionalDependencies": {},
|
|
32
|
+
"peerDependenciesMeta": {},
|
|
31
33
|
"private": false,
|
|
32
34
|
"engines": {
|
|
33
35
|
"node": ">=12.22.0"
|
|
@@ -46,4 +48,4 @@
|
|
|
46
48
|
"angular",
|
|
47
49
|
"angular-components"
|
|
48
50
|
]
|
|
49
|
-
}
|
|
51
|
+
}
|
package/types/asset.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
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<SVGProps<SVGSVGElement> & { title?: string }>;
|
|
9
|
+
const src: string;
|
|
10
|
+
export default src;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// @TODO Gilad
|
|
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
|
+
}
|
package/types/style.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}
|
package/.bit-capsule-ready
DELETED
|
File without changes
|
package/dist/tsconfig.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": [
|
|
4
|
-
"es2019",
|
|
5
|
-
"DOM",
|
|
6
|
-
"ES6",
|
|
7
|
-
"DOM.Iterable"
|
|
8
|
-
],
|
|
9
|
-
"target": "es2015",
|
|
10
|
-
"module": "CommonJS",
|
|
11
|
-
"jsx": "react",
|
|
12
|
-
"allowJs": true,
|
|
13
|
-
"composite": true,
|
|
14
|
-
"declaration": true,
|
|
15
|
-
"sourceMap": true,
|
|
16
|
-
"skipLibCheck": true,
|
|
17
|
-
"experimentalDecorators": true,
|
|
18
|
-
"outDir": "dist",
|
|
19
|
-
"moduleResolution": "node",
|
|
20
|
-
"esModuleInterop": true,
|
|
21
|
-
"rootDir": ".",
|
|
22
|
-
"resolveJsonModule": true
|
|
23
|
-
},
|
|
24
|
-
"exclude": [
|
|
25
|
-
"dist",
|
|
26
|
-
"package.json"
|
|
27
|
-
],
|
|
28
|
-
"include": [
|
|
29
|
-
"**/*",
|
|
30
|
-
"**/*.json"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
Binary file
|
package/schema.json
DELETED
|
@@ -1,646 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"__schema": "APISchema",
|
|
3
|
-
"location": {
|
|
4
|
-
"filePath": "index.ts",
|
|
5
|
-
"line": 1,
|
|
6
|
-
"character": 1
|
|
7
|
-
},
|
|
8
|
-
"module": {
|
|
9
|
-
"__schema": "ModuleSchema",
|
|
10
|
-
"location": {
|
|
11
|
-
"filePath": "index.ts",
|
|
12
|
-
"line": 1,
|
|
13
|
-
"character": 1
|
|
14
|
-
},
|
|
15
|
-
"exports": [
|
|
16
|
-
{
|
|
17
|
-
"__schema": "VariableLikeSchema",
|
|
18
|
-
"location": {
|
|
19
|
-
"filePath": "component-compare-context.tsx",
|
|
20
|
-
"line": 20,
|
|
21
|
-
"character": 14
|
|
22
|
-
},
|
|
23
|
-
"signature": "const ComponentCompareContext: React.Context<ComponentCompareContextType>",
|
|
24
|
-
"name": "ComponentCompareContext",
|
|
25
|
-
"type": {
|
|
26
|
-
"__schema": "TypeRefSchema",
|
|
27
|
-
"location": {
|
|
28
|
-
"filePath": "component-compare-context.tsx",
|
|
29
|
-
"line": 20,
|
|
30
|
-
"character": 39
|
|
31
|
-
},
|
|
32
|
-
"name": "React.Context",
|
|
33
|
-
"typeArgs": [
|
|
34
|
-
{
|
|
35
|
-
"__schema": "TypeUnionSchema",
|
|
36
|
-
"location": {
|
|
37
|
-
"filePath": "component-compare-context.tsx",
|
|
38
|
-
"line": 20,
|
|
39
|
-
"character": 53
|
|
40
|
-
},
|
|
41
|
-
"types": [
|
|
42
|
-
{
|
|
43
|
-
"__schema": "TypeRefSchema",
|
|
44
|
-
"location": {
|
|
45
|
-
"filePath": "component-compare-context.tsx",
|
|
46
|
-
"line": 20,
|
|
47
|
-
"character": 53
|
|
48
|
-
},
|
|
49
|
-
"name": "ComponentCompareContextType"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"__schema": "KeywordTypeSchema",
|
|
53
|
-
"location": {
|
|
54
|
-
"filePath": "component-compare-context.tsx",
|
|
55
|
-
"line": 20,
|
|
56
|
-
"character": 83
|
|
57
|
-
},
|
|
58
|
-
"name": "undefined"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
"isOptional": false,
|
|
65
|
-
"defaultValue": "createContext<ComponentCompareContextType | undefined>(undefined)"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"__schema": "FunctionLikeSchema",
|
|
69
|
-
"location": {
|
|
70
|
-
"filePath": "component-compare-context.tsx",
|
|
71
|
-
"line": 22,
|
|
72
|
-
"character": 14
|
|
73
|
-
},
|
|
74
|
-
"signature": "function(): ComponentCompareContextType",
|
|
75
|
-
"name": "useComponentCompare",
|
|
76
|
-
"params": [],
|
|
77
|
-
"returnType": {
|
|
78
|
-
"__schema": "TypeUnionSchema",
|
|
79
|
-
"location": {
|
|
80
|
-
"filePath": "component-compare-context.tsx",
|
|
81
|
-
"line": 22,
|
|
82
|
-
"character": 41
|
|
83
|
-
},
|
|
84
|
-
"types": [
|
|
85
|
-
{
|
|
86
|
-
"__schema": "TypeRefSchema",
|
|
87
|
-
"location": {
|
|
88
|
-
"filePath": "component-compare-context.tsx",
|
|
89
|
-
"line": 22,
|
|
90
|
-
"character": 41
|
|
91
|
-
},
|
|
92
|
-
"name": "ComponentCompareContextType"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"__schema": "KeywordTypeSchema",
|
|
96
|
-
"location": {
|
|
97
|
-
"filePath": "component-compare-context.tsx",
|
|
98
|
-
"line": 22,
|
|
99
|
-
"character": 71
|
|
100
|
-
},
|
|
101
|
-
"name": "undefined"
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
"modifiers": []
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"__schema": "TypeSchema",
|
|
109
|
-
"location": {
|
|
110
|
-
"filePath": "component-compare-context.tsx",
|
|
111
|
-
"line": 6,
|
|
112
|
-
"character": 1
|
|
113
|
-
},
|
|
114
|
-
"signature": "type StateAndHooks = {\n state?: ComponentCompareState;\n hooks?: ComponentCompareHooks;\n}",
|
|
115
|
-
"name": "StateAndHooks",
|
|
116
|
-
"type": {
|
|
117
|
-
"__schema": "TypeLiteralSchema",
|
|
118
|
-
"location": {
|
|
119
|
-
"filePath": "component-compare-context.tsx",
|
|
120
|
-
"line": 6,
|
|
121
|
-
"character": 29
|
|
122
|
-
},
|
|
123
|
-
"members": [
|
|
124
|
-
{
|
|
125
|
-
"__schema": "VariableLikeSchema",
|
|
126
|
-
"location": {
|
|
127
|
-
"filePath": "component-compare-context.tsx",
|
|
128
|
-
"line": 7,
|
|
129
|
-
"character": 3
|
|
130
|
-
},
|
|
131
|
-
"signature": "(property) state?: Partial<Record<ComponentCompareStateKey, ComponentCompareStateData>>",
|
|
132
|
-
"name": "state",
|
|
133
|
-
"type": {
|
|
134
|
-
"__schema": "TypeRefSchema",
|
|
135
|
-
"location": {
|
|
136
|
-
"filePath": "component-compare-context.tsx",
|
|
137
|
-
"line": 7,
|
|
138
|
-
"character": 11
|
|
139
|
-
},
|
|
140
|
-
"name": "ComponentCompareState",
|
|
141
|
-
"componentId": {
|
|
142
|
-
"scope": "teambit.component",
|
|
143
|
-
"name": "ui/component-compare/models/component-compare-state",
|
|
144
|
-
"version": "0.0.7"
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
"isOptional": true
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"__schema": "VariableLikeSchema",
|
|
151
|
-
"location": {
|
|
152
|
-
"filePath": "component-compare-context.tsx",
|
|
153
|
-
"line": 8,
|
|
154
|
-
"character": 3
|
|
155
|
-
},
|
|
156
|
-
"signature": "(property) hooks?: Partial<Record<ComponentCompareStateKey, ComponentCompareHooksData>>",
|
|
157
|
-
"name": "hooks",
|
|
158
|
-
"type": {
|
|
159
|
-
"__schema": "TypeRefSchema",
|
|
160
|
-
"location": {
|
|
161
|
-
"filePath": "component-compare-context.tsx",
|
|
162
|
-
"line": 8,
|
|
163
|
-
"character": 11
|
|
164
|
-
},
|
|
165
|
-
"name": "ComponentCompareHooks",
|
|
166
|
-
"componentId": {
|
|
167
|
-
"scope": "teambit.component",
|
|
168
|
-
"name": "ui/component-compare/models/component-compare-hooks",
|
|
169
|
-
"version": "0f928c681b4cd5f95eef703a918d92d55f1e6d32"
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"isOptional": true
|
|
173
|
-
}
|
|
174
|
-
]
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"__schema": "TypeSchema",
|
|
179
|
-
"location": {
|
|
180
|
-
"filePath": "component-compare-context.tsx",
|
|
181
|
-
"line": 11,
|
|
182
|
-
"character": 1
|
|
183
|
-
},
|
|
184
|
-
"signature": "type ComponentCompareContextType = ComponentCompareModel & StateAndHooks & {\n baseContext?: StateAndHooks;\n compareContext?: StateAndHooks;\n} & {\n isFullScreen?: boolean;\n hidden?: boolean;\n}",
|
|
185
|
-
"name": "ComponentCompareContextType",
|
|
186
|
-
"type": {
|
|
187
|
-
"__schema": "TypeIntersectionSchema",
|
|
188
|
-
"location": {
|
|
189
|
-
"filePath": "component-compare-context.tsx",
|
|
190
|
-
"line": 11,
|
|
191
|
-
"character": 43
|
|
192
|
-
},
|
|
193
|
-
"types": [
|
|
194
|
-
{
|
|
195
|
-
"__schema": "TypeRefSchema",
|
|
196
|
-
"location": {
|
|
197
|
-
"filePath": "component-compare-context.tsx",
|
|
198
|
-
"line": 11,
|
|
199
|
-
"character": 43
|
|
200
|
-
},
|
|
201
|
-
"name": "ComponentCompareModel",
|
|
202
|
-
"componentId": {
|
|
203
|
-
"scope": "teambit.component",
|
|
204
|
-
"name": "ui/component-compare/models/component-compare-model",
|
|
205
|
-
"version": "0.0.111"
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"__schema": "TypeRefSchema",
|
|
210
|
-
"location": {
|
|
211
|
-
"filePath": "component-compare-context.tsx",
|
|
212
|
-
"line": 12,
|
|
213
|
-
"character": 3
|
|
214
|
-
},
|
|
215
|
-
"name": "StateAndHooks"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"__schema": "TypeLiteralSchema",
|
|
219
|
-
"location": {
|
|
220
|
-
"filePath": "component-compare-context.tsx",
|
|
221
|
-
"line": 12,
|
|
222
|
-
"character": 19
|
|
223
|
-
},
|
|
224
|
-
"members": [
|
|
225
|
-
{
|
|
226
|
-
"__schema": "VariableLikeSchema",
|
|
227
|
-
"location": {
|
|
228
|
-
"filePath": "component-compare-context.tsx",
|
|
229
|
-
"line": 13,
|
|
230
|
-
"character": 5
|
|
231
|
-
},
|
|
232
|
-
"signature": "(property) baseContext?: StateAndHooks",
|
|
233
|
-
"name": "baseContext",
|
|
234
|
-
"type": {
|
|
235
|
-
"__schema": "TypeRefSchema",
|
|
236
|
-
"location": {
|
|
237
|
-
"filePath": "component-compare-context.tsx",
|
|
238
|
-
"line": 13,
|
|
239
|
-
"character": 5
|
|
240
|
-
},
|
|
241
|
-
"name": "StateAndHooks"
|
|
242
|
-
},
|
|
243
|
-
"isOptional": true
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"__schema": "VariableLikeSchema",
|
|
247
|
-
"location": {
|
|
248
|
-
"filePath": "component-compare-context.tsx",
|
|
249
|
-
"line": 14,
|
|
250
|
-
"character": 5
|
|
251
|
-
},
|
|
252
|
-
"signature": "(property) compareContext?: StateAndHooks",
|
|
253
|
-
"name": "compareContext",
|
|
254
|
-
"type": {
|
|
255
|
-
"__schema": "TypeRefSchema",
|
|
256
|
-
"location": {
|
|
257
|
-
"filePath": "component-compare-context.tsx",
|
|
258
|
-
"line": 14,
|
|
259
|
-
"character": 5
|
|
260
|
-
},
|
|
261
|
-
"name": "StateAndHooks"
|
|
262
|
-
},
|
|
263
|
-
"isOptional": true
|
|
264
|
-
}
|
|
265
|
-
]
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"__schema": "TypeLiteralSchema",
|
|
269
|
-
"location": {
|
|
270
|
-
"filePath": "component-compare-context.tsx",
|
|
271
|
-
"line": 15,
|
|
272
|
-
"character": 7
|
|
273
|
-
},
|
|
274
|
-
"members": [
|
|
275
|
-
{
|
|
276
|
-
"__schema": "VariableLikeSchema",
|
|
277
|
-
"location": {
|
|
278
|
-
"filePath": "component-compare-context.tsx",
|
|
279
|
-
"line": 16,
|
|
280
|
-
"character": 5
|
|
281
|
-
},
|
|
282
|
-
"signature": "(property) isFullScreen?: boolean",
|
|
283
|
-
"name": "isFullScreen",
|
|
284
|
-
"type": {
|
|
285
|
-
"__schema": "KeywordTypeSchema",
|
|
286
|
-
"location": {
|
|
287
|
-
"filePath": "component-compare-context.tsx",
|
|
288
|
-
"line": 16,
|
|
289
|
-
"character": 20
|
|
290
|
-
},
|
|
291
|
-
"name": "boolean"
|
|
292
|
-
},
|
|
293
|
-
"isOptional": true
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"__schema": "VariableLikeSchema",
|
|
297
|
-
"location": {
|
|
298
|
-
"filePath": "component-compare-context.tsx",
|
|
299
|
-
"line": 17,
|
|
300
|
-
"character": 5
|
|
301
|
-
},
|
|
302
|
-
"signature": "(property) hidden?: boolean",
|
|
303
|
-
"name": "hidden",
|
|
304
|
-
"type": {
|
|
305
|
-
"__schema": "KeywordTypeSchema",
|
|
306
|
-
"location": {
|
|
307
|
-
"filePath": "component-compare-context.tsx",
|
|
308
|
-
"line": 17,
|
|
309
|
-
"character": 14
|
|
310
|
-
},
|
|
311
|
-
"name": "boolean"
|
|
312
|
-
},
|
|
313
|
-
"isOptional": true
|
|
314
|
-
}
|
|
315
|
-
]
|
|
316
|
-
}
|
|
317
|
-
]
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
],
|
|
321
|
-
"internals": []
|
|
322
|
-
},
|
|
323
|
-
"internals": [
|
|
324
|
-
{
|
|
325
|
-
"__schema": "ModuleSchema",
|
|
326
|
-
"location": {
|
|
327
|
-
"filePath": "component-compare-context.tsx",
|
|
328
|
-
"line": 1,
|
|
329
|
-
"character": 1
|
|
330
|
-
},
|
|
331
|
-
"exports": [
|
|
332
|
-
{
|
|
333
|
-
"__schema": "TypeSchema",
|
|
334
|
-
"location": {
|
|
335
|
-
"filePath": "component-compare-context.tsx",
|
|
336
|
-
"line": 6,
|
|
337
|
-
"character": 1
|
|
338
|
-
},
|
|
339
|
-
"signature": "type StateAndHooks = {\n state?: ComponentCompareState;\n hooks?: ComponentCompareHooks;\n}",
|
|
340
|
-
"name": "StateAndHooks",
|
|
341
|
-
"type": {
|
|
342
|
-
"__schema": "TypeLiteralSchema",
|
|
343
|
-
"location": {
|
|
344
|
-
"filePath": "component-compare-context.tsx",
|
|
345
|
-
"line": 6,
|
|
346
|
-
"character": 29
|
|
347
|
-
},
|
|
348
|
-
"members": [
|
|
349
|
-
{
|
|
350
|
-
"__schema": "VariableLikeSchema",
|
|
351
|
-
"location": {
|
|
352
|
-
"filePath": "component-compare-context.tsx",
|
|
353
|
-
"line": 7,
|
|
354
|
-
"character": 3
|
|
355
|
-
},
|
|
356
|
-
"signature": "(property) state?: Partial<Record<ComponentCompareStateKey, ComponentCompareStateData>>",
|
|
357
|
-
"name": "state",
|
|
358
|
-
"type": {
|
|
359
|
-
"__schema": "TypeRefSchema",
|
|
360
|
-
"location": {
|
|
361
|
-
"filePath": "component-compare-context.tsx",
|
|
362
|
-
"line": 7,
|
|
363
|
-
"character": 11
|
|
364
|
-
},
|
|
365
|
-
"name": "ComponentCompareState",
|
|
366
|
-
"componentId": {
|
|
367
|
-
"scope": "teambit.component",
|
|
368
|
-
"name": "ui/component-compare/models/component-compare-state",
|
|
369
|
-
"version": "0.0.7"
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
"isOptional": true
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
"__schema": "VariableLikeSchema",
|
|
376
|
-
"location": {
|
|
377
|
-
"filePath": "component-compare-context.tsx",
|
|
378
|
-
"line": 8,
|
|
379
|
-
"character": 3
|
|
380
|
-
},
|
|
381
|
-
"signature": "(property) hooks?: Partial<Record<ComponentCompareStateKey, ComponentCompareHooksData>>",
|
|
382
|
-
"name": "hooks",
|
|
383
|
-
"type": {
|
|
384
|
-
"__schema": "TypeRefSchema",
|
|
385
|
-
"location": {
|
|
386
|
-
"filePath": "component-compare-context.tsx",
|
|
387
|
-
"line": 8,
|
|
388
|
-
"character": 11
|
|
389
|
-
},
|
|
390
|
-
"name": "ComponentCompareHooks",
|
|
391
|
-
"componentId": {
|
|
392
|
-
"scope": "teambit.component",
|
|
393
|
-
"name": "ui/component-compare/models/component-compare-hooks",
|
|
394
|
-
"version": "0f928c681b4cd5f95eef703a918d92d55f1e6d32"
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
"isOptional": true
|
|
398
|
-
}
|
|
399
|
-
]
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
"__schema": "TypeSchema",
|
|
404
|
-
"location": {
|
|
405
|
-
"filePath": "component-compare-context.tsx",
|
|
406
|
-
"line": 11,
|
|
407
|
-
"character": 1
|
|
408
|
-
},
|
|
409
|
-
"signature": "type ComponentCompareContextType = ComponentCompareModel & StateAndHooks & {\n baseContext?: StateAndHooks;\n compareContext?: StateAndHooks;\n} & {\n isFullScreen?: boolean;\n hidden?: boolean;\n}",
|
|
410
|
-
"name": "ComponentCompareContextType",
|
|
411
|
-
"type": {
|
|
412
|
-
"__schema": "TypeIntersectionSchema",
|
|
413
|
-
"location": {
|
|
414
|
-
"filePath": "component-compare-context.tsx",
|
|
415
|
-
"line": 11,
|
|
416
|
-
"character": 43
|
|
417
|
-
},
|
|
418
|
-
"types": [
|
|
419
|
-
{
|
|
420
|
-
"__schema": "TypeRefSchema",
|
|
421
|
-
"location": {
|
|
422
|
-
"filePath": "component-compare-context.tsx",
|
|
423
|
-
"line": 11,
|
|
424
|
-
"character": 43
|
|
425
|
-
},
|
|
426
|
-
"name": "ComponentCompareModel",
|
|
427
|
-
"componentId": {
|
|
428
|
-
"scope": "teambit.component",
|
|
429
|
-
"name": "ui/component-compare/models/component-compare-model",
|
|
430
|
-
"version": "0.0.111"
|
|
431
|
-
}
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
"__schema": "TypeRefSchema",
|
|
435
|
-
"location": {
|
|
436
|
-
"filePath": "component-compare-context.tsx",
|
|
437
|
-
"line": 12,
|
|
438
|
-
"character": 3
|
|
439
|
-
},
|
|
440
|
-
"name": "StateAndHooks"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"__schema": "TypeLiteralSchema",
|
|
444
|
-
"location": {
|
|
445
|
-
"filePath": "component-compare-context.tsx",
|
|
446
|
-
"line": 12,
|
|
447
|
-
"character": 19
|
|
448
|
-
},
|
|
449
|
-
"members": [
|
|
450
|
-
{
|
|
451
|
-
"__schema": "VariableLikeSchema",
|
|
452
|
-
"location": {
|
|
453
|
-
"filePath": "component-compare-context.tsx",
|
|
454
|
-
"line": 13,
|
|
455
|
-
"character": 5
|
|
456
|
-
},
|
|
457
|
-
"signature": "(property) baseContext?: StateAndHooks",
|
|
458
|
-
"name": "baseContext",
|
|
459
|
-
"type": {
|
|
460
|
-
"__schema": "TypeRefSchema",
|
|
461
|
-
"location": {
|
|
462
|
-
"filePath": "component-compare-context.tsx",
|
|
463
|
-
"line": 13,
|
|
464
|
-
"character": 5
|
|
465
|
-
},
|
|
466
|
-
"name": "StateAndHooks"
|
|
467
|
-
},
|
|
468
|
-
"isOptional": true
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
"__schema": "VariableLikeSchema",
|
|
472
|
-
"location": {
|
|
473
|
-
"filePath": "component-compare-context.tsx",
|
|
474
|
-
"line": 14,
|
|
475
|
-
"character": 5
|
|
476
|
-
},
|
|
477
|
-
"signature": "(property) compareContext?: StateAndHooks",
|
|
478
|
-
"name": "compareContext",
|
|
479
|
-
"type": {
|
|
480
|
-
"__schema": "TypeRefSchema",
|
|
481
|
-
"location": {
|
|
482
|
-
"filePath": "component-compare-context.tsx",
|
|
483
|
-
"line": 14,
|
|
484
|
-
"character": 5
|
|
485
|
-
},
|
|
486
|
-
"name": "StateAndHooks"
|
|
487
|
-
},
|
|
488
|
-
"isOptional": true
|
|
489
|
-
}
|
|
490
|
-
]
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
"__schema": "TypeLiteralSchema",
|
|
494
|
-
"location": {
|
|
495
|
-
"filePath": "component-compare-context.tsx",
|
|
496
|
-
"line": 15,
|
|
497
|
-
"character": 7
|
|
498
|
-
},
|
|
499
|
-
"members": [
|
|
500
|
-
{
|
|
501
|
-
"__schema": "VariableLikeSchema",
|
|
502
|
-
"location": {
|
|
503
|
-
"filePath": "component-compare-context.tsx",
|
|
504
|
-
"line": 16,
|
|
505
|
-
"character": 5
|
|
506
|
-
},
|
|
507
|
-
"signature": "(property) isFullScreen?: boolean",
|
|
508
|
-
"name": "isFullScreen",
|
|
509
|
-
"type": {
|
|
510
|
-
"__schema": "KeywordTypeSchema",
|
|
511
|
-
"location": {
|
|
512
|
-
"filePath": "component-compare-context.tsx",
|
|
513
|
-
"line": 16,
|
|
514
|
-
"character": 20
|
|
515
|
-
},
|
|
516
|
-
"name": "boolean"
|
|
517
|
-
},
|
|
518
|
-
"isOptional": true
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
"__schema": "VariableLikeSchema",
|
|
522
|
-
"location": {
|
|
523
|
-
"filePath": "component-compare-context.tsx",
|
|
524
|
-
"line": 17,
|
|
525
|
-
"character": 5
|
|
526
|
-
},
|
|
527
|
-
"signature": "(property) hidden?: boolean",
|
|
528
|
-
"name": "hidden",
|
|
529
|
-
"type": {
|
|
530
|
-
"__schema": "KeywordTypeSchema",
|
|
531
|
-
"location": {
|
|
532
|
-
"filePath": "component-compare-context.tsx",
|
|
533
|
-
"line": 17,
|
|
534
|
-
"character": 14
|
|
535
|
-
},
|
|
536
|
-
"name": "boolean"
|
|
537
|
-
},
|
|
538
|
-
"isOptional": true
|
|
539
|
-
}
|
|
540
|
-
]
|
|
541
|
-
}
|
|
542
|
-
]
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"__schema": "VariableLikeSchema",
|
|
547
|
-
"location": {
|
|
548
|
-
"filePath": "component-compare-context.tsx",
|
|
549
|
-
"line": 20,
|
|
550
|
-
"character": 14
|
|
551
|
-
},
|
|
552
|
-
"signature": "const ComponentCompareContext: React.Context<ComponentCompareContextType>",
|
|
553
|
-
"name": "ComponentCompareContext",
|
|
554
|
-
"type": {
|
|
555
|
-
"__schema": "TypeRefSchema",
|
|
556
|
-
"location": {
|
|
557
|
-
"filePath": "component-compare-context.tsx",
|
|
558
|
-
"line": 20,
|
|
559
|
-
"character": 39
|
|
560
|
-
},
|
|
561
|
-
"name": "React.Context",
|
|
562
|
-
"typeArgs": [
|
|
563
|
-
{
|
|
564
|
-
"__schema": "TypeUnionSchema",
|
|
565
|
-
"location": {
|
|
566
|
-
"filePath": "component-compare-context.tsx",
|
|
567
|
-
"line": 20,
|
|
568
|
-
"character": 53
|
|
569
|
-
},
|
|
570
|
-
"types": [
|
|
571
|
-
{
|
|
572
|
-
"__schema": "TypeRefSchema",
|
|
573
|
-
"location": {
|
|
574
|
-
"filePath": "component-compare-context.tsx",
|
|
575
|
-
"line": 20,
|
|
576
|
-
"character": 53
|
|
577
|
-
},
|
|
578
|
-
"name": "ComponentCompareContextType"
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
"__schema": "KeywordTypeSchema",
|
|
582
|
-
"location": {
|
|
583
|
-
"filePath": "component-compare-context.tsx",
|
|
584
|
-
"line": 20,
|
|
585
|
-
"character": 83
|
|
586
|
-
},
|
|
587
|
-
"name": "undefined"
|
|
588
|
-
}
|
|
589
|
-
]
|
|
590
|
-
}
|
|
591
|
-
]
|
|
592
|
-
},
|
|
593
|
-
"isOptional": false,
|
|
594
|
-
"defaultValue": "createContext<ComponentCompareContextType | undefined>(undefined)"
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
"__schema": "FunctionLikeSchema",
|
|
598
|
-
"location": {
|
|
599
|
-
"filePath": "component-compare-context.tsx",
|
|
600
|
-
"line": 22,
|
|
601
|
-
"character": 14
|
|
602
|
-
},
|
|
603
|
-
"signature": "function(): ComponentCompareContextType",
|
|
604
|
-
"name": "useComponentCompare",
|
|
605
|
-
"params": [],
|
|
606
|
-
"returnType": {
|
|
607
|
-
"__schema": "TypeUnionSchema",
|
|
608
|
-
"location": {
|
|
609
|
-
"filePath": "component-compare-context.tsx",
|
|
610
|
-
"line": 22,
|
|
611
|
-
"character": 41
|
|
612
|
-
},
|
|
613
|
-
"types": [
|
|
614
|
-
{
|
|
615
|
-
"__schema": "TypeRefSchema",
|
|
616
|
-
"location": {
|
|
617
|
-
"filePath": "component-compare-context.tsx",
|
|
618
|
-
"line": 22,
|
|
619
|
-
"character": 41
|
|
620
|
-
},
|
|
621
|
-
"name": "ComponentCompareContextType"
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
"__schema": "KeywordTypeSchema",
|
|
625
|
-
"location": {
|
|
626
|
-
"filePath": "component-compare-context.tsx",
|
|
627
|
-
"line": 22,
|
|
628
|
-
"character": 71
|
|
629
|
-
},
|
|
630
|
-
"name": "undefined"
|
|
631
|
-
}
|
|
632
|
-
]
|
|
633
|
-
},
|
|
634
|
-
"modifiers": []
|
|
635
|
-
}
|
|
636
|
-
],
|
|
637
|
-
"internals": []
|
|
638
|
-
}
|
|
639
|
-
],
|
|
640
|
-
"componentId": {
|
|
641
|
-
"scope": "teambit.component",
|
|
642
|
-
"name": "ui/component-compare/context",
|
|
643
|
-
"version": "28f5189c2f4fcfbe05e84342dbd29efbf8a8b52e"
|
|
644
|
-
},
|
|
645
|
-
"taggedModuleExports": []
|
|
646
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(root,factory){typeof exports=="object"&&typeof module=="object"?module.exports=factory():typeof define=="function"&&define.amd?define([],factory):typeof exports=="object"?exports["teambit.component/ui/component-compare/context"]=factory():root["teambit.component/ui/component-compare/context"]=factory()})(self,()=>(()=>{"use strict";var __webpack_modules__={58126:(__unused_webpack_module,exports2,__webpack_require__2)=>{var __bit_component={id:"teambit.component/ui/component-compare/context@28f5189c2f4fcfbe05e84342dbd29efbf8a8b52e",homepage:"https://bit.cloud/teambit/component/ui/component-compare/context",exported:!0};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.useComponentCompare=exports2.ComponentCompareContext=void 0;const react_1=__webpack_require__2(87363);exports2.ComponentCompareContext=(0,react_1.createContext)(void 0);const useComponentCompare=()=>(0,react_1.useContext)(exports2.ComponentCompareContext);useComponentCompare.__bit_component=__bit_component,exports2.useComponentCompare=useComponentCompare},87363:module2=>{module2.exports=React}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(cachedModule!==void 0)return cachedModule.exports;var module2=__webpack_module_cache__[moduleId]={exports:{}};return __webpack_modules__[moduleId](module2,module2.exports,__webpack_require__),module2.exports}__webpack_require__.m=__webpack_modules__,(()=>{var deferred=[];__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(chunkIds){priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority];return}for(var notFulfilled=1/0,i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(priority&!1||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();r!==void 0&&(result=r)}}return result}})(),__webpack_require__.d=(exports2,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports2,key)&&Object.defineProperty(exports2,key,{enumerable:!0,get:definition[key]})},__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.r=exports2=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports2,"__esModule",{value:!0})},(()=>{var installedChunks={809:0};__webpack_require__.O.j=chunkId=>installedChunks[chunkId]===0;var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var[chunkIds,moreModules,runtime]=data,moduleId,chunkId,i=0;if(chunkIds.some(id=>installedChunks[id]!==0)){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.webpackChunk=self.webpackChunk||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})();var __webpack_exports__={};return(()=>{var exports2=__webpack_exports__,__bit_component={id:"teambit.component/ui/component-compare/context@28f5189c2f4fcfbe05e84342dbd29efbf8a8b52e",homepage:"https://bit.cloud/teambit/component/ui/component-compare/context",exported:!0};Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.useComponentCompare=exports2.ComponentCompareContext=void 0;var component_compare_context_1=__webpack_require__(58126);Object.defineProperty(exports2,"ComponentCompareContext",{enumerable:!0,get:function(){return component_compare_context_1.ComponentCompareContext}}),Object.defineProperty(exports2,"useComponentCompare",{enumerable:!0,get:function(){return component_compare_context_1.useComponentCompare}})})(),__webpack_exports__=__webpack_require__.O(__webpack_exports__),__webpack_exports__})());
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(function(root,factory){typeof exports=="object"&&typeof module=="object"?module.exports=factory():typeof define=="function"&&define.amd?define([],factory):typeof exports=="object"?exports["teambit.component/ui/component-compare/context-preview"]=factory():root["teambit.component/ui/component-compare/context-preview"]=factory()})(self,()=>(self.webpackChunk=self.webpackChunk||[]).push([[386],{81411:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{compositions:()=>compositions,compositions_metadata:()=>compositions_metadata,overview:()=>overview});var __bit_component={id:"teambit.component/ui/component-compare/context@28f5189c2f4fcfbe05e84342dbd29efbf8a8b52e",homepage:"https://bit.cloud/teambit/component/ui/component-compare/context",exported:!0};const compositions=[],overview=[],compositions_metadata={compositions:[]}}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId),__webpack_exports__=__webpack_exec__(81411);return __webpack_exports__}]));
|