@trackunit/custom-field-api 1.17.15 → 1.17.17

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/index.cjs.js CHANGED
@@ -1894,11 +1894,6 @@ const useAllCustomFieldDefinitions = ({ entityType, filterQuery, owners, systemO
1894
1894
  entityType,
1895
1895
  systemOfMeasurement,
1896
1896
  },
1897
- context: {
1898
- headers: {
1899
- "TU-PREVIEW": "JUNGLE-DIGGER",
1900
- },
1901
- },
1902
1897
  });
1903
1898
  const definitionsArray = react.useMemo(() => {
1904
1899
  return (definitions?.customFieldDefinitions?.edges?.map(edge => getCustomFieldDefinitionFromRelevantNode$1(edge?.node)) ||
@@ -1949,11 +1944,6 @@ const useAllCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMe
1949
1944
  systemOfMeasurement,
1950
1945
  },
1951
1946
  skip: entityType !== "ASSET" || !entityId,
1952
- context: {
1953
- headers: {
1954
- "TU-PREVIEW": "JUNGLE-DIGGER",
1955
- },
1956
- },
1957
1947
  });
1958
1948
  const { data: siteFields, loading: loadingSiteFields, refetch: refetchSiteFields, } = reactGraphqlHooks.useQuery(GetCustomFieldsForSiteDocument, {
1959
1949
  variables: {
@@ -1961,11 +1951,6 @@ const useAllCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMe
1961
1951
  systemOfMeasurement,
1962
1952
  },
1963
1953
  skip: entityType !== "SITE" || !entityId,
1964
- context: {
1965
- headers: {
1966
- "TU-PREVIEW": "JUNGLE-DIGGER",
1967
- },
1968
- },
1969
1954
  });
1970
1955
  const fields = react.useMemo(() => {
1971
1956
  switch (entityType) {
@@ -2060,11 +2045,6 @@ const useCustomFieldDefinitions = ({ entityType, filterQuery, owners, systemOfMe
2060
2045
  irisAppId: irisAppId || "",
2061
2046
  },
2062
2047
  skip: !irisAppId,
2063
- context: {
2064
- headers: {
2065
- "TU-PREVIEW": "JUNGLE-DIGGER",
2066
- },
2067
- },
2068
2048
  });
2069
2049
  const { language } = reactCoreHooks.useCurrentUserLanguage();
2070
2050
  const definitionsArray = react.useMemo(() => {
@@ -2121,11 +2101,6 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
2121
2101
  irisAppId: irisAppId || "",
2122
2102
  },
2123
2103
  skip: entityType !== "ASSET" || !entityId || !irisAppId,
2124
- context: {
2125
- headers: {
2126
- "TU-PREVIEW": "JUNGLE-DIGGER",
2127
- },
2128
- },
2129
2104
  });
2130
2105
  const { data: siteFields, loading: loadingSiteFields } = reactGraphqlHooks.useQuery(GetCustomFieldsForSiteForIrisAppDocument, {
2131
2106
  variables: {
@@ -2134,11 +2109,6 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
2134
2109
  irisAppId: irisAppId || "",
2135
2110
  },
2136
2111
  skip: entityType !== "SITE" || !entityId || !irisAppId,
2137
- context: {
2138
- headers: {
2139
- "TU-PREVIEW": "JUNGLE-DIGGER",
2140
- },
2141
- },
2142
2112
  });
2143
2113
  const fields = react.useMemo(() => {
2144
2114
  switch (entityType) {
package/index.esm.js CHANGED
@@ -1892,11 +1892,6 @@ const useAllCustomFieldDefinitions = ({ entityType, filterQuery, owners, systemO
1892
1892
  entityType,
1893
1893
  systemOfMeasurement,
1894
1894
  },
1895
- context: {
1896
- headers: {
1897
- "TU-PREVIEW": "JUNGLE-DIGGER",
1898
- },
1899
- },
1900
1895
  });
1901
1896
  const definitionsArray = useMemo(() => {
1902
1897
  return (definitions?.customFieldDefinitions?.edges?.map(edge => getCustomFieldDefinitionFromRelevantNode$1(edge?.node)) ||
@@ -1947,11 +1942,6 @@ const useAllCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMe
1947
1942
  systemOfMeasurement,
1948
1943
  },
1949
1944
  skip: entityType !== "ASSET" || !entityId,
1950
- context: {
1951
- headers: {
1952
- "TU-PREVIEW": "JUNGLE-DIGGER",
1953
- },
1954
- },
1955
1945
  });
1956
1946
  const { data: siteFields, loading: loadingSiteFields, refetch: refetchSiteFields, } = useQuery(GetCustomFieldsForSiteDocument, {
1957
1947
  variables: {
@@ -1959,11 +1949,6 @@ const useAllCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMe
1959
1949
  systemOfMeasurement,
1960
1950
  },
1961
1951
  skip: entityType !== "SITE" || !entityId,
1962
- context: {
1963
- headers: {
1964
- "TU-PREVIEW": "JUNGLE-DIGGER",
1965
- },
1966
- },
1967
1952
  });
1968
1953
  const fields = useMemo(() => {
1969
1954
  switch (entityType) {
@@ -2058,11 +2043,6 @@ const useCustomFieldDefinitions = ({ entityType, filterQuery, owners, systemOfMe
2058
2043
  irisAppId: irisAppId || "",
2059
2044
  },
2060
2045
  skip: !irisAppId,
2061
- context: {
2062
- headers: {
2063
- "TU-PREVIEW": "JUNGLE-DIGGER",
2064
- },
2065
- },
2066
2046
  });
2067
2047
  const { language } = useCurrentUserLanguage();
2068
2048
  const definitionsArray = useMemo(() => {
@@ -2119,11 +2099,6 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
2119
2099
  irisAppId: irisAppId || "",
2120
2100
  },
2121
2101
  skip: entityType !== "ASSET" || !entityId || !irisAppId,
2122
- context: {
2123
- headers: {
2124
- "TU-PREVIEW": "JUNGLE-DIGGER",
2125
- },
2126
- },
2127
2102
  });
2128
2103
  const { data: siteFields, loading: loadingSiteFields } = useQuery(GetCustomFieldsForSiteForIrisAppDocument, {
2129
2104
  variables: {
@@ -2132,11 +2107,6 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
2132
2107
  irisAppId: irisAppId || "",
2133
2108
  },
2134
2109
  skip: entityType !== "SITE" || !entityId || !irisAppId,
2135
- context: {
2136
- headers: {
2137
- "TU-PREVIEW": "JUNGLE-DIGGER",
2138
- },
2139
- },
2140
2110
  });
2141
2111
  const fields = useMemo(() => {
2142
2112
  switch (entityType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/custom-field-api",
3
- "version": "1.17.15",
3
+ "version": "1.17.17",
4
4
  "engines": {
5
5
  "node": ">=24.x"
6
6
  },
@@ -9,14 +9,14 @@
9
9
  "dependencies": {
10
10
  "@graphql-codegen/cli": "^5.0.3",
11
11
  "@graphql-typed-document-node/core": "^3.2.0",
12
- "@trackunit/iris-app-build-utilities": "1.13.19",
13
- "@trackunit/iris-app-api": "1.15.17",
14
- "@trackunit/react-core-contexts-test": "1.14.12",
15
- "@trackunit/shared-utils": "1.13.84",
16
- "@trackunit/react-core-hooks": "1.14.12",
17
- "@trackunit/iris-app-runtime-core": "1.14.10",
18
- "@trackunit/iris-app-runtime-core-api": "1.13.10",
19
- "@trackunit/react-graphql-hooks": "1.18.15"
12
+ "@trackunit/iris-app-build-utilities": "1.13.21",
13
+ "@trackunit/iris-app-api": "1.15.19",
14
+ "@trackunit/react-core-contexts-test": "1.14.13",
15
+ "@trackunit/shared-utils": "1.13.85",
16
+ "@trackunit/react-core-hooks": "1.14.13",
17
+ "@trackunit/iris-app-runtime-core": "1.14.11",
18
+ "@trackunit/iris-app-runtime-core-api": "1.13.11",
19
+ "@trackunit/react-graphql-hooks": "1.18.17"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": "^19.0.0",