@ethereal-nexus/core 1.7.2 → 1.9.0
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/decorators/index.d.mts +1 -1
- package/dist/decorators/index.d.ts +1 -1
- package/dist/decorators/webcomponent/index.d.mts +1 -1
- package/dist/decorators/webcomponent/index.d.ts +1 -1
- package/dist/decorators/webcomponent/webcomponent.d.mts +1 -1
- package/dist/decorators/webcomponent/webcomponent.d.ts +1 -1
- package/dist/functions/component/component.d.mts +1 -1
- package/dist/functions/component/component.d.ts +1 -1
- package/dist/functions/component/index.d.mts +1 -1
- package/dist/functions/component/index.d.ts +1 -1
- package/dist/functions/index.d.mts +1 -1
- package/dist/functions/index.d.ts +1 -1
- package/dist/functions/parse/index.d.mts +1 -1
- package/dist/functions/parse/index.d.ts +1 -1
- package/dist/functions/parse/parse.d.mts +1 -1
- package/dist/functions/parse/parse.d.ts +1 -1
- package/dist/functions/parse/parsePrimitives.d.mts +1 -1
- package/dist/functions/parse/parsePrimitives.d.ts +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +28 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -0
- package/dist/index.mjs.map +1 -1
- package/dist/schema/calendar/calendar.d.mts +1 -1
- package/dist/schema/calendar/calendar.d.ts +1 -1
- package/dist/schema/calendar/index.d.mts +1 -1
- package/dist/schema/calendar/index.d.ts +1 -1
- package/dist/schema/checkbox/checkbox.d.mts +3 -3
- package/dist/schema/checkbox/checkbox.d.ts +3 -3
- package/dist/schema/checkbox/checkbox.js.map +1 -1
- package/dist/schema/checkbox/checkbox.mjs.map +1 -1
- package/dist/schema/checkbox/index.d.mts +1 -1
- package/dist/schema/checkbox/index.d.ts +1 -1
- package/dist/schema/checkbox/index.js.map +1 -1
- package/dist/schema/checkbox/index.mjs.map +1 -1
- package/dist/schema/datamodel/datamodel.d.mts +1 -1
- package/dist/schema/datamodel/datamodel.d.ts +1 -1
- package/dist/schema/datamodel/index.d.mts +1 -1
- package/dist/schema/datamodel/index.d.ts +1 -1
- package/dist/schema/datasource/datasource.d.mts +1 -1
- package/dist/schema/datasource/datasource.d.ts +1 -1
- package/dist/schema/datasource/index.d.mts +1 -1
- package/dist/schema/datasource/index.d.ts +1 -1
- package/dist/schema/dialog/condition.d.mts +1 -1
- package/dist/schema/dialog/condition.d.ts +1 -1
- package/dist/schema/dialog/dialog.d.mts +1 -1
- package/dist/schema/dialog/dialog.d.ts +1 -1
- package/dist/schema/dialog/index.d.mts +1 -1
- package/dist/schema/dialog/index.d.ts +1 -1
- package/dist/schema/dialog/tabs.d.mts +1 -1
- package/dist/schema/dialog/tabs.d.ts +1 -1
- package/dist/schema/dialog/types.d.mts +1 -1
- package/dist/schema/dialog/types.d.ts +1 -1
- package/dist/schema/dynamic/dynamic.d.mts +1 -1
- package/dist/schema/dynamic/dynamic.d.ts +1 -1
- package/dist/schema/dynamic/index.d.mts +1 -1
- package/dist/schema/dynamic/index.d.ts +1 -1
- package/dist/schema/group/group.d.mts +1 -1
- package/dist/schema/group/group.d.ts +1 -1
- package/dist/schema/group/index.d.mts +1 -1
- package/dist/schema/group/index.d.ts +1 -1
- package/dist/schema/hidden/hidden.d.mts +1 -1
- package/dist/schema/hidden/hidden.d.ts +1 -1
- package/dist/schema/hidden/index.d.mts +1 -1
- package/dist/schema/hidden/index.d.ts +1 -1
- package/dist/schema/media/index.d.mts +1 -1
- package/dist/schema/media/index.d.ts +1 -1
- package/dist/schema/media/index.js.map +1 -1
- package/dist/schema/media/index.mjs.map +1 -1
- package/dist/schema/media/media.d.mts +3 -2
- package/dist/schema/media/media.d.ts +3 -2
- package/dist/schema/media/media.js.map +1 -1
- package/dist/schema/media/media.mjs.map +1 -1
- package/dist/schema/multifield/index.d.mts +1 -1
- package/dist/schema/multifield/index.d.ts +1 -1
- package/dist/schema/multifield/multifield.d.mts +1 -1
- package/dist/schema/multifield/multifield.d.ts +1 -1
- package/dist/schema/navigation/index.d.mts +1 -1
- package/dist/schema/navigation/index.d.ts +1 -1
- package/dist/schema/navigation/navigation.d.mts +1 -1
- package/dist/schema/navigation/navigation.d.ts +1 -1
- package/dist/schema/object/index.d.mts +1 -1
- package/dist/schema/object/index.d.ts +1 -1
- package/dist/schema/object/object.d.mts +1 -1
- package/dist/schema/object/object.d.ts +1 -1
- package/dist/schema/optional/index.d.mts +1 -1
- package/dist/schema/optional/index.d.ts +1 -1
- package/dist/schema/optional/optional.d.mts +1 -1
- package/dist/schema/optional/optional.d.ts +1 -1
- package/dist/schema/pathbrowser/index.d.mts +1 -1
- package/dist/schema/pathbrowser/index.d.ts +1 -1
- package/dist/schema/pathbrowser/pathbrowser.d.mts +1 -1
- package/dist/schema/pathbrowser/pathbrowser.d.ts +1 -1
- package/dist/schema/rte/index.d.mts +1 -1
- package/dist/schema/rte/index.d.ts +1 -1
- package/dist/schema/rte/rte.d.mts +1 -1
- package/dist/schema/rte/rte.d.ts +1 -1
- package/dist/schema/select/index.d.mts +1 -1
- package/dist/schema/select/index.d.ts +1 -1
- package/dist/schema/select/select.d.mts +1 -1
- package/dist/schema/select/select.d.ts +1 -1
- package/dist/schema/tags/index.d.mts +4 -0
- package/dist/schema/tags/index.d.ts +4 -0
- package/dist/schema/tags/index.js +53 -0
- package/dist/schema/tags/index.js.map +1 -0
- package/dist/schema/tags/index.mjs +26 -0
- package/dist/schema/tags/index.mjs.map +1 -0
- package/dist/schema/tags/tags.d.mts +26 -0
- package/dist/schema/tags/tags.d.ts +26 -0
- package/dist/schema/tags/tags.js +51 -0
- package/dist/schema/tags/tags.js.map +1 -0
- package/dist/schema/tags/tags.mjs +26 -0
- package/dist/schema/tags/tags.mjs.map +1 -0
- package/dist/schema/text/index.d.mts +1 -1
- package/dist/schema/text/index.d.ts +1 -1
- package/dist/schema/text/text.d.mts +1 -1
- package/dist/schema/text/text.d.ts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/infer.d.mts +1 -1
- package/dist/types/infer.d.ts +1 -1
- package/dist/types/object.d.mts +1 -1
- package/dist/types/object.d.ts +1 -1
- package/dist/types/schema.d.mts +1 -1
- package/dist/types/schema.d.ts +1 -1
- package/dist/{types-Bezok3ga.d.ts → types-B_w1dteH.d.ts} +1 -1
- package/dist/{types-3ETl5yY_.d.mts → types-Y1F-dOLI.d.mts} +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseSchema, d as BaseFieldInput } from '../../types-
|
|
1
|
+
import { B as BaseSchema, d as BaseFieldInput } from '../../types-Y1F-dOLI.mjs';
|
|
2
2
|
import '../../types/webcomponent.mjs';
|
|
3
3
|
import '../../types/utils.mjs';
|
|
4
4
|
|
|
@@ -17,9 +17,10 @@ type ImageTypes = 'image/gif' | 'image/jpeg' | 'image/png' | 'image/tiff' | 'ima
|
|
|
17
17
|
type VideoTypes = 'video/mp4' | 'video/webm' | 'video/ogg';
|
|
18
18
|
type PDFTypes = 'application/pdf';
|
|
19
19
|
type ZipTypes = 'application/zip' | 'application/x-zip-compressed' | 'application/x-zip' | 'application/x-compressed' | 'multipart/x-zip';
|
|
20
|
+
type CSVType = 'text/csv';
|
|
20
21
|
interface MediaInput extends BaseFieldInput {
|
|
21
22
|
defaultValue?: string;
|
|
22
|
-
allowedMimeTypes?: (PDFTypes | ZipTypes | ImageTypes | VideoTypes)[];
|
|
23
|
+
allowedMimeTypes?: (PDFTypes | ZipTypes | ImageTypes | VideoTypes | CSVType)[];
|
|
23
24
|
}
|
|
24
25
|
declare function media(input: MediaInput): MediaSchema;
|
|
25
26
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseSchema, d as BaseFieldInput } from '../../types-
|
|
1
|
+
import { B as BaseSchema, d as BaseFieldInput } from '../../types-B_w1dteH.js';
|
|
2
2
|
import '../../types/webcomponent.js';
|
|
3
3
|
import '../../types/utils.js';
|
|
4
4
|
|
|
@@ -17,9 +17,10 @@ type ImageTypes = 'image/gif' | 'image/jpeg' | 'image/png' | 'image/tiff' | 'ima
|
|
|
17
17
|
type VideoTypes = 'video/mp4' | 'video/webm' | 'video/ogg';
|
|
18
18
|
type PDFTypes = 'application/pdf';
|
|
19
19
|
type ZipTypes = 'application/zip' | 'application/x-zip-compressed' | 'application/x-zip' | 'application/x-compressed' | 'multipart/x-zip';
|
|
20
|
+
type CSVType = 'text/csv';
|
|
20
21
|
interface MediaInput extends BaseFieldInput {
|
|
21
22
|
defaultValue?: string;
|
|
22
|
-
allowedMimeTypes?: (PDFTypes | ZipTypes | ImageTypes | VideoTypes)[];
|
|
23
|
+
allowedMimeTypes?: (PDFTypes | ZipTypes | ImageTypes | VideoTypes | CSVType)[];
|
|
23
24
|
}
|
|
24
25
|
declare function media(input: MediaInput): MediaSchema;
|
|
25
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/schema/media/media.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\ntype MediaOutputType = {\n alt: string;\n url: string;\n renditions: string[];\n};\n\nexport interface MediaSchema<TOutput extends string = string> extends BaseSchema<MediaOutputType> {\n /**\n * The schema type.\n */\n type: 'media';\n}\n\ntype ImageTypes = 'image/gif' | 'image/jpeg' | 'image/png' | 'image/tiff' | 'image/svg+xml';\ntype VideoTypes = 'video/mp4' | 'video/webm' | 'video/ogg';\ntype PDFTypes = 'application/pdf';\ntype ZipTypes = 'application/zip' | 'application/x-zip-compressed' | 'application/x-zip' | 'application/x-compressed' | 'multipart/x-zip';\n\n\ninterface MediaInput extends BaseFieldInput {\n defaultValue?: string;\n allowedMimeTypes?: ( PDFTypes | ZipTypes | ImageTypes | VideoTypes )[];\n}\n\nexport function media(input: MediaInput): MediaSchema {\n const { label, tooltip, required, defaultValue, allowedMimeTypes } = input;\n\n return {\n type: 'media',\n _parse() {\n return {\n type: 'media',\n label,\n tooltip,\n required,\n defaultValue,\n allowedMimeTypes\n };\n },\n _primitive() {\n return 'json';\n },\n ...input,\n };\n}\n\n/**\n * @deprecated Use `media` instead.\n */\nexport const image = (input: MediaInput = {\n label: 'image',\n allowedMimeTypes: ['image/gif', 'image/jpeg', 'image/png', 'image/tiff', 'image/svg+xml'],\n}) => media(input);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/media/media.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\ntype MediaOutputType = {\n alt: string;\n url: string;\n renditions: string[];\n};\n\nexport interface MediaSchema<TOutput extends string = string> extends BaseSchema<MediaOutputType> {\n /**\n * The schema type.\n */\n type: 'media';\n}\n\ntype ImageTypes = 'image/gif' | 'image/jpeg' | 'image/png' | 'image/tiff' | 'image/svg+xml';\ntype VideoTypes = 'video/mp4' | 'video/webm' | 'video/ogg';\ntype PDFTypes = 'application/pdf';\ntype ZipTypes = 'application/zip' | 'application/x-zip-compressed' | 'application/x-zip' | 'application/x-compressed' | 'multipart/x-zip';\ntype CSVType = 'text/csv';\n\n\ninterface MediaInput extends BaseFieldInput {\n defaultValue?: string;\n allowedMimeTypes?: ( PDFTypes | ZipTypes | ImageTypes | VideoTypes | CSVType)[];\n}\n\nexport function media(input: MediaInput): MediaSchema {\n const { label, tooltip, required, defaultValue, allowedMimeTypes } = input;\n\n return {\n type: 'media',\n _parse() {\n return {\n type: 'media',\n label,\n tooltip,\n required,\n defaultValue,\n allowedMimeTypes\n };\n },\n _primitive() {\n return 'json';\n },\n ...input,\n };\n}\n\n/**\n * @deprecated Use `media` instead.\n */\nexport const image = (input: MediaInput = {\n label: 'image',\n allowedMimeTypes: ['image/gif', 'image/jpeg', 'image/png', 'image/tiff', 'image/svg+xml'],\n}) => media(input);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BO,SAAS,MAAM,OAAgC;AACpD,QAAM,EAAE,OAAO,SAAS,UAAU,cAAc,iBAAiB,IAAI;AAErE,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EACL;AACF;AAKO,IAAM,QAAQ,CAAC,QAAoB;AAAA,EACxC,OAAO;AAAA,EACP,kBAAkB,CAAC,aAAa,cAAc,aAAa,cAAc,eAAe;AAC1F,MAAM,MAAM,KAAK;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/schema/media/media.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\ntype MediaOutputType = {\n alt: string;\n url: string;\n renditions: string[];\n};\n\nexport interface MediaSchema<TOutput extends string = string> extends BaseSchema<MediaOutputType> {\n /**\n * The schema type.\n */\n type: 'media';\n}\n\ntype ImageTypes = 'image/gif' | 'image/jpeg' | 'image/png' | 'image/tiff' | 'image/svg+xml';\ntype VideoTypes = 'video/mp4' | 'video/webm' | 'video/ogg';\ntype PDFTypes = 'application/pdf';\ntype ZipTypes = 'application/zip' | 'application/x-zip-compressed' | 'application/x-zip' | 'application/x-compressed' | 'multipart/x-zip';\n\n\ninterface MediaInput extends BaseFieldInput {\n defaultValue?: string;\n allowedMimeTypes?: ( PDFTypes | ZipTypes | ImageTypes | VideoTypes )[];\n}\n\nexport function media(input: MediaInput): MediaSchema {\n const { label, tooltip, required, defaultValue, allowedMimeTypes } = input;\n\n return {\n type: 'media',\n _parse() {\n return {\n type: 'media',\n label,\n tooltip,\n required,\n defaultValue,\n allowedMimeTypes\n };\n },\n _primitive() {\n return 'json';\n },\n ...input,\n };\n}\n\n/**\n * @deprecated Use `media` instead.\n */\nexport const image = (input: MediaInput = {\n label: 'image',\n allowedMimeTypes: ['image/gif', 'image/jpeg', 'image/png', 'image/tiff', 'image/svg+xml'],\n}) => media(input);\n"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/media/media.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\ntype MediaOutputType = {\n alt: string;\n url: string;\n renditions: string[];\n};\n\nexport interface MediaSchema<TOutput extends string = string> extends BaseSchema<MediaOutputType> {\n /**\n * The schema type.\n */\n type: 'media';\n}\n\ntype ImageTypes = 'image/gif' | 'image/jpeg' | 'image/png' | 'image/tiff' | 'image/svg+xml';\ntype VideoTypes = 'video/mp4' | 'video/webm' | 'video/ogg';\ntype PDFTypes = 'application/pdf';\ntype ZipTypes = 'application/zip' | 'application/x-zip-compressed' | 'application/x-zip' | 'application/x-compressed' | 'multipart/x-zip';\ntype CSVType = 'text/csv';\n\n\ninterface MediaInput extends BaseFieldInput {\n defaultValue?: string;\n allowedMimeTypes?: ( PDFTypes | ZipTypes | ImageTypes | VideoTypes | CSVType)[];\n}\n\nexport function media(input: MediaInput): MediaSchema {\n const { label, tooltip, required, defaultValue, allowedMimeTypes } = input;\n\n return {\n type: 'media',\n _parse() {\n return {\n type: 'media',\n label,\n tooltip,\n required,\n defaultValue,\n allowedMimeTypes\n };\n },\n _primitive() {\n return 'json';\n },\n ...input,\n };\n}\n\n/**\n * @deprecated Use `media` instead.\n */\nexport const image = (input: MediaInput = {\n label: 'image',\n allowedMimeTypes: ['image/gif', 'image/jpeg', 'image/png', 'image/tiff', 'image/svg+xml'],\n}) => media(input);\n"],"mappings":";AA2BO,SAAS,MAAM,OAAgC;AACpD,QAAM,EAAE,OAAO,SAAS,UAAU,cAAc,iBAAiB,IAAI;AAErE,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EACL;AACF;AAKO,IAAM,QAAQ,CAAC,QAAoB;AAAA,EACxC,OAAO;AAAA,EACP,kBAAkB,CAAC,aAAa,cAAc,aAAa,cAAc,eAAe;AAC1F,MAAM,MAAM,KAAK;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseSchema, d as BaseFieldInput, e as Output } from '../../types-
|
|
1
|
+
import { B as BaseSchema, d as BaseFieldInput, e as Output } from '../../types-Y1F-dOLI.mjs';
|
|
2
2
|
import { InferOutput } from '../../types/infer.mjs';
|
|
3
3
|
import '../../types/webcomponent.mjs';
|
|
4
4
|
import '../../types/utils.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseSchema, d as BaseFieldInput, e as Output } from '../../types-
|
|
1
|
+
import { B as BaseSchema, d as BaseFieldInput, e as Output } from '../../types-B_w1dteH.js';
|
|
2
2
|
import { InferOutput } from '../../types/infer.js';
|
|
3
3
|
import '../../types/webcomponent.js';
|
|
4
4
|
import '../../types/utils.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as ObjectEntries, g as ObjectOutput, B as BaseSchema } from '../../types-
|
|
1
|
+
import { f as ObjectEntries, g as ObjectOutput, B as BaseSchema } from '../../types-Y1F-dOLI.mjs';
|
|
2
2
|
import '../../types/webcomponent.mjs';
|
|
3
3
|
import '../../types/utils.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as ObjectEntries, g as ObjectOutput, B as BaseSchema } from '../../types-
|
|
1
|
+
import { f as ObjectEntries, g as ObjectOutput, B as BaseSchema } from '../../types-B_w1dteH.js';
|
|
2
2
|
import '../../types/webcomponent.js';
|
|
3
3
|
import '../../types/utils.js';
|
|
4
4
|
|
package/dist/schema/rte/rte.d.ts
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/schema/tags/index.ts
|
|
21
|
+
var tags_exports = {};
|
|
22
|
+
__export(tags_exports, {
|
|
23
|
+
tags: () => tags
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(tags_exports);
|
|
26
|
+
|
|
27
|
+
// src/schema/tags/tags.ts
|
|
28
|
+
function tags(input) {
|
|
29
|
+
const { placeholder, label, required, defaultValue, multiple, namespaces } = input;
|
|
30
|
+
return {
|
|
31
|
+
type: "tags",
|
|
32
|
+
_parse() {
|
|
33
|
+
return {
|
|
34
|
+
type: "tags",
|
|
35
|
+
label,
|
|
36
|
+
placeholder,
|
|
37
|
+
required,
|
|
38
|
+
defaultValue,
|
|
39
|
+
multiple,
|
|
40
|
+
namespaces
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
_primitive() {
|
|
44
|
+
return multiple ? "json" : "string";
|
|
45
|
+
},
|
|
46
|
+
...input
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 && (module.exports = {
|
|
51
|
+
tags
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/tags/index.ts","../../../src/schema/tags/tags.ts"],"sourcesContent":["export * from './tags'\n","import { BaseFieldInput, type BaseSchema } from '../../types';\n\ntype TagOutputType = {\n name: string;\n namespace: string;\n};\n\n\ntype TagsOutputType<Multiple extends boolean> = Multiple extends true ? TagOutputType[] : TagOutputType;\n\nexport interface TagsSchema<Multiple extends boolean = false> extends BaseSchema<TagsOutputType<Multiple>> {\n /**\n * The schema type.\n */\n type: 'tags';\n}\n\ninterface TagsInput extends BaseFieldInput {\n placeholder?: string;\n defaultValue?: string;\n multiple?: boolean;\n namespaces?: string[];\n}\n\nexport function tags<Multiple extends boolean = false>(input: TagsInput & {\n multiple?: Multiple\n}): TagsSchema<Multiple> {\n const { placeholder, label, required, defaultValue, multiple, namespaces } = input;\n\n return {\n type: 'tags',\n _parse() {\n return {\n type: 'tags',\n label,\n placeholder,\n required,\n defaultValue,\n multiple,\n namespaces,\n };\n },\n _primitive() {\n return multiple ? 'json' : 'string';\n },\n ...input,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACwBO,SAAS,KAAuC,OAE9B;AACvB,QAAM,EAAE,aAAa,OAAO,UAAU,cAAc,UAAU,WAAW,IAAI;AAE7E,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO,WAAW,SAAS;AAAA,IAC7B;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/schema/tags/tags.ts
|
|
2
|
+
function tags(input) {
|
|
3
|
+
const { placeholder, label, required, defaultValue, multiple, namespaces } = input;
|
|
4
|
+
return {
|
|
5
|
+
type: "tags",
|
|
6
|
+
_parse() {
|
|
7
|
+
return {
|
|
8
|
+
type: "tags",
|
|
9
|
+
label,
|
|
10
|
+
placeholder,
|
|
11
|
+
required,
|
|
12
|
+
defaultValue,
|
|
13
|
+
multiple,
|
|
14
|
+
namespaces
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
_primitive() {
|
|
18
|
+
return multiple ? "json" : "string";
|
|
19
|
+
},
|
|
20
|
+
...input
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
tags
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/tags/tags.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\ntype TagOutputType = {\n name: string;\n namespace: string;\n};\n\n\ntype TagsOutputType<Multiple extends boolean> = Multiple extends true ? TagOutputType[] : TagOutputType;\n\nexport interface TagsSchema<Multiple extends boolean = false> extends BaseSchema<TagsOutputType<Multiple>> {\n /**\n * The schema type.\n */\n type: 'tags';\n}\n\ninterface TagsInput extends BaseFieldInput {\n placeholder?: string;\n defaultValue?: string;\n multiple?: boolean;\n namespaces?: string[];\n}\n\nexport function tags<Multiple extends boolean = false>(input: TagsInput & {\n multiple?: Multiple\n}): TagsSchema<Multiple> {\n const { placeholder, label, required, defaultValue, multiple, namespaces } = input;\n\n return {\n type: 'tags',\n _parse() {\n return {\n type: 'tags',\n label,\n placeholder,\n required,\n defaultValue,\n multiple,\n namespaces,\n };\n },\n _primitive() {\n return multiple ? 'json' : 'string';\n },\n ...input,\n };\n}\n"],"mappings":";AAwBO,SAAS,KAAuC,OAE9B;AACvB,QAAM,EAAE,aAAa,OAAO,UAAU,cAAc,UAAU,WAAW,IAAI;AAE7E,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO,WAAW,SAAS;AAAA,IAC7B;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { B as BaseSchema, d as BaseFieldInput } from '../../types-Y1F-dOLI.mjs';
|
|
2
|
+
import '../../types/webcomponent.mjs';
|
|
3
|
+
import '../../types/utils.mjs';
|
|
4
|
+
|
|
5
|
+
type TagOutputType = {
|
|
6
|
+
name: string;
|
|
7
|
+
namespace: string;
|
|
8
|
+
};
|
|
9
|
+
type TagsOutputType<Multiple extends boolean> = Multiple extends true ? TagOutputType[] : TagOutputType;
|
|
10
|
+
interface TagsSchema<Multiple extends boolean = false> extends BaseSchema<TagsOutputType<Multiple>> {
|
|
11
|
+
/**
|
|
12
|
+
* The schema type.
|
|
13
|
+
*/
|
|
14
|
+
type: 'tags';
|
|
15
|
+
}
|
|
16
|
+
interface TagsInput extends BaseFieldInput {
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
defaultValue?: string;
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
namespaces?: string[];
|
|
21
|
+
}
|
|
22
|
+
declare function tags<Multiple extends boolean = false>(input: TagsInput & {
|
|
23
|
+
multiple?: Multiple;
|
|
24
|
+
}): TagsSchema<Multiple>;
|
|
25
|
+
|
|
26
|
+
export { type TagsSchema, tags };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { B as BaseSchema, d as BaseFieldInput } from '../../types-B_w1dteH.js';
|
|
2
|
+
import '../../types/webcomponent.js';
|
|
3
|
+
import '../../types/utils.js';
|
|
4
|
+
|
|
5
|
+
type TagOutputType = {
|
|
6
|
+
name: string;
|
|
7
|
+
namespace: string;
|
|
8
|
+
};
|
|
9
|
+
type TagsOutputType<Multiple extends boolean> = Multiple extends true ? TagOutputType[] : TagOutputType;
|
|
10
|
+
interface TagsSchema<Multiple extends boolean = false> extends BaseSchema<TagsOutputType<Multiple>> {
|
|
11
|
+
/**
|
|
12
|
+
* The schema type.
|
|
13
|
+
*/
|
|
14
|
+
type: 'tags';
|
|
15
|
+
}
|
|
16
|
+
interface TagsInput extends BaseFieldInput {
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
defaultValue?: string;
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
namespaces?: string[];
|
|
21
|
+
}
|
|
22
|
+
declare function tags<Multiple extends boolean = false>(input: TagsInput & {
|
|
23
|
+
multiple?: Multiple;
|
|
24
|
+
}): TagsSchema<Multiple>;
|
|
25
|
+
|
|
26
|
+
export { type TagsSchema, tags };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/schema/tags/tags.ts
|
|
21
|
+
var tags_exports = {};
|
|
22
|
+
__export(tags_exports, {
|
|
23
|
+
tags: () => tags
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(tags_exports);
|
|
26
|
+
function tags(input) {
|
|
27
|
+
const { placeholder, label, required, defaultValue, multiple, namespaces } = input;
|
|
28
|
+
return {
|
|
29
|
+
type: "tags",
|
|
30
|
+
_parse() {
|
|
31
|
+
return {
|
|
32
|
+
type: "tags",
|
|
33
|
+
label,
|
|
34
|
+
placeholder,
|
|
35
|
+
required,
|
|
36
|
+
defaultValue,
|
|
37
|
+
multiple,
|
|
38
|
+
namespaces
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_primitive() {
|
|
42
|
+
return multiple ? "json" : "string";
|
|
43
|
+
},
|
|
44
|
+
...input
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
+
0 && (module.exports = {
|
|
49
|
+
tags
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/tags/tags.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\ntype TagOutputType = {\n name: string;\n namespace: string;\n};\n\n\ntype TagsOutputType<Multiple extends boolean> = Multiple extends true ? TagOutputType[] : TagOutputType;\n\nexport interface TagsSchema<Multiple extends boolean = false> extends BaseSchema<TagsOutputType<Multiple>> {\n /**\n * The schema type.\n */\n type: 'tags';\n}\n\ninterface TagsInput extends BaseFieldInput {\n placeholder?: string;\n defaultValue?: string;\n multiple?: boolean;\n namespaces?: string[];\n}\n\nexport function tags<Multiple extends boolean = false>(input: TagsInput & {\n multiple?: Multiple\n}): TagsSchema<Multiple> {\n const { placeholder, label, required, defaultValue, multiple, namespaces } = input;\n\n return {\n type: 'tags',\n _parse() {\n return {\n type: 'tags',\n label,\n placeholder,\n required,\n defaultValue,\n multiple,\n namespaces,\n };\n },\n _primitive() {\n return multiple ? 'json' : 'string';\n },\n ...input,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBO,SAAS,KAAuC,OAE9B;AACvB,QAAM,EAAE,aAAa,OAAO,UAAU,cAAc,UAAU,WAAW,IAAI;AAE7E,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO,WAAW,SAAS;AAAA,IAC7B;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/schema/tags/tags.ts
|
|
2
|
+
function tags(input) {
|
|
3
|
+
const { placeholder, label, required, defaultValue, multiple, namespaces } = input;
|
|
4
|
+
return {
|
|
5
|
+
type: "tags",
|
|
6
|
+
_parse() {
|
|
7
|
+
return {
|
|
8
|
+
type: "tags",
|
|
9
|
+
label,
|
|
10
|
+
placeholder,
|
|
11
|
+
required,
|
|
12
|
+
defaultValue,
|
|
13
|
+
multiple,
|
|
14
|
+
namespaces
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
_primitive() {
|
|
18
|
+
return multiple ? "json" : "string";
|
|
19
|
+
},
|
|
20
|
+
...input
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
tags
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=tags.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/tags/tags.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\ntype TagOutputType = {\n name: string;\n namespace: string;\n};\n\n\ntype TagsOutputType<Multiple extends boolean> = Multiple extends true ? TagOutputType[] : TagOutputType;\n\nexport interface TagsSchema<Multiple extends boolean = false> extends BaseSchema<TagsOutputType<Multiple>> {\n /**\n * The schema type.\n */\n type: 'tags';\n}\n\ninterface TagsInput extends BaseFieldInput {\n placeholder?: string;\n defaultValue?: string;\n multiple?: boolean;\n namespaces?: string[];\n}\n\nexport function tags<Multiple extends boolean = false>(input: TagsInput & {\n multiple?: Multiple\n}): TagsSchema<Multiple> {\n const { placeholder, label, required, defaultValue, multiple, namespaces } = input;\n\n return {\n type: 'tags',\n _parse() {\n return {\n type: 'tags',\n label,\n placeholder,\n required,\n defaultValue,\n multiple,\n namespaces,\n };\n },\n _primitive() {\n return multiple ? 'json' : 'string';\n },\n ...input,\n };\n}\n"],"mappings":";AAwBO,SAAS,KAAuC,OAE9B;AACvB,QAAM,EAAE,aAAa,OAAO,UAAU,cAAc,UAAU,WAAW,IAAI;AAE7E,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO,WAAW,SAAS;AAAA,IAC7B;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { GetServerSideProps } from './props.mjs';
|
|
2
2
|
export { AddType, DeepPartial, EntryMask, LeavesPath, NestedPaths, NodesPath, PathValue, RequireAtLeastOne, ResolveObject, UnArray } from './utils.mjs';
|
|
3
|
-
export { d as BaseFieldInput, B as BaseSchema, e as Output } from '../types-
|
|
3
|
+
export { d as BaseFieldInput, B as BaseSchema, e as Output } from '../types-Y1F-dOLI.mjs';
|
|
4
4
|
export { InferOutput } from './infer.mjs';
|
|
5
5
|
export { ComponentModel } from './component.mjs';
|
|
6
6
|
import './webcomponent.mjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { GetServerSideProps } from './props.js';
|
|
2
2
|
export { AddType, DeepPartial, EntryMask, LeavesPath, NestedPaths, NodesPath, PathValue, RequireAtLeastOne, ResolveObject, UnArray } from './utils.js';
|
|
3
|
-
export { d as BaseFieldInput, B as BaseSchema, e as Output } from '../types-
|
|
3
|
+
export { d as BaseFieldInput, B as BaseSchema, e as Output } from '../types-B_w1dteH.js';
|
|
4
4
|
export { InferOutput } from './infer.js';
|
|
5
5
|
export { ComponentModel } from './component.js';
|
|
6
6
|
import './webcomponent.js';
|
package/dist/types/infer.d.mts
CHANGED
package/dist/types/infer.d.ts
CHANGED
package/dist/types/object.d.mts
CHANGED
package/dist/types/object.d.ts
CHANGED
package/dist/types/schema.d.mts
CHANGED
package/dist/types/schema.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WebcomponentPropTypes } from './types/webcomponent.js';
|
|
2
|
-
import { ResolveObject,
|
|
2
|
+
import { ResolveObject, EntryMask, AddType, UnArray, DeepPartial, NodesPath, PathValue } from './types/utils.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Base schema type.
|