@socotra/ec-react-utils 2.3.0-next.7 → 2.3.0-next.8
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.ts +15 -0
- package/dist/index.es.js +276 -269
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ declare interface DataModelToJsonSchemaProps {
|
|
|
35
35
|
* The function `extractElementDataModel` extracts element data model based on a given quote, data
|
|
36
36
|
* model, and element locator.
|
|
37
37
|
* @param - - `quote`: A QuoteResponse object containing information about a quote.
|
|
38
|
+
* @param - - `dataModel`: A DataModel object containing information about a data model.
|
|
39
|
+
* @param - - `elementLocator`: A string containing the element locator.
|
|
38
40
|
* @returns The function `extractElementDataModel` returns either an `ElementConfig` object or `false`
|
|
39
41
|
* based on the provided parameters and data model.
|
|
40
42
|
*/
|
|
@@ -44,6 +46,19 @@ export declare const extractElementDataModel: ({ dataModel, quote, elementLocato
|
|
|
44
46
|
elementLocator: string;
|
|
45
47
|
}) => ElementConfig | false;
|
|
46
48
|
|
|
49
|
+
/**
|
|
50
|
+
* The function `extractElementDataModelFromType` extracts element data model given a data model and
|
|
51
|
+
* element type.
|
|
52
|
+
* @param - - `dataModel`: A DataModel object containing information about a data model.
|
|
53
|
+
* @param - - `elementType`: A string containing the element type.
|
|
54
|
+
* @returns The function `extractElementDataModelFromType` returns either an `ElementConfig` object or `false`
|
|
55
|
+
* based on the provided parameters and data model.
|
|
56
|
+
*/
|
|
57
|
+
export declare const extractElementDataModelFromType: ({ dataModel, elementType, }: {
|
|
58
|
+
dataModel: DataModel;
|
|
59
|
+
elementType: string;
|
|
60
|
+
}) => ElementConfig | false;
|
|
61
|
+
|
|
47
62
|
/**
|
|
48
63
|
* The function `extractElementFromQuote` takes a `QuoteResponse` object and an element locator string,
|
|
49
64
|
* and returns the element with the matching locator from the quote or its nested elements.
|