@luomus/laji-form 15.1.78 → 15.1.80

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/styles.css CHANGED
@@ -4243,8 +4243,8 @@ body .laji-form {
4243
4243
 
4244
4244
  .laji-form .checkbox-container {
4245
4245
  display: table;
4246
- border: 1px solid #00000038;
4247
- border-radius: 2px;
4246
+ outline: 1px solid #00000038;
4247
+ border-radius: 1px;
4248
4248
  }
4249
4249
  .laji-form .checkbox-container label {
4250
4250
  font-weight: initial;
@@ -18,7 +18,7 @@ type RelaxQuery<P, K extends string> = P extends {
18
18
  } : {
19
19
  query: Omit<Q, Extract<keyof Q, K>> & Partial<Pick<Q, Extract<keyof Q, K>>>;
20
20
  }) : P;
21
- type MiddlewareInjectedKeys = "collectionID" | "formID" | "personToken";
21
+ type MiddlewareInjectedKeys = "collectionID" | "formID";
22
22
  type Parameters<T> = "parameters" extends keyof T ? T["parameters"] : never;
23
23
  type ExtractContentIfExists<R> = R extends {
24
24
  content: infer C;
package/lib/ApiClient.js CHANGED
@@ -169,7 +169,7 @@ class ApiClient {
169
169
  options = Object.assign(Object.assign({}, options), { headers: Object.assign(Object.assign({}, (options.headers || {})), { "Content-Type": "application/json", "Accept": "application/json" }) });
170
170
  body = JSON.stringify(body);
171
171
  }
172
- const response = yield this.apiClient.fetch(pathSegments.join(""), _query, Object.assign({ method, body }, options));
172
+ const response = yield this.apiClient.fetch(pathSegments.join(""), ((params === null || params === void 0 ? void 0 : params.query) || {}), Object.assign({ method, body }, options));
173
173
  if (response.status >= 400) {
174
174
  const error = yield response.json();
175
175
  throw new LajiApiError(error === null || error === void 0 ? void 0 : error.message, response.status);
@@ -464,7 +464,7 @@ function MediaArrayField(ComposedComponent) {
464
464
  const metadataPromise = ("capturerVerbatim" in mediaMetadata)
465
465
  ? Promise.resolve(Object.assign(Object.assign({}, mediaMetadata), { capturerVerbatim: Array.isArray(mediaMetadata.capturerVerbatim) ? mediaMetadata.capturerVerbatim : [mediaMetadata.capturerVerbatim] }))
466
466
  : MACode
467
- ? this.apiClient.get("/person/by-id/{personId}", { path: { personId: MACode } }).then(({ fullName = MACode }) => (Object.assign(Object.assign({ capturerVerbatim: Array.isArray(fullName) ? fullName : [fullName] }, mediaMetadata), { intellectualOwner: fullName }))).catch(() => Promise.resolve(mediaMetadata))
467
+ ? this.apiClient.get("/person/{id}", { path: { id: MACode } }).then(({ fullName = MACode }) => (Object.assign(Object.assign({ capturerVerbatim: Array.isArray(fullName) ? fullName : [fullName] }, mediaMetadata), { intellectualOwner: fullName }))).catch(() => Promise.resolve(mediaMetadata))
468
468
  : Promise.resolve(mediaMetadata);
469
469
  return Promise.all([exifDataPromise, metadataPromise]).then(([exifData, metadata]) => {
470
470
  return Object.assign(Object.assign({}, exifData.defaultMediaMetadata), metadata);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luomus/laji-form",
3
- "version": "15.1.78",
3
+ "version": "15.1.80",
4
4
  "description": "React module capable of building dynamic forms from Laji form json schemas",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "test:lightweight": "npx playwright test --project chromium",
30
30
  "test:docker:build": "docker build -t laji-form-test -f test.Dockerfile .",
31
31
  "test:docker:run": "docker run laji-form-test",
32
- "generate:api-client": "openapi-typescript https://apitest.laji.fi/explorer-json -o ./generated/api.d.ts --properties-required-by-default"
32
+ "generate:api-client": "openapi-typescript https://apitest.laji.fi/openapi-json -o ./generated/api.d.ts --properties-required-by-default"
33
33
  },
34
34
  "keywords": [
35
35
  "react-jsonschema-form",
@@ -41,7 +41,7 @@
41
41
  "license": "MIT",
42
42
  "dependencies": {
43
43
  "@luomus/laji-map": "^5.1.19",
44
- "@luomus/laji-validate": "^0.0.123",
44
+ "@luomus/laji-validate": "^0.0.124",
45
45
  "@rjsf/core": "~5.1.0",
46
46
  "@rjsf/utils": "~5.1.0",
47
47
  "@rjsf/validator-ajv6": "~5.1.0",