@depict-ai/portal-components 0.0.13 → 0.0.15
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 +1 -1
- package/dist/main.js +9 -9
- package/dist/module.js +8 -8
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SearchFilter } from "@depict-ai/types/api/SearchResponse";
|
|
2
2
|
import { Locale } from "@depict-ai/react-ui/locales/latest";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
export const version = "0.0.
|
|
4
|
+
export const version = "0.0.15";
|
|
5
5
|
export function ReactSelectedFilters(react_props: {
|
|
6
6
|
availableFilters: SearchFilter[] | undefined;
|
|
7
7
|
hidden?: boolean;
|
package/dist/main.js
CHANGED
|
@@ -10,12 +10,12 @@ function $parcel$export(e, n, v, s) {
|
|
|
10
10
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
$parcel$export(module.exports, "ReactSelectedFilters", () => $
|
|
14
|
-
$parcel$export(module.exports, "ReactFilterBody", () => $
|
|
13
|
+
$parcel$export(module.exports, "ReactSelectedFilters", () => $19e9e02e1e300b6d$export$aea1707d7b01c3a2);
|
|
14
|
+
$parcel$export(module.exports, "ReactFilterBody", () => $240090d16a629bfe$export$d929db7fb6179159);
|
|
15
15
|
$parcel$export(module.exports, "ExpandingSection", () => $2214dc111b9e2866$export$4ea53cd12ff17334);
|
|
16
16
|
$parcel$export(module.exports, "version", () => $0a017be3a74fcc94$export$83d89fbfd8236492);
|
|
17
17
|
/*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
|
|
18
|
-
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "0.0.
|
|
18
|
+
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "0.0.15";
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -64,7 +64,7 @@ function $a1efb49ef2dfa3c2$export$32717ad33b14d079(get_value, get_set_function)
|
|
|
64
64
|
/**
|
|
65
65
|
* Like solid's unwrap but it's reactive. Needed because one can't just save a property in a store and later re-assign it to the same thing because one doesn't get a reference to a property but rather a proxy to it, which's value will update.
|
|
66
66
|
* Kudos to GPT
|
|
67
|
-
*/ function $
|
|
67
|
+
*/ function $a86dc52d0cf7aed0$export$9e813794a2dd0d69(obj, hash = new WeakMap()) {
|
|
68
68
|
if (obj === null || obj === undefined) return obj; // If the object is null or undefined, return it as is
|
|
69
69
|
if (obj instanceof Date) return new Date(obj); // Date object
|
|
70
70
|
if (obj instanceof RegExp) return new RegExp(obj); // Regular Expression object
|
|
@@ -73,19 +73,19 @@ function $a1efb49ef2dfa3c2$export$32717ad33b14d079(get_value, get_set_function)
|
|
|
73
73
|
const result = obj instanceof Array ? [] : {}; // Create a new object or array
|
|
74
74
|
hash.set(obj, result); // Set the new object reference in the hash
|
|
75
75
|
// Recursively copy properties from the original object to the new one
|
|
76
|
-
for(let key in obj)if (obj.hasOwnProperty(key)) result[key] = $
|
|
76
|
+
for(let key in obj)if (obj.hasOwnProperty(key)) result[key] = $a86dc52d0cf7aed0$export$9e813794a2dd0d69(obj[key], hash);
|
|
77
77
|
return result;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
function $
|
|
81
|
+
function $19e9e02e1e300b6d$export$aea1707d7b01c3a2(react_props) {
|
|
82
82
|
return (0, $d38f1fd3cc4cd6b2$export$f6e64e17bd69eeef)({
|
|
83
83
|
solid_component: (props_store)=>{
|
|
84
84
|
const [get_search_sorting_open_] = (0, $7jsgb$solidjs.createSignal)(false);
|
|
85
85
|
const local_filter_cache_ = (0, $7jsgb$solidjs.createSignal)([]);
|
|
86
86
|
const number_of_rendered_selected_filters_items_ = (0, $7jsgb$solidjs.createSignal)(0);
|
|
87
87
|
const i18n_ = (0, $7jsgb$depictaiuilatest.accessor_of_object_to_object_with_accessor_values)(()=>props_store.i18n);
|
|
88
|
-
const selected_filters_ = (0, $a1efb49ef2dfa3c2$export$32717ad33b14d079)((0, $7jsgb$solidjs.createMemo)(()=>(0, $
|
|
88
|
+
const selected_filters_ = (0, $a1efb49ef2dfa3c2$export$32717ad33b14d079)((0, $7jsgb$solidjs.createMemo)(()=>(0, $a86dc52d0cf7aed0$export$9e813794a2dd0d69)(props_store.selectedFilters)), ()=>props_store.setSelectedFilters);
|
|
89
89
|
const available_filters_ = ()=>props_store.availableFilters;
|
|
90
90
|
(0, $7jsgb$depictaiuilatest.create_modified_filters)({
|
|
91
91
|
available_filters_: available_filters_,
|
|
@@ -114,12 +114,12 @@ function $847ac8ccd5089f8b$export$aea1707d7b01c3a2(react_props) {
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
function $
|
|
117
|
+
function $240090d16a629bfe$export$d929db7fb6179159(react_props) {
|
|
118
118
|
return (0, $d38f1fd3cc4cd6b2$export$f6e64e17bd69eeef)({
|
|
119
119
|
solid_component: (props_store)=>{
|
|
120
120
|
const local_filter_cache_ = (0, $7jsgb$solidjs.createSignal)([]);
|
|
121
121
|
const i18n_ = (0, $7jsgb$depictaiuilatest.accessor_of_object_to_object_with_accessor_values)(()=>props_store.i18n);
|
|
122
|
-
const selected_filters_ = (0, $a1efb49ef2dfa3c2$export$32717ad33b14d079)((0, $7jsgb$solidjs.createMemo)(()=>(0, $
|
|
122
|
+
const selected_filters_ = (0, $a1efb49ef2dfa3c2$export$32717ad33b14d079)((0, $7jsgb$solidjs.createMemo)(()=>(0, $a86dc52d0cf7aed0$export$9e813794a2dd0d69)(props_store.selectedFilters)), ()=>props_store.setSelectedFilters);
|
|
123
123
|
const available_filters_ = ()=>props_store.availableFilters;
|
|
124
124
|
(0, $7jsgb$depictaiuilatest.create_modified_filters)({
|
|
125
125
|
available_filters_: available_filters_,
|
package/dist/module.js
CHANGED
|
@@ -7,7 +7,7 @@ import {createStore as $2MCgq$createStore, reconcile as $2MCgq$reconcile} from "
|
|
|
7
7
|
import {createPortal as $2MCgq$createPortal} from "react-dom";
|
|
8
8
|
|
|
9
9
|
/*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
|
|
10
|
-
const $91c11b750e80ede3$export$83d89fbfd8236492 = "0.0.
|
|
10
|
+
const $91c11b750e80ede3$export$83d89fbfd8236492 = "0.0.15";
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -56,7 +56,7 @@ function $d899f63cec76a884$export$32717ad33b14d079(get_value, get_set_function)
|
|
|
56
56
|
/**
|
|
57
57
|
* Like solid's unwrap but it's reactive. Needed because one can't just save a property in a store and later re-assign it to the same thing because one doesn't get a reference to a property but rather a proxy to it, which's value will update.
|
|
58
58
|
* Kudos to GPT
|
|
59
|
-
*/ function $
|
|
59
|
+
*/ function $3c0bf606da4f9fe9$export$9e813794a2dd0d69(obj, hash = new WeakMap()) {
|
|
60
60
|
if (obj === null || obj === undefined) return obj; // If the object is null or undefined, return it as is
|
|
61
61
|
if (obj instanceof Date) return new Date(obj); // Date object
|
|
62
62
|
if (obj instanceof RegExp) return new RegExp(obj); // Regular Expression object
|
|
@@ -65,19 +65,19 @@ function $d899f63cec76a884$export$32717ad33b14d079(get_value, get_set_function)
|
|
|
65
65
|
const result = obj instanceof Array ? [] : {}; // Create a new object or array
|
|
66
66
|
hash.set(obj, result); // Set the new object reference in the hash
|
|
67
67
|
// Recursively copy properties from the original object to the new one
|
|
68
|
-
for(let key in obj)if (obj.hasOwnProperty(key)) result[key] = $
|
|
68
|
+
for(let key in obj)if (obj.hasOwnProperty(key)) result[key] = $3c0bf606da4f9fe9$export$9e813794a2dd0d69(obj[key], hash);
|
|
69
69
|
return result;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
function $
|
|
73
|
+
function $0cb1638b3c084153$export$aea1707d7b01c3a2(react_props) {
|
|
74
74
|
return (0, $0fe03f2fcd2418f8$export$f6e64e17bd69eeef)({
|
|
75
75
|
solid_component: (props_store)=>{
|
|
76
76
|
const [get_search_sorting_open_] = (0, $2MCgq$createSignal)(false);
|
|
77
77
|
const local_filter_cache_ = (0, $2MCgq$createSignal)([]);
|
|
78
78
|
const number_of_rendered_selected_filters_items_ = (0, $2MCgq$createSignal)(0);
|
|
79
79
|
const i18n_ = (0, $2MCgq$accessor_of_object_to_object_with_accessor_values)(()=>props_store.i18n);
|
|
80
|
-
const selected_filters_ = (0, $d899f63cec76a884$export$32717ad33b14d079)((0, $2MCgq$createMemo)(()=>(0, $
|
|
80
|
+
const selected_filters_ = (0, $d899f63cec76a884$export$32717ad33b14d079)((0, $2MCgq$createMemo)(()=>(0, $3c0bf606da4f9fe9$export$9e813794a2dd0d69)(props_store.selectedFilters)), ()=>props_store.setSelectedFilters);
|
|
81
81
|
const available_filters_ = ()=>props_store.availableFilters;
|
|
82
82
|
(0, $2MCgq$create_modified_filters)({
|
|
83
83
|
available_filters_: available_filters_,
|
|
@@ -106,12 +106,12 @@ function $9121beb5225e68fe$export$aea1707d7b01c3a2(react_props) {
|
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
function $
|
|
109
|
+
function $890b58a81f64b470$export$d929db7fb6179159(react_props) {
|
|
110
110
|
return (0, $0fe03f2fcd2418f8$export$f6e64e17bd69eeef)({
|
|
111
111
|
solid_component: (props_store)=>{
|
|
112
112
|
const local_filter_cache_ = (0, $2MCgq$createSignal)([]);
|
|
113
113
|
const i18n_ = (0, $2MCgq$accessor_of_object_to_object_with_accessor_values)(()=>props_store.i18n);
|
|
114
|
-
const selected_filters_ = (0, $d899f63cec76a884$export$32717ad33b14d079)((0, $2MCgq$createMemo)(()=>(0, $
|
|
114
|
+
const selected_filters_ = (0, $d899f63cec76a884$export$32717ad33b14d079)((0, $2MCgq$createMemo)(()=>(0, $3c0bf606da4f9fe9$export$9e813794a2dd0d69)(props_store.selectedFilters)), ()=>props_store.setSelectedFilters);
|
|
115
115
|
const available_filters_ = ()=>props_store.availableFilters;
|
|
116
116
|
(0, $2MCgq$create_modified_filters)({
|
|
117
117
|
available_filters_: available_filters_,
|
|
@@ -183,4 +183,4 @@ function $c79c5cb5e9424dd7$export$4ea53cd12ff17334({ summary: summary_children,
|
|
|
183
183
|
(0, $2MCgq$add_to_version_info)("react-ui", (0, $91c11b750e80ede3$export$83d89fbfd8236492));
|
|
184
184
|
|
|
185
185
|
|
|
186
|
-
export {$
|
|
186
|
+
export {$0cb1638b3c084153$export$aea1707d7b01c3a2 as ReactSelectedFilters, $890b58a81f64b470$export$d929db7fb6179159 as ReactFilterBody, $c79c5cb5e9424dd7$export$4ea53cd12ff17334 as ExpandingSection, $91c11b750e80ede3$export$83d89fbfd8236492 as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/portal-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"@babel/runtime": "latest",
|
|
101
101
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
102
|
-
"@depict-ai/plp-styling": "^1.
|
|
103
|
-
"@depict-ai/react-ui": "^1.5.
|
|
104
|
-
"@depict-ai/types": "^1.0.
|
|
105
|
-
"@depict-ai/ui": "^1.4.
|
|
106
|
-
"@depict-ai/utilishared": "^1.0.
|
|
102
|
+
"@depict-ai/plp-styling": "^1.1.2",
|
|
103
|
+
"@depict-ai/react-ui": "^1.5.19",
|
|
104
|
+
"@depict-ai/types": "^1.0.37",
|
|
105
|
+
"@depict-ai/ui": "^1.4.19",
|
|
106
|
+
"@depict-ai/utilishared": "^1.0.38",
|
|
107
107
|
"parcel": "latest",
|
|
108
108
|
"solid-js": "^1.7.3"
|
|
109
109
|
}
|