@unissey-web/web-components 4.0.3-rc.1 → 4.0.3-rc.2

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.
@@ -3,7 +3,7 @@ import { selfieCaptureStrings } from './selfie-capture.js';
3
3
  import { referenceCaptureStrings } from './reference-capture.js';
4
4
  import './button.js';
5
5
  import './en-e76ed5a0.js';
6
- import './video-recorder-a96a2d32.js';
6
+ import './video-recorder-4da79017.js';
7
7
  import './_commonjsHelpers-cef27602.js';
8
8
  import './variables-55f57e89.js';
9
9
  import './video-record-directions.js';
package/dist/index.d.ts CHANGED
@@ -267,6 +267,8 @@ declare class Recorder extends LitElement {
267
267
  session: UnisseySession | null;
268
268
  sessionPromise: Promise<void> | null;
269
269
  config: SessionConfig$1;
270
+ sdkAngularVersion: string | undefined;
271
+ sdkReactVersion: string | undefined;
270
272
  preset: AcquisitionPreset$1;
271
273
  resultEvent: {
272
274
  name: string;
@@ -367,6 +369,14 @@ declare class Recorder extends LitElement {
367
369
  attribute: string;
368
370
  type: BooleanConstructor;
369
371
  };
372
+ sdkAngularVersion: {
373
+ attribute: string;
374
+ type: StringConstructor;
375
+ };
376
+ sdkReactVersion: {
377
+ attribute: string;
378
+ type: StringConstructor;
379
+ };
370
380
  hints: {
371
381
  state: boolean;
372
382
  };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { Button } from './button.js';
2
- import { R as Recorder } from './video-recorder-a96a2d32.js';
3
- export { C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-a96a2d32.js';
2
+ import { R as Recorder } from './video-recorder-4da79017.js';
3
+ export { C as CameraVideoOutlinedIcon, O as OverlayHints } from './video-recorder-4da79017.js';
4
4
  export { VideoRecordDirections } from './video-record-directions.js';
5
5
  export { PictureRecorder } from './picture-recorder.js';
6
6
  export { PictureEditor } from './picture-editor.js';
@@ -1,6 +1,6 @@
1
1
  import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, e as _objectSpread2 } from './lit-element-ac3d3a27.js';
2
2
  import { E as EN } from './en-e76ed5a0.js';
3
- import { R as Recorder, b as buildPacked } from './video-recorder-a96a2d32.js';
3
+ import { R as Recorder, b as buildPacked } from './video-recorder-4da79017.js';
4
4
  import './_commonjsHelpers-cef27602.js';
5
5
  import './variables-55f57e89.js';
6
6
  import './button.js';
@@ -3,7 +3,7 @@ import './button.js';
3
3
  import './image-capture-directions.js';
4
4
  import './file-upload.js';
5
5
  import './picture-recorder.js';
6
- import { b as buildPacked } from './video-recorder-a96a2d32.js';
6
+ import { b as buildPacked } from './video-recorder-4da79017.js';
7
7
  import { E as EN } from './en-e76ed5a0.js';
8
8
  import { c as referenceCaptureVars } from './variables-55f57e89.js';
9
9
  import './direction-card-277681c3.js';
@@ -1,6 +1,6 @@
1
1
  import { _ as _inherits, a as _createClass, x, d as _taggedTemplateLiteral, s, b as _classCallCheck, c as _callSuper, i } from './lit-element-ac3d3a27.js';
2
2
  import { E as EN } from './en-e76ed5a0.js';
3
- import { b as buildPacked } from './video-recorder-a96a2d32.js';
3
+ import { b as buildPacked } from './video-recorder-4da79017.js';
4
4
  import './video-record-directions.js';
5
5
  import './button.js';
6
6
  import { s as selfieCaptureVars } from './variables-55f57e89.js';
@@ -5,7 +5,7 @@ import { E as EN } from './en-e76ed5a0.js';
5
5
  import './button.js';
6
6
 
7
7
  var name = "@unissey-web/web-components";
8
- var version = "4.0.3-rc.1";
8
+ var version = "4.0.3-rc.2";
9
9
  var description = "";
10
10
  var module = "./dist/index.js";
11
11
  var typings = "./dist/index.d.ts";
@@ -335,6 +335,8 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
335
335
  _this.sessionPromise = null;
336
336
  // Config that is passed by the user with component attributes
337
337
  _this.config = {};
338
+ _this.sdkAngularVersion = undefined;
339
+ _this.sdkReactVersion = undefined;
338
340
  // Default value of preset attribute
339
341
  _this.preset = buildPacked.exports.AcquisitionPreset.SELFIE_FAST;
340
342
  // result event
@@ -663,9 +665,11 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
663
665
  var configChanged = _changedProperties.has("config");
664
666
  var faceCheckerChanged = _changedProperties.has("faceChecker");
665
667
  var instructionsChanged = _changedProperties.has("instructionMessages");
668
+ var sdkReactVersionChanged = _changedProperties.has("sdkReactVersion");
669
+ var sdkAngularVersionChanged = _changedProperties.has("sdkAngularVersion");
666
670
 
667
671
  // The sdk is initialized only if it is the first rendering or if one of the following attributes changes: preset or config
668
- var shouldInitSdk = presetChanged || configChanged || instructionsChanged || faceCheckerChanged;
672
+ var shouldInitSdk = presetChanged || configChanged || instructionsChanged || faceCheckerChanged || sdkReactVersionChanged || sdkAngularVersionChanged;
669
673
  if (shouldInitSdk) {
670
674
  this.callInitSession();
671
675
  }
@@ -804,6 +808,8 @@ var Recorder = /*#__PURE__*/function (_LitElement) {
804
808
  // add sdk-web version
805
809
  if (!sessionConfig.versions) sessionConfig.versions = {};
806
810
  sessionConfig.versions["sdk-web-components"] = pkg.version;
811
+ if (this.sdkReactVersion) sessionConfig.versions["sdk-react"] = this.sdkReactVersion;
812
+ if (this.sdkAngularVersion) sessionConfig.versions["sdk-angular"] = this.sdkAngularVersion;
807
813
 
808
814
  // if we now have instructions or if we have no more instructions, the component '.instructions' is added or removed
809
815
  // and we should compute the layout with adjustContainerSize.
@@ -1094,6 +1100,14 @@ Recorder.properties = {
1094
1100
  attribute: "disable-debug-mode",
1095
1101
  type: Boolean
1096
1102
  },
1103
+ sdkAngularVersion: {
1104
+ attribute: "sdk-angular-version",
1105
+ type: String
1106
+ },
1107
+ sdkReactVersion: {
1108
+ attribute: "sdk-react-version",
1109
+ type: String
1110
+ },
1097
1111
  // Internal state
1098
1112
  hints: {
1099
1113
  state: true
@@ -1,5 +1,5 @@
1
1
  import './lit-element-ac3d3a27.js';
2
- export { R as Recorder, V as VideoRecorder } from './video-recorder-a96a2d32.js';
2
+ export { R as Recorder, V as VideoRecorder } from './video-recorder-4da79017.js';
3
3
  import './button.js';
4
4
  import './en-e76ed5a0.js';
5
5
  import './_commonjsHelpers-cef27602.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unissey-web/web-components",
3
- "version": "4.0.3-rc.1",
3
+ "version": "4.0.3-rc.2",
4
4
  "description": "",
5
5
  "module": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",