@phystack/thermal-printer-react 4.4.30

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/CHANGELOG.md ADDED
@@ -0,0 +1,384 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## 3.92.13 (2024-05-30)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * refactored ga-messaging ([0f1b527](https://github.com/ombori/gridapp/commit/0f1b527e66150611fd31f4cea72f10ee56503198))
12
+
13
+
14
+
15
+
16
+
17
+ ## 3.92.12 (2024-05-29)
18
+
19
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
20
+
21
+
22
+
23
+
24
+
25
+ ## 3.92.11 (2024-05-26)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * scanner ([0550883](https://github.com/ombori/gridapp/commit/05508835d802344500028f297f4e0c3f25411aaa))
31
+
32
+
33
+
34
+
35
+
36
+ ## 3.92.10 (2024-05-25)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * reconnect ([5b8adac](https://github.com/ombori/gridapp/commit/5b8adacae1041fde922222da46b141e9eaee456f))
42
+
43
+
44
+
45
+
46
+
47
+ ## 3.92.9 (2024-05-25)
48
+
49
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
50
+
51
+
52
+
53
+
54
+
55
+ ## 3.92.8 (2024-05-24)
56
+
57
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
58
+
59
+
60
+
61
+
62
+
63
+ ## 3.92.7 (2024-05-24)
64
+
65
+
66
+ ### Bug Fixes
67
+
68
+ * ver ([a6b8c30](https://github.com/ombori/gridapp/commit/a6b8c307d841d1cd4f0574b754b29d06724002dd))
69
+
70
+
71
+
72
+
73
+
74
+ ## 3.92.6 (2024-05-24)
75
+
76
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
77
+
78
+
79
+
80
+
81
+
82
+ ## 3.92.5 (2024-05-20)
83
+
84
+
85
+ ### Bug Fixes
86
+
87
+ * exit if it can not connect to phyedged timeout 2 ([ad402af](https://github.com/ombori/gridapp/commit/ad402af91d8a75f56578dbe9ad41b98e09ddbb3a))
88
+
89
+
90
+
91
+
92
+
93
+ ## 3.92.4 (2024-05-20)
94
+
95
+
96
+ ### Bug Fixes
97
+
98
+ * exit if it can not connect to phyedged timeout ([c45ca4a](https://github.com/ombori/gridapp/commit/c45ca4ae63ceba6773ef8d301db5e51f74fbda80))
99
+
100
+
101
+
102
+
103
+
104
+ ## 3.92.3 (2024-05-20)
105
+
106
+
107
+ ### Bug Fixes
108
+
109
+ * throw an error it connection fails ([5f61fc8](https://github.com/ombori/gridapp/commit/5f61fc8c4546a8c202128a023951288fc67e1bb4))
110
+
111
+
112
+
113
+
114
+
115
+ ## 3.92.2 (2024-05-16)
116
+
117
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
118
+
119
+
120
+
121
+
122
+
123
+ ## 3.92.1 (2024-05-16)
124
+
125
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
126
+
127
+
128
+
129
+
130
+
131
+ # 3.92.0 (2024-05-15)
132
+
133
+
134
+ ### Features
135
+
136
+ * data matrix data source type ([bc47310](https://github.com/ombori/gridapp/commit/bc47310fec84b9fcf7b22a4d5261f7053f8877bd))
137
+
138
+
139
+
140
+
141
+
142
+ ## 3.91.13 (2024-05-14)
143
+
144
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
145
+
146
+
147
+
148
+
149
+
150
+ ## 3.91.12 (2024-05-14)
151
+
152
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
153
+
154
+
155
+
156
+
157
+
158
+ ## 3.91.11 (2024-05-14)
159
+
160
+
161
+ ### Bug Fixes
162
+
163
+ * new docker buildx local tag 2 ([4b63c84](https://github.com/ombori/gridapp/commit/4b63c8408ddb0264ced7a026f2658547f4fb2bba))
164
+
165
+
166
+
167
+
168
+
169
+ ## 3.91.10 (2024-05-14)
170
+
171
+
172
+ ### Bug Fixes
173
+
174
+ * new docker buildx local tag ([084f1a9](https://github.com/ombori/gridapp/commit/084f1a923ae16cd978d7a3a84036cf81ca07748a))
175
+
176
+
177
+
178
+
179
+
180
+ ## 3.91.9 (2024-05-12)
181
+
182
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
183
+
184
+
185
+
186
+
187
+
188
+ ## 3.91.8 (2024-05-12)
189
+
190
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
191
+
192
+
193
+
194
+
195
+
196
+ ## 3.91.7 (2024-05-11)
197
+
198
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
199
+
200
+
201
+
202
+
203
+
204
+ ## 3.91.6 (2024-05-03)
205
+
206
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
207
+
208
+
209
+
210
+
211
+
212
+ ## 3.91.5 (2024-04-16)
213
+
214
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
215
+
216
+
217
+
218
+
219
+
220
+ ## 3.91.4 (2024-04-15)
221
+
222
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
223
+
224
+
225
+
226
+
227
+
228
+ ## 3.91.3 (2024-04-15)
229
+
230
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
231
+
232
+
233
+
234
+
235
+
236
+ ## 3.91.2 (2024-04-15)
237
+
238
+
239
+ ### Reverts
240
+
241
+ * format changes ([ac616fe](https://github.com/ombori/gridapp/commit/ac616feeaf79f3a57123cad0c87868b17880c635))
242
+
243
+
244
+
245
+
246
+
247
+ ## 3.91.1 (2024-04-08)
248
+
249
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
250
+
251
+
252
+
253
+
254
+
255
+ # 3.91.0 (2024-04-08)
256
+
257
+
258
+ ### Features
259
+
260
+ * override ai assistants ([1519ed6](https://github.com/ombori/gridapp/commit/1519ed6d3fdfafdc99a521c91e9efd1348dc976b))
261
+
262
+
263
+
264
+
265
+
266
+ ## 3.90.12 (2024-03-14)
267
+
268
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
269
+
270
+
271
+
272
+
273
+
274
+ ## 3.90.11 (2024-03-14)
275
+
276
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
277
+
278
+
279
+
280
+
281
+
282
+ ## 3.90.10 (2024-03-11)
283
+
284
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
285
+
286
+
287
+
288
+
289
+
290
+ ## 3.90.9 (2024-03-11)
291
+
292
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
293
+
294
+
295
+
296
+
297
+
298
+ ## 3.90.8 (2024-03-11)
299
+
300
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
301
+
302
+
303
+
304
+
305
+
306
+ ## 3.90.7 (2024-03-11)
307
+
308
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
309
+
310
+
311
+
312
+
313
+
314
+ ## 3.90.6 (2024-03-08)
315
+
316
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
317
+
318
+
319
+
320
+
321
+
322
+ ## 3.90.5 (2024-03-07)
323
+
324
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
325
+
326
+
327
+
328
+
329
+
330
+ ## 3.90.3 (2024-03-07)
331
+
332
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
333
+
334
+
335
+
336
+
337
+
338
+ ## 3.90.2 (2024-03-07)
339
+
340
+
341
+ ### Bug Fixes
342
+
343
+ * update yarn.lock ([c68966c](https://github.com/ombori/gridapp/commit/c68966c4aaa68e9e217716723db0e3ed09d559f2))
344
+
345
+
346
+
347
+
348
+
349
+ ## 3.90.1 (2024-03-06)
350
+
351
+ **Note:** Version bump only for package @ombori/ga-thermal-printer-react
352
+
353
+
354
+
355
+
356
+
357
+ ## [3.64.1](https://github.com/ombori/gridapp/compare/v3.64.0...v3.64.1) (2023-10-10)
358
+
359
+
360
+ ### Bug Fixes
361
+
362
+ * remove unused dependency ([ba6a530](https://github.com/ombori/gridapp/commit/ba6a530585b2151ac44e7a7b7bf15f03710c4d36))
363
+
364
+
365
+
366
+
367
+
368
+ ## [3.51.4](https://github.com/ombori/gridapp/compare/v3.51.0...v3.51.4) (2023-07-06)
369
+
370
+
371
+ ### Bug Fixes
372
+
373
+ * revert node thermal printer dep version for now ([7a5188f](https://github.com/ombori/gridapp/commit/7a5188fbf78165eb1b5a6719288aaff84c3fa215))
374
+
375
+
376
+
377
+
378
+
379
+ # [3.51.0](https://github.com/ombori/gridapp/compare/v3.50.0...v3.51.0) (2023-07-05)
380
+
381
+
382
+ ### Features
383
+
384
+ * printer fix ([10798b6](https://github.com/ombori/gridapp/commit/10798b67addf482bc03b0044cd6882989f6747bf))
package/README.md ADDED
File without changes
@@ -0,0 +1,19 @@
1
+ export interface PrinterInfo {
2
+ connected: boolean;
3
+ device: string;
4
+ manufacturer: string;
5
+ mode: string;
6
+ model: string;
7
+ class: string;
8
+ description: string;
9
+ cid: string;
10
+ error: boolean;
11
+ selected: boolean;
12
+ outofpaper: boolean;
13
+ busy: boolean;
14
+ ack: boolean;
15
+ }
16
+ export declare function usePrinter(): {
17
+ printerInfo: PrinterInfo | null;
18
+ };
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,GAAG,EAAE,OAAO,CAAC;CACd;AAGD,wBAAgB,UAAU;;EAIzB"}
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.usePrinter = usePrinter;
4
+ var react_1 = require("react");
5
+ function usePrinter() {
6
+ var _a = (0, react_1.useState)(null), printerInfo = _a[0], setPrinterInfo = _a[1];
7
+ return { printerInfo: printerInfo };
8
+ }
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@phystack/thermal-printer-react",
3
+ "version": "4.4.30",
4
+ "main": "dist/index.js",
5
+ "license": "MIT",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "scripts": {
10
+ "build": "rimraf ./dist && tsc",
11
+ "build:watch": "tsc -w"
12
+ },
13
+ "peerDependencies": {
14
+ "react": "^18.3.1"
15
+ },
16
+ "devDependencies": {
17
+ "typescript": "^5.4.5"
18
+ },
19
+ "dependencies": {
20
+ "@phystack/thermal-printer": "4.4.30"
21
+ },
22
+ "gitHead": "7ace51c4b57b6330aa5a26cd341dea96b9a6a080"
23
+ }
package/src/index.ts ADDED
@@ -0,0 +1,24 @@
1
+ import { useEffect, useState } from 'react';
2
+
3
+ export interface PrinterInfo {
4
+ connected: boolean;
5
+ device: string;
6
+ manufacturer: string;
7
+ mode: string;
8
+ model: string;
9
+ class: string;
10
+ description: string;
11
+ cid: string;
12
+ error: boolean;
13
+ selected: boolean;
14
+ outofpaper: boolean;
15
+ busy: boolean;
16
+ ack: boolean;
17
+ }
18
+
19
+
20
+ export function usePrinter() {
21
+ const [printerInfo, setPrinterInfo] = useState<PrinterInfo | null>(null);
22
+
23
+ return { printerInfo };
24
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "lib": [
5
+ "dom",
6
+ "dom.iterable",
7
+ "esnext"
8
+ ],
9
+ "allowJs": true,
10
+ "skipLibCheck": true,
11
+ "esModuleInterop": true,
12
+ "allowSyntheticDefaultImports": true,
13
+ "strict": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "module": "commonjs",
16
+ "moduleResolution": "node",
17
+ "resolveJsonModule": true,
18
+ "isolatedModules": true,
19
+ "jsx": "react",
20
+ "outDir": "dist",
21
+ "rootDir": "src",
22
+ "declarationDir": "dist",
23
+ "declarationMap": true,
24
+ "declaration": true,
25
+ "alwaysStrict": true
26
+ },
27
+ "include": [
28
+ "src"
29
+ ]
30
+ }