@os1-platform/console-ui-react 0.3.1 → 0.4.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/readme.md +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@os1-platform/console-ui-react",
3
- "version": "0.3.1",
3
+ "version": "0.4.1",
4
4
  "description": "React wrapper for console-ui library",
5
5
  "main": "dist/commonjs/aaa/index.js",
6
6
  "types": "dist/commonjs/types/aaa/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@fullhuman/postcss-purgecss": "^5.0.0",
30
- "@os1-platform/console-ui-js": "^0.3.1",
30
+ "@os1-platform/console-ui-js": "^0.4.1",
31
31
  "@react-native-community/eslint-config": "^2.0.0",
32
32
  "@types/react": "^17.0.37",
33
33
  "axios": "^0.21.4",
package/readme.md CHANGED
@@ -118,7 +118,7 @@
118
118
  }
119
119
  ```
120
120
 
121
- Note:- We are exposing OnChangeEvent, OnBlurEvent, OnScrollEvent, OnClickEvent, OnFocusEvent for injectableId's.
121
+ Note:- We are exposing OnChangeEvent, OnBlurEvent, OnScrollEvent, OnClickEvent, OnFocusEvent, OnSearchEvent for injectableId's.
122
122
 
123
123
  8. Use `OS1HttpClient` API to create a client variable for network requests and pass `authInitializer` property of ConsoleUiContext as a constructor parameter.
124
124
 
@@ -309,11 +309,12 @@
309
309
 
310
310
  ``` javascript
311
311
  import {functionBoundAutoCompleteOption} from '@os1-platform/console-ui-react';
312
-
312
+
313
+ if (consoleInstance){
313
314
  functionBoundAutoCompleteOption(autoCompleteValues,"AutoComplete1" ) // here firstParament is a variable that contains the array of objects that needs to be present in dropdown. Second parameter contains the id of dropdown on which we want to load the values
314
-
315
+ }
315
316
  ```
316
- - OnChange, onBlur, OnClick is emitted on this injectable controls
317
+ - OnChange, onBlur, OnClick, OnScroll is emitted on this injectable controls
317
318
 
318
319
 
319
320
  ##### DropDown:-
@@ -337,13 +338,12 @@
337
338
  ``` javascript
338
339
  import {functionBoundOption, OS1DropDownDefaultValue} from '@os1-platform/console-ui-react';
339
340
 
340
- functionBoundOption(dropDownValues,"Dropdown1" ) // here firstParament is a variable that contains the array of objects that needs to be present in dropdown. Second parameter contains the id of dropdown on which we want to load the values
341
-
342
341
  if (consoleInstance){
342
+ functionBoundOption(dropDownValues,"Dropdown1" ) // here firstParament is a variable that contains the array of objects that needs to be present in dropdown. Second parameter contains the id of dropdown on which we want to load the values
343
343
  OS1DropDownDefaultValue('initialValue', "DropDown1"); // Here first parameter contains the value that needs to passed as initialValue, second Parameter is the id of the dropdown on which Id, needs to be set.
344
344
  }
345
345
  ```
346
- - OnChange, onScroll, OnClick is emitted on this injectable controls
346
+ - OnChange, onScroll, OnClick, OnSearch is emitted on this injectable controls
347
347
  ## Configuration required in Next.js projects.
348
348
  - In Next.js, we need to have some library that supports global CSS.
349
349
  - One of these library is `next-global-css`, we require to import `withGlobalCss` from it and wrap our configuration within it. [Link to configure next-global-css](https://www.npmjs.com/package/next-global-css)