Socket
Socket
Sign inDemoInstall

json-react-layouts-data-loader

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-react-layouts-data-loader - npm Package Compare versions

Comparing version 4.0.0-beta.1 to 4.0.0-beta.2

8

CHANGELOG.md
# json-react-layouts-data-loader
## 4.0.0-beta.2
### Patch Changes
- 1207d38: Simplified types further
- Updated dependencies [1207d38]
- json-react-layouts@3.0.0-beta.2
## 4.0.0-beta.1

@@ -4,0 +12,0 @@

4

dist/cjs/DataLoading.d.ts

@@ -6,3 +6,3 @@ import { LayoutApi } from 'json-react-layouts';

}) => Promise<TData>;
export interface DataDefinition<DataLoadArguments extends {}, TData, Services extends {}, AdditionalParams extends {} = {}> {
export interface DataDefinition<DataLoadArguments extends {}, TData, Services extends {}, AdditionalParams extends {}> {
/** Custom React Hook to provide additional dynamic parameters to the data loader */

@@ -22,5 +22,5 @@ useRuntimeParams?: (dataDefinitionArgs: DataLoadArguments, services: Services) => AdditionalParams;

export interface LoadArguments<Services extends object> {
dataDefinition: DataDefinition<any, any, Services>;
dataDefinition: DataDefinition<any, any, Services, any>;
dataDefinitionArgs: any;
layout: LayoutApi<any, any, any, any, Services>;
}
import { LayoutApi } from 'json-react-layouts';
import { DataDefinition } from './DataLoading';
export declare function getComponentDataArgs<Services extends {}>(layout: LayoutApi<any, any, any, any, Services>, componentType: string): DataDefinition<any, any, Services> | undefined;
export declare function getComponentDataArgs<Services extends {}>(layout: LayoutApi<any, any, any, any, Services>, componentType: string): DataDefinition<any, any, Services, any> | undefined;

@@ -6,3 +6,3 @@ import { LayoutApi } from 'json-react-layouts';

}) => Promise<TData>;
export interface DataDefinition<DataLoadArguments extends {}, TData, Services extends {}, AdditionalParams extends {} = {}> {
export interface DataDefinition<DataLoadArguments extends {}, TData, Services extends {}, AdditionalParams extends {}> {
/** Custom React Hook to provide additional dynamic parameters to the data loader */

@@ -22,5 +22,5 @@ useRuntimeParams?: (dataDefinitionArgs: DataLoadArguments, services: Services) => AdditionalParams;

export interface LoadArguments<Services extends object> {
dataDefinition: DataDefinition<any, any, Services>;
dataDefinition: DataDefinition<any, any, Services, any>;
dataDefinitionArgs: any;
layout: LayoutApi<any, any, any, any, Services>;
}
import { LayoutApi } from 'json-react-layouts';
import { DataDefinition } from './DataLoading';
export declare function getComponentDataArgs<Services extends {}>(layout: LayoutApi<any, any, any, any, Services>, componentType: string): DataDefinition<any, any, Services> | undefined;
export declare function getComponentDataArgs<Services extends {}>(layout: LayoutApi<any, any, any, any, Services>, componentType: string): DataDefinition<any, any, Services, any> | undefined;
{
"name": "json-react-layouts-data-loader",
"version": "4.0.0-beta.1",
"version": "4.0.0-beta.2",
"repository": "github:sevenwestmedia-labs/json-react-layouts",

@@ -11,3 +11,3 @@ "author": "Seven West Media WA",

"dependencies": {
"json-react-layouts": "^3.0.0-beta.1"
"json-react-layouts": "^3.0.0-beta.2"
},

@@ -14,0 +14,0 @@ "peerDependencies": {

@@ -13,3 +13,3 @@ import { LayoutApi } from 'json-react-layouts'

Services extends {},
AdditionalParams extends {} = {}
AdditionalParams extends {}
> {

@@ -30,5 +30,5 @@ /** Custom React Hook to provide additional dynamic parameters to the data loader */

export interface LoadArguments<Services extends object> {
dataDefinition: DataDefinition<any, any, Services>
dataDefinition: DataDefinition<any, any, Services, any>
dataDefinitionArgs: any
layout: LayoutApi<any, any, any, any, Services>
}

@@ -7,3 +7,3 @@ import { LayoutApi } from 'json-react-layouts'

componentType: string,
): DataDefinition<any, any, Services> | undefined {
): DataDefinition<any, any, Services, any> | undefined {
const componentDataDefinition = layout.componentRegistrations.get(componentType)

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

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