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

@dxos/react-surface

Package Overview
Dependencies
Maintainers
7
Versions
521
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxos/react-surface - npm Package Compare versions

Comparing version

to
0.1.51-main.451963a

2

dist/lib/browser/meta.json

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

{"inputs":{"packages/sdk/react-surface/src/Context.tsx":{"bytes":1823,"imports":[{"path":"react","kind":"import-statement","external":true}]},"packages/sdk/react-surface/src/PluginContext.tsx":{"bytes":7061,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/sdk/react-surface/src/Context.tsx","kind":"import-statement","original":"./Context"}]},"packages/sdk/react-surface/src/Plugin.ts":{"bytes":2314,"imports":[]},"packages/sdk/react-surface/src/Surface.tsx":{"bytes":11375,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/sdk/react-surface/src/PluginContext.tsx","kind":"import-statement","original":"./PluginContext"}]},"packages/sdk/react-surface/src/index.ts":{"bytes":645,"imports":[{"path":"packages/sdk/react-surface/src/Context.tsx","kind":"import-statement","original":"./Context"},{"path":"packages/sdk/react-surface/src/PluginContext.tsx","kind":"import-statement","original":"./PluginContext"},{"path":"packages/sdk/react-surface/src/Plugin.ts","kind":"import-statement","original":"./Plugin"},{"path":"packages/sdk/react-surface/src/Surface.tsx","kind":"import-statement","original":"./Surface"}]}},"outputs":{"packages/sdk/react-surface/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12493},"packages/sdk/react-surface/dist/lib/browser/index.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["PluginContextProvider","Surface","compose","composeContext","definePlugin","findPlugin","usePluginContext","useSurfaceContext"],"entryPoint":"packages/sdk/react-surface/src/index.ts","inputs":{"packages/sdk/react-surface/src/Context.tsx":{"bytesInOutput":352},"packages/sdk/react-surface/src/index.ts":{"bytesInOutput":0},"packages/sdk/react-surface/src/PluginContext.tsx":{"bytesInOutput":1898},"packages/sdk/react-surface/src/Plugin.ts":{"bytesInOutput":150},"packages/sdk/react-surface/src/Surface.tsx":{"bytesInOutput":3466}},"bytes":6239}}}
{"inputs":{"packages/sdk/react-surface/src/Context.tsx":{"bytes":1823,"imports":[{"path":"react","kind":"import-statement","external":true}]},"packages/sdk/react-surface/src/PluginContext.tsx":{"bytes":7061,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/sdk/react-surface/src/Context.tsx","kind":"import-statement","original":"./Context"}]},"packages/sdk/react-surface/src/Plugin.ts":{"bytes":1960,"imports":[]},"packages/sdk/react-surface/src/Surface.tsx":{"bytes":11375,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/sdk/react-surface/src/PluginContext.tsx","kind":"import-statement","original":"./PluginContext"}]},"packages/sdk/react-surface/src/index.ts":{"bytes":645,"imports":[{"path":"packages/sdk/react-surface/src/Context.tsx","kind":"import-statement","original":"./Context"},{"path":"packages/sdk/react-surface/src/PluginContext.tsx","kind":"import-statement","original":"./PluginContext"},{"path":"packages/sdk/react-surface/src/Plugin.ts","kind":"import-statement","original":"./Plugin"},{"path":"packages/sdk/react-surface/src/Surface.tsx","kind":"import-statement","original":"./Surface"}]}},"outputs":{"packages/sdk/react-surface/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12283},"packages/sdk/react-surface/dist/lib/browser/index.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["PluginContextProvider","Surface","compose","composeContext","findPlugin","usePluginContext","useSurfaceContext"],"entryPoint":"packages/sdk/react-surface/src/index.ts","inputs":{"packages/sdk/react-surface/src/Context.tsx":{"bytesInOutput":352},"packages/sdk/react-surface/src/index.ts":{"bytesInOutput":0},"packages/sdk/react-surface/src/PluginContext.tsx":{"bytesInOutput":1898},"packages/sdk/react-surface/src/Plugin.ts":{"bytesInOutput":97},"packages/sdk/react-surface/src/Surface.tsx":{"bytesInOutput":3466}},"bytes":6170}}}

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

{"inputs":{"packages/sdk/react-surface/src/Context.tsx":{"bytes":1823,"imports":[{"path":"react","kind":"import-statement","external":true}]},"packages/sdk/react-surface/src/PluginContext.tsx":{"bytes":7061,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/sdk/react-surface/src/Context.tsx","kind":"import-statement","original":"./Context"}]},"packages/sdk/react-surface/src/Plugin.ts":{"bytes":2314,"imports":[]},"packages/sdk/react-surface/src/Surface.tsx":{"bytes":11375,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/sdk/react-surface/src/PluginContext.tsx","kind":"import-statement","original":"./PluginContext"}]},"packages/sdk/react-surface/src/index.ts":{"bytes":645,"imports":[{"path":"packages/sdk/react-surface/src/Context.tsx","kind":"import-statement","original":"./Context"},{"path":"packages/sdk/react-surface/src/PluginContext.tsx","kind":"import-statement","original":"./PluginContext"},{"path":"packages/sdk/react-surface/src/Plugin.ts","kind":"import-statement","original":"./Plugin"},{"path":"packages/sdk/react-surface/src/Surface.tsx","kind":"import-statement","original":"./Surface"}]}},"outputs":{"packages/sdk/react-surface/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12605},"packages/sdk/react-surface/dist/lib/node/index.cjs":{"imports":[{"path":"react","kind":"require-call","external":true},{"path":"react","kind":"require-call","external":true},{"path":"react","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/sdk/react-surface/src/index.ts","inputs":{"packages/sdk/react-surface/src/index.ts":{"bytesInOutput":397},"packages/sdk/react-surface/src/Context.tsx":{"bytesInOutput":401},"packages/sdk/react-surface/src/PluginContext.tsx":{"bytesInOutput":1986},"packages/sdk/react-surface/src/Plugin.ts":{"bytesInOutput":150},"packages/sdk/react-surface/src/Surface.tsx":{"bytesInOutput":3517}},"bytes":8344}}}
{"inputs":{"packages/sdk/react-surface/src/Context.tsx":{"bytes":1823,"imports":[{"path":"react","kind":"import-statement","external":true}]},"packages/sdk/react-surface/src/PluginContext.tsx":{"bytes":7061,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/sdk/react-surface/src/Context.tsx","kind":"import-statement","original":"./Context"}]},"packages/sdk/react-surface/src/Plugin.ts":{"bytes":1960,"imports":[]},"packages/sdk/react-surface/src/Surface.tsx":{"bytes":11375,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/sdk/react-surface/src/PluginContext.tsx","kind":"import-statement","original":"./PluginContext"}]},"packages/sdk/react-surface/src/index.ts":{"bytes":645,"imports":[{"path":"packages/sdk/react-surface/src/Context.tsx","kind":"import-statement","original":"./Context"},{"path":"packages/sdk/react-surface/src/PluginContext.tsx","kind":"import-statement","original":"./PluginContext"},{"path":"packages/sdk/react-surface/src/Plugin.ts","kind":"import-statement","original":"./Plugin"},{"path":"packages/sdk/react-surface/src/Surface.tsx","kind":"import-statement","original":"./Surface"}]}},"outputs":{"packages/sdk/react-surface/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12394},"packages/sdk/react-surface/dist/lib/node/index.cjs":{"imports":[{"path":"react","kind":"require-call","external":true},{"path":"react","kind":"require-call","external":true},{"path":"react","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/sdk/react-surface/src/index.ts","inputs":{"packages/sdk/react-surface/src/index.ts":{"bytesInOutput":361},"packages/sdk/react-surface/src/Context.tsx":{"bytesInOutput":401},"packages/sdk/react-surface/src/PluginContext.tsx":{"bytesInOutput":1986},"packages/sdk/react-surface/src/Plugin.ts":{"bytesInOutput":97},"packages/sdk/react-surface/src/Surface.tsx":{"bytesInOutput":3517}},"bytes":8239}}}
import { FC, PropsWithChildren } from 'react';
export type PluginProvides<TProvides> = TProvides & {
context?: FC<PropsWithChildren>;
component?: <P extends PropsWithChildren = PropsWithChildren>(datum: any, role?: string, props?: Partial<P>) => FC<PropsWithChildren<{
component?: <P extends PropsWithChildren = PropsWithChildren>(datum: unknown, role?: string, props?: Partial<P>) => FC<PropsWithChildren<{
data: any;

@@ -24,4 +24,3 @@ role?: string;

};
export declare const definePlugin: <TProvides = {}, TInitProvides = {}>(plugin: PluginDefinition<TProvides, TInitProvides>) => PluginDefinition<TProvides, TInitProvides>;
export declare const findPlugin: <T>(plugins: Plugin[], id: string) => Plugin<T> | undefined;
//# sourceMappingURL=Plugin.d.ts.map
{
"name": "@dxos/react-surface",
"version": "0.1.51-main.24977a9",
"version": "0.1.51-main.451963a",
"description": "A react framework for making extensible interfaces.",

@@ -5,0 +5,0 @@ "homepage": "https://dxos.org",

@@ -10,3 +10,3 @@ //

component?: <P extends PropsWithChildren = PropsWithChildren>(
datum: any,
datum: unknown,
role?: string,

@@ -32,10 +32,4 @@ props?: Partial<P>,

export const definePlugin = <TProvides = {}, TInitProvides = {}>(
plugin: PluginDefinition<TProvides, TInitProvides>,
) => {
return plugin;
};
export const findPlugin = <T>(plugins: Plugin[], id: string): Plugin<T> | undefined => {
return plugins.find((plugin) => plugin.meta.id === id) as Plugin<T>;
};

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