@teambit/ui 1.0.228 → 1.0.229
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_ui_foundation_ui-preview.js +1 -1
- package/artifacts/schema.json +505 -133
- package/artifacts/ui-bundle/scope/public/bit/index.html +1 -1
- package/artifacts/ui-bundle/scope/public/bit/service-worker.js +1 -1
- package/artifacts/ui-bundle/scope/public/bit/ssr/service-worker.js.map +1 -1
- package/dist/bundle-ui.task.d.ts +28 -0
- package/dist/events/index.d.ts +1 -0
- package/dist/events/ui-server-started-event.d.ts +16 -0
- package/dist/exceptions/index.d.ts +2 -0
- package/dist/exceptions/unknown-build-error.d.ts +3 -0
- package/dist/exceptions/unknown-ui.d.ts +6 -0
- package/dist/index.d.ts +23 -0
- package/dist/{preview-1712805335812.js → preview-1712822929999.js} +2 -2
- package/dist/ssr-middleware/index.d.ts +1 -0
- package/dist/ssr-middleware/ssr-middleware.d.ts +10 -0
- package/dist/start-plugin.d.ts +17 -0
- package/dist/start.cmd.d.ts +37 -0
- package/dist/ui/client-context.d.ts +4 -0
- package/dist/ui-build.cmd.d.ts +20 -0
- package/dist/ui-root.d.ts +48 -0
- package/dist/ui-root.ui.d.ts +5 -0
- package/dist/ui-server.d.ts +72 -0
- package/dist/ui.aspect.d.ts +4 -0
- package/dist/ui.cli.rt.d.ts +0 -0
- package/dist/ui.composition.d.ts +1 -0
- package/dist/ui.main.runtime.d.ts +260 -0
- package/dist/ui.runtime.d.ts +0 -0
- package/dist/ui.ui.runtime.d.ts +59 -0
- package/dist/webpack/html.d.ts +2 -0
- package/dist/webpack/postcss.config.d.ts +4 -0
- package/dist/webpack/webpack.base.config.d.ts +2 -0
- package/dist/webpack/webpack.browser.config.d.ts +2 -0
- package/dist/webpack/webpack.dev.config.d.ts +2 -0
- package/dist/webpack/webpack.ssr.config.d.ts +2 -0
- package/package.json +17 -17
- package/tsconfig.json +1 -46
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { GraphqlUI } from '@teambit/graphql';
|
|
2
|
+
import { SlotRegistry } from '@teambit/harmony';
|
|
3
|
+
import type { ReactRouterUI } from '@teambit/react-router';
|
|
4
|
+
import type { SsrSession, RenderPlugin, ContextProps } from '@teambit/react.rendering.ssr';
|
|
5
|
+
import React, { ReactNode, ComponentType } from 'react';
|
|
6
|
+
import { UIRootFactory } from './ui-root.ui';
|
|
7
|
+
type HudSlot = SlotRegistry<ReactNode>;
|
|
8
|
+
type RenderPluginsSlot = SlotRegistry<RenderPlugin<any, any>>;
|
|
9
|
+
type UIRootRegistry = SlotRegistry<UIRootFactory>;
|
|
10
|
+
/**
|
|
11
|
+
* extension
|
|
12
|
+
*/
|
|
13
|
+
export declare class UiUI {
|
|
14
|
+
/**
|
|
15
|
+
* react-router extension.
|
|
16
|
+
*/
|
|
17
|
+
private router;
|
|
18
|
+
/**
|
|
19
|
+
* ui root registry.
|
|
20
|
+
*/
|
|
21
|
+
private uiRootSlot;
|
|
22
|
+
/** slot for overlay ui elements */
|
|
23
|
+
private hudSlot;
|
|
24
|
+
/** hooks into the ssr render process */
|
|
25
|
+
private renderPluginsSlot;
|
|
26
|
+
constructor(
|
|
27
|
+
/**
|
|
28
|
+
* react-router extension.
|
|
29
|
+
*/
|
|
30
|
+
router: ReactRouterUI,
|
|
31
|
+
/**
|
|
32
|
+
* ui root registry.
|
|
33
|
+
*/
|
|
34
|
+
uiRootSlot: UIRootRegistry,
|
|
35
|
+
/** slot for overlay ui elements */
|
|
36
|
+
hudSlot: HudSlot,
|
|
37
|
+
/** hooks into the ssr render process */
|
|
38
|
+
renderPluginsSlot: RenderPluginsSlot);
|
|
39
|
+
/** render and rehydrate client-side */
|
|
40
|
+
render(rootExtension: string): Promise<void>;
|
|
41
|
+
/** render dehydrated server-side */
|
|
42
|
+
renderSsr(rootExtension: string, ssrContent: SsrSession): Promise<string>;
|
|
43
|
+
/** adds elements to the Heads Up Display */
|
|
44
|
+
registerHudItem: (element: ReactNode) => void;
|
|
45
|
+
/**
|
|
46
|
+
* adds global context at the ui root
|
|
47
|
+
* @deprecated replace with `.registerRenderHooks({ reactContext })`.
|
|
48
|
+
*/
|
|
49
|
+
registerContext<T>(context: ComponentType<ContextProps<T>>): void;
|
|
50
|
+
registerRoot(uiRoot: UIRootFactory): void;
|
|
51
|
+
registerRenderHooks<T, Y>(plugin: RenderPlugin<T, Y>): void;
|
|
52
|
+
private getLifecyclePlugins;
|
|
53
|
+
private getRoot;
|
|
54
|
+
static slots: ((registerFn: () => string) => SlotRegistry<React.ReactNode>)[];
|
|
55
|
+
static dependencies: import("@teambit/harmony").Aspect[];
|
|
56
|
+
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
57
|
+
static provider([GraphqlUi, router]: [GraphqlUI, ReactRouterUI], config: any, [uiRootSlot, hudSlot, renderLifecycleSlot]: [UIRootRegistry, HudSlot, RenderPluginsSlot]): Promise<UiUI>;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.229",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/ui-foundation/ui",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.ui-foundation",
|
|
8
8
|
"name": "ui",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.229"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -57,24 +57,24 @@
|
|
|
57
57
|
"@teambit/design.themes.theme-toggler": "0.1.3",
|
|
58
58
|
"@teambit/design.ui.tooltip": "0.0.361",
|
|
59
59
|
"@teambit/ui-foundation.ui.global-loader": "0.0.502",
|
|
60
|
-
"@teambit/builder": "1.0.
|
|
61
|
-
"@teambit/isolator": "1.0.
|
|
62
|
-
"@teambit/logger": "0.0.
|
|
63
|
-
"@teambit/cli": "0.0.
|
|
64
|
-
"@teambit/aspect-loader": "1.0.
|
|
65
|
-
"@teambit/bundler": "1.0.
|
|
66
|
-
"@teambit/component": "1.0.
|
|
67
|
-
"@teambit/express": "0.0.
|
|
68
|
-
"@teambit/graphql": "1.0.
|
|
60
|
+
"@teambit/builder": "1.0.229",
|
|
61
|
+
"@teambit/isolator": "1.0.229",
|
|
62
|
+
"@teambit/logger": "0.0.955",
|
|
63
|
+
"@teambit/cli": "0.0.862",
|
|
64
|
+
"@teambit/aspect-loader": "1.0.229",
|
|
65
|
+
"@teambit/bundler": "1.0.229",
|
|
66
|
+
"@teambit/component": "1.0.229",
|
|
67
|
+
"@teambit/express": "0.0.961",
|
|
68
|
+
"@teambit/graphql": "1.0.229",
|
|
69
69
|
"@teambit/toolbox.network.get-port": "1.0.6",
|
|
70
|
-
"@teambit/aspect": "1.0.
|
|
71
|
-
"@teambit/cache": "0.0.
|
|
70
|
+
"@teambit/aspect": "1.0.229",
|
|
71
|
+
"@teambit/cache": "0.0.955",
|
|
72
72
|
"@teambit/harmony.modules.harmony-root-generator": "0.0.4",
|
|
73
|
-
"@teambit/pubsub": "1.0.
|
|
74
|
-
"@teambit/react-router": "1.0.
|
|
73
|
+
"@teambit/pubsub": "1.0.229",
|
|
74
|
+
"@teambit/react-router": "1.0.229",
|
|
75
75
|
"@teambit/webpack.modules.generate-style-loaders": "1.0.11",
|
|
76
76
|
"@teambit/webpack.modules.style-regexps": "1.0.6",
|
|
77
|
-
"@teambit/webpack": "1.0.
|
|
77
|
+
"@teambit/webpack": "1.0.229"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/react-dev-utils": "9.0.10",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@types/node": "12.20.4",
|
|
88
88
|
"@types/mocha": "9.1.0",
|
|
89
89
|
"chai": "4.3.0",
|
|
90
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
90
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.33"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"@apollo/client": "^3.6.0",
|
package/tsconfig.json
CHANGED
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
24
|
-
"composite": true
|
|
23
|
+
"noImplicitAny": false
|
|
25
24
|
},
|
|
26
25
|
"exclude": [
|
|
27
26
|
"artifacts",
|
|
@@ -36,49 +35,5 @@
|
|
|
36
35
|
"include": [
|
|
37
36
|
"**/*",
|
|
38
37
|
"**/*.json"
|
|
39
|
-
],
|
|
40
|
-
"references": [
|
|
41
|
-
{
|
|
42
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@1.0.228"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_isolator@1.0.228"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.954"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.228"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_bundler@1.0.228"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.228"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_express@0.0.960"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.228"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect@1.0.228"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cache@0.0.954"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_pubsub@1.0.228"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_react-router@1.0.228"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.webpack_webpack@1.0.228"
|
|
82
|
-
}
|
|
83
38
|
]
|
|
84
39
|
}
|