@operato/font 1.0.0-beta.4 → 1.0.0-beta.43

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +410 -0
  2. package/custom-elements.json +841 -0
  3. package/dist/src/font-creation-card.d.ts +18 -0
  4. package/dist/src/font-creation-card.js +258 -0
  5. package/dist/src/font-creation-card.js.map +1 -0
  6. package/dist/src/font-selector.d.ts +36 -0
  7. package/dist/src/font-selector.js +285 -0
  8. package/dist/src/font-selector.js.map +1 -0
  9. package/dist/src/graphql-client.d.ts +20 -0
  10. package/dist/src/graphql-client.js +109 -0
  11. package/dist/src/graphql-client.js.map +1 -0
  12. package/dist/src/index.d.ts +5 -0
  13. package/dist/src/index.js +6 -0
  14. package/dist/src/index.js.map +1 -0
  15. package/dist/src/ox-file-selector.d.ts +12 -0
  16. package/dist/src/ox-file-selector.js +129 -0
  17. package/dist/src/ox-file-selector.js.map +1 -0
  18. package/dist/src/ox-font-selector.d.ts +15 -0
  19. package/dist/src/ox-font-selector.js +88 -0
  20. package/dist/src/ox-font-selector.js.map +1 -0
  21. package/dist/src/ox-property-editor-font-selector.d.ts +8 -0
  22. package/dist/src/ox-property-editor-font-selector.js +13 -0
  23. package/dist/src/ox-property-editor-font-selector.js.map +1 -0
  24. package/dist/src/redux-font-actions.d.ts +7 -0
  25. package/dist/src/redux-font-actions.js +19 -0
  26. package/dist/src/redux-font-actions.js.map +1 -0
  27. package/dist/src/redux-font-reducers.d.ts +12 -0
  28. package/dist/src/redux-font-reducers.js +70 -0
  29. package/dist/src/redux-font-reducers.js.map +1 -0
  30. package/dist/tsconfig.tsbuildinfo +1 -0
  31. package/package.json +64 -19
  32. package/src/font-creation-card.ts +260 -0
  33. package/src/font-selector.ts +284 -0
  34. package/src/{graphql-client.js → graphql-client.ts} +35 -26
  35. package/src/index.ts +6 -0
  36. package/src/ox-file-selector.ts +114 -0
  37. package/src/ox-font-selector.ts +94 -0
  38. package/src/ox-property-editor-font-selector.ts +16 -0
  39. package/src/redux-font-actions.ts +21 -0
  40. package/src/redux-font-reducers.ts +88 -0
  41. package/src/font-creation-card.js +0 -311
  42. package/src/font-selector.js +0 -465
  43. package/src/index.js +0 -3
  44. package/src/ox-font-selector.js +0 -102
  45. package/src/ox-property-editor-font-selector.js +0 -25
  46. package/things-factory.config.js +0 -5
@@ -0,0 +1,841 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/font-creation-card.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "FontCreationCard",
13
+ "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "provider",
17
+ "type": {
18
+ "text": "string"
19
+ },
20
+ "default": "'google'",
21
+ "attribute": "provider"
22
+ },
23
+ {
24
+ "kind": "field",
25
+ "name": "googleFonts",
26
+ "type": {
27
+ "text": "Array<string>"
28
+ },
29
+ "default": "[]",
30
+ "attribute": "googleFonts"
31
+ },
32
+ {
33
+ "kind": "field",
34
+ "name": "files",
35
+ "type": {
36
+ "text": "Array<any> | undefined"
37
+ },
38
+ "attribute": "files"
39
+ },
40
+ {
41
+ "kind": "field",
42
+ "name": "providers",
43
+ "type": {
44
+ "text": "Array<{ value: string; display: string }>"
45
+ },
46
+ "default": "[\n { value: 'google', display: 'Google' },\n // TODO 구글 외 폰트 서비스 구현\n // { value: 'typekit', display: 'Typekit' },\n { value: 'custom', display: 'Custom' }\n ]"
47
+ },
48
+ {
49
+ "kind": "method",
50
+ "name": "onClickFlip",
51
+ "parameters": [
52
+ {
53
+ "name": "e",
54
+ "type": {
55
+ "text": "Event"
56
+ }
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "kind": "method",
62
+ "name": "onClickSubmit",
63
+ "parameters": [
64
+ {
65
+ "name": "e",
66
+ "type": {
67
+ "text": "Event"
68
+ }
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ "kind": "method",
74
+ "name": "reset"
75
+ }
76
+ ],
77
+ "events": [
78
+ {
79
+ "name": "create-font",
80
+ "type": {
81
+ "text": "CustomEvent"
82
+ }
83
+ }
84
+ ],
85
+ "attributes": [
86
+ {
87
+ "name": "provider",
88
+ "type": {
89
+ "text": "string"
90
+ },
91
+ "default": "'google'",
92
+ "fieldName": "provider"
93
+ },
94
+ {
95
+ "name": "googleFonts",
96
+ "type": {
97
+ "text": "Array<string>"
98
+ },
99
+ "default": "[]",
100
+ "fieldName": "googleFonts"
101
+ },
102
+ {
103
+ "name": "files",
104
+ "type": {
105
+ "text": "Array<any> | undefined"
106
+ },
107
+ "fieldName": "files"
108
+ }
109
+ ],
110
+ "mixins": [
111
+ {
112
+ "name": "localize(i18next)",
113
+ "module": "src/font-creation-card.ts"
114
+ }
115
+ ],
116
+ "superclass": {
117
+ "name": "LitElement",
118
+ "package": "lit"
119
+ },
120
+ "tagName": "font-creation-card",
121
+ "customElement": true
122
+ }
123
+ ],
124
+ "exports": [
125
+ {
126
+ "kind": "js",
127
+ "name": "FontCreationCard",
128
+ "declaration": {
129
+ "name": "FontCreationCard",
130
+ "module": "src/font-creation-card.ts"
131
+ }
132
+ },
133
+ {
134
+ "kind": "custom-element-definition",
135
+ "name": "font-creation-card",
136
+ "declaration": {
137
+ "name": "FontCreationCard",
138
+ "module": "src/font-creation-card.ts"
139
+ }
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "kind": "javascript-module",
145
+ "path": "src/font-selector.ts",
146
+ "declarations": [
147
+ {
148
+ "kind": "class",
149
+ "description": "",
150
+ "name": "FontSelector",
151
+ "members": [
152
+ {
153
+ "kind": "field",
154
+ "name": "fonts",
155
+ "type": {
156
+ "text": "Array<any>"
157
+ },
158
+ "default": "[]",
159
+ "attribute": "fonts"
160
+ },
161
+ {
162
+ "kind": "field",
163
+ "name": "creatable",
164
+ "type": {
165
+ "text": "boolean"
166
+ },
167
+ "default": "false",
168
+ "attribute": "creatable"
169
+ },
170
+ {
171
+ "kind": "field",
172
+ "name": "provider",
173
+ "type": {
174
+ "text": "string"
175
+ },
176
+ "default": "''",
177
+ "attribute": "provider"
178
+ },
179
+ {
180
+ "kind": "field",
181
+ "name": "main",
182
+ "type": {
183
+ "text": "HTMLElement"
184
+ }
185
+ },
186
+ {
187
+ "kind": "field",
188
+ "name": "filter",
189
+ "type": {
190
+ "text": "HTMLElement"
191
+ }
192
+ },
193
+ {
194
+ "kind": "field",
195
+ "name": "creationCard",
196
+ "type": {
197
+ "text": "{ reset: () => {} }"
198
+ }
199
+ },
200
+ {
201
+ "kind": "field",
202
+ "name": "showGotoTop",
203
+ "type": {
204
+ "text": "boolean"
205
+ },
206
+ "default": "false"
207
+ },
208
+ {
209
+ "kind": "method",
210
+ "name": "stateChanged",
211
+ "parameters": [
212
+ {
213
+ "name": "state",
214
+ "type": {
215
+ "text": "any"
216
+ }
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "kind": "method",
222
+ "name": "refresh"
223
+ },
224
+ {
225
+ "kind": "method",
226
+ "name": "toggleActive",
227
+ "parameters": [
228
+ {
229
+ "name": "font",
230
+ "type": {
231
+ "text": "{ id: string; active: boolean }"
232
+ }
233
+ }
234
+ ]
235
+ },
236
+ {
237
+ "kind": "method",
238
+ "name": "onCreateFont",
239
+ "parameters": [
240
+ {
241
+ "name": "e",
242
+ "type": {
243
+ "text": "CustomEvent"
244
+ }
245
+ }
246
+ ]
247
+ },
248
+ {
249
+ "kind": "method",
250
+ "name": "deleteFont",
251
+ "parameters": [
252
+ {
253
+ "name": "font",
254
+ "type": {
255
+ "text": "{ id: string }"
256
+ }
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "kind": "method",
262
+ "name": "onClickSelect",
263
+ "parameters": [
264
+ {
265
+ "name": "font",
266
+ "type": {
267
+ "text": "any"
268
+ }
269
+ }
270
+ ]
271
+ }
272
+ ],
273
+ "events": [
274
+ {
275
+ "name": "font-selected",
276
+ "type": {
277
+ "text": "CustomEvent"
278
+ }
279
+ }
280
+ ],
281
+ "attributes": [
282
+ {
283
+ "name": "fonts",
284
+ "type": {
285
+ "text": "Array<any>"
286
+ },
287
+ "default": "[]",
288
+ "fieldName": "fonts"
289
+ },
290
+ {
291
+ "name": "creatable",
292
+ "type": {
293
+ "text": "boolean"
294
+ },
295
+ "default": "false",
296
+ "fieldName": "creatable"
297
+ },
298
+ {
299
+ "name": "provider",
300
+ "type": {
301
+ "text": "string"
302
+ },
303
+ "default": "''",
304
+ "fieldName": "provider"
305
+ }
306
+ ],
307
+ "mixins": [
308
+ {
309
+ "name": "localize(i18next)",
310
+ "module": "src/font-selector.ts"
311
+ },
312
+ {
313
+ "name": "connect(store)",
314
+ "module": "src/font-selector.ts"
315
+ }
316
+ ],
317
+ "superclass": {
318
+ "name": "LitElement",
319
+ "package": "lit"
320
+ },
321
+ "tagName": "font-selector",
322
+ "customElement": true
323
+ }
324
+ ],
325
+ "exports": [
326
+ {
327
+ "kind": "js",
328
+ "name": "FontSelector",
329
+ "declaration": {
330
+ "name": "FontSelector",
331
+ "module": "src/font-selector.ts"
332
+ }
333
+ },
334
+ {
335
+ "kind": "custom-element-definition",
336
+ "name": "font-selector",
337
+ "declaration": {
338
+ "name": "FontSelector",
339
+ "module": "src/font-selector.ts"
340
+ }
341
+ }
342
+ ]
343
+ },
344
+ {
345
+ "kind": "javascript-module",
346
+ "path": "src/graphql-client.ts",
347
+ "declarations": [
348
+ {
349
+ "kind": "function",
350
+ "name": "fetchFontList",
351
+ "parameters": [
352
+ {
353
+ "name": "listParam",
354
+ "optional": true,
355
+ "type": {
356
+ "text": "Object"
357
+ },
358
+ "description": "{filters, pagination, sortings}"
359
+ }
360
+ ]
361
+ },
362
+ {
363
+ "kind": "function",
364
+ "name": "createFont",
365
+ "parameters": [
366
+ {
367
+ "name": "font",
368
+ "type": {
369
+ "text": "Object"
370
+ },
371
+ "description": "Font patch"
372
+ }
373
+ ]
374
+ },
375
+ {
376
+ "kind": "function",
377
+ "name": "updateFont",
378
+ "parameters": [
379
+ {
380
+ "name": "font",
381
+ "type": {
382
+ "text": "Object"
383
+ },
384
+ "description": "Font patch"
385
+ }
386
+ ]
387
+ },
388
+ {
389
+ "kind": "function",
390
+ "name": "deleteFont",
391
+ "parameters": [
392
+ {
393
+ "name": "id",
394
+ "type": {
395
+ "text": "String"
396
+ },
397
+ "description": "Font id"
398
+ }
399
+ ]
400
+ }
401
+ ],
402
+ "exports": [
403
+ {
404
+ "kind": "js",
405
+ "name": "fetchFontList",
406
+ "declaration": {
407
+ "name": "fetchFontList",
408
+ "module": "src/graphql-client.ts"
409
+ }
410
+ },
411
+ {
412
+ "kind": "js",
413
+ "name": "createFont",
414
+ "declaration": {
415
+ "name": "createFont",
416
+ "module": "src/graphql-client.ts"
417
+ }
418
+ },
419
+ {
420
+ "kind": "js",
421
+ "name": "updateFont",
422
+ "declaration": {
423
+ "name": "updateFont",
424
+ "module": "src/graphql-client.ts"
425
+ }
426
+ },
427
+ {
428
+ "kind": "js",
429
+ "name": "deleteFont",
430
+ "declaration": {
431
+ "name": "deleteFont",
432
+ "module": "src/graphql-client.ts"
433
+ }
434
+ }
435
+ ]
436
+ },
437
+ {
438
+ "kind": "javascript-module",
439
+ "path": "src/index.ts",
440
+ "declarations": [],
441
+ "exports": [
442
+ {
443
+ "kind": "js",
444
+ "name": "*",
445
+ "declaration": {
446
+ "name": "*",
447
+ "package": "./font-selector.js"
448
+ }
449
+ },
450
+ {
451
+ "kind": "js",
452
+ "name": "*",
453
+ "declaration": {
454
+ "name": "*",
455
+ "package": "./ox-font-selector.js"
456
+ }
457
+ },
458
+ {
459
+ "kind": "js",
460
+ "name": "*",
461
+ "declaration": {
462
+ "name": "*",
463
+ "package": "./ox-property-editor-font-selector.js"
464
+ }
465
+ },
466
+ {
467
+ "kind": "js",
468
+ "name": "*",
469
+ "declaration": {
470
+ "name": "*",
471
+ "package": "./redux-font-actions.js"
472
+ }
473
+ },
474
+ {
475
+ "kind": "js",
476
+ "name": "ReducerFont",
477
+ "declaration": {
478
+ "name": "default",
479
+ "module": "./redux-font-reducers.js"
480
+ }
481
+ }
482
+ ]
483
+ },
484
+ {
485
+ "kind": "javascript-module",
486
+ "path": "src/ox-file-selector.ts",
487
+ "declarations": [
488
+ {
489
+ "kind": "class",
490
+ "description": "",
491
+ "name": "OxFileSelector",
492
+ "members": [
493
+ {
494
+ "kind": "field",
495
+ "name": "label",
496
+ "type": {
497
+ "text": "string"
498
+ },
499
+ "default": "'select file'",
500
+ "attribute": "label"
501
+ },
502
+ {
503
+ "kind": "field",
504
+ "name": "accept",
505
+ "type": {
506
+ "text": "string | undefined"
507
+ },
508
+ "attribute": "accept"
509
+ },
510
+ {
511
+ "kind": "field",
512
+ "name": "showFilename",
513
+ "type": {
514
+ "text": "boolean"
515
+ },
516
+ "default": "false",
517
+ "attribute": "show-filename"
518
+ },
519
+ {
520
+ "kind": "field",
521
+ "name": "multiple",
522
+ "type": {
523
+ "text": "boolean"
524
+ },
525
+ "default": "false",
526
+ "attribute": "multiple"
527
+ },
528
+ {
529
+ "kind": "field",
530
+ "name": "_files",
531
+ "type": {
532
+ "text": "Array<any>"
533
+ },
534
+ "default": "[]",
535
+ "attribute": "_files"
536
+ }
537
+ ],
538
+ "events": [
539
+ {
540
+ "name": "file-change",
541
+ "type": {
542
+ "text": "CustomEvent"
543
+ }
544
+ }
545
+ ],
546
+ "attributes": [
547
+ {
548
+ "name": "label",
549
+ "type": {
550
+ "text": "string"
551
+ },
552
+ "default": "'select file'",
553
+ "fieldName": "label"
554
+ },
555
+ {
556
+ "name": "accept",
557
+ "type": {
558
+ "text": "string | undefined"
559
+ },
560
+ "fieldName": "accept"
561
+ },
562
+ {
563
+ "name": "show-filename",
564
+ "type": {
565
+ "text": "boolean"
566
+ },
567
+ "default": "false",
568
+ "fieldName": "showFilename"
569
+ },
570
+ {
571
+ "name": "multiple",
572
+ "type": {
573
+ "text": "boolean"
574
+ },
575
+ "default": "false",
576
+ "fieldName": "multiple"
577
+ },
578
+ {
579
+ "name": "_files",
580
+ "type": {
581
+ "text": "Array<any>"
582
+ },
583
+ "default": "[]",
584
+ "fieldName": "_files"
585
+ }
586
+ ],
587
+ "superclass": {
588
+ "name": "LitElement",
589
+ "package": "lit"
590
+ },
591
+ "tagName": "ox-file-selector",
592
+ "customElement": true
593
+ }
594
+ ],
595
+ "exports": [
596
+ {
597
+ "kind": "js",
598
+ "name": "OxFileSelector",
599
+ "declaration": {
600
+ "name": "OxFileSelector",
601
+ "module": "src/ox-file-selector.ts"
602
+ }
603
+ },
604
+ {
605
+ "kind": "custom-element-definition",
606
+ "name": "ox-file-selector",
607
+ "declaration": {
608
+ "name": "OxFileSelector",
609
+ "module": "src/ox-file-selector.ts"
610
+ }
611
+ }
612
+ ]
613
+ },
614
+ {
615
+ "kind": "javascript-module",
616
+ "path": "src/ox-font-selector.ts",
617
+ "declarations": [
618
+ {
619
+ "kind": "class",
620
+ "description": "",
621
+ "name": "OxFontSelector",
622
+ "members": [
623
+ {
624
+ "kind": "field",
625
+ "name": "value",
626
+ "type": {
627
+ "text": "string | undefined"
628
+ },
629
+ "attribute": "value"
630
+ },
631
+ {
632
+ "kind": "field",
633
+ "name": "popup",
634
+ "type": {
635
+ "text": "any"
636
+ }
637
+ },
638
+ {
639
+ "kind": "method",
640
+ "name": "_onInputChanged",
641
+ "parameters": [
642
+ {
643
+ "name": "e",
644
+ "type": {
645
+ "text": "Event"
646
+ }
647
+ }
648
+ ]
649
+ },
650
+ {
651
+ "kind": "method",
652
+ "name": "openSelector"
653
+ }
654
+ ],
655
+ "events": [
656
+ {
657
+ "name": "change",
658
+ "type": {
659
+ "text": "CustomEvent"
660
+ }
661
+ }
662
+ ],
663
+ "attributes": [
664
+ {
665
+ "name": "value",
666
+ "type": {
667
+ "text": "string | undefined"
668
+ },
669
+ "fieldName": "value"
670
+ },
671
+ {
672
+ "name": "properties",
673
+ "type": {
674
+ "text": "any"
675
+ },
676
+ "fieldName": "properties"
677
+ }
678
+ ],
679
+ "superclass": {
680
+ "name": "LitElement",
681
+ "package": "lit"
682
+ },
683
+ "tagName": "ox-font-selector",
684
+ "customElement": true
685
+ }
686
+ ],
687
+ "exports": [
688
+ {
689
+ "kind": "js",
690
+ "name": "default",
691
+ "declaration": {
692
+ "name": "OxFontSelector",
693
+ "module": "src/ox-font-selector.ts"
694
+ }
695
+ },
696
+ {
697
+ "kind": "custom-element-definition",
698
+ "name": "ox-font-selector",
699
+ "declaration": {
700
+ "name": "OxFontSelector",
701
+ "module": "src/ox-font-selector.ts"
702
+ }
703
+ }
704
+ ]
705
+ },
706
+ {
707
+ "kind": "javascript-module",
708
+ "path": "src/ox-property-editor-font-selector.ts",
709
+ "declarations": [
710
+ {
711
+ "kind": "class",
712
+ "description": "",
713
+ "name": "OxPropertyEditorFontSelector",
714
+ "members": [
715
+ {
716
+ "kind": "method",
717
+ "name": "editorTemplate"
718
+ }
719
+ ],
720
+ "superclass": {
721
+ "name": "OxPropertyEditor",
722
+ "package": "@operato/property-editor"
723
+ },
724
+ "tagName": "ox-property-editor-font-selector",
725
+ "customElement": true
726
+ }
727
+ ],
728
+ "exports": [
729
+ {
730
+ "kind": "js",
731
+ "name": "OxPropertyEditorFontSelector",
732
+ "declaration": {
733
+ "name": "OxPropertyEditorFontSelector",
734
+ "module": "src/ox-property-editor-font-selector.ts"
735
+ }
736
+ },
737
+ {
738
+ "kind": "custom-element-definition",
739
+ "name": "ox-property-editor-font-selector",
740
+ "declaration": {
741
+ "name": "OxPropertyEditorFontSelector",
742
+ "module": "src/ox-property-editor-font-selector.ts"
743
+ }
744
+ }
745
+ ]
746
+ },
747
+ {
748
+ "kind": "javascript-module",
749
+ "path": "src/redux-font-actions.ts",
750
+ "declarations": [
751
+ {
752
+ "kind": "variable",
753
+ "name": "UPDATE_FONT_LIST",
754
+ "type": {
755
+ "text": "string"
756
+ },
757
+ "default": "'UPDATE_FONT_LIST'"
758
+ },
759
+ {
760
+ "kind": "variable",
761
+ "name": "CLEAR_FONT_LIST",
762
+ "type": {
763
+ "text": "string"
764
+ },
765
+ "default": "'CLEAR_FONT_LIST'"
766
+ },
767
+ {
768
+ "kind": "function",
769
+ "name": "actionUpdateFontList",
770
+ "parameters": [
771
+ {
772
+ "name": "listParams",
773
+ "optional": true,
774
+ "type": {
775
+ "text": "{ sortings?: any; filters?: any; pagination?: any }"
776
+ }
777
+ }
778
+ ]
779
+ }
780
+ ],
781
+ "exports": [
782
+ {
783
+ "kind": "js",
784
+ "name": "UPDATE_FONT_LIST",
785
+ "declaration": {
786
+ "name": "UPDATE_FONT_LIST",
787
+ "module": "src/redux-font-actions.ts"
788
+ }
789
+ },
790
+ {
791
+ "kind": "js",
792
+ "name": "CLEAR_FONT_LIST",
793
+ "declaration": {
794
+ "name": "CLEAR_FONT_LIST",
795
+ "module": "src/redux-font-actions.ts"
796
+ }
797
+ },
798
+ {
799
+ "kind": "js",
800
+ "name": "actionUpdateFontList",
801
+ "declaration": {
802
+ "name": "actionUpdateFontList",
803
+ "module": "src/redux-font-actions.ts"
804
+ }
805
+ }
806
+ ]
807
+ },
808
+ {
809
+ "kind": "javascript-module",
810
+ "path": "src/redux-font-reducers.ts",
811
+ "declarations": [
812
+ {
813
+ "kind": "function",
814
+ "name": "ReducerFont",
815
+ "parameters": [
816
+ {
817
+ "name": "state",
818
+ "default": "[]"
819
+ },
820
+ {
821
+ "name": "action",
822
+ "type": {
823
+ "text": "any"
824
+ }
825
+ }
826
+ ]
827
+ }
828
+ ],
829
+ "exports": [
830
+ {
831
+ "kind": "js",
832
+ "name": "default",
833
+ "declaration": {
834
+ "name": "ReducerFont",
835
+ "module": "src/redux-font-reducers.ts"
836
+ }
837
+ }
838
+ ]
839
+ }
840
+ ]
841
+ }