@onexapis/cli 1.1.27 → 1.1.28
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/dist/preview/preview-app.tsx +10 -1
- package/package.json +1 -1
|
@@ -13,7 +13,6 @@ import * as coreContexts from "@onexapis/core/contexts";
|
|
|
13
13
|
import * as coreComponents from "@onexapis/core/components";
|
|
14
14
|
import * as coreRegistry from "@onexapis/core/registry";
|
|
15
15
|
import * as coreCommerce from "@onexapis/core/commerce";
|
|
16
|
-
import * as coreHooks from "@onexapis/core/hooks";
|
|
17
16
|
import * as coreCommerceHooks from "@onexapis/core/commerce/hooks";
|
|
18
17
|
import * as coreAuth from "@onexapis/core/auth";
|
|
19
18
|
import * as coreCart from "@onexapis/core/cart";
|
|
@@ -26,6 +25,16 @@ import * as coreTypes from "@onexapis/core/types";
|
|
|
26
25
|
import { CartProvider } from "@onexapis/core/contexts";
|
|
27
26
|
import { LocaleProvider } from "@onexapis/core/contexts";
|
|
28
27
|
|
|
28
|
+
// Compose @onexapis/core/hooks from published subpaths
|
|
29
|
+
// (./hooks is not published in @onexapis/core yet, but themes import from it)
|
|
30
|
+
const coreHooks = {
|
|
31
|
+
...coreCommerceHooks,
|
|
32
|
+
...(coreCart as any),
|
|
33
|
+
...(coreAuth as any),
|
|
34
|
+
...(coreOrders as any),
|
|
35
|
+
...(coreContexts as any),
|
|
36
|
+
};
|
|
37
|
+
|
|
29
38
|
// Set React globals
|
|
30
39
|
(globalThis as any).__ONEX_REACT__ = React;
|
|
31
40
|
(globalThis as any).__ONEX_REACT_DOM__ = { createRoot };
|