datastake-daf 0.6.393 → 0.6.394

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/.env ADDED
@@ -0,0 +1,8 @@
1
+ REACT_APP_API_KEY=
2
+ REACT_APP_AUTH_DOMAIN=
3
+ REACT_APP_PROJECT_ID=
4
+ REACT_APP_STORAGE_BUCKED=
5
+ REACT_APP_SENDER_ID=
6
+ REACT_APP_APP_ID=
7
+ REACT_APP_MEASUREMENT_ID=
8
+ REACT_APP_VAPID_KEY=
@@ -0,0 +1,13 @@
1
+ {
2
+ "cSpell.words": ["cukura"],
3
+ "files.autoSave": "afterDelay",
4
+ "editor.wordWrap": "on",
5
+ "editor.autoClosingBrackets": "always",
6
+ "editor.autoClosingComments": "always",
7
+ "editor.autoClosingQuotes": "always",
8
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
9
+ "editor.formatOnPaste": true,
10
+ "editor.formatOnSave": true,
11
+ "notebook.defaultFormatter": "esbenp.prettier-vscode",
12
+ "javascript.format.semicolons": "insert"
13
+ }
@@ -14098,9 +14098,8 @@ const determineHasChildren = ({
14098
14098
 
14099
14099
  const sortByPosition = (items, getConfig) => {
14100
14100
  return items.sort((a, b) => {
14101
- var _getConfig, _getConfig2;
14102
- const positionA = ((_getConfig = getConfig(a)) === null || _getConfig === void 0 ? void 0 : _getConfig.position) || 0;
14103
- const positionB = ((_getConfig2 = getConfig(b)) === null || _getConfig2 === void 0 ? void 0 : _getConfig2.position) || 0;
14101
+ const positionA = getConfig(a)?.position || 0;
14102
+ const positionB = getConfig(b)?.position || 0;
14104
14103
  return positionA - positionB;
14105
14104
  });
14106
14105
  };
@@ -14117,7 +14116,7 @@ const resolveDynamicLabel = (labelConfig, item, defaultLabel) => {
14117
14116
  const parts = labelKey.split(' is ');
14118
14117
  if (parts.length === 2) {
14119
14118
  const [conditionKey, conditionValue] = parts;
14120
- if ((item === null || item === void 0 ? void 0 : item[conditionKey]) === conditionValue) {
14119
+ if (item?.[conditionKey] === conditionValue) {
14121
14120
  return labelConfig[labelKey];
14122
14121
  }
14123
14122
  }
@@ -17402,6 +17401,7 @@ const StakeholderMarker = dt.div`
17402
17401
  border: 1px solid white;
17403
17402
  display: flex;
17404
17403
  align-items: center;
17404
+ background-color: black;
17405
17405
  justify-content: center;
17406
17406
 
17407
17407
  &.small {
@@ -17503,7 +17503,6 @@ const LocationMarker = dt.svg`
17503
17503
  .mine-site-marker {
17504
17504
  fill: var(--blue-50);
17505
17505
  stroke: white;
17506
-
17507
17506
 
17508
17507
  &:hover {
17509
17508
  fill: var(--blue-60);
@@ -47001,8 +47000,8 @@ const filterParams = value => {
47001
47000
  } = activeFilters || {};
47002
47001
  const params = {};
47003
47002
  params.pagination = JSON.stringify({
47004
- page,
47005
- size: pageSize
47003
+ skip: page,
47004
+ take: pageSize
47006
47005
  });
47007
47006
  if (search && searchParams) {
47008
47007
  params.search = JSON.stringify({
@@ -6111,8 +6111,8 @@ const filterParams = value => {
6111
6111
  } = activeFilters || {};
6112
6112
  const params = {};
6113
6113
  params.pagination = JSON.stringify({
6114
- page,
6115
- size: pageSize
6114
+ skip: page,
6115
+ take: pageSize
6116
6116
  });
6117
6117
  if (search && searchParams) {
6118
6118
  params.search = JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.393",
3
+ "version": "0.6.394",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -6,6 +6,7 @@ export const StakeholderMarker = styled.div`
6
6
  border: 1px solid white;
7
7
  display: flex;
8
8
  align-items: center;
9
+ background-color: black;
9
10
  justify-content: center;
10
11
 
11
12
  &.small {
@@ -108,7 +109,6 @@ export const LocationMarker = styled.svg`
108
109
  .mine-site-marker {
109
110
  fill: var(--blue-50);
110
111
  stroke: white;
111
-
112
112
 
113
113
  &:hover {
114
114
  fill: var(--blue-60);
@@ -11,7 +11,7 @@ export const storyConfig = {
11
11
  stakeholders: [
12
12
  {
13
13
  datastakeId: "STK00000001",
14
- type: "mineralProcessor",
14
+ type: "mineralProcessorFROM THE LAST TREA",
15
15
  name: "STK00000001",
16
16
  links: ["STK00000009"],
17
17
  subTitle: "Sub Title 1",
@@ -76,8 +76,8 @@ export const filterParams = (value) => {
76
76
  const params = {};
77
77
 
78
78
  params.pagination = JSON.stringify({
79
- page,
80
- size: pageSize,
79
+ skip: page,
80
+ take: pageSize,
81
81
  });
82
82
 
83
83
  if (search && searchParams) {