-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
index.ts
100 lines (92 loc) · 4.05 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/**
* @license
* Copyright Builder.io, Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
*/
//////////////////////////////////////////////////////////////////////////////////////////
// Developer Core API
//////////////////////////////////////////////////////////////////////////////////////////
export {
component,
component$,
onUnmount,
onUnmount$,
onHydrate,
onHydrate$,
onDehydrate,
onDehydrate$,
onResume,
onResume$,
on,
onDocument,
onWindow,
useStyles,
useStyles$,
useScopedStyles,
useScopedStyles$,
} from './component/component.public';
export type { PropsOf, ComponentOptions, OnMountFn } from './component/component.public';
//////////////////////////////////////////////////////////////////////////////////////////
// Developer Event API
//////////////////////////////////////////////////////////////////////////////////////////
export { bubble } from './event/bubble.public';
export { dehydrate } from './object/store.public';
//////////////////////////////////////////////////////////////////////////////////////////
// Internal Runtime
//////////////////////////////////////////////////////////////////////////////////////////
export { $, implicit$FirstArg, qrl, qrlImport } from './import/qrl.public';
export type { QRL } from './import/qrl.public';
export type { Props } from './props/props.public';
export { notifyRender } from './render/notify-render';
//////////////////////////////////////////////////////////////////////////////////////////
// PLATFORM
//////////////////////////////////////////////////////////////////////////////////////////
export { getPlatform, setPlatform } from './platform/platform';
export type { CorePlatform } from './platform/types';
//////////////////////////////////////////////////////////////////////////////////////////
// Watch
//////////////////////////////////////////////////////////////////////////////////////////
export { onWatch$, onWatch } from './watch/watch.public';
export type { Observer } from './watch/watch.public';
//////////////////////////////////////////////////////////////////////////////////////////
// JSX Support
//////////////////////////////////////////////////////////////////////////////////////////
export { Async } from './render/jsx/async.public';
export type { PromiseValue } from './render/jsx/async.public';
//////////////////////////////////////////////////////////////////////////////////////////
// JSX Runtime
//////////////////////////////////////////////////////////////////////////////////////////
export { h } from './render/jsx/factory';
export { Host } from './render/jsx/host.public';
export { Slot } from './render/jsx/slot.public';
export { Fragment, jsx, jsxDEV, jsxs } from './render/jsx/jsx-runtime';
export type {
ComponentChild,
ComponentChildren,
FunctionComponent,
JSXFactory,
JSXNode,
RenderableProps,
} from './render/jsx/types/jsx-node';
export type { QwikDOMAttributes, QwikJSX } from './render/jsx/types/jsx-qwik';
export type { QwikIntrinsicElements } from './render/jsx/types/jsx-qwik-elements';
export { render } from './render/render.public';
//////////////////////////////////////////////////////////////////////////////////////////
// use API
//////////////////////////////////////////////////////////////////////////////////////////
export { useHostElement } from './use/use-host-element.public';
export { useDocument } from './use/use-document.public';
export { useEvent } from './use/use-event.public';
export { useLexicalScope } from './use/use-lexical-scope.public';
export { createStore } from './use/use-store.public';
export { useTransient } from './use/use-transient.public';
//////////////////////////////////////////////////////////////////////////////////////////
// Developer Low-Level API
//////////////////////////////////////////////////////////////////////////////////////////
export type { ValueOrPromise } from './util/types';
/**
* @alpha
*/
export const version = (globalThis as any).QWIK_VERSION as string;