@agnos-ui/react-headless 0.7.1 → 0.8.0-next.1
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/config.js +2 -2
- package/generated/index.d.ts +1 -0
- package/generated/utils/func.cjs +9 -0
- package/generated/utils/func.d.ts +1 -0
- package/generated/utils/func.js +1 -0
- package/generated/utils/stores.js +1 -1
- package/generated/utils/widget.js +1 -1
- package/index.cjs +7 -0
- package/index.js +3 -2
- package/package.json +2 -2
- package/{stores-DtfLvXAE.js → stores-DZalyTTa.js} +1 -1
- package/{widget-6VfcHB3W.js → widget-BP6z-zfB.js} +1 -1
package/config.js
CHANGED
|
@@ -3,8 +3,8 @@ import { createWidgetsConfig } from "@agnos-ui/core/config";
|
|
|
3
3
|
export * from "@agnos-ui/core/config";
|
|
4
4
|
import { computed } from "@amadeus-it-group/tansu";
|
|
5
5
|
import { createContext, useContext, useMemo } from "react";
|
|
6
|
-
import { u as useWidget } from "./widget-
|
|
7
|
-
import { b as usePropsAsStore } from "./stores-
|
|
6
|
+
import { u as useWidget } from "./widget-BP6z-zfB.js";
|
|
7
|
+
import { b as usePropsAsStore } from "./stores-DZalyTTa.js";
|
|
8
8
|
const widgetsConfigFactory = (WidgetsConfigContext2 = createContext(void 0)) => {
|
|
9
9
|
const useWidgetContext2 = (widgetName, defaultConfig) => {
|
|
10
10
|
const widgetsConfig = useContext(WidgetsConfigContext2);
|
package/generated/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './services/transitions/collapse';
|
|
|
14
14
|
export * from './services/transitions/baseTransitions';
|
|
15
15
|
export * from './utils/writables';
|
|
16
16
|
export * from './utils/stores';
|
|
17
|
+
export * from './utils/func';
|
|
17
18
|
export * from './utils/directive';
|
|
18
19
|
export * from './types';
|
|
19
20
|
export * from './config';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const func = require("@agnos-ui/core/utils/func");
|
|
4
|
+
Object.keys(func).forEach((k) => {
|
|
5
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: () => func[k]
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@agnos-ui/core/utils/func';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@agnos-ui/core/utils/func";
|
package/index.cjs
CHANGED
|
@@ -17,6 +17,7 @@ const baseTransitions = require("@agnos-ui/core/services/transitions/baseTransit
|
|
|
17
17
|
const writables = require("@agnos-ui/core/utils/writables");
|
|
18
18
|
const stores$1 = require("@agnos-ui/core/utils/stores");
|
|
19
19
|
const stores = require("./stores-DD819q-h.cjs");
|
|
20
|
+
const func = require("@agnos-ui/core/utils/func");
|
|
20
21
|
const directive$1 = require("@agnos-ui/core/utils/directive");
|
|
21
22
|
const directive = require("./directive-3diaW3tS.cjs");
|
|
22
23
|
const types = require("@agnos-ui/core/types");
|
|
@@ -146,6 +147,12 @@ Object.keys(stores$1).forEach((k) => {
|
|
|
146
147
|
get: () => stores$1[k]
|
|
147
148
|
});
|
|
148
149
|
});
|
|
150
|
+
Object.keys(func).forEach((k) => {
|
|
151
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: () => func[k]
|
|
154
|
+
});
|
|
155
|
+
});
|
|
149
156
|
Object.keys(directive$1).forEach((k) => {
|
|
150
157
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
151
158
|
enumerable: true,
|
package/index.js
CHANGED
|
@@ -14,13 +14,14 @@ export * from "@agnos-ui/core/services/transitions/collapse";
|
|
|
14
14
|
export * from "@agnos-ui/core/services/transitions/baseTransitions";
|
|
15
15
|
export * from "@agnos-ui/core/utils/writables";
|
|
16
16
|
export * from "@agnos-ui/core/utils/stores";
|
|
17
|
-
import { u, a, b } from "./stores-
|
|
17
|
+
import { u, a, b } from "./stores-DZalyTTa.js";
|
|
18
|
+
export * from "@agnos-ui/core/utils/func";
|
|
18
19
|
export * from "@agnos-ui/core/utils/directive";
|
|
19
20
|
import { d, s, u as u2, a as a2 } from "./directive-CEErjM5c.js";
|
|
20
21
|
export * from "@agnos-ui/core/types";
|
|
21
22
|
export * from "@agnos-ui/core/config";
|
|
22
23
|
import { WidgetsConfigContext, WidgetsDefaultConfig, useWidgetContext, useWidgetWithConfig, widgetsConfigFactory } from "./config.js";
|
|
23
|
-
import { u as u3 } from "./widget-
|
|
24
|
+
import { u as u3 } from "./widget-BP6z-zfB.js";
|
|
24
25
|
import { P } from "./portal-CX8X69NK.js";
|
|
25
26
|
import { Slot } from "./slot.js";
|
|
26
27
|
export * from "@agnos-ui/core/components/tree";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agnos-ui/react-headless",
|
|
3
3
|
"description": "Headless component library for React.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0-next.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"module": "./index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@agnos-ui/core": "0.
|
|
52
|
+
"@agnos-ui/core": "0.8.0-next.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@amadeus-it-group/tansu": "^2.0.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { findChangedProperties } from "@agnos-ui/core/utils/stores";
|
|
2
|
-
import {
|
|
2
|
+
import { writable, asReadable, computed } from "@amadeus-it-group/tansu";
|
|
3
3
|
import { useState, useMemo, useEffect, useRef } from "react";
|
|
4
4
|
let queue;
|
|
5
5
|
const processQueue = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findChangedProperties } from "@agnos-ui/core/utils/stores";
|
|
2
2
|
import { useMemo, useRef } from "react";
|
|
3
|
-
import { a as useObservablesProxy } from "./stores-
|
|
3
|
+
import { a as useObservablesProxy } from "./stores-DZalyTTa.js";
|
|
4
4
|
function useWidget(createWidget, props = {}, propsConfig) {
|
|
5
5
|
const coreWidget = useMemo(() => createWidget({ ...propsConfig, props: { ...propsConfig == null ? void 0 : propsConfig.props, ...props } }), []);
|
|
6
6
|
const previousProps = useRef(props);
|