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

@tinacms/core

Package Overview
Dependencies
Maintainers
9
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinacms/core - npm Package Compare versions

Comparing version 0.1.0-alpha.4 to 0.1.0-alpha.5

5

build/cms-forms/form.d.ts

@@ -7,3 +7,4 @@ /// <reference types="react" />

finalForm: FormApi<S>;
constructor({ name, fields, ...options }: FormOptions<S>);
actions: any[];
constructor({ name, fields, actions, ...options }: FormOptions<S>);
subscribe: FormApi<S>['subscribe'];

@@ -16,2 +17,3 @@ submit: FormApi<S>['submit'];

fields: Field[];
actions?: any[];
}

@@ -21,2 +23,3 @@ export interface Field {

label?: string;
description?: string;
component: React.FC<any> | string;

@@ -23,0 +26,0 @@ parse?: (value: string, name: string) => any;

2

build/index.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("final-form")):"function"==typeof define&&define.amd?define(["exports","final-form"],e):e((t=t||self)["@tinacms/core"]={},t.finalForm)}(this,function(t,o){"use strict";var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function e(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var r=(i.prototype.subscribe=function(t){var e=this;return this.__subscribers.push(t),function(){return e.unsubscribe(t)}},i.prototype.unsubscribe=function(t){var e=this.__subscribers.indexOf(t);this.__subscribers.splice(e,1)},i.prototype.notifiySubscribers=function(){this.__subscribers.forEach(function(t){return t()})},i);function i(){this.__subscribers=[]}var s=(Object.defineProperty(u.prototype,"values",{get:function(){return this.finalForm.getState().values},enumerable:!0,configurable:!0}),u);function u(t){var r=this,e=t.name,n=t.fields,i=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(t,["name","fields"]);this.subscribe=function(t,e){return r.finalForm.subscribe(t,e)},this.submit=function(){return r.finalForm.submit()},this.name=e,this.fields=n,this.finalForm=o.createForm(i)}var f,p=(e(c,f=r),c.prototype.findForm=function(t){return this.__forms[t]},c.prototype.all=function(){var e=this;return Object.keys(this.__forms).map(function(t){return e.__forms[t]})},c);function c(){var r=null!==f&&f.apply(this,arguments)||this;return r.__forms={},r.__fields={},r.createForm=function(t){var e=new s(t);return r.__forms[t.name]=e,r.notifiySubscribers(),e},r.removeForm=function(t){delete r.__forms[t],r.notifiySubscribers()},r}var a=(l.prototype.findOrCreateMap=function(t){return this.plugins[t]=this.plugins[t]||new b(t)},l.prototype.add=function(t){this.findOrCreateMap(t.__type).add(t)},l.prototype.remove=function(t){this.findOrCreateMap(t.__type).remove(t)},l.prototype.all=function(t){return this.findOrCreateMap(t).all()},l);function l(){this.plugins={}}var _,b=(e(y,_=r),y.prototype.add=function(t){var e=t;e.__type||(e.__type=this.__type),this.__plugins[e.name]=e,this.notifiySubscribers()},y.prototype.all=function(){var e=this;return Object.keys(this.__plugins).map(function(t){return e.__plugins[t]})},y.prototype.find=function(t){return this.__plugins[t]},y.prototype.remove=function(t){var e="string"==typeof t?t:t.name,r=this.__plugins[e];return delete this.__plugins[e],this.notifiySubscribers(),r},y);function y(t){var e=_.call(this)||this;return e.__type=t,e.__plugins={},e}var h=(Object.defineProperty(m.prototype,"fields",{get:function(){return this.plugins.findOrCreateMap("field")},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"screens",{get:function(){return this.plugins.findOrCreateMap("screen")},enumerable:!0,configurable:!0}),m.prototype.registerApi=function(t,e){this.api[t]=e},m);function m(){this.api={},this.forms=new p,this.plugins=new a}t.CMS=h,t.Form=s,t.FormManager=p,t.PluginManager=a,t.PluginType=b,t.Subscribable=r,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("final-form")):"function"==typeof define&&define.amd?define(["exports","final-form"],e):e((t=t||self)["@tinacms/core"]={},t.finalForm)}(this,function(t,s){"use strict";var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function e(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var r=(i.prototype.subscribe=function(t){var e=this;return this.__subscribers.push(t),function(){return e.unsubscribe(t)}},i.prototype.unsubscribe=function(t){var e=this.__subscribers.indexOf(t);this.__subscribers.splice(e,1)},i.prototype.notifiySubscribers=function(){this.__subscribers.forEach(function(t){return t()})},i);function i(){this.__subscribers=[]}var o=(Object.defineProperty(u.prototype,"values",{get:function(){return this.finalForm.getState().values},enumerable:!0,configurable:!0}),u);function u(t){var r=this,e=t.name,n=t.fields,i=t.actions,o=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(t,["name","fields","actions"]);this.subscribe=function(t,e){return r.finalForm.subscribe(t,e)},this.submit=function(){return r.finalForm.submit()},this.name=e,this.fields=n,this.finalForm=s.createForm(o),this.actions=i||[]}var f,p=(e(c,f=r),c.prototype.findForm=function(t){return this.__forms[t]},c.prototype.all=function(){var e=this;return Object.keys(this.__forms).map(function(t){return e.__forms[t]})},c);function c(){var r=null!==f&&f.apply(this,arguments)||this;return r.__forms={},r.__fields={},r.createForm=function(t){var e=new o(t);return r.__forms[t.name]=e,r.notifiySubscribers(),e},r.removeForm=function(t){delete r.__forms[t],r.notifiySubscribers()},r}var a=(l.prototype.findOrCreateMap=function(t){return this.plugins[t]=this.plugins[t]||new b(t)},l.prototype.add=function(t){this.findOrCreateMap(t.__type).add(t)},l.prototype.remove=function(t){this.findOrCreateMap(t.__type).remove(t)},l.prototype.all=function(t){return this.findOrCreateMap(t).all()},l);function l(){this.plugins={}}var _,b=(e(y,_=r),y.prototype.add=function(t){var e=t;e.__type||(e.__type=this.__type),this.__plugins[e.name]=e,this.notifiySubscribers()},y.prototype.all=function(){var e=this;return Object.keys(this.__plugins).map(function(t){return e.__plugins[t]})},y.prototype.find=function(t){return this.__plugins[t]},y.prototype.remove=function(t){var e="string"==typeof t?t:t.name,r=this.__plugins[e];return delete this.__plugins[e],this.notifiySubscribers(),r},y);function y(t){var e=_.call(this)||this;return e.__type=t,e.__plugins={},e}var h=(Object.defineProperty(m.prototype,"fields",{get:function(){return this.plugins.findOrCreateMap("field")},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"screens",{get:function(){return this.plugins.findOrCreateMap("screen")},enumerable:!0,configurable:!0}),m.prototype.registerApi=function(t,e){this.api[t]=e},m);function m(){this.api={},this.forms=new p,this.plugins=new a}t.CMS=h,t.Form=o,t.FormManager=p,t.PluginManager=a,t.PluginType=b,t.Subscribable=r,Object.defineProperty(t,"__esModule",{value:!0})});
{
"name": "@tinacms/core",
"version": "0.1.0-alpha.4",
"version": "0.1.0-alpha.5",
"main": "build/index.js",

@@ -27,3 +27,3 @@ "types": "build/index.d.ts",

},
"gitHead": "b8044321ec42afdf322626ff322e2c76e0255fe5"
"gitHead": "e78938eaf9976ccc2191902b06d2a292ded008af"
}
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