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

@dopt/block-types

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dopt/block-types - npm Package Compare versions

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

dist/block/element.d.ts

2

dist/block/entry.d.ts
import { Static } from '@sinclair/typebox';
export declare const EntryTypeConst = "entry";
export declare const EntryType: import("@sinclair/typebox").TLiteral<"entry">;
export declare const EntryProps: import("@sinclair/typebox").TObject<{

@@ -3,0 +5,0 @@ type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"entry">>;

import { Static } from '@sinclair/typebox';
export declare const FinishTypeConst = "finish";
export declare const FinishType: import("@sinclair/typebox").TLiteral<"finish">;
export declare const FinishProps: import("@sinclair/typebox").TObject<{

@@ -3,0 +5,0 @@ type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"finish">>;

import { Static } from '@sinclair/typebox';
import { Finish } from './finish';
import { Entry } from './entry';
import { Model } from './model';
export * from './entry';
export * from './finish';
export * from './model';
export * from './set';
export { BlockState } from './base';
export type BlockTypes = Finish['type'] | Entry['type'] | Model['type'];
export declare const BLOCK_TYPES: {
readonly entry: "entry";
readonly model: "model";
readonly finish: "finish";
readonly set: "set";
};
export declare const BlockTypes: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"entry">, import("@sinclair/typebox").TLiteral<"model">, import("@sinclair/typebox").TLiteral<"finish">, import("@sinclair/typebox").TLiteral<"set">]>;
export type BlockTypes = Static<typeof BlockTypes>;
export declare const Block: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{

@@ -44,2 +49,13 @@ kind: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"block">>;

type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"finish">>;
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
kind: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"block">>;
uid: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TString<string>>;
sid: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TString<string>>;
version: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TNumber>;
state: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TObject<{
active: import("@sinclair/typebox").TBoolean;
completed: import("@sinclair/typebox").TBoolean;
}>>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"set">>;
}>]>]>;

@@ -81,4 +97,15 @@ export type Block = Static<typeof Block>;

type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"finish">>;
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
kind: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"block">>;
uid: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TString<string>>;
sid: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TString<string>>;
version: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TNumber>;
state: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TObject<{
active: import("@sinclair/typebox").TBoolean;
completed: import("@sinclair/typebox").TBoolean;
}>>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"set">>;
}>]>]>>;
export type Blocks = Static<typeof Blocks>;
//# sourceMappingURL=index.d.ts.map
import { Static } from '@sinclair/typebox';
export declare const ModelTypeConst = "model";
export declare const ModelType: import("@sinclair/typebox").TLiteral<"model">;
export declare const ModelProps: import("@sinclair/typebox").TObject<{

@@ -3,0 +5,0 @@ type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"model">>;

import { Static } from '@sinclair/typebox';
export declare const SetTypeConst = "set";
export declare const SetType: import("@sinclair/typebox").TLiteral<"set">;
export declare const SetProps: import("@sinclair/typebox").TObject<{

@@ -3,0 +5,0 @@ type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"set">>;

@@ -53,2 +53,13 @@ import { Static } from '@sinclair/typebox';

type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"finish">>;
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
kind: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"block">>;
uid: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TString<string>>;
sid: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TString<string>>;
version: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TNumber>;
state: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TObject<{
active: import("@sinclair/typebox").TBoolean;
completed: import("@sinclair/typebox").TBoolean;
}>>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"set">>;
}>]>]>>>;

@@ -55,0 +66,0 @@ }>;

2

dist/index.js

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

"use strict";var d=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var u=(n,r)=>{for(var y in r)d(n,y,{get:r[y],enumerable:!0})},I=(n,r,y,k)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of E(r))!g.call(n,l)&&l!==y&&d(n,l,{get:()=>r[l],enumerable:!(k=w(r,l))||k.enumerable});return n};var O=n=>I(d({},"__esModule",{value:!0}),n);var U={};u(U,{Block:()=>m,BlockIntent:()=>j,BlockState:()=>s,Blocks:()=>T,Entry:()=>x,EntryProps:()=>R,Finish:()=>f,FinishProps:()=>F,Flow:()=>M,FlowIntent:()=>h,FlowState:()=>b,Model:()=>B,ModelProps:()=>L});module.exports=O(U);var S=require("@sinclair/typebox");var c=require("@sinclair/typebox");var e=require("@sinclair/typebox"),s=e.Type.Readonly(e.Type.Object({active:e.Type.Boolean(),completed:e.Type.Boolean()})),i=e.Type.Object({kind:e.Type.Readonly(e.Type.Literal("block")),uid:e.Type.Readonly(e.Type.String()),sid:e.Type.Readonly(e.Type.String()),version:e.Type.Readonly(e.Type.Number()),state:s});var F=c.Type.Object({type:c.Type.Readonly(c.Type.Literal("finish"))}),f=c.Type.Intersect([i,F]);var p=require("@sinclair/typebox");var R=p.Type.Object({type:p.Type.Readonly(p.Type.Literal("entry")),expression:p.Type.Optional(p.Type.Function([],p.Type.Promise(p.Type.Boolean())))}),x=p.Type.Intersect([i,R]);var a=require("@sinclair/typebox");var L=a.Type.Object({type:a.Type.Readonly(a.Type.Literal("model"))}),B=a.Type.Intersect([i,L]);var m=S.Type.Union([B,x,f]),T=S.Type.Array(m);var o=require("@sinclair/typebox"),h=o.Type.Union([o.Type.Literal("complete"),o.Type.Literal("exit"),o.Type.Literal("reset"),o.Type.Literal("start")]),j=o.Type.Union([o.Type.Literal("complete"),o.Type.Literal("next"),o.Type.Literal("prev")]);var t=require("@sinclair/typebox");var b=t.Type.Readonly(t.Type.Object({exited:t.Type.Boolean(),started:t.Type.Boolean(),completed:t.Type.Boolean()})),M=t.Type.Object({kind:t.Type.Readonly(t.Type.Literal("flow")),type:t.Type.Readonly(t.Type.Literal("flow")),uid:t.Type.Readonly(t.Type.String()),sid:t.Type.Readonly(t.Type.String()),version:t.Type.Readonly(t.Type.Number()),state:b,blocks:t.Type.Optional(t.Type.Array(m))});0&&(module.exports={Block,BlockIntent,BlockState,Blocks,Entry,EntryProps,Finish,FinishProps,Flow,FlowIntent,FlowState,Model,ModelProps});
"use strict";var L=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var A=(i,r)=>{for(var a in r)L(i,a,{get:r[a],enumerable:!0})},D=(i,r,a,I)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of U(r))!v.call(i,c)&&c!==a&&L(i,c,{get:()=>r[c],enumerable:!(I=P(r,c))||I.enumerable});return i};var N=i=>D(L({},"__esModule",{value:!0}),i);var H={};A(H,{BLOCK_TYPES:()=>K,Block:()=>E,BlockIntent:()=>z,BlockState:()=>R,BlockTypes:()=>Y,Blocks:()=>_,Entry:()=>h,EntryProps:()=>u,EntryType:()=>f,EntryTypeConst:()=>x,Finish:()=>b,FinishProps:()=>g,FinishType:()=>d,FinishTypeConst:()=>m,Flow:()=>G,FlowIntent:()=>q,FlowState:()=>j,Model:()=>w,ModelProps:()=>C,ModelType:()=>B,ModelTypeConst:()=>S,Set:()=>O,SetProps:()=>M,SetType:()=>k,SetTypeConst:()=>T});module.exports=N(H);var F=require("@sinclair/typebox");var l=require("@sinclair/typebox");var e=require("@sinclair/typebox"),R=e.Type.Readonly(e.Type.Object({active:e.Type.Boolean(),completed:e.Type.Boolean()})),n=e.Type.Object({kind:e.Type.Readonly(e.Type.Literal("block")),uid:e.Type.Readonly(e.Type.String()),sid:e.Type.Readonly(e.Type.String()),version:e.Type.Readonly(e.Type.Number()),state:R});var m="finish",d=l.Type.Literal(m),g=l.Type.Object({type:l.Type.Readonly(d)}),b=l.Type.Intersect([n,g]);var p=require("@sinclair/typebox");var x="entry",f=p.Type.Literal(x),u=p.Type.Object({type:p.Type.Readonly(f),expression:p.Type.Optional(p.Type.Function([],p.Type.Promise(p.Type.Boolean())))}),h=p.Type.Intersect([n,u]);var y=require("@sinclair/typebox");var S="model",B=y.Type.Literal(S),C=y.Type.Object({type:y.Type.Readonly(B)}),w=y.Type.Intersect([n,C]);var s=require("@sinclair/typebox");var T="set",k=s.Type.Literal(T),M=s.Type.Object({type:s.Type.Readonly(k)}),O=s.Type.Intersect([n,M]);var K={entry:x,model:S,finish:m,set:T},Y=F.Type.Union([f,B,d,k]),E=F.Type.Union([w,h,b,O]),_=F.Type.Array(E);var o=require("@sinclair/typebox"),q=o.Type.Union([o.Type.Literal("complete"),o.Type.Literal("exit"),o.Type.Literal("reset"),o.Type.Literal("start")]),z=o.Type.Union([o.Type.Literal("complete"),o.Type.Literal("next"),o.Type.Literal("prev")]);var t=require("@sinclair/typebox");var j=t.Type.Readonly(t.Type.Object({exited:t.Type.Boolean(),started:t.Type.Boolean(),completed:t.Type.Boolean()})),G=t.Type.Object({kind:t.Type.Readonly(t.Type.Literal("flow")),type:t.Type.Readonly(t.Type.Literal("flow")),uid:t.Type.Readonly(t.Type.String()),sid:t.Type.Readonly(t.Type.String()),version:t.Type.Readonly(t.Type.Number()),state:j,blocks:t.Type.Optional(t.Type.Array(E))});0&&(module.exports={BLOCK_TYPES,Block,BlockIntent,BlockState,BlockTypes,Blocks,Entry,EntryProps,EntryType,EntryTypeConst,Finish,FinishProps,FinishType,FinishTypeConst,Flow,FlowIntent,FlowState,Model,ModelProps,ModelType,ModelTypeConst,Set,SetProps,SetType,SetTypeConst});
//# sourceMappingURL=index.js.map
{
"name": "@dopt/block-types",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"description": "Schema/Type definitions for objects surfaced through the Block API",

@@ -42,5 +42,5 @@ "homepage": "https://github.com/dopt/odopt/tree/main/packages/%40dopt/block-types",

"typescript": "4.9.4",
"@dopt/check-formatting": "0.0.0",
"@dopt/config": "0.0.0",
"@dopt/tsup": "0.0.0",
"@dopt/config": "0.0.0"
"@dopt/check-formatting": "0.0.0"
},

@@ -47,0 +47,0 @@ "scripts": {

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