@ethereal-nexus/core 1.18.0 → 1.19.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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- 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 +1 -1
- package/dist/schema/checkbox/checkbox.d.ts +1 -1
- package/dist/schema/checkbox/index.d.mts +1 -1
- package/dist/schema/checkbox/index.d.ts +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 +3 -2
- package/dist/schema/media/index.js.map +1 -1
- package/dist/schema/media/index.mjs +3 -2
- package/dist/schema/media/index.mjs.map +1 -1
- package/dist/schema/media/media.d.mts +6 -1
- package/dist/schema/media/media.d.ts +6 -1
- package/dist/schema/media/media.js +3 -2
- package/dist/schema/media/media.js.map +1 -1
- package/dist/schema/media/media.mjs +3 -2
- 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 +1 -1
- package/dist/schema/tags/index.d.ts +1 -1
- package/dist/schema/tags/tags.d.mts +1 -1
- package/dist/schema/tags/tags.d.ts +1 -1
- 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/{schema-2DE_dAsc.d.mts → schema-BQm6im4b.d.mts} +1 -1
- package/dist/{schema-Cva8xPv0.d.ts → schema-Q6NnvMu7.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/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as BaseSchema, B as BaseFieldInput } from '../../schema-Q6NnvMu7.js';
|
|
2
2
|
import '../../types/webcomponent.js';
|
|
3
3
|
import '../../types/utils.js';
|
|
4
4
|
|
|
@@ -6,6 +6,10 @@ type MediaOutputType = {
|
|
|
6
6
|
alt: string;
|
|
7
7
|
url: string;
|
|
8
8
|
renditions: string[];
|
|
9
|
+
focusPoint?: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
9
13
|
};
|
|
10
14
|
interface MediaSchema<TOutput extends string = string> extends BaseSchema<MediaOutputType> {
|
|
11
15
|
/**
|
|
@@ -21,6 +25,7 @@ type CSVType = 'text/csv';
|
|
|
21
25
|
interface MediaInput extends BaseFieldInput {
|
|
22
26
|
defaultValue?: string;
|
|
23
27
|
allowedMimeTypes?: (PDFTypes | ZipTypes | ImageTypes | VideoTypes | CSVType)[];
|
|
28
|
+
enableFocusPoint?: boolean;
|
|
24
29
|
}
|
|
25
30
|
declare function media(input: MediaInput): MediaSchema;
|
|
26
31
|
/**
|
|
@@ -25,7 +25,7 @@ __export(media_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(media_exports);
|
|
27
27
|
function media(input) {
|
|
28
|
-
const { label, tooltip, required, defaultValue, allowedMimeTypes } = input;
|
|
28
|
+
const { label, tooltip, required, defaultValue, allowedMimeTypes, enableFocusPoint } = input;
|
|
29
29
|
return {
|
|
30
30
|
type: "media",
|
|
31
31
|
_parse() {
|
|
@@ -35,7 +35,8 @@ function media(input) {
|
|
|
35
35
|
tooltip,
|
|
36
36
|
required,
|
|
37
37
|
defaultValue,
|
|
38
|
-
allowedMimeTypes
|
|
38
|
+
allowedMimeTypes,
|
|
39
|
+
enableFocusPoint
|
|
39
40
|
};
|
|
40
41
|
},
|
|
41
42
|
_primitive() {
|
|
@@ -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';\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
|
|
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 focusPoint?: {\n x: number;\n y: number;\n }\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 enableFocusPoint?: boolean\n}\n\nexport function media(input: MediaInput): MediaSchema {\n const { label, tooltip, required, defaultValue, allowedMimeTypes, enableFocusPoint } = 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 enableFocusPoint,\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;AAgCO,SAAS,MAAM,OAAgC;AACpD,QAAM,EAAE,OAAO,SAAS,UAAU,cAAc,kBAAkB,iBAAiB,IAAI;AAEvF,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;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,6 +1,6 @@
|
|
|
1
1
|
// src/schema/media/media.ts
|
|
2
2
|
function media(input) {
|
|
3
|
-
const { label, tooltip, required, defaultValue, allowedMimeTypes } = input;
|
|
3
|
+
const { label, tooltip, required, defaultValue, allowedMimeTypes, enableFocusPoint } = input;
|
|
4
4
|
return {
|
|
5
5
|
type: "media",
|
|
6
6
|
_parse() {
|
|
@@ -10,7 +10,8 @@ function media(input) {
|
|
|
10
10
|
tooltip,
|
|
11
11
|
required,
|
|
12
12
|
defaultValue,
|
|
13
|
-
allowedMimeTypes
|
|
13
|
+
allowedMimeTypes,
|
|
14
|
+
enableFocusPoint
|
|
14
15
|
};
|
|
15
16
|
},
|
|
16
17
|
_primitive() {
|
|
@@ -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';\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
|
|
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 focusPoint?: {\n x: number;\n y: number;\n }\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 enableFocusPoint?: boolean\n}\n\nexport function media(input: MediaInput): MediaSchema {\n const { label, tooltip, required, defaultValue, allowedMimeTypes, enableFocusPoint } = 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 enableFocusPoint,\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":";AAgCO,SAAS,MAAM,OAAgC;AACpD,QAAM,EAAE,OAAO,SAAS,UAAU,cAAc,kBAAkB,iBAAiB,IAAI;AAEvF,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;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 {
|
|
1
|
+
import { a as BaseSchema, B as BaseFieldInput, e as Output } from '../../schema-BQm6im4b.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 {
|
|
1
|
+
import { a as BaseSchema, B as BaseFieldInput, e as Output } from '../../schema-Q6NnvMu7.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,
|
|
1
|
+
import { f as ObjectEntries, g as ObjectOutput, a as BaseSchema } from '../../schema-BQm6im4b.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,
|
|
1
|
+
import { f as ObjectEntries, g as ObjectOutput, a as BaseSchema } from '../../schema-Q6NnvMu7.js';
|
|
2
2
|
import '../../types/webcomponent.js';
|
|
3
3
|
import '../../types/utils.js';
|
|
4
4
|
|
package/dist/schema/rte/rte.d.ts
CHANGED
|
@@ -126,4 +126,4 @@ interface BaseFieldInput {
|
|
|
126
126
|
*/
|
|
127
127
|
type Output<TSchema extends BaseSchema> = NonNullable<TSchema['_types']>['output'];
|
|
128
128
|
|
|
129
|
-
export { type
|
|
129
|
+
export { type BaseFieldInput as B, type ConditionFn as C, type Field as F, type OptionalSchema as O, type TabsArgument as T, type BaseSchema as a, type ConditionOperators as b, type Conditions as c, type ConditionsArgument as d, type Output as e, type ObjectEntries as f, type ObjectOutput as g, optional as o };
|
|
@@ -126,4 +126,4 @@ interface BaseFieldInput {
|
|
|
126
126
|
*/
|
|
127
127
|
type Output<TSchema extends BaseSchema> = NonNullable<TSchema['_types']>['output'];
|
|
128
128
|
|
|
129
|
-
export { type
|
|
129
|
+
export { type BaseFieldInput as B, type ConditionFn as C, type Field as F, type OptionalSchema as O, type TabsArgument as T, type BaseSchema as a, type ConditionOperators as b, type Conditions as c, type ConditionsArgument as d, type Output as e, type ObjectEntries as f, type ObjectOutput as g, optional as o };
|
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 {
|
|
3
|
+
export { B as BaseFieldInput, a as BaseSchema, e as Output } from '../schema-BQm6im4b.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 {
|
|
3
|
+
export { B as BaseFieldInput, a as BaseSchema, e as Output } from '../schema-Q6NnvMu7.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