@kyro-cms/core 0.12.0 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{WebhookService-CE2BzNb_.d.cts → WebhookService-DRQLv_jR.d.cts} +1 -1
- package/dist/{WebhookService-DIUUnBqL.d.ts → WebhookService-DTNKXpXp.d.ts} +1 -1
- package/dist/api-handler-graphql.cjs +1 -1
- package/dist/api-handler-graphql.js +1 -1
- package/dist/api-handler-trpc.cjs +1 -1
- package/dist/api-handler-trpc.js +1 -1
- package/dist/api-handler.cjs +1 -1
- package/dist/api-handler.js +1 -1
- package/dist/{base-BbqmiS-x.d.ts → base-BKGB0Y3W.d.ts} +2 -2
- package/dist/{base-BvTw4t8l.d.cts → base-Dk6eKGJJ.d.cts} +2 -2
- package/dist/{chunk-KY3Q7LFE.cjs → chunk-32GUKU7D.cjs} +3 -3
- package/dist/chunk-3YGGZ2VN.js +133 -0
- package/dist/chunk-4RSGPSKQ.js +3 -0
- package/dist/chunk-54B2Q567.cjs +86 -0
- package/dist/{chunk-2MRO4YLX.cjs → chunk-7WQ4D7WW.cjs} +1 -1
- package/dist/chunk-B7V5KOIM.js +86 -0
- package/dist/{chunk-YKQG6NBC.js → chunk-GDCTY6JO.js} +2 -2
- package/dist/{chunk-PFT4OMNK.js → chunk-INB4LNA6.js} +2 -2
- package/dist/{chunk-JLIXKA4D.js → chunk-MAWFXNW4.js} +1 -1
- package/dist/{chunk-GM63MQNE.cjs → chunk-RCV2TLOG.cjs} +3 -3
- package/dist/chunk-SK2Q4PRV.cjs +90 -0
- package/dist/chunk-Z7CNY2UV.cjs +133 -0
- package/dist/client.cjs +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/drizzle/index.cjs +1 -1
- package/dist/drizzle/index.d.cts +3 -3
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/drizzle/index.js +1 -1
- package/dist/fields/index.cjs +1 -1
- package/dist/fields/index.d.cts +2 -2
- package/dist/fields/index.d.ts +2 -2
- package/dist/fields/index.js +1 -1
- package/dist/graphql/index.d.cts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/{index-B70yBGlO.d.cts → index-cBgeiKp1.d.ts} +7 -2
- package/dist/{index-BJMk6wAL.d.ts → index-yPGko8UV.d.cts} +7 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1 -1
- package/dist/mongodb/index.d.cts +3 -3
- package/dist/mongodb/index.d.ts +3 -3
- package/dist/rest/index.cjs +1 -1
- package/dist/rest/index.d.cts +4 -4
- package/dist/rest/index.d.ts +4 -4
- package/dist/rest/index.js +1 -1
- package/dist/templates/index.cjs +1 -1
- package/dist/templates/index.d.cts +2 -2
- package/dist/templates/index.d.ts +2 -2
- package/dist/templates/index.js +1 -1
- package/dist/trpc/index.d.cts +3 -3
- package/dist/trpc/index.d.ts +3 -3
- package/dist/{types-HgePo7uw.d.ts → types-Bj3d_ys8.d.ts} +1 -1
- package/dist/{types-Dlbz_JRA.d.cts → types-BowAPGjD.d.cts} +1 -1
- package/dist/{types-CIJsFuvf.d.cts → types-fvldOd92.d.cts} +17 -7
- package/dist/{types-CIJsFuvf.d.ts → types-fvldOd92.d.ts} +17 -7
- package/package.json +1 -1
- package/dist/chunk-6CF7WF64.cjs +0 -90
- package/dist/chunk-BYTGJJK6.js +0 -86
- package/dist/chunk-IC7UOIHY.cjs +0 -133
- package/dist/chunk-KHQGO3U3.cjs +0 -86
- package/dist/chunk-MRVECVMR.js +0 -133
- package/dist/chunk-PNA36LJ6.js +0 -3
package/dist/templates/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkRCV2TLOG_cjs=require('../chunk-RCV2TLOG.cjs'),chunk65G73T7Z_cjs=require('../chunk-65G73T7Z.cjs'),chunkGFU7AOI3_cjs=require('../chunk-GFU7AOI3.cjs');require('../chunk-AHSFSERC.cjs');Object.defineProperty(exports,"accessSettingsGlobal",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.J}});Object.defineProperty(exports,"allSettingsGlobals",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.N}});Object.defineProperty(exports,"blogCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.c}});Object.defineProperty(exports,"blogGlobals",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.d}});Object.defineProperty(exports,"brandSettingsGlobal",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.H}});Object.defineProperty(exports,"categoriesCollection",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.p}});Object.defineProperty(exports,"categoriesCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.q}});Object.defineProperty(exports,"coreSettingsGlobals",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.O}});Object.defineProperty(exports,"couponsCollection",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.z}});Object.defineProperty(exports,"couponsCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.A}});Object.defineProperty(exports,"createTemplateConfig",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.S}});Object.defineProperty(exports,"customersCollection",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.v}});Object.defineProperty(exports,"customersCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.w}});Object.defineProperty(exports,"ecommerceCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.e}});Object.defineProperty(exports,"ecommerceGlobals",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.f}});Object.defineProperty(exports,"emailSettingsGlobal",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.I}});Object.defineProperty(exports,"formEntriesCollection",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.D}});Object.defineProperty(exports,"formEntriesCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.E}});Object.defineProperty(exports,"formsCollection",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.B}});Object.defineProperty(exports,"formsCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.C}});Object.defineProperty(exports,"getSettingsForTemplate",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.Q}});Object.defineProperty(exports,"kitchenSinkCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.g}});Object.defineProperty(exports,"mediaCollection",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.h}});Object.defineProperty(exports,"mediaCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.i}});Object.defineProperty(exports,"menuCollection",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.j}});Object.defineProperty(exports,"menuCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.k}});Object.defineProperty(exports,"minimalCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.a}});Object.defineProperty(exports,"ordersCollection",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.x}});Object.defineProperty(exports,"ordersCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.y}});Object.defineProperty(exports,"pageCollection",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.n}});Object.defineProperty(exports,"pageCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.o}});Object.defineProperty(exports,"paymentSettingsGlobal",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.L}});Object.defineProperty(exports,"postsCollection",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.l}});Object.defineProperty(exports,"postsCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.m}});Object.defineProperty(exports,"productCategoriesCollection",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.r}});Object.defineProperty(exports,"productCategoriesCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.s}});Object.defineProperty(exports,"productsCollection",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.t}});Object.defineProperty(exports,"productsCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.u}});Object.defineProperty(exports,"seoSettingsGlobal",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.G}});Object.defineProperty(exports,"settingsBySlug",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.P}});Object.defineProperty(exports,"siteSettingsGlobal",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.F}});Object.defineProperty(exports,"starterCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.b}});Object.defineProperty(exports,"storeSettingsGlobal",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.K}});Object.defineProperty(exports,"systemSettingsGlobal",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.M}});Object.defineProperty(exports,"templateCollections",{enumerable:true,get:function(){return chunkRCV2TLOG_cjs.R}});Object.defineProperty(exports,"storageSettingsGlobal",{enumerable:true,get:function(){return chunk65G73T7Z_cjs.a}});Object.defineProperty(exports,"authCollections",{enumerable:true,get:function(){return chunkGFU7AOI3_cjs.b}});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as GlobalConfig, C as CollectionConfig } from '../types-
|
|
2
|
-
import '../types-
|
|
1
|
+
import { G as GlobalConfig, C as CollectionConfig } from '../types-BowAPGjD.cjs';
|
|
2
|
+
import '../types-fvldOd92.cjs';
|
|
3
3
|
|
|
4
4
|
declare const minimalCollections: Record<string, any>;
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as GlobalConfig, C as CollectionConfig } from '../types-
|
|
2
|
-
import '../types-
|
|
1
|
+
import { G as GlobalConfig, C as CollectionConfig } from '../types-Bj3d_ys8.js';
|
|
2
|
+
import '../types-fvldOd92.js';
|
|
3
3
|
|
|
4
4
|
declare const minimalCollections: Record<string, any>;
|
|
5
5
|
|
package/dist/templates/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{J as accessSettingsGlobal,N as allSettingsGlobals,c as blogCollections,d as blogGlobals,H as brandSettingsGlobal,p as categoriesCollection,q as categoriesCollections,O as coreSettingsGlobals,z as couponsCollection,A as couponsCollections,S as createTemplateConfig,v as customersCollection,w as customersCollections,e as ecommerceCollections,f as ecommerceGlobals,I as emailSettingsGlobal,D as formEntriesCollection,E as formEntriesCollections,B as formsCollection,C as formsCollections,Q as getSettingsForTemplate,g as kitchenSinkCollections,h as mediaCollection,i as mediaCollections,j as menuCollection,k as menuCollections,a as minimalCollections,x as ordersCollection,y as ordersCollections,n as pageCollection,o as pageCollections,L as paymentSettingsGlobal,l as postsCollection,m as postsCollections,r as productCategoriesCollection,s as productCategoriesCollections,t as productsCollection,u as productsCollections,G as seoSettingsGlobal,P as settingsBySlug,F as siteSettingsGlobal,b as starterCollections,K as storeSettingsGlobal,M as systemSettingsGlobal,R as templateCollections}from'../chunk-
|
|
1
|
+
export{J as accessSettingsGlobal,N as allSettingsGlobals,c as blogCollections,d as blogGlobals,H as brandSettingsGlobal,p as categoriesCollection,q as categoriesCollections,O as coreSettingsGlobals,z as couponsCollection,A as couponsCollections,S as createTemplateConfig,v as customersCollection,w as customersCollections,e as ecommerceCollections,f as ecommerceGlobals,I as emailSettingsGlobal,D as formEntriesCollection,E as formEntriesCollections,B as formsCollection,C as formsCollections,Q as getSettingsForTemplate,g as kitchenSinkCollections,h as mediaCollection,i as mediaCollections,j as menuCollection,k as menuCollections,a as minimalCollections,x as ordersCollection,y as ordersCollections,n as pageCollection,o as pageCollections,L as paymentSettingsGlobal,l as postsCollection,m as postsCollections,r as productCategoriesCollection,s as productCategoriesCollections,t as productsCollection,u as productsCollections,G as seoSettingsGlobal,P as settingsBySlug,F as siteSettingsGlobal,b as starterCollections,K as storeSettingsGlobal,M as systemSettingsGlobal,R as templateCollections}from'../chunk-4RSGPSKQ.js';export{a as storageSettingsGlobal}from'../chunk-NZ35PV5R.js';export{b as authCollections}from'../chunk-AE6GXUT7.js';import'../chunk-5J6HXUF6.js';
|
package/dist/trpc/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as BaseAdapter, R as Request, i as User, b as FindResult } from '../types-
|
|
2
|
-
import { j as createWebhookService } from '../WebhookService-
|
|
3
|
-
import '../types-
|
|
1
|
+
import { B as BaseAdapter, R as Request, i as User, b as FindResult } from '../types-BowAPGjD.cjs';
|
|
2
|
+
import { j as createWebhookService } from '../WebhookService-DRQLv_jR.cjs';
|
|
3
|
+
import '../types-fvldOd92.cjs';
|
|
4
4
|
|
|
5
5
|
interface ApiKeyContext {
|
|
6
6
|
userId: string;
|
package/dist/trpc/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as BaseAdapter, R as Request, i as User, b as FindResult } from '../types-
|
|
2
|
-
import { j as createWebhookService } from '../WebhookService-
|
|
3
|
-
import '../types-
|
|
1
|
+
import { B as BaseAdapter, R as Request, i as User, b as FindResult } from '../types-Bj3d_ys8.js';
|
|
2
|
+
import { j as createWebhookService } from '../WebhookService-DTNKXpXp.js';
|
|
3
|
+
import '../types-fvldOd92.js';
|
|
4
4
|
|
|
5
5
|
interface ApiKeyContext {
|
|
6
6
|
userId: string;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Unlike function conditions, these survive JSON serialization
|
|
4
4
|
* and can be used in admin configs that are built at compile time.
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
/** The field name to evaluate (resolved from root form data) */
|
|
6
|
+
type DeclarativeCondition = {
|
|
7
|
+
/** The field name to evaluate (resolved from root form data, supports dot-notation) */
|
|
8
8
|
field: string;
|
|
9
9
|
/** Show the field when the target field equals this value */
|
|
10
10
|
equals?: string | number | boolean;
|
|
@@ -12,7 +12,13 @@ interface DeclarativeCondition {
|
|
|
12
12
|
notEquals?: string | number | boolean;
|
|
13
13
|
/** Show the field when the target field's value is one of these */
|
|
14
14
|
in?: (string | number | boolean)[];
|
|
15
|
-
|
|
15
|
+
/** Show the field when the target field's value is greater than this */
|
|
16
|
+
greaterThan?: number;
|
|
17
|
+
} | {
|
|
18
|
+
and: DeclarativeCondition[];
|
|
19
|
+
} | {
|
|
20
|
+
or: DeclarativeCondition[];
|
|
21
|
+
};
|
|
16
22
|
interface FieldAdmin {
|
|
17
23
|
description?: string;
|
|
18
24
|
placeholder?: string;
|
|
@@ -261,7 +267,10 @@ interface ActionField extends BaseField {
|
|
|
261
267
|
interface SecretField extends BaseField {
|
|
262
268
|
type: "secret";
|
|
263
269
|
}
|
|
264
|
-
|
|
270
|
+
interface IconField extends BaseField {
|
|
271
|
+
type: "icon";
|
|
272
|
+
}
|
|
273
|
+
type Field = TextField | NumberField | CheckboxField | DateField | EmailField | PasswordField | TextareaField | SelectField | RadioField | ColorField | ImageField | RichTextField | JSONField | CodeField | UploadField | MarkdownField | RelationshipField | ArrayField | ListField | GroupField | BlocksField | RowField | CollapsibleField | TabsField | ButtonField | ActionField | SecretField | IconField;
|
|
265
274
|
type FieldType = Field["type"];
|
|
266
275
|
declare function isTextField(field: Field): field is TextField;
|
|
267
276
|
declare function isNumberField(field: Field): field is NumberField;
|
|
@@ -274,11 +283,12 @@ declare function isImageField(field: Field): field is ImageField;
|
|
|
274
283
|
declare function isRichTextField(field: Field): field is RichTextField;
|
|
275
284
|
declare function isSelectField(field: Field): field is SelectField;
|
|
276
285
|
declare function isLayoutField(field: Field): field is RowField | CollapsibleField | TabsField;
|
|
277
|
-
declare
|
|
286
|
+
declare function isIconField(field: Field): field is IconField;
|
|
287
|
+
declare const PRIMITIVE_FIELD_TYPES: readonly ["text", "number", "checkbox", "date", "email", "password", "textarea", "select", "radio", "color", "icon"];
|
|
278
288
|
declare const COMPLEX_FIELD_TYPES: readonly ["richtext", "json", "code", "upload", "image", "markdown"];
|
|
279
289
|
declare const RELATIONAL_FIELD_TYPES: readonly ["relationship", "array", "group", "blocks"];
|
|
280
290
|
declare const LAYOUT_FIELD_TYPES: readonly ["row", "collapsible", "tabs"];
|
|
281
|
-
declare const ALL_FIELD_TYPES: readonly ["text", "number", "checkbox", "date", "email", "password", "textarea", "select", "radio", "color", "richtext", "json", "code", "upload", "image", "markdown", "relationship", "array", "group", "blocks", "row", "collapsible", "tabs"];
|
|
291
|
+
declare const ALL_FIELD_TYPES: readonly ["text", "number", "checkbox", "date", "email", "password", "textarea", "select", "radio", "color", "icon", "richtext", "json", "code", "upload", "image", "markdown", "relationship", "array", "group", "blocks", "row", "collapsible", "tabs"];
|
|
282
292
|
declare function createRelationshipFieldConfig(name: string, relationTo: string | string[], options?: Partial<Omit<RelationshipField, "type" | "name" | "relationTo">>): RelationshipField;
|
|
283
293
|
|
|
284
|
-
export {
|
|
294
|
+
export { isRelationshipField as $, type ArrayField as A, type BaseField as B, type CheckboxField as C, type DateField as D, type EmailField as E, type Field as F, type GroupField as G, type Hook as H, type ImageField as I, type JSONField as J, createRelationshipFieldConfig as K, LAYOUT_FIELD_TYPES as L, type MarkdownField as M, type NumberField as N, isArrayField as O, type PasswordField as P, isBlocksField as Q, type RadioField as R, type SecretField as S, type TabsField as T, type UploadField as U, type ValidateOptions as V, isGroupField as W, isIconField as X, isImageField as Y, isLayoutField as Z, isNumberField as _, type Block as a, isRichTextField as a0, isSelectField as a1, isTextField as a2, isUploadField as a3, type BlockAdmin as b, type BlockImage as c, type BlocksField as d, type CodeField as e, type CollapsibleField as f, type ColorField as g, type DeclarativeCondition as h, type FieldAdmin as i, type FieldType as j, type RelationshipField as k, type RichTextBlock as l, type RichTextField as m, type RowField as n, type SelectField as o, type TextField as p, type TextareaField as q, ALL_FIELD_TYPES as r, type ActionField as s, type ButtonField as t, COMPLEX_FIELD_TYPES as u, type IconField as v, type ListField as w, PRIMITIVE_FIELD_TYPES as x, RELATIONAL_FIELD_TYPES as y, type TextFieldVariant as z };
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Unlike function conditions, these survive JSON serialization
|
|
4
4
|
* and can be used in admin configs that are built at compile time.
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
/** The field name to evaluate (resolved from root form data) */
|
|
6
|
+
type DeclarativeCondition = {
|
|
7
|
+
/** The field name to evaluate (resolved from root form data, supports dot-notation) */
|
|
8
8
|
field: string;
|
|
9
9
|
/** Show the field when the target field equals this value */
|
|
10
10
|
equals?: string | number | boolean;
|
|
@@ -12,7 +12,13 @@ interface DeclarativeCondition {
|
|
|
12
12
|
notEquals?: string | number | boolean;
|
|
13
13
|
/** Show the field when the target field's value is one of these */
|
|
14
14
|
in?: (string | number | boolean)[];
|
|
15
|
-
|
|
15
|
+
/** Show the field when the target field's value is greater than this */
|
|
16
|
+
greaterThan?: number;
|
|
17
|
+
} | {
|
|
18
|
+
and: DeclarativeCondition[];
|
|
19
|
+
} | {
|
|
20
|
+
or: DeclarativeCondition[];
|
|
21
|
+
};
|
|
16
22
|
interface FieldAdmin {
|
|
17
23
|
description?: string;
|
|
18
24
|
placeholder?: string;
|
|
@@ -261,7 +267,10 @@ interface ActionField extends BaseField {
|
|
|
261
267
|
interface SecretField extends BaseField {
|
|
262
268
|
type: "secret";
|
|
263
269
|
}
|
|
264
|
-
|
|
270
|
+
interface IconField extends BaseField {
|
|
271
|
+
type: "icon";
|
|
272
|
+
}
|
|
273
|
+
type Field = TextField | NumberField | CheckboxField | DateField | EmailField | PasswordField | TextareaField | SelectField | RadioField | ColorField | ImageField | RichTextField | JSONField | CodeField | UploadField | MarkdownField | RelationshipField | ArrayField | ListField | GroupField | BlocksField | RowField | CollapsibleField | TabsField | ButtonField | ActionField | SecretField | IconField;
|
|
265
274
|
type FieldType = Field["type"];
|
|
266
275
|
declare function isTextField(field: Field): field is TextField;
|
|
267
276
|
declare function isNumberField(field: Field): field is NumberField;
|
|
@@ -274,11 +283,12 @@ declare function isImageField(field: Field): field is ImageField;
|
|
|
274
283
|
declare function isRichTextField(field: Field): field is RichTextField;
|
|
275
284
|
declare function isSelectField(field: Field): field is SelectField;
|
|
276
285
|
declare function isLayoutField(field: Field): field is RowField | CollapsibleField | TabsField;
|
|
277
|
-
declare
|
|
286
|
+
declare function isIconField(field: Field): field is IconField;
|
|
287
|
+
declare const PRIMITIVE_FIELD_TYPES: readonly ["text", "number", "checkbox", "date", "email", "password", "textarea", "select", "radio", "color", "icon"];
|
|
278
288
|
declare const COMPLEX_FIELD_TYPES: readonly ["richtext", "json", "code", "upload", "image", "markdown"];
|
|
279
289
|
declare const RELATIONAL_FIELD_TYPES: readonly ["relationship", "array", "group", "blocks"];
|
|
280
290
|
declare const LAYOUT_FIELD_TYPES: readonly ["row", "collapsible", "tabs"];
|
|
281
|
-
declare const ALL_FIELD_TYPES: readonly ["text", "number", "checkbox", "date", "email", "password", "textarea", "select", "radio", "color", "richtext", "json", "code", "upload", "image", "markdown", "relationship", "array", "group", "blocks", "row", "collapsible", "tabs"];
|
|
291
|
+
declare const ALL_FIELD_TYPES: readonly ["text", "number", "checkbox", "date", "email", "password", "textarea", "select", "radio", "color", "icon", "richtext", "json", "code", "upload", "image", "markdown", "relationship", "array", "group", "blocks", "row", "collapsible", "tabs"];
|
|
282
292
|
declare function createRelationshipFieldConfig(name: string, relationTo: string | string[], options?: Partial<Omit<RelationshipField, "type" | "name" | "relationTo">>): RelationshipField;
|
|
283
293
|
|
|
284
|
-
export {
|
|
294
|
+
export { isRelationshipField as $, type ArrayField as A, type BaseField as B, type CheckboxField as C, type DateField as D, type EmailField as E, type Field as F, type GroupField as G, type Hook as H, type ImageField as I, type JSONField as J, createRelationshipFieldConfig as K, LAYOUT_FIELD_TYPES as L, type MarkdownField as M, type NumberField as N, isArrayField as O, type PasswordField as P, isBlocksField as Q, type RadioField as R, type SecretField as S, type TabsField as T, type UploadField as U, type ValidateOptions as V, isGroupField as W, isIconField as X, isImageField as Y, isLayoutField as Z, isNumberField as _, type Block as a, isRichTextField as a0, isSelectField as a1, isTextField as a2, isUploadField as a3, type BlockAdmin as b, type BlockImage as c, type BlocksField as d, type CodeField as e, type CollapsibleField as f, type ColorField as g, type DeclarativeCondition as h, type FieldAdmin as i, type FieldType as j, type RelationshipField as k, type RichTextBlock as l, type RichTextField as m, type RowField as n, type SelectField as o, type TextField as p, type TextareaField as q, ALL_FIELD_TYPES as r, type ActionField as s, type ButtonField as t, COMPLEX_FIELD_TYPES as u, type IconField as v, type ListField as w, PRIMITIVE_FIELD_TYPES as x, RELATIONAL_FIELD_TYPES as y, type TextFieldVariant as z };
|
package/package.json
CHANGED
package/dist/chunk-6CF7WF64.cjs
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
'use strict';var html=require('@tiptap/html'),s=require('@tiptap/starter-kit'),d=require('@tiptap/extension-link'),p=require('@tiptap/extension-image'),c=require('@tiptap/extension-text-align'),x=require('@tiptap/extension-underline'),g=require('@tiptap/extension-highlight'),u=require('@tiptap/extension-task-list'),m=require('@tiptap/extension-task-item'),extensionTextStyle=require('@tiptap/extension-text-style'),y=require('@tiptap/extension-color');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var s__default=/*#__PURE__*/_interopDefault(s);var d__default=/*#__PURE__*/_interopDefault(d);var p__default=/*#__PURE__*/_interopDefault(p);var c__default=/*#__PURE__*/_interopDefault(c);var x__default=/*#__PURE__*/_interopDefault(x);var g__default=/*#__PURE__*/_interopDefault(g);var u__default=/*#__PURE__*/_interopDefault(u);var m__default=/*#__PURE__*/_interopDefault(m);var y__default=/*#__PURE__*/_interopDefault(y);function b(e){return e.type==="text"}function h(e){return e.type==="number"}function k(e){return e.type==="relationship"}function R(e){return e.type==="array"}function B(e){return e.type==="group"}function T(e){return e.type==="blocks"}function w(e){return e.type==="upload"}function L(e){return e.type==="image"}function A(e){return e.type==="richtext"}function I(e){return e.type==="select"}function V(e){return e.type==="row"||e.type==="collapsible"||e.type==="tabs"}var r=["text","number","checkbox","date","email","password","textarea","select","radio","color"],n=["richtext","json","code","upload","image","markdown"],o=["relationship","array","group","blocks"],a=["row","collapsible","tabs"],C=[...r,...n,...o,...a];function D(e,t,i){return {name:e,type:"relationship",relationTo:t,...i,required:i?.required??false}}var Y=`
|
|
2
|
-
.kyro-richtext {
|
|
3
|
-
color: inherit;
|
|
4
|
-
line-height: 1.7;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.kyro-richtext > *:first-child {
|
|
8
|
-
margin-top: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.kyro-richtext > *:last-child {
|
|
12
|
-
margin-bottom: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.kyro-richtext p,
|
|
16
|
-
.kyro-richtext ul,
|
|
17
|
-
.kyro-richtext ol,
|
|
18
|
-
.kyro-richtext blockquote,
|
|
19
|
-
.kyro-richtext pre {
|
|
20
|
-
margin: 0 0 1rem;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.kyro-richtext h1,
|
|
24
|
-
.kyro-richtext h2,
|
|
25
|
-
.kyro-richtext h3,
|
|
26
|
-
.kyro-richtext h4,
|
|
27
|
-
.kyro-richtext h5,
|
|
28
|
-
.kyro-richtext h6 {
|
|
29
|
-
margin: 0 0 0.75rem;
|
|
30
|
-
line-height: 1.2;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.kyro-richtext ul,
|
|
34
|
-
.kyro-richtext ol {
|
|
35
|
-
padding-left: 1.5rem;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.kyro-richtext blockquote {
|
|
39
|
-
border-left: 4px solid rgba(148, 163, 184, 0.5);
|
|
40
|
-
margin-left: 0;
|
|
41
|
-
padding-left: 1rem;
|
|
42
|
-
font-style: italic;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.kyro-richtext pre {
|
|
46
|
-
overflow-x: auto;
|
|
47
|
-
border-radius: 0.75rem;
|
|
48
|
-
background: rgba(15, 23, 42, 0.92);
|
|
49
|
-
color: #f8fafc;
|
|
50
|
-
padding: 1rem;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.kyro-richtext code {
|
|
54
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.kyro-richtext img {
|
|
58
|
-
display: block;
|
|
59
|
-
max-width: 100%;
|
|
60
|
-
height: auto;
|
|
61
|
-
border-radius: 0.75rem;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.kyro-richtext ul[data-type="taskList"] {
|
|
65
|
-
list-style: none;
|
|
66
|
-
padding: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.kyro-richtext li[data-type="taskItem"] {
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: flex-start;
|
|
72
|
-
gap: 0.5rem;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.kyro-richtext li[data-type="taskItem"] > label {
|
|
76
|
-
user-select: none;
|
|
77
|
-
pointer-events: none;
|
|
78
|
-
margin-top: 0.2rem;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.kyro-richtext li[data-type="taskItem"] > div {
|
|
82
|
-
flex: 1;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.kyro-richtext mark {
|
|
86
|
-
background-color: #fef08a;
|
|
87
|
-
border-radius: 0.25rem;
|
|
88
|
-
padding: 0.125rem 0.25rem;
|
|
89
|
-
}
|
|
90
|
-
`.trim(),f=[s__default.default,d__default.default.configure({openOnClick:false}),p__default.default,c__default.default.configure({types:["heading","paragraph"]}),x__default.default,g__default.default.configure({multicolor:true}),u__default.default,m__default.default.configure({nested:true}),extensionTextStyle.TextStyle,y__default.default];function G(e){return typeof e=="object"&&e!==null?e:{}}function j(e){if(typeof e!="object"||e===null)return "";try{return `<div class="kyro-richtext">${html.generateHTML(e,f)}</div>`}catch(t){return console.error("Failed to render rich text:",t),""}}exports.a=b;exports.b=h;exports.c=k;exports.d=R;exports.e=B;exports.f=T;exports.g=w;exports.h=L;exports.i=A;exports.j=I;exports.k=V;exports.l=r;exports.m=n;exports.n=o;exports.o=a;exports.p=C;exports.q=D;exports.r=Y;exports.s=G;exports.t=j;
|