@tecof/theme-editor 0.0.20 → 0.0.22

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/index.d.mts CHANGED
@@ -312,6 +312,7 @@ interface LanguageFieldOptions {
312
312
  declare const LanguageField: ({ value, onChange, readOnly, isTextarea, textareaRows, placeholder, isHtml, }: LanguageFieldProps & LanguageFieldOptions) => react_jsx_runtime.JSX.Element | null;
313
313
  declare const createLanguageField: (options?: LanguageFieldOptions) => {
314
314
  type: "custom";
315
+ _fieldType: "language";
315
316
  label: string | undefined;
316
317
  labelIcon: ReactElement<unknown, string | react.JSXElementConstructor<any>> | undefined;
317
318
  visible: boolean | undefined;
@@ -368,6 +369,7 @@ declare const EditorField: ({ value, onChange, readOnly, }: EditorFieldProps & E
368
369
  */
369
370
  declare const createEditorField: (options?: EditorFieldOptions) => {
370
371
  type: "custom";
372
+ _fieldType: "editor";
371
373
  label: string | undefined;
372
374
  labelIcon: ReactElement<unknown, string | react.JSXElementConstructor<any>> | undefined;
373
375
  visible: boolean | undefined;
@@ -417,6 +419,7 @@ declare const UploadField: {
417
419
  };
418
420
  declare const createUploadField: (options?: UploadFieldOptions) => {
419
421
  type: "custom";
422
+ _fieldType: "upload";
420
423
  label: string | undefined;
421
424
  labelIcon: ReactElement<unknown, string | react.JSXElementConstructor<any>> | undefined;
422
425
  visible: boolean | undefined;
@@ -473,6 +476,7 @@ declare const CodeEditorField: react__default.ForwardRefExoticComponent<CodeEdit
473
476
  */
474
477
  declare const createCodeEditorField: (options?: CodeEditorFieldOptions) => {
475
478
  type: "custom";
479
+ _fieldType: "code";
476
480
  label: string | undefined;
477
481
  labelIcon: ReactElement<unknown, string | react__default.JSXElementConstructor<any>> | undefined;
478
482
  visible: boolean | undefined;
@@ -505,6 +509,7 @@ declare const LinkField: {
505
509
  };
506
510
  declare const createLinkField: (options?: LinkFieldOptions) => {
507
511
  type: "custom";
512
+ _fieldType: "link";
508
513
  label: string | undefined;
509
514
  labelIcon: ReactElement<unknown, string | react.JSXElementConstructor<any>> | undefined;
510
515
  visible: boolean | undefined;
@@ -558,6 +563,7 @@ declare const ColorField: {
558
563
  */
559
564
  declare const createColorField: (options?: ColorFieldOptions) => {
560
565
  type: "custom";
566
+ _fieldType: "color";
561
567
  label: string | undefined;
562
568
  labelIcon: ReactElement<unknown, string | react.JSXElementConstructor<any>> | undefined;
563
569
  visible: boolean | undefined;
package/dist/index.d.ts CHANGED
@@ -312,6 +312,7 @@ interface LanguageFieldOptions {
312
312
  declare const LanguageField: ({ value, onChange, readOnly, isTextarea, textareaRows, placeholder, isHtml, }: LanguageFieldProps & LanguageFieldOptions) => react_jsx_runtime.JSX.Element | null;
313
313
  declare const createLanguageField: (options?: LanguageFieldOptions) => {
314
314
  type: "custom";
315
+ _fieldType: "language";
315
316
  label: string | undefined;
316
317
  labelIcon: ReactElement<unknown, string | react.JSXElementConstructor<any>> | undefined;
317
318
  visible: boolean | undefined;
@@ -368,6 +369,7 @@ declare const EditorField: ({ value, onChange, readOnly, }: EditorFieldProps & E
368
369
  */
369
370
  declare const createEditorField: (options?: EditorFieldOptions) => {
370
371
  type: "custom";
372
+ _fieldType: "editor";
371
373
  label: string | undefined;
372
374
  labelIcon: ReactElement<unknown, string | react.JSXElementConstructor<any>> | undefined;
373
375
  visible: boolean | undefined;
@@ -417,6 +419,7 @@ declare const UploadField: {
417
419
  };
418
420
  declare const createUploadField: (options?: UploadFieldOptions) => {
419
421
  type: "custom";
422
+ _fieldType: "upload";
420
423
  label: string | undefined;
421
424
  labelIcon: ReactElement<unknown, string | react.JSXElementConstructor<any>> | undefined;
422
425
  visible: boolean | undefined;
@@ -473,6 +476,7 @@ declare const CodeEditorField: react__default.ForwardRefExoticComponent<CodeEdit
473
476
  */
474
477
  declare const createCodeEditorField: (options?: CodeEditorFieldOptions) => {
475
478
  type: "custom";
479
+ _fieldType: "code";
476
480
  label: string | undefined;
477
481
  labelIcon: ReactElement<unknown, string | react__default.JSXElementConstructor<any>> | undefined;
478
482
  visible: boolean | undefined;
@@ -505,6 +509,7 @@ declare const LinkField: {
505
509
  };
506
510
  declare const createLinkField: (options?: LinkFieldOptions) => {
507
511
  type: "custom";
512
+ _fieldType: "link";
508
513
  label: string | undefined;
509
514
  labelIcon: ReactElement<unknown, string | react.JSXElementConstructor<any>> | undefined;
510
515
  visible: boolean | undefined;
@@ -558,6 +563,7 @@ declare const ColorField: {
558
563
  */
559
564
  declare const createColorField: (options?: ColorFieldOptions) => {
560
565
  type: "custom";
566
+ _fieldType: "color";
561
567
  label: string | undefined;
562
568
  labelIcon: ReactElement<unknown, string | react.JSXElementConstructor<any>> | undefined;
563
569
  visible: boolean | undefined;
package/dist/index.js CHANGED
@@ -1067,6 +1067,7 @@ var createLanguageField = (options = {}) => {
1067
1067
  const { label, labelIcon, visible, ...fieldOptions } = options;
1068
1068
  return {
1069
1069
  type: "custom",
1070
+ _fieldType: "language",
1070
1071
  label,
1071
1072
  labelIcon,
1072
1073
  visible,
@@ -1357,6 +1358,7 @@ var createEditorField = (options = {}) => {
1357
1358
  const { label, labelIcon, visible, ...fieldOptions } = options;
1358
1359
  return {
1359
1360
  type: "custom",
1361
+ _fieldType: "editor",
1360
1362
  label,
1361
1363
  labelIcon,
1362
1364
  visible,
@@ -22877,6 +22879,7 @@ var createUploadField = (options = {}) => {
22877
22879
  const { label, labelIcon, visible, ...fieldOptions } = options;
22878
22880
  return {
22879
22881
  type: "custom",
22882
+ _fieldType: "upload",
22880
22883
  label,
22881
22884
  labelIcon,
22882
22885
  visible,
@@ -23571,6 +23574,7 @@ var createCodeEditorField = (options = {}) => {
23571
23574
  const { label, labelIcon, visible, ...fieldOptions } = options;
23572
23575
  return {
23573
23576
  type: "custom",
23577
+ _fieldType: "code",
23574
23578
  label,
23575
23579
  labelIcon,
23576
23580
  visible,
@@ -23813,6 +23817,7 @@ var createLinkField = (options = {}) => {
23813
23817
  const { label, labelIcon, visible, ...fieldOptions } = options;
23814
23818
  return {
23815
23819
  type: "custom",
23820
+ _fieldType: "link",
23816
23821
  label,
23817
23822
  labelIcon,
23818
23823
  visible,
@@ -23993,6 +23998,7 @@ var createColorField = (options = {}) => {
23993
23998
  const { label, labelIcon, visible, ...fieldOptions } = options;
23994
23999
  return {
23995
24000
  type: "custom",
24001
+ _fieldType: "color",
23996
24002
  label,
23997
24003
  labelIcon,
23998
24004
  visible,