@nu-art/json-to-object-renderer 0.401.9 → 0.500.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.
@@ -1,4 +1,6 @@
1
- import { AppToolsScreen, ComponentSync, EditableItem, InferProps, InferState } from '@nu-art/thunderstorm-frontend';
1
+ import { EditableItem } from '@nu-art/editable-item';
2
+ import { AppToolsScreen } from '@nu-art/thunder-ui-modules';
3
+ import { ComponentSync, InferProps, InferState } from '@nu-art/thunder-widgets';
2
4
  type ATS_JsonToObject_Props = {};
3
5
  type ATS_JsonToObject_State = {
4
6
  editable: EditableItem<TestType>;
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ComponentSync, EditableItem, LL_V_L, TS_Button, TS_PropRenderer } from '@nu-art/thunderstorm-frontend';
2
+ import { EditableItem } from '@nu-art/editable-item';
3
+ import { ComponentSync, LL_V_L, TS_Button, TS_PropRenderer } from '@nu-art/thunder-widgets';
3
4
  import { Editor_JsonToObject } from '../Editor_JsonToObject.js';
4
5
  import { tsValidateString } from '@nu-art/ts-common';
5
6
  const validator = {
@@ -1,4 +1,4 @@
1
- @use '@nu-art/thunderstorm-frontend/styles' as tsStyles;
1
+ @use '@nu-art/ts-styles' as styles;
2
2
 
3
3
  .ts-ats.ats-JsonToObject {
4
4
  }
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { EditableContentType, EditableItem, TS_EditableContent } from '@nu-art/thunderstorm-frontend';
2
+ import { EditableContentType, EditableItem, TS_EditableContent } from '@nu-art/editable-item';
3
3
  import { ValidatorTypeResolver } from '@nu-art/ts-common';
4
- import { InferProps, InferState } from '@nu-art/thunderstorm-frontend/utils/types';
4
+ import { InferProps, InferState } from '@nu-art/thunder-widgets';
5
5
  import './Editor_JsonToObject.scss';
6
6
  type Props<T> = {
7
7
  validator: ValidatorTypeResolver<EditableContentType<T>>;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { TS_EditableContent } from '@nu-art/thunderstorm-frontend';
2
+ import { TS_EditableContent } from '@nu-art/editable-item';
3
3
  import { __stringify, tsValidateResult } from '@nu-art/ts-common';
4
- import { TS_TextAreaV2 } from '@nu-art/thunderstorm-frontend/components/TS_V2_TextArea/index';
4
+ import { TS_TextArea } from '@nu-art/thunder-widgets';
5
5
  import './Editor_JsonToObject.scss';
6
6
  export class Editor_JsonToObject extends TS_EditableContent {
7
7
  deriveStateFromProps(nextProps, _state) {
@@ -14,7 +14,7 @@ export class Editor_JsonToObject extends TS_EditableContent {
14
14
  }
15
15
  render() {
16
16
  const { isFreeTextMode, value, editable, isValid } = this.state;
17
- return _jsxs(_Fragment, { children: [!isFreeTextMode && this.props.renderer(editable), isFreeTextMode && _jsx(TS_TextAreaV2, { className: 'ts-json-to-object', resizeWithText: true, "data-valid": isValid, type: "text", value: value, onChange: async (value) => {
17
+ return _jsxs(_Fragment, { children: [!isFreeTextMode && this.props.renderer(editable), isFreeTextMode && _jsx(TS_TextArea, { className: 'ts-json-to-object', resizeWithText: true, "data-valid": isValid, type: "text", value: value, onChange: async (value) => {
18
18
  const { isValid } = this.validateItem(value);
19
19
  return this.setState({ isValid });
20
20
  }, onBlur: async (value) => {
@@ -1,9 +1,9 @@
1
- @use '@nu-art/thunderstorm-frontend/styles' as tsStyles;
1
+ @use '@nu-art/ts-styles' as styles;
2
2
 
3
3
  .ts-json-to-object {
4
4
  align-items: stretch;
5
5
 
6
- .ts-textarea .ts-json-to-object{
6
+ .ts-textarea .ts-json-to-object {
7
7
  height: unset;
8
8
  }
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nu-art/json-to-object-renderer",
3
- "version": "0.401.9",
3
+ "version": "0.500.0",
4
4
  "description": "Thunderstorm",
5
5
  "keywords": [
6
6
  "TacB0sS",
@@ -37,11 +37,12 @@
37
37
  "linkDirectory": true
38
38
  },
39
39
  "dependencies": {
40
- "@nu-art/firebase-shared": "0.401.9",
41
- "@nu-art/thunderstorm-frontend": "0.401.9",
42
- "@nu-art/ts-common": "0.401.9",
43
- "@nu-art/ts-styles": "0.401.9",
44
- "@nu-art/thunderstorm-shared": "0.401.9",
40
+ "@nu-art/editable-item": "{{THUNDERSTORM_VERSION}}",
41
+ "@nu-art/thunder-core": "{{THUNDERSTORM_VERSION}}",
42
+ "@nu-art/thunder-ui-modules": "{{THUNDERSTORM_VERSION}}",
43
+ "@nu-art/thunder-widgets": "{{THUNDERSTORM_VERSION}}",
44
+ "@nu-art/ts-common": "0.500.0",
45
+ "@nu-art/ts-styles": "0.500.0",
45
46
  "react": "^18.0.0"
46
47
  },
47
48
  "devDependencies": {