Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@agnos-ui/react-headless

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agnos-ui/react-headless - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0-next.0

generated/components/accordion/index.cjs

12

config.d.ts
import type { Widget, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/core/types';
import { type WidgetsConfigStore, type WidgetsConfig as CoreWidgetsConfig, type Partial2Levels } from '@agnos-ui/core/config';
import { type WidgetsConfigStore, type WidgetsConfig, type Partial2Levels } from '@agnos-ui/core/config';
import type { ReactNode } from 'react';
import type { AdaptPropsSlots } from './types';
export * from '@agnos-ui/core/config';
export type WidgetsConfig = {
[WidgetName in keyof CoreWidgetsConfig]: AdaptPropsSlots<CoreWidgetsConfig[WidgetName]>;
};
type DefaultConfigInput<Config> = Partial2Levels<Config> & {

@@ -21,5 +17,3 @@ adaptParentConfig?: (config: Partial2Levels<Config>) => Partial2Levels<Config>;

*/
export declare const widgetsConfigFactory: <Config extends {
[widgetName: string]: object;
} = WidgetsConfig>(widgetsConfigContext?: import("react").Context<WidgetsConfigStore<Config> | undefined>) => {
export declare const widgetsConfigFactory: <Config extends Record<string, object> = WidgetsConfig>(widgetsConfigContext?: import("react").Context<WidgetsConfigStore<Config> | undefined>) => {
/**

@@ -33,2 +27,2 @@ * React context which can be used to provide or consume the widgets default configuration store.

};
export declare const widgetsConfigContext: import("react").Context<WidgetsConfigStore<WidgetsConfig> | undefined>, WidgetsDefaultConfig: ({ children, adaptParentConfig, ...props }: DefaultConfigInput<WidgetsConfig>) => import("react/jsx-runtime").JSX.Element, useWidgetContext: <Props extends object>(widgetName: keyof CoreWidgetsConfig | null, defaultConfig?: Partial<Props> | undefined) => import("@amadeus-it-group/tansu").ReadableSignal<Partial<Props>>, useWidgetWithConfig: <W extends Widget<object, object, object, object, object>>(factory: WidgetFactory<W>, props: Partial<WidgetProps<W>> | undefined, widgetName: keyof CoreWidgetsConfig | null, defaultProps?: Partial<WidgetProps<W>> | undefined) => [WidgetState<W>, W];
export declare const widgetsConfigContext: import("react").Context<WidgetsConfigStore<WidgetsConfig> | undefined>, WidgetsDefaultConfig: ({ children, adaptParentConfig, ...props }: DefaultConfigInput<WidgetsConfig>) => import("react/jsx-runtime").JSX.Element, useWidgetContext: <Props extends object>(widgetName: keyof WidgetsConfig | null, defaultConfig?: Partial<Props> | undefined) => import("@amadeus-it-group/tansu").ReadableSignal<Partial<Props>>, useWidgetWithConfig: <W extends Widget<object, object, object, object, object>>(factory: WidgetFactory<W>, props: Partial<WidgetProps<W>> | undefined, widgetName: keyof WidgetsConfig | null, defaultProps?: Partial<WidgetProps<W>> | undefined) => [WidgetState<W>, W];

@@ -11,5 +11,2 @@ export * from './services/siblingsInert';

export * from './services/extendWidget';
export * from './utils/writables';
export * from './utils/stores';
export * from './utils/directive';
export * from './services/transitions/simpleClassTransition';

@@ -19,2 +16,5 @@ export * from './services/transitions/cssTransitions';

export * from './services/transitions/baseTransitions';
export * from './utils/writables';
export * from './utils/stores';
export * from './utils/directive';
export * from './types';

@@ -25,1 +25,10 @@ export * from './config';

export * from './slot';
export * from './components/toast/index';
export * from './components/slider/index';
export * from './components/select/index';
export * from './components/rating/index';
export * from './components/progressbar/index';
export * from './components/pagination/index';
export * from './components/modal/index';
export * from './components/alert/index';
export * from './components/accordion/index';

@@ -1,10 +0,1 @@

export * from './components/accordion';
export * from './components/alert';
export * from './components/modal';
export * from './components/pagination';
export * from './components/progressbar';
export * from './components/rating';
export * from './components/select';
export * from './components/slider';
export * from './components/toast';
export * from './generated';

@@ -1,10 +0,1 @@

export * from "@agnos-ui/core/components/accordion";
export * from "@agnos-ui/core/components/alert";
export * from "@agnos-ui/core/components/modal";
export * from "@agnos-ui/core/components/pagination";
export * from "@agnos-ui/core/components/progressbar";
export * from "@agnos-ui/core/components/rating";
export * from "@agnos-ui/core/components/select";
export * from "@agnos-ui/core/components/slider";
export * from "@agnos-ui/core/components/toast";
export * from "@agnos-ui/core/services/siblingsInert";

@@ -20,2 +11,6 @@ export * from "@agnos-ui/core/services/resizeObserver";

export * from "@agnos-ui/core/services/extendWidget";
export * from "@agnos-ui/core/services/transitions/simpleClassTransition";
export * from "@agnos-ui/core/services/transitions/cssTransitions";
export * from "@agnos-ui/core/services/transitions/collapse";
export * from "@agnos-ui/core/services/transitions/baseTransitions";
export * from "@agnos-ui/core/utils/writables";

@@ -26,6 +21,2 @@ export * from "@agnos-ui/core/utils/stores";

import { d, s, u as u2, a as a2 } from "./directive-Kqp31pwt.js";
export * from "@agnos-ui/core/services/transitions/simpleClassTransition";
export * from "@agnos-ui/core/services/transitions/cssTransitions";
export * from "@agnos-ui/core/services/transitions/collapse";
export * from "@agnos-ui/core/services/transitions/baseTransitions";
export * from "@agnos-ui/core/types";

@@ -37,2 +28,11 @@ export * from "@agnos-ui/core/config";

import { Slot } from "./slot.js";
export * from "@agnos-ui/core/components/toast";
export * from "@agnos-ui/core/components/slider";
export * from "@agnos-ui/core/components/select";
export * from "@agnos-ui/core/components/rating";
export * from "@agnos-ui/core/components/progressbar";
export * from "@agnos-ui/core/components/pagination";
export * from "@agnos-ui/core/components/modal";
export * from "@agnos-ui/core/components/alert";
export * from "@agnos-ui/core/components/accordion";
export {

@@ -39,0 +39,0 @@ P as Portal,

{
"name": "@agnos-ui/react-headless",
"description": "Headless widget library for React.",
"version": "0.3.1",
"version": "0.4.0-next.0",
"type": "module",

@@ -16,5 +16,5 @@ "main": "./index.cjs",

"./components/*": {
"types": "./components/*/index.d.ts",
"require": "./components/*/index.cjs",
"default": "./components/*/index.js"
"types": "./generated/components/*/index.d.ts",
"require": "./generated/components/*/index.cjs",
"default": "./generated/components/*/index.js"
},

@@ -53,10 +53,10 @@ "./config": {

"dependencies": {
"@agnos-ui/core": "0.3.1",
"@agnos-ui/core": "0.4.0-next.0",
"classnames": "^2.5.1"
},
"peerDependencies": {
"@amadeus-it-group/tansu": "*",
"esm-env": "*",
"react": "*",
"react-dom": "*"
"@amadeus-it-group/tansu": "^1.0.0",
"esm-env": "^1.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},

@@ -63,0 +63,0 @@ "sideEffects": false,

/// <reference types="react" />
export * from '@agnos-ui/core/types';
import type { SlotContent as CoreSlotContent, Widget, WidgetFactory, WidgetProps, WidgetSlotContext, WidgetState } from '@agnos-ui/core/types';
import type { SlotContent as CoreSlotContent } from '@agnos-ui/core/types';
export type SlotContent<Props extends object = object> = CoreSlotContent<Props> | ((props: Props) => React.ReactNode) | React.ComponentType<Props> | React.ReactNode;
export type AdaptSlotContentProps<Props extends Record<string, any>> = Props extends WidgetSlotContext<infer U> ? WidgetSlotContext<AdaptWidgetSlots<U>> & AdaptPropsSlots<Omit<Props, keyof WidgetSlotContext<any>>> : AdaptPropsSlots<Props>;
export type AdaptPropsSlots<Props> = Omit<Props, `slot${string}`> & {
[K in keyof Props & `slot${string}`]: Props[K] extends CoreSlotContent<infer U> ? SlotContent<AdaptSlotContentProps<U>> : Props[K];
};
export type AdaptWidgetFactories<T> = {
[K in keyof T]: T[K] extends WidgetFactory<infer U> ? WidgetFactory<AdaptWidgetSlots<U>> : T[K];
};
export type AdaptWidgetSlots<W extends Widget> = Widget<AdaptPropsSlots<WidgetProps<W>>, AdaptPropsSlots<WidgetState<W>>, AdaptWidgetFactories<W['api']>, W['actions'], W['directives']>;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc