@wise/dynamic-flow-client-internal 0.1.0 → 0.2.0-beta-88e7d3.4

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Wise Dynamic Flow Web Client
1
+ # Dynamic Flow Web Client for Wise
2
2
 
3
3
  This is the Wise Dynamic Flow web client. It provides a simple way to integrate a Dynamic Flow into your Wise web app.
4
4
 
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { DynamicFlowProps } from '@wise/dynamic-flow-client';
3
+ export declare const DynamicFlow: (props: DynamicFlowProps) => JSX.Element;
4
+ export type { DynamicFlowProps, Step } from '@wise/dynamic-flow-client';
5
+ export { fixtures, translations, makeFetcher, JsonSchemaForm, isValidSchema, } from '@wise/dynamic-flow-client';
package/build/index.js ADDED
@@ -0,0 +1,17 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { DynamicFlow as DynamicFlowCore } from '@wise/dynamic-flow-client';
14
+ export var DynamicFlow = function (props) {
15
+ return _jsx(DynamicFlowCore, __assign({}, props));
16
+ };
17
+ export { fixtures, translations, makeFetcher, JsonSchemaForm, isValidSchema, } from '@wise/dynamic-flow-client';
package/build/main.css ADDED
@@ -0,0 +1,185 @@
1
+ .tw-form-control textarea {
2
+ resize: vertical;
3
+ }
4
+ .camera-capture {
5
+ background: #000;
6
+ height: 100%;
7
+ left: 0;
8
+ position: fixed;
9
+ top: 0;
10
+ width: 100%;
11
+ z-index: 1030;
12
+ }
13
+ .camera-capture video {
14
+ display: block;
15
+ height: 100%;
16
+ left: 0;
17
+ object-fit: cover;
18
+ position: absolute;
19
+ top: 0;
20
+ width: 100%;
21
+ z-index: 0;
22
+ }
23
+ .camera-capture .bottom-bar {
24
+ bottom: 0;
25
+ display: flex;
26
+ flex-direction: column;
27
+ left: 0;
28
+ position: absolute;
29
+ width: 100%;
30
+ }
31
+ .camera-capture .camera-capture-btn {
32
+ align-self: center;
33
+ background-color: transparent;
34
+ background-image: none;
35
+ border: 6px solid #f8f9fa;
36
+ border-radius: 50%;
37
+ cursor: pointer;
38
+ display: inline-block;
39
+ height: 76px;
40
+ position: relative;
41
+ touch-action: manipulation;
42
+ transition: all 0.15s ease-in-out;
43
+ user-select: none;
44
+ vertical-align: middle;
45
+ width: 76px;
46
+ }
47
+ .camera-capture .camera-capture-btn:hover {
48
+ border-color: #cbd3da;
49
+ }
50
+ .camera-capture .camera-capture-btn:hover .camera-capture-btn-inner {
51
+ background-color: #cbd3da;
52
+ }
53
+ .camera-capture .camera-capture-btn:active {
54
+ border-color: #9fadba;
55
+ }
56
+ .camera-capture .camera-capture-btn:active .camera-capture-btn-inner {
57
+ background-color: #9fadba;
58
+ }
59
+ .camera-capture .camera-capture-btn:focus,
60
+ .camera-capture .camera-capture-btn:focus-visible {
61
+ outline: 0;
62
+ }
63
+ .camera-capture .camera-capture-btn .camera-capture-btn-inner {
64
+ background-color: #f8f9fa;
65
+ border-radius: 50%;
66
+ display: inline-block;
67
+ height: 60px;
68
+ margin: 2px;
69
+ transition: all 0.15s ease-in-out;
70
+ width: 60px;
71
+ }
72
+ .camera-capture svg {
73
+ display: block;
74
+ height: 100%;
75
+ left: 0;
76
+ object-fit: cover;
77
+ position: absolute;
78
+ top: 0;
79
+ width: 100%;
80
+ z-index: 0;
81
+ }
82
+ .camera-capture svg .camera-capture-text-and-image-container {
83
+ align-items: center;
84
+ display: flex;
85
+ flex-direction: column;
86
+ gap: 8px;
87
+ justify-content: center;
88
+ overflow: hidden;
89
+ position: absolute;
90
+ }
91
+ .camera-capture svg .camera-capture-instructions,
92
+ .camera-capture svg .camera-capture-title {
93
+ color: #fff;
94
+ display: block;
95
+ text-align: center;
96
+ }
97
+ .camera-capture svg .camera-capture-title {
98
+ overflow: hidden;
99
+ text-overflow: ellipsis;
100
+ white-space: normal;
101
+ }
102
+ .camera-capture svg .camera-capture-img {
103
+ display: block;
104
+ filter: invert(100%);
105
+ height: 32px;
106
+ position: relative;
107
+ width: 32px;
108
+ }
109
+ .camera-capture svg foreignObject {
110
+ overflow: visible;
111
+ }
112
+ .camera-capture .review-image {
113
+ display: block;
114
+ height: 100%;
115
+ left: 0;
116
+ object-fit: cover;
117
+ position: absolute;
118
+ top: 0;
119
+ width: 100%;
120
+ z-index: 0;
121
+ }
122
+ #camera-not-supported {
123
+ background-color: #fff;
124
+ height: 100%;
125
+ left: 0;
126
+ overflow: scroll;
127
+ position: fixed;
128
+ top: 0;
129
+ width: 100%;
130
+ z-index: 10000;
131
+ }
132
+ #no-camera-access {
133
+ background-color: #fff;
134
+ height: 100%;
135
+ left: 0;
136
+ overflow: scroll;
137
+ position: fixed;
138
+ top: 0;
139
+ width: 100%;
140
+ z-index: 10000;
141
+ }
142
+ .df-image {
143
+ display: flex;
144
+ justify-content: center;
145
+ align-items: center;
146
+ }
147
+ .df-image img {
148
+ height: auto;
149
+ width: 100%;
150
+ }
151
+ /* narrow screens */
152
+ .df-image.xs img {
153
+ width: 50px;
154
+ }
155
+ .df-image.sm img {
156
+ width: 100px;
157
+ }
158
+ .df-image.md img {
159
+ width: 200px;
160
+ }
161
+ .df-image.lg img {
162
+ width: 300px;
163
+ }
164
+ /* wide screens */
165
+ @media (min-width: 576px) {
166
+ .df-image.xs img {
167
+ width: 100px;
168
+ }
169
+
170
+ .df-image.sm img {
171
+ width: 200px;
172
+ }
173
+
174
+ .df-image.md img {
175
+ width: 300px;
176
+ }
177
+
178
+ .df-image.lg img {
179
+ width: 500px;
180
+ }
181
+
182
+ .df-image.xl img {
183
+ max-width: 600px;
184
+ }
185
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client-internal",
3
- "version": "0.1.0",
3
+ "version": "0.2.0-beta-88e7d3.4",
4
4
  "description": "Dynamic Flow web client for Wise",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",