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

@jsonforms/vue

Package Overview
Dependencies
Maintainers
6
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsonforms/vue - npm Package Compare versions

Comparing version 3.1.0-alpha.0 to 3.1.0-alpha.1

4

lib/components/DispatchCell.vue.d.ts

@@ -37,3 +37,3 @@ import { ControlElement } from '@jsonforms/core';

handleChange(path: string, value: any): void;
cell: {
cell: import("vue").ComputedRef<{
cells: import("@jsonforms/core").JsonFormsCellRendererRegistryEntry[];

@@ -52,3 +52,3 @@ isValid: boolean;

renderers: import("@jsonforms/core").JsonFormsRendererRegistryEntry[];
};
}>;
}, unknown, {

@@ -55,0 +55,0 @@ determinedCell(): any;

@@ -15,3 +15,2 @@ 'use strict';

var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {

@@ -23,6 +22,4 @@ var symbols = Object.getOwnPropertySymbols(object);

}
return keys;
}
function _objectSpread2(target) {

@@ -37,6 +34,4 @@ for (var i = 1; i < arguments.length; i++) {

}
return target;
}
function _typeof(obj) {

@@ -51,4 +46,4 @@ "@babel/helpers - typeof";

}
function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {

@@ -64,6 +59,4 @@ Object.defineProperty(obj, key, {

}
return obj;
}
function _objectWithoutPropertiesLoose(source, excluded) {

@@ -74,3 +67,2 @@ if (source == null) return {};

var key, i;
for (i = 0; i < sourceKeys.length; i++) {

@@ -81,16 +73,10 @@ key = sourceKeys[i];

}
return target;
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {

@@ -103,5 +89,18 @@ key = sourceSymbolKeys[i];

}
return target;
}
function _toPrimitive(input, hint) {
if (typeof input !== "object" || input === null) return input;
var prim = input[Symbol.toPrimitive];
if (prim !== undefined) {
var res = prim.call(input, hint || "default");
if (typeof res !== "object") return res;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (hint === "string" ? String : Number)(input);
}
function _toPropertyKey(arg) {
var key = _toPrimitive(arg, "string");
return typeof key === "symbol" ? key : String(key);
}

@@ -119,10 +118,10 @@ var script$3 = vue.defineComponent({

var _excluded = ["control"],
_excluded2 = ["control"],
_excluded3 = ["control"],
_excluded4 = ["rootSchema"],
_excluded5 = ["control"],
_excluded6 = ["control"],
_excluded7 = ["control"],
_excluded8 = ["control"],
_excluded9 = ["control"];
_excluded2 = ["control"],
_excluded3 = ["control"],
_excluded4 = ["rootSchema"],
_excluded5 = ["control"],
_excluded6 = ["control"],
_excluded7 = ["control"],
_excluded8 = ["control"],
_excluded9 = ["control"];
var rendererProps = function rendererProps() {

@@ -253,4 +252,4 @@ return {

var _useControl = useControl(props, core.mapStateToLayoutProps),
control = _useControl.control,
other = _objectWithoutProperties(_useControl, _excluded);
control = _useControl.control,
other = _objectWithoutProperties(_useControl, _excluded);
return _objectSpread2({

@@ -262,4 +261,4 @@ layout: control

var _useControl2 = useControl(props, core.mapStateToArrayLayoutProps),
control = _useControl2.control,
other = _objectWithoutProperties(_useControl2, _excluded2);
control = _useControl2.control,
other = _objectWithoutProperties(_useControl2, _excluded2);
return _objectSpread2({

@@ -271,4 +270,4 @@ layout: control

var _useControl3 = useControl(props, core.mapStateToMasterListItemProps),
control = _useControl3.control,
other = _objectWithoutProperties(_useControl3, _excluded3);
control = _useControl3.control,
other = _objectWithoutProperties(_useControl3, _excluded3);
return _objectSpread2({

@@ -294,4 +293,4 @@ item: control

var _rawProps$value = rawProps.value;
_rawProps$value.rootSchema;
var rest = _objectWithoutProperties(_rawProps$value, _excluded4);
_rawProps$value.rootSchema;
var rest = _objectWithoutProperties(_rawProps$value, _excluded4);
return rest;

@@ -306,4 +305,4 @@ });

var _useControl4 = useControl(props, core.mapStateToLabelProps),
control = _useControl4.control,
other = _objectWithoutProperties(_useControl4, _excluded5);
control = _useControl4.control,
other = _objectWithoutProperties(_useControl4, _excluded5);
return _objectSpread2({

@@ -315,4 +314,4 @@ label: control

var _useControl5 = useControl(props, core.mapStateToCellProps, core.mapDispatchToControlProps),
control = _useControl5.control,
other = _objectWithoutProperties(_useControl5, _excluded6);
control = _useControl5.control,
other = _objectWithoutProperties(_useControl5, _excluded6);
return _objectSpread2({

@@ -324,4 +323,4 @@ cell: control

var _useControl6 = useControl(props, core.defaultMapStateToEnumCellProps, core.mapDispatchToControlProps),
control = _useControl6.control,
other = _objectWithoutProperties(_useControl6, _excluded7);
control = _useControl6.control,
other = _objectWithoutProperties(_useControl6, _excluded7);
return _objectSpread2({

@@ -333,4 +332,4 @@ cell: control

var _useControl7 = useControl(props, core.mapStateToOneOfEnumCellProps, core.mapDispatchToControlProps),
control = _useControl7.control,
other = _objectWithoutProperties(_useControl7, _excluded8);
control = _useControl7.control,
other = _objectWithoutProperties(_useControl7, _excluded8);
return _objectSpread2({

@@ -342,4 +341,4 @@ cell: control

var _useControl8 = useControl(props, core.mapStateToDispatchCellProps, core.mapDispatchToControlProps),
control = _useControl8.control,
other = _objectWithoutProperties(_useControl8, _excluded9);
control = _useControl8.control,
other = _objectWithoutProperties(_useControl8, _excluded9);
return _objectSpread2({

@@ -489,7 +488,7 @@ cell: control

var _this$schema,
_this$uischema,
_this = this,
_this$i18n,
_this$i18n2,
_this$i18n3;
_this$uischema,
_this = this,
_this$i18n,
_this$i18n2,
_this$i18n3;
var generatorData = isObject(this.data) ? this.data : {};

@@ -496,0 +495,0 @@ var schemaToUse = (_this$schema = this.schema) !== null && _this$schema !== void 0 ? _this$schema : core.Generate.jsonSchema(generatorData);

@@ -7,3 +7,2 @@ import { defineComponent, openBlock, createElementBlock, inject, ref, computed, onBeforeMount, onUnmounted, createBlock, resolveDynamicComponent, normalizeProps, guardReactiveProps, resolveComponent } from 'vue';

var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {

@@ -15,6 +14,4 @@ var symbols = Object.getOwnPropertySymbols(object);

}
return keys;
}
function _objectSpread2(target) {

@@ -29,6 +26,4 @@ for (var i = 1; i < arguments.length; i++) {

}
return target;
}
function _typeof(obj) {

@@ -43,4 +38,4 @@ "@babel/helpers - typeof";

}
function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {

@@ -56,6 +51,4 @@ Object.defineProperty(obj, key, {

}
return obj;
}
function _objectWithoutPropertiesLoose(source, excluded) {

@@ -66,3 +59,2 @@ if (source == null) return {};

var key, i;
for (i = 0; i < sourceKeys.length; i++) {

@@ -73,16 +65,10 @@ key = sourceKeys[i];

}
return target;
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {

@@ -95,5 +81,18 @@ key = sourceSymbolKeys[i];

}
return target;
}
function _toPrimitive(input, hint) {
if (typeof input !== "object" || input === null) return input;
var prim = input[Symbol.toPrimitive];
if (prim !== undefined) {
var res = prim.call(input, hint || "default");
if (typeof res !== "object") return res;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (hint === "string" ? String : Number)(input);
}
function _toPropertyKey(arg) {
var key = _toPrimitive(arg, "string");
return typeof key === "symbol" ? key : String(key);
}

@@ -111,10 +110,10 @@ var script$3 = defineComponent({

var _excluded = ["control"],
_excluded2 = ["control"],
_excluded3 = ["control"],
_excluded4 = ["rootSchema"],
_excluded5 = ["control"],
_excluded6 = ["control"],
_excluded7 = ["control"],
_excluded8 = ["control"],
_excluded9 = ["control"];
_excluded2 = ["control"],
_excluded3 = ["control"],
_excluded4 = ["rootSchema"],
_excluded5 = ["control"],
_excluded6 = ["control"],
_excluded7 = ["control"],
_excluded8 = ["control"],
_excluded9 = ["control"];
var rendererProps = function rendererProps() {

@@ -245,4 +244,4 @@ return {

var _useControl = useControl(props, mapStateToLayoutProps),
control = _useControl.control,
other = _objectWithoutProperties(_useControl, _excluded);
control = _useControl.control,
other = _objectWithoutProperties(_useControl, _excluded);
return _objectSpread2({

@@ -254,4 +253,4 @@ layout: control

var _useControl2 = useControl(props, mapStateToArrayLayoutProps),
control = _useControl2.control,
other = _objectWithoutProperties(_useControl2, _excluded2);
control = _useControl2.control,
other = _objectWithoutProperties(_useControl2, _excluded2);
return _objectSpread2({

@@ -263,4 +262,4 @@ layout: control

var _useControl3 = useControl(props, mapStateToMasterListItemProps),
control = _useControl3.control,
other = _objectWithoutProperties(_useControl3, _excluded3);
control = _useControl3.control,
other = _objectWithoutProperties(_useControl3, _excluded3);
return _objectSpread2({

@@ -286,4 +285,4 @@ item: control

var _rawProps$value = rawProps.value;
_rawProps$value.rootSchema;
var rest = _objectWithoutProperties(_rawProps$value, _excluded4);
_rawProps$value.rootSchema;
var rest = _objectWithoutProperties(_rawProps$value, _excluded4);
return rest;

@@ -298,4 +297,4 @@ });

var _useControl4 = useControl(props, mapStateToLabelProps),
control = _useControl4.control,
other = _objectWithoutProperties(_useControl4, _excluded5);
control = _useControl4.control,
other = _objectWithoutProperties(_useControl4, _excluded5);
return _objectSpread2({

@@ -307,4 +306,4 @@ label: control

var _useControl5 = useControl(props, mapStateToCellProps, mapDispatchToControlProps),
control = _useControl5.control,
other = _objectWithoutProperties(_useControl5, _excluded6);
control = _useControl5.control,
other = _objectWithoutProperties(_useControl5, _excluded6);
return _objectSpread2({

@@ -316,4 +315,4 @@ cell: control

var _useControl6 = useControl(props, defaultMapStateToEnumCellProps, mapDispatchToControlProps),
control = _useControl6.control,
other = _objectWithoutProperties(_useControl6, _excluded7);
control = _useControl6.control,
other = _objectWithoutProperties(_useControl6, _excluded7);
return _objectSpread2({

@@ -325,4 +324,4 @@ cell: control

var _useControl7 = useControl(props, mapStateToOneOfEnumCellProps, mapDispatchToControlProps),
control = _useControl7.control,
other = _objectWithoutProperties(_useControl7, _excluded8);
control = _useControl7.control,
other = _objectWithoutProperties(_useControl7, _excluded8);
return _objectSpread2({

@@ -334,4 +333,4 @@ cell: control

var _useControl8 = useControl(props, mapStateToDispatchCellProps, mapDispatchToControlProps),
control = _useControl8.control,
other = _objectWithoutProperties(_useControl8, _excluded9);
control = _useControl8.control,
other = _objectWithoutProperties(_useControl8, _excluded9);
return _objectSpread2({

@@ -481,7 +480,7 @@ cell: control

var _this$schema,
_this$uischema,
_this = this,
_this$i18n,
_this$i18n2,
_this$i18n3;
_this$uischema,
_this = this,
_this$i18n,
_this$i18n2,
_this$i18n3;
var generatorData = isObject(this.data) ? this.data : {};

@@ -488,0 +487,0 @@ var schemaToUse = (_this$schema = this.schema) !== null && _this$schema !== void 0 ? _this$schema : Generate.jsonSchema(generatorData);

import { ControlElement, Dispatch, Layout, JsonSchema, UISchemaElement, CoreActions, JsonFormsState, OwnPropsOfMasterListItem, JsonFormsRendererRegistryEntry, JsonFormsCellRendererRegistryEntry, LabelElement } from '@jsonforms/core';
import { PropType } from 'vue';
import { PropType, ComputedRef } from 'vue';
/**

@@ -94,6 +94,6 @@ * Constructs a props declaration for Vue components which can be used

export declare function useControl<R, D, P extends {}>(props: P, stateMap: (state: JsonFormsState, props: P) => R): {
control: Required<R>;
control: ComputedRef<Required<R>>;
};
export declare function useControl<R, D, P extends {}>(props: P, stateMap: (state: JsonFormsState, props: P) => R, dispatchMap: (dispatch: Dispatch<CoreActions>) => D): {
control: Required<R>;
control: ComputedRef<Required<R>>;
} & D;

@@ -108,3 +108,3 @@ /**

export declare const useJsonFormsControl: (props: ControlProps) => {
control: {
control: ComputedRef<{
cells: {

@@ -128,3 +128,3 @@ tester: import("@jsonforms/core").RankedTester;

renderers: JsonFormsRendererRegistryEntry[];
};
}>;
} & import("@jsonforms/core").DispatchPropsOfControl;

@@ -139,3 +139,3 @@ /**

export declare const useJsonFormsControlWithDetail: (props: ControlProps) => {
control: {
control: ComputedRef<{
uischemas: import("@jsonforms/core").JsonFormsUISchemaRegistryEntry[];

@@ -157,3 +157,3 @@ renderers: JsonFormsRendererRegistryEntry[];

path: string;
};
}>;
} & import("@jsonforms/core").DispatchPropsOfControl;

@@ -167,3 +167,3 @@ /**

export declare const useJsonFormsEnumControl: (props: ControlProps) => {
control: {
control: ComputedRef<{
cells: {

@@ -188,3 +188,3 @@ tester: import("@jsonforms/core").RankedTester;

options: import("@jsonforms/core").EnumOption[];
};
}>;
} & import("@jsonforms/core").DispatchPropsOfControl;

@@ -199,3 +199,3 @@ /**

export declare const useJsonFormsOneOfEnumControl: (props: ControlProps) => {
control: {
control: ComputedRef<{
cells: {

@@ -220,3 +220,3 @@ tester: import("@jsonforms/core").RankedTester;

options: import("@jsonforms/core").EnumOption[];
};
}>;
} & import("@jsonforms/core").DispatchPropsOfControl;

@@ -230,3 +230,3 @@ /**

export declare const useJsonFormsArrayControl: (props: ControlProps) => {
control: {
control: ComputedRef<{
childErrors: import("ajv").ErrorObject<string, Record<string, any>, unknown>[];

@@ -249,3 +249,3 @@ uischemas: import("@jsonforms/core").JsonFormsUISchemaRegistryEntry[];

path: string;
};
}>;
} & import("@jsonforms/core").DispatchPropsOfArrayControl;

@@ -259,3 +259,3 @@ /**

export declare const useJsonFormsAllOfControl: (props: ControlProps) => {
control: {
control: ComputedRef<{
rootSchema: JsonSchema;

@@ -281,3 +281,3 @@ path: string;

renderers: JsonFormsRendererRegistryEntry[];
};
}>;
} & import("@jsonforms/core").DispatchPropsOfControl;

@@ -291,3 +291,3 @@ /**

export declare const useJsonFormsAnyOfControl: (props: ControlProps) => {
control: {
control: ComputedRef<{
rootSchema: JsonSchema;

@@ -313,3 +313,3 @@ path: string;

renderers: JsonFormsRendererRegistryEntry[];
};
}>;
} & import("@jsonforms/core").DispatchPropsOfControl;

@@ -323,3 +323,3 @@ /**

export declare const useJsonFormsOneOfControl: (props: ControlProps) => {
control: {
control: ComputedRef<{
rootSchema: JsonSchema;

@@ -345,3 +345,3 @@ path: string;

renderers: JsonFormsRendererRegistryEntry[];
};
}>;
} & import("@jsonforms/core").DispatchPropsOfControl;

@@ -355,3 +355,3 @@ /**

export declare const useJsonFormsMultiEnumControl: (props: ControlProps) => {
control: {
control: ComputedRef<{
cells: {

@@ -376,3 +376,3 @@ tester: import("@jsonforms/core").RankedTester;

options: import("@jsonforms/core").EnumOption[];
};
}>;
} & import("@jsonforms/core").DispatchPropsOfMultiEnumControl;

@@ -388,3 +388,3 @@ export interface LayoutProps extends RendererProps {

export declare const useJsonFormsLayout: (props: LayoutProps) => {
layout: {
layout: ComputedRef<{
direction: "row" | "column";

@@ -401,3 +401,3 @@ label: string;

cells: JsonFormsCellRendererRegistryEntry[];
};
}>;
};

@@ -411,3 +411,3 @@ /**

export declare const useJsonFormsArrayLayout: (props: ControlProps) => {
layout: {
layout: ComputedRef<{
data: number;

@@ -430,3 +430,3 @@ minItems: number;

path: string;
};
}>;
};

@@ -441,3 +441,3 @@ /**

export declare const useJsonFormsMasterListItem: (props: OwnPropsOfMasterListItem) => {
item: {
item: ComputedRef<{
index: number;

@@ -447,3 +447,3 @@ selected: boolean;

schema: JsonSchema;
};
}>;
};

@@ -457,3 +457,3 @@ /**

export declare const useJsonFormsRenderer: (props: RendererProps) => {
renderer: import("vue").ComputedRef<{
renderer: ComputedRef<{
config: any;

@@ -469,3 +469,3 @@ uischema: UISchemaElement;

}>;
rootSchema: import("vue").ComputedRef<JsonSchema>;
rootSchema: ComputedRef<JsonSchema>;
};

@@ -478,3 +478,3 @@ /**

export declare const useJsonFormsLabel: (props: RendererProps<LabelElement>) => {
label: {
label: ComputedRef<{
text: string;

@@ -485,3 +485,3 @@ visible: boolean;

cells: JsonFormsCellRendererRegistryEntry[];
};
}>;
};

@@ -497,3 +497,3 @@ /**

handleChange(path: string, value: any): void;
cell: {
cell: ComputedRef<{
isValid: boolean;

@@ -512,3 +512,3 @@ rootSchema: JsonSchema;

cells: JsonFormsCellRendererRegistryEntry[];
};
}>;
};

@@ -524,3 +524,3 @@ /**

handleChange(path: string, value: any): void;
cell: {
cell: ComputedRef<{
isValid: boolean;

@@ -540,3 +540,3 @@ rootSchema: JsonSchema;

options: import("@jsonforms/core").EnumOption[];
};
}>;
};

@@ -552,3 +552,3 @@ /**

handleChange(path: string, value: any): void;
cell: {
cell: ComputedRef<{
isValid: boolean;

@@ -568,3 +568,3 @@ rootSchema: JsonSchema;

options: import("@jsonforms/core").EnumOption[];
};
}>;
};

@@ -580,3 +580,3 @@ /**

handleChange(path: string, value: any): void;
cell: {
cell: ComputedRef<{
cells: JsonFormsCellRendererRegistryEntry[];

@@ -595,3 +595,3 @@ isValid: boolean;

renderers: JsonFormsRendererRegistryEntry[];
};
}>;
};
{
"name": "@jsonforms/vue",
"version": "3.1.0-alpha.0",
"version": "3.1.0-alpha.1",
"description": "Vue 3 module of JSON Forms",

@@ -51,3 +51,3 @@ "repository": "https://github.com/eclipsesource/jsonforms",

"@babel/preset-typescript": "^7.9.0",
"@jsonforms/core": "^3.1.0-alpha.0",
"@jsonforms/core": "^3.1.0-alpha.1",
"@rollup/plugin-alias": "^3.1.8",

@@ -64,3 +64,3 @@ "@types/jest": "^24.0.23",

"rimraf": "^3.0.2",
"rollup": "^2.7.3",
"rollup": "^2.78.0",
"rollup-plugin-babel": "^4.4.0",

@@ -76,6 +76,6 @@ "rollup-plugin-cleanup": "^3.2.1",

"peerDependencies": {
"@jsonforms/core": "3.1.0-alpha.0",
"@jsonforms/core": "3.1.0-alpha.1",
"vue": "^3.2.26"
},
"gitHead": "91f351daa7b7ae4bb0f0dffd47f00bb6cf682ec1"
"gitHead": "386174994eabc41758450b8d551e1c859498a468"
}

@@ -42,2 +42,3 @@ import {

computed,
ComputedRef,
inject,

@@ -155,3 +156,3 @@ onBeforeMount,

stateMap: (state: JsonFormsState, props: P) => R
): { control: Required<R> };
): { control: ComputedRef<Required<R>> };
export function useControl<R, D, P extends {}>(

@@ -161,3 +162,3 @@ props: P,

dispatchMap: (dispatch: Dispatch<CoreActions>) => D
): { control: Required<R> } & D;
): { control: ComputedRef<Required<R>> } & D;
export function useControl<R, D, P extends {}>(

@@ -198,3 +199,3 @@ props: P,

return {
control: (control as unknown) as R,
control: (control as unknown) as ComputedRef<R>,
...dispatchMethods

@@ -201,0 +202,0 @@ };

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