New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mui/toolpad-core

Package Overview
Dependencies
Maintainers
3
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mui/toolpad-core - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

dist/chunk-ATKRQQ5J.js

4

dist/browser.js

@@ -6,5 +6,5 @@ import {

isToolpadComponent
} from "./chunk-5Q5R5ZAP.js";
} from "./chunk-B5MBTYEM.js";
import "./chunk-XUX337RN.js";
import "./chunk-LN573PQ2.js";
import "./chunk-ATKRQQ5J.js";
export {

@@ -11,0 +11,0 @@ createComponent,

@@ -5,7 +5,7 @@ import {

useComponents
} from "./chunk-MYWWLFU7.js";
} from "./chunk-KFEGYWUM.js";
import "./chunk-3RPQOZJA.js";
import "./chunk-5Q5R5ZAP.js";
import "./chunk-B5MBTYEM.js";
import "./chunk-XUX337RN.js";
import "./chunk-LN573PQ2.js";
import "./chunk-ATKRQQ5J.js";
export {

@@ -12,0 +12,0 @@ ComponentsContextProvider,

export declare const RUNTIME_PROP_NODE_ID = "__toolpadNodeId";
export declare const RUNTIME_PROP_SLOTS = "__toolpadSlots";
export declare const TOOLPAD_COMPONENT: unique symbol;
export declare const TOOLPAD_QUERY: unique symbol;
export declare const TOOLPAD_FUNCTION: unique symbol;
export declare const TOOLPAD_COMPONENT_MODE_PROPERTY = "ToolpadComponentMode";

@@ -6,0 +6,0 @@ export declare const IMAGE_EXTENSIONS: string[];

@@ -8,4 +8,4 @@ import {

TOOLPAD_COMPONENT_MODE_PROPERTY,
TOOLPAD_QUERY
} from "./chunk-LN573PQ2.js";
TOOLPAD_FUNCTION
} from "./chunk-ATKRQQ5J.js";
export {

@@ -18,3 +18,3 @@ DEFAULT_LOCAL_SCOPE_PARAMS,

TOOLPAD_COMPONENT_MODE_PROPERTY,
TOOLPAD_QUERY
TOOLPAD_FUNCTION
};

@@ -6,5 +6,5 @@ import {

isToolpadComponent
} from "./chunk-5Q5R5ZAP.js";
} from "./chunk-B5MBTYEM.js";
import "./chunk-XUX337RN.js";
import "./chunk-LN573PQ2.js";
import "./chunk-ATKRQQ5J.js";
export {

@@ -11,0 +11,0 @@ createToolpadComponentThatThrows,

@@ -1,36 +0,7 @@

import { TOOLPAD_QUERY } from './constants.js';
import { PrimitiveValueType } from './types.js';
interface QueryParameterTypeLookup {
number: number;
string: string;
boolean: boolean;
array: unknown[];
object: Record<string, unknown>;
}
export interface QueryParameterConfig<P, K extends keyof P> {
typeDef: PrimitiveValueType;
defaultValue?: P[K];
}
export interface CreateQueryConfig<P> {
parameters: {
[K in keyof P]: QueryParameterConfig<P, K>;
};
}
type CreateQueryConfigParameters<C extends CreateQueryConfig<CreateQueryConfigParameters<C>>> = QueryResolverParams<C>['parameters'];
export interface QueryResolverParams<C extends CreateQueryConfig<CreateQueryConfigParameters<C>>> {
parameters: {
[K in keyof C['parameters']]: QueryParameterTypeLookup[C['parameters'][K]['typeDef']['type']];
};
}
export interface QueryResolver<C extends CreateQueryConfig<CreateQueryConfigParameters<C>>> {
(params: QueryResolverParams<C>): Promise<unknown>;
}
export interface ToolpadQuery<C extends CreateQueryConfig<CreateQueryConfigParameters<C>>> extends QueryResolver<C> {
[TOOLPAD_QUERY]: C;
}
export default function createQuery<C extends CreateQueryConfig<CreateQueryConfigParameters<C>>>(resolver: QueryResolver<C>, config?: C): QueryResolver<C> & {
[TOOLPAD_QUERY]: C | {
parameters: {};
};
};
export {};
import createFunction from './createFunction.js';
/**
* @deprecated
* createQuery is deprecated. Use createFunction instead.
*/
declare const createQuery: typeof createFunction;
export default createQuery;
import {
createQuery
} from "./chunk-BMIKBF6G.js";
import "./chunk-LN573PQ2.js";
createQuery_default
} from "./chunk-SK5LVUJA.js";
import "./chunk-PJ7EG4D5.js";
import "./chunk-ATKRQQ5J.js";
export {
createQuery as default
createQuery_default as default
};

@@ -12,1 +12,3 @@ export type { PlaceholderProps, SlotsProps, NodeRuntime, NodeErrorProps, Components, } from './runtime.js';

export * from './createQuery.js';
export { default as createFunction } from './createFunction.js';
export * from './createFunction.js';

@@ -6,7 +6,10 @@ import {

useNode
} from "./chunk-7LPIXLF6.js";
import "./chunk-VF37B2ZC.js";
} from "./chunk-YSEHJAXS.js";
import "./chunk-ZOJU7CTK.js";
import {
createQuery
} from "./chunk-BMIKBF6G.js";
createQuery_default
} from "./chunk-SK5LVUJA.js";
import {
createFunction
} from "./chunk-PJ7EG4D5.js";
import "./chunk-6F4PWJZI.js";

@@ -20,3 +23,3 @@ import {

useComponents
} from "./chunk-MYWWLFU7.js";
} from "./chunk-KFEGYWUM.js";
import "./chunk-3RPQOZJA.js";

@@ -28,3 +31,3 @@ import {

isToolpadComponent
} from "./chunk-5Q5R5ZAP.js";
} from "./chunk-B5MBTYEM.js";
import "./chunk-XUX337RN.js";

@@ -38,4 +41,4 @@ import {

TOOLPAD_COMPONENT_MODE_PROPERTY,
TOOLPAD_QUERY
} from "./chunk-LN573PQ2.js";
TOOLPAD_FUNCTION
} from "./chunk-ATKRQQ5J.js";
export {

@@ -52,5 +55,6 @@ ComponentsContext,

TOOLPAD_COMPONENT_MODE_PROPERTY,
TOOLPAD_QUERY,
TOOLPAD_FUNCTION,
createComponent,
createQuery,
createFunction,
createQuery_default as createQuery,
createToolpadComponentThatThrows,

@@ -57,0 +61,0 @@ getArgTypeDefaultValue,

import {
IMAGE_EXTENSIONS
} from "./chunk-LN573PQ2.js";
} from "./chunk-ATKRQQ5J.js";

@@ -5,0 +5,0 @@ // src/path.ts

@@ -10,5 +10,5 @@ import {

useNode
} from "./chunk-7LPIXLF6.js";
import "./chunk-VF37B2ZC.js";
import "./chunk-LN573PQ2.js";
} from "./chunk-YSEHJAXS.js";
import "./chunk-ZOJU7CTK.js";
import "./chunk-ATKRQQ5J.js";
export {

@@ -15,0 +15,0 @@ CanvasEventsContext,

export * from './constants.js';
export { default as createQuery } from './createQuery.js';
export * from './createQuery.js';
export { default as createFunction } from './createFunction.js';
export * from './createFunction.js';
import {
createQuery
} from "./chunk-BMIKBF6G.js";
createQuery_default
} from "./chunk-SK5LVUJA.js";
import {
createFunction
} from "./chunk-PJ7EG4D5.js";
import {
DEFAULT_LOCAL_SCOPE_PARAMS,

@@ -11,4 +14,4 @@ IMAGE_EXTENSIONS,

TOOLPAD_COMPONENT_MODE_PROPERTY,
TOOLPAD_QUERY
} from "./chunk-LN573PQ2.js";
TOOLPAD_FUNCTION
} from "./chunk-ATKRQQ5J.js";
export {

@@ -21,4 +24,5 @@ DEFAULT_LOCAL_SCOPE_PARAMS,

TOOLPAD_COMPONENT_MODE_PROPERTY,
TOOLPAD_QUERY,
createQuery
TOOLPAD_FUNCTION,
createFunction,
createQuery_default as createQuery
};

@@ -5,5 +5,18 @@ export type EventName = string | symbol;

private handlers;
/**
* Add a listener for an event
*/
on<K extends keyof T>(name: K, handler: EventHandler<T[K]>): void;
/**
* Remove a listener from an event
*/
off<K extends keyof T>(name: K, handler: EventHandler<T[K]>): void;
/**
* Subscribe to an event and return an unsubscribe function.
*/
subscribe<K extends keyof T>(name: K, handler: EventHandler<T[K]>): () => void;
/**
* Emit an event.
*/
emit<K extends keyof T>(name: K, event: T[K] extends undefined ? void | undefined : T[K]): void;
}
import {
Emitter
} from "../chunk-VF37B2ZC.js";
} from "../chunk-ZOJU7CTK.js";
export {
Emitter as default
};
{
"name": "@mui/toolpad-core",
"version": "0.1.6",
"version": "0.1.7",
"description": "Build MUI apps quickly",

@@ -50,3 +50,3 @@ "author": "MUI Toolpad team",

"dependencies": {
"@tanstack/react-query": "^4.28.0",
"@tanstack/react-query": "^4.29.3",
"quickjs-emscripten": "^0.22.0",

@@ -65,3 +65,3 @@ "react-error-boundary": "^4.0.3",

},
"gitHead": "5c310012b1b92ee53a0a1051b92f84564f915faf"
"gitHead": "12a8d30d5e533406256b3d01f3c4c76afd91b470"
}

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