@ethereal-nexus/core 0.1.4 → 0.2.1
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/functions/component/component.d.mts +15 -0
- package/dist/functions/component/component.d.ts +15 -0
- package/dist/functions/component/component.js +46 -0
- package/dist/functions/component/component.js.map +1 -0
- package/dist/functions/component/component.mjs +21 -0
- package/dist/functions/component/component.mjs.map +1 -0
- package/dist/functions/component/index.d.mts +8 -0
- package/dist/functions/component/index.d.ts +8 -0
- package/dist/functions/component/index.js +48 -0
- package/dist/functions/component/index.js.map +1 -0
- package/dist/functions/component/index.mjs +21 -0
- package/dist/functions/component/index.mjs.map +1 -0
- package/dist/functions/index.d.mts +2 -0
- package/dist/functions/index.d.ts +2 -0
- package/dist/functions/index.js +21 -3
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/index.mjs +20 -3
- package/dist/functions/index.mjs.map +1 -1
- package/dist/functions/parse/index.js +1 -3
- package/dist/functions/parse/index.js.map +1 -1
- package/dist/functions/parse/index.mjs +1 -3
- package/dist/functions/parse/index.mjs.map +1 -1
- package/dist/functions/parse/parse.d.mts +1 -3
- package/dist/functions/parse/parse.d.ts +1 -3
- package/dist/functions/parse/parse.js +1 -3
- package/dist/functions/parse/parse.js.map +1 -1
- package/dist/functions/parse/parse.mjs +1 -3
- package/dist/functions/parse/parse.mjs.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +57 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +55 -12
- package/dist/index.mjs.map +1 -1
- package/dist/schema/dialog/dialog.js +12 -6
- package/dist/schema/dialog/dialog.js.map +1 -1
- package/dist/schema/dialog/dialog.mjs +12 -6
- package/dist/schema/dialog/dialog.mjs.map +1 -1
- package/dist/schema/dialog/index.js +12 -6
- package/dist/schema/dialog/index.js.map +1 -1
- package/dist/schema/dialog/index.mjs +12 -6
- package/dist/schema/dialog/index.mjs.map +1 -1
- package/dist/schema/rte/index.d.mts +3 -0
- package/dist/schema/rte/index.d.ts +3 -0
- package/dist/schema/rte/index.js +49 -0
- package/dist/schema/rte/index.js.map +1 -0
- package/dist/schema/rte/index.mjs +22 -0
- package/dist/schema/rte/index.mjs.map +1 -0
- package/dist/schema/rte/rte.d.mts +15 -0
- package/dist/schema/rte/rte.d.ts +15 -0
- package/dist/schema/rte/rte.js +47 -0
- package/dist/schema/rte/rte.js.map +1 -0
- package/dist/schema/rte/rte.mjs +22 -0
- package/dist/schema/rte/rte.mjs.map +1 -0
- package/dist/types/component.d.mts +9 -0
- package/dist/types/component.d.ts +9 -0
- package/dist/types/component.js +19 -0
- package/dist/types/component.js.map +1 -0
- package/dist/types/component.mjs +1 -0
- package/dist/types/component.mjs.map +1 -0
- package/dist/types/index.d.mts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/utils.js.map +1 -1
- package/package.json +1 -1
- /package/{LICENSE → LICENSE.md} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/rte/index.ts","../../../src/schema/rte/rte.ts"],"sourcesContent":["export * from './rte'","import { BaseFieldInput, type BaseSchema } from '../../types';\n\nexport interface RichTextEditorSchema<TOutput extends string = string> extends BaseSchema<TOutput> {\n /**\n * The schema type.\n */\n type: 'richtexteditor';\n}\n\ninterface RichTextEditorInput extends BaseFieldInput {\n placeholder: string;\n}\n\nexport function rte(input: RichTextEditorInput): RichTextEditorSchema {\n const {placeholder, label} = input;\n\n return {\n type: 'richtexteditor',\n _parse() {\n return {\n type: 'richtexteditor',\n label,\n placeholder,\n }\n },\n _primitive() {\n return 'string'\n },\n ...input,\n }\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACaO,SAAS,IAAI,OAAkD;AACpE,QAAM,EAAC,aAAa,MAAK,IAAI;AAE7B,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/schema/rte/rte.ts
|
|
2
|
+
function rte(input) {
|
|
3
|
+
const { placeholder, label } = input;
|
|
4
|
+
return {
|
|
5
|
+
type: "richtexteditor",
|
|
6
|
+
_parse() {
|
|
7
|
+
return {
|
|
8
|
+
type: "richtexteditor",
|
|
9
|
+
label,
|
|
10
|
+
placeholder
|
|
11
|
+
};
|
|
12
|
+
},
|
|
13
|
+
_primitive() {
|
|
14
|
+
return "string";
|
|
15
|
+
},
|
|
16
|
+
...input
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
rte
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/rte/rte.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\nexport interface RichTextEditorSchema<TOutput extends string = string> extends BaseSchema<TOutput> {\n /**\n * The schema type.\n */\n type: 'richtexteditor';\n}\n\ninterface RichTextEditorInput extends BaseFieldInput {\n placeholder: string;\n}\n\nexport function rte(input: RichTextEditorInput): RichTextEditorSchema {\n const {placeholder, label} = input;\n\n return {\n type: 'richtexteditor',\n _parse() {\n return {\n type: 'richtexteditor',\n label,\n placeholder,\n }\n },\n _primitive() {\n return 'string'\n },\n ...input,\n }\n}"],"mappings":";AAaO,SAAS,IAAI,OAAkD;AACpE,QAAM,EAAC,aAAa,MAAK,IAAI;AAE7B,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseSchema, BaseFieldInput } from '../../types/schema.mjs';
|
|
2
|
+
import '../../types/webcomponent.mjs';
|
|
3
|
+
|
|
4
|
+
interface RichTextEditorSchema<TOutput extends string = string> extends BaseSchema<TOutput> {
|
|
5
|
+
/**
|
|
6
|
+
* The schema type.
|
|
7
|
+
*/
|
|
8
|
+
type: 'richtexteditor';
|
|
9
|
+
}
|
|
10
|
+
interface RichTextEditorInput extends BaseFieldInput {
|
|
11
|
+
placeholder: string;
|
|
12
|
+
}
|
|
13
|
+
declare function rte(input: RichTextEditorInput): RichTextEditorSchema;
|
|
14
|
+
|
|
15
|
+
export { type RichTextEditorSchema, rte };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseSchema, BaseFieldInput } from '../../types/schema.js';
|
|
2
|
+
import '../../types/webcomponent.js';
|
|
3
|
+
|
|
4
|
+
interface RichTextEditorSchema<TOutput extends string = string> extends BaseSchema<TOutput> {
|
|
5
|
+
/**
|
|
6
|
+
* The schema type.
|
|
7
|
+
*/
|
|
8
|
+
type: 'richtexteditor';
|
|
9
|
+
}
|
|
10
|
+
interface RichTextEditorInput extends BaseFieldInput {
|
|
11
|
+
placeholder: string;
|
|
12
|
+
}
|
|
13
|
+
declare function rte(input: RichTextEditorInput): RichTextEditorSchema;
|
|
14
|
+
|
|
15
|
+
export { type RichTextEditorSchema, rte };
|
|
@@ -0,0 +1,47 @@
|
|
|
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/rte/rte.ts
|
|
21
|
+
var rte_exports = {};
|
|
22
|
+
__export(rte_exports, {
|
|
23
|
+
rte: () => rte
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(rte_exports);
|
|
26
|
+
function rte(input) {
|
|
27
|
+
const { placeholder, label } = input;
|
|
28
|
+
return {
|
|
29
|
+
type: "richtexteditor",
|
|
30
|
+
_parse() {
|
|
31
|
+
return {
|
|
32
|
+
type: "richtexteditor",
|
|
33
|
+
label,
|
|
34
|
+
placeholder
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
_primitive() {
|
|
38
|
+
return "string";
|
|
39
|
+
},
|
|
40
|
+
...input
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
rte
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=rte.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/rte/rte.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\nexport interface RichTextEditorSchema<TOutput extends string = string> extends BaseSchema<TOutput> {\n /**\n * The schema type.\n */\n type: 'richtexteditor';\n}\n\ninterface RichTextEditorInput extends BaseFieldInput {\n placeholder: string;\n}\n\nexport function rte(input: RichTextEditorInput): RichTextEditorSchema {\n const {placeholder, label} = input;\n\n return {\n type: 'richtexteditor',\n _parse() {\n return {\n type: 'richtexteditor',\n label,\n placeholder,\n }\n },\n _primitive() {\n return 'string'\n },\n ...input,\n }\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAaO,SAAS,IAAI,OAAkD;AACpE,QAAM,EAAC,aAAa,MAAK,IAAI;AAE7B,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/schema/rte/rte.ts
|
|
2
|
+
function rte(input) {
|
|
3
|
+
const { placeholder, label } = input;
|
|
4
|
+
return {
|
|
5
|
+
type: "richtexteditor",
|
|
6
|
+
_parse() {
|
|
7
|
+
return {
|
|
8
|
+
type: "richtexteditor",
|
|
9
|
+
label,
|
|
10
|
+
placeholder
|
|
11
|
+
};
|
|
12
|
+
},
|
|
13
|
+
_primitive() {
|
|
14
|
+
return "string";
|
|
15
|
+
},
|
|
16
|
+
...input
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
rte
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=rte.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/schema/rte/rte.ts"],"sourcesContent":["import { BaseFieldInput, type BaseSchema } from '../../types';\n\nexport interface RichTextEditorSchema<TOutput extends string = string> extends BaseSchema<TOutput> {\n /**\n * The schema type.\n */\n type: 'richtexteditor';\n}\n\ninterface RichTextEditorInput extends BaseFieldInput {\n placeholder: string;\n}\n\nexport function rte(input: RichTextEditorInput): RichTextEditorSchema {\n const {placeholder, label} = input;\n\n return {\n type: 'richtexteditor',\n _parse() {\n return {\n type: 'richtexteditor',\n label,\n placeholder,\n }\n },\n _primitive() {\n return 'string'\n },\n ...input,\n }\n}"],"mappings":";AAaO,SAAS,IAAI,OAAkD;AACpE,QAAM,EAAC,aAAa,MAAK,IAAI;AAE7B,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AACX,aAAO;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EACL;AACF;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/types/component.ts
|
|
17
|
+
var component_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(component_exports);
|
|
19
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/component.ts"],"sourcesContent":["export type ComponentModel = {\n name: string,\n title: string,\n slug: string,\n version: string,\n readme: string,\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=component.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -2,4 +2,5 @@ export { GetServerSideProps } from './props.mjs';
|
|
|
2
2
|
export { EntryMask, RequireAtLeastOne, ResolveObject } from './utils.mjs';
|
|
3
3
|
export { BaseFieldInput, BaseSchema, Output } from './schema.mjs';
|
|
4
4
|
export { InferOutput } from './infer.mjs';
|
|
5
|
+
export { ComponentModel } from './component.mjs';
|
|
5
6
|
import './webcomponent.mjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { GetServerSideProps } from './props.js';
|
|
|
2
2
|
export { EntryMask, RequireAtLeastOne, ResolveObject } from './utils.js';
|
|
3
3
|
export { BaseFieldInput, BaseSchema, Output } from './schema.js';
|
|
4
4
|
export { InferOutput } from './infer.js';
|
|
5
|
+
export { ComponentModel } from './component.js';
|
|
5
6
|
import './webcomponent.js';
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from './props'\nexport * from './utils'\nexport * from './schema'\nexport * from './infer'"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from './props'\nexport * from './utils'\nexport * from './schema'\nexport * from './infer'\nexport { ComponentModel } from './component';"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/utils.ts"],"sourcesContent":["/**\n * Resolve type.\n *\n * Hint: This type has no effect and is only used so that TypeScript displays\n * the final type in the preview instead of the utility types used.\n */\ntype Resolve<T> = T;\n\n/**\n * Resolve object type.\n *\n * Hint: This type has no effect and is only used so that TypeScript displays\n * the final type in the preview instead of the utility types used.\n */\nexport type ResolveObject<T> = Resolve<{ [k in keyof T]: T[k] }>;\n\n/**\n * Create a type that requires at least one of the keys in the object.\n */\nexport type RequireAtLeastOne<TObject> = {\n [Key in keyof TObject]: Required<Pick<TObject, Key>> &\n Partial<Object>;\n}[keyof TObject]\n\n/**\n * Make a mask for an object.\n *\n * Receives an object and make a object with the keys, but only a boolean value\n */\nexport type EntryMask<T> = RequireAtLeastOne<{ [key in keyof T]?: boolean }
|
|
1
|
+
{"version":3,"sources":["../../src/types/utils.ts"],"sourcesContent":["/**\n * Resolve type.\n *\n * Hint: This type has no effect and is only used so that TypeScript displays\n * the final type in the preview instead of the utility types used.\n */\ntype Resolve<T> = T;\n\n/**\n * Resolve object type.\n *\n * Hint: This type has no effect and is only used so that TypeScript displays\n * the final type in the preview instead of the utility types used.\n */\nexport type ResolveObject<T> = Resolve<{ [k in keyof T]: T[k] }>;\n\n/**\n * Create a type that requires at least one of the keys in the object.\n */\nexport type RequireAtLeastOne<TObject> = {\n [Key in keyof TObject]: Required<Pick<TObject, Key>> &\n Partial<Object>;\n}[keyof TObject]\n\n/**\n * Make a mask for an object.\n *\n * Receives an object and make a object with the keys, but only a boolean value\n */\nexport type EntryMask<T> = RequireAtLeastOne<{ [key in keyof T]?: boolean }>;\n\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/package.json
CHANGED
/package/{LICENSE → LICENSE.md}
RENAMED
|
File without changes
|