@esportsplus/ui 0.35.3 → 0.35.5
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.
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import response, { Response } from '@esportsplus/action';
|
|
2
2
|
import { Attributes } from '@esportsplus/template';
|
|
3
|
-
type A =
|
|
4
|
-
action:
|
|
3
|
+
type A = {
|
|
4
|
+
action: (<I>(input: I, r: typeof response) => Promise<Errors> | Errors);
|
|
5
5
|
state?: {
|
|
6
6
|
processing: boolean;
|
|
7
7
|
};
|
|
8
|
-
};
|
|
9
|
-
type Action = <T extends Record<string, any>>(input: T, r: typeof response) => Promise<Errors> | Errors;
|
|
8
|
+
} & Attributes;
|
|
10
9
|
type Errors = {
|
|
11
10
|
errors: Response<unknown>['errors'];
|
|
12
11
|
};
|
|
@@ -2,6 +2,15 @@ declare const _default: {
|
|
|
2
2
|
action: {
|
|
3
3
|
(): ReturnType<(this: {
|
|
4
4
|
attributes?: ({
|
|
5
|
+
action: (<I>(input: I, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
6
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
7
|
+
}> | {
|
|
8
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
9
|
+
});
|
|
10
|
+
state?: {
|
|
11
|
+
processing: boolean;
|
|
12
|
+
};
|
|
13
|
+
} & {
|
|
5
14
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
6
15
|
[key: `data-${string}`]: string | undefined;
|
|
7
16
|
class?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
|
|
@@ -114,18 +123,18 @@ declare const _default: {
|
|
|
114
123
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
115
124
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
116
125
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
117
|
-
} & Record<PropertyKey, unknown>
|
|
118
|
-
action: <T extends Record<string, any>>(input: T, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
119
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
120
|
-
}> | {
|
|
121
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
122
|
-
};
|
|
123
|
-
state?: {
|
|
124
|
-
processing: boolean;
|
|
125
|
-
};
|
|
126
|
-
}) | undefined;
|
|
126
|
+
} & Record<PropertyKey, unknown>) | undefined;
|
|
127
127
|
content?: import("@esportsplus/template").Renderable<any>;
|
|
128
128
|
}, attributes: Readonly<{
|
|
129
|
+
action: (<I>(input: I, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
130
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
131
|
+
}> | {
|
|
132
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
133
|
+
});
|
|
134
|
+
state?: {
|
|
135
|
+
processing: boolean;
|
|
136
|
+
};
|
|
137
|
+
} & {
|
|
129
138
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
130
139
|
[key: `data-${string}`]: string | undefined;
|
|
131
140
|
class?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
|
|
@@ -238,17 +247,17 @@ declare const _default: {
|
|
|
238
247
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
239
248
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
240
249
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
241
|
-
} & Record<PropertyKey, unknown>
|
|
242
|
-
|
|
250
|
+
} & Record<PropertyKey, unknown>>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
251
|
+
<T extends {
|
|
252
|
+
action: (<I>(input: I, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
243
253
|
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
244
254
|
}> | {
|
|
245
255
|
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
246
|
-
};
|
|
256
|
+
});
|
|
247
257
|
state?: {
|
|
248
258
|
processing: boolean;
|
|
249
259
|
};
|
|
250
|
-
}
|
|
251
|
-
<T extends {
|
|
260
|
+
} & {
|
|
252
261
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
253
262
|
[key: `data-${string}`]: string | undefined;
|
|
254
263
|
class?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
|
|
@@ -361,17 +370,17 @@ declare const _default: {
|
|
|
361
370
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
362
371
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
363
372
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
364
|
-
} & Record<PropertyKey, unknown
|
|
365
|
-
action: <T_1 extends Record<string, any>>(input: T_1, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
366
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
367
|
-
}> | {
|
|
368
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
369
|
-
};
|
|
370
|
-
state?: {
|
|
371
|
-
processing: boolean;
|
|
372
|
-
};
|
|
373
|
-
}>(attributes: T): ReturnType<(this: {
|
|
373
|
+
} & Record<PropertyKey, unknown>>(attributes: T): ReturnType<(this: {
|
|
374
374
|
attributes?: ({
|
|
375
|
+
action: (<I>(input: I, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
376
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
377
|
+
}> | {
|
|
378
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
379
|
+
});
|
|
380
|
+
state?: {
|
|
381
|
+
processing: boolean;
|
|
382
|
+
};
|
|
383
|
+
} & {
|
|
375
384
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
376
385
|
[key: `data-${string}`]: string | undefined;
|
|
377
386
|
class?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
|
|
@@ -484,18 +493,18 @@ declare const _default: {
|
|
|
484
493
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
485
494
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
486
495
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
487
|
-
} & Record<PropertyKey, unknown>
|
|
488
|
-
action: <T_1 extends Record<string, any>>(input: T_1, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
489
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
490
|
-
}> | {
|
|
491
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
492
|
-
};
|
|
493
|
-
state?: {
|
|
494
|
-
processing: boolean;
|
|
495
|
-
};
|
|
496
|
-
}) | undefined;
|
|
496
|
+
} & Record<PropertyKey, unknown>) | undefined;
|
|
497
497
|
content?: import("@esportsplus/template").Renderable<any>;
|
|
498
498
|
}, attributes: Readonly<{
|
|
499
|
+
action: (<I>(input: I, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
500
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
501
|
+
}> | {
|
|
502
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
503
|
+
});
|
|
504
|
+
state?: {
|
|
505
|
+
processing: boolean;
|
|
506
|
+
};
|
|
507
|
+
} & {
|
|
499
508
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
500
509
|
[key: `data-${string}`]: string | undefined;
|
|
501
510
|
class?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
|
|
@@ -608,18 +617,18 @@ declare const _default: {
|
|
|
608
617
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
609
618
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
610
619
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
611
|
-
} & Record<PropertyKey, unknown>
|
|
612
|
-
action: <T_1 extends Record<string, any>>(input: T_1, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
613
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
614
|
-
}> | {
|
|
615
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
616
|
-
};
|
|
617
|
-
state?: {
|
|
618
|
-
processing: boolean;
|
|
619
|
-
};
|
|
620
|
-
}>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
620
|
+
} & Record<PropertyKey, unknown>>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
621
621
|
<T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
|
|
622
622
|
attributes?: ({
|
|
623
|
+
action: (<I>(input: I, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
624
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
625
|
+
}> | {
|
|
626
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
627
|
+
});
|
|
628
|
+
state?: {
|
|
629
|
+
processing: boolean;
|
|
630
|
+
};
|
|
631
|
+
} & {
|
|
623
632
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
624
633
|
[key: `data-${string}`]: string | undefined;
|
|
625
634
|
class?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
|
|
@@ -732,18 +741,18 @@ declare const _default: {
|
|
|
732
741
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
733
742
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
734
743
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
735
|
-
} & Record<PropertyKey, unknown>
|
|
736
|
-
action: <T_1 extends Record<string, any>>(input: T_1, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
737
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
738
|
-
}> | {
|
|
739
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
740
|
-
};
|
|
741
|
-
state?: {
|
|
742
|
-
processing: boolean;
|
|
743
|
-
};
|
|
744
|
-
}) | undefined;
|
|
744
|
+
} & Record<PropertyKey, unknown>) | undefined;
|
|
745
745
|
content?: import("@esportsplus/template").Renderable<any>;
|
|
746
746
|
}, attributes: Readonly<{
|
|
747
|
+
action: (<I>(input: I, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
748
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
749
|
+
}> | {
|
|
750
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
751
|
+
});
|
|
752
|
+
state?: {
|
|
753
|
+
processing: boolean;
|
|
754
|
+
};
|
|
755
|
+
} & {
|
|
747
756
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
748
757
|
[key: `data-${string}`]: string | undefined;
|
|
749
758
|
class?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
|
|
@@ -856,17 +865,17 @@ declare const _default: {
|
|
|
856
865
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
857
866
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
858
867
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
859
|
-
} & Record<PropertyKey, unknown>
|
|
860
|
-
|
|
868
|
+
} & Record<PropertyKey, unknown>>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
869
|
+
(attributes: {
|
|
870
|
+
action: (<I>(input: I, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
861
871
|
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
862
872
|
}> | {
|
|
863
873
|
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
864
|
-
};
|
|
874
|
+
});
|
|
865
875
|
state?: {
|
|
866
876
|
processing: boolean;
|
|
867
877
|
};
|
|
868
|
-
}
|
|
869
|
-
(attributes: {
|
|
878
|
+
} & {
|
|
870
879
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
871
880
|
[key: `data-${string}`]: string | undefined;
|
|
872
881
|
class?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
|
|
@@ -979,17 +988,17 @@ declare const _default: {
|
|
|
979
988
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
980
989
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
981
990
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
982
|
-
} & Record<PropertyKey, unknown>
|
|
983
|
-
action: <T extends Record<string, any>>(input: T, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
984
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
985
|
-
}> | {
|
|
986
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
987
|
-
};
|
|
988
|
-
state?: {
|
|
989
|
-
processing: boolean;
|
|
990
|
-
};
|
|
991
|
-
}, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
|
|
991
|
+
} & Record<PropertyKey, unknown>, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
|
|
992
992
|
attributes?: ({
|
|
993
|
+
action: (<I>(input: I, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
994
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
995
|
+
}> | {
|
|
996
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
997
|
+
});
|
|
998
|
+
state?: {
|
|
999
|
+
processing: boolean;
|
|
1000
|
+
};
|
|
1001
|
+
} & {
|
|
993
1002
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
994
1003
|
[key: `data-${string}`]: string | undefined;
|
|
995
1004
|
class?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
|
|
@@ -1102,18 +1111,18 @@ declare const _default: {
|
|
|
1102
1111
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1103
1112
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1104
1113
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
1105
|
-
} & Record<PropertyKey, unknown>
|
|
1106
|
-
action: <T extends Record<string, any>>(input: T, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
1107
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
1108
|
-
}> | {
|
|
1109
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
1110
|
-
};
|
|
1111
|
-
state?: {
|
|
1112
|
-
processing: boolean;
|
|
1113
|
-
};
|
|
1114
|
-
}) | undefined;
|
|
1114
|
+
} & Record<PropertyKey, unknown>) | undefined;
|
|
1115
1115
|
content?: import("@esportsplus/template").Renderable<any>;
|
|
1116
1116
|
}, attributes: Readonly<{
|
|
1117
|
+
action: (<I>(input: I, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
1118
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
1119
|
+
}> | {
|
|
1120
|
+
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
1121
|
+
});
|
|
1122
|
+
state?: {
|
|
1123
|
+
processing: boolean;
|
|
1124
|
+
};
|
|
1125
|
+
} & {
|
|
1117
1126
|
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1118
1127
|
[key: `data-${string}`]: string | undefined;
|
|
1119
1128
|
class?: import("@esportsplus/template/build/types").Attribute | import("@esportsplus/template/build/types").Attribute[];
|
|
@@ -1226,16 +1235,7 @@ declare const _default: {
|
|
|
1226
1235
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1227
1236
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1228
1237
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
1229
|
-
} & Record<PropertyKey, unknown>
|
|
1230
|
-
action: <T extends Record<string, any>>(input: T, r: typeof import("@esportsplus/action").default) => Promise<{
|
|
1231
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
1232
|
-
}> | {
|
|
1233
|
-
errors: import("@esportsplus/action").Response<unknown>["errors"];
|
|
1234
|
-
};
|
|
1235
|
-
state?: {
|
|
1236
|
-
processing: boolean;
|
|
1237
|
-
};
|
|
1238
|
-
}>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
1238
|
+
} & Record<PropertyKey, unknown>>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
1239
1239
|
};
|
|
1240
1240
|
input: {
|
|
1241
1241
|
get: (element?: import("@esportsplus/template").Element) => {
|
package/package.json
CHANGED
|
@@ -5,9 +5,10 @@ import template from '~/components/template';
|
|
|
5
5
|
import input from './input';
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
type A =
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
type A = {
|
|
9
|
+
action: (<I>(input: I, r: typeof response) => Promise<Errors> | Errors),
|
|
10
|
+
state?: { processing: boolean }
|
|
11
|
+
} & Attributes;
|
|
11
12
|
|
|
12
13
|
type Errors = { errors: Response<unknown>['errors'] };
|
|
13
14
|
|