@penwin/discord-components-core 4.7.2 → 4.7.3
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/custom-elements.json +144 -116
- package/dist/bundle/index.mjs +382 -358
- package/dist/bundle/index.mjs.map +1 -1
- package/dist/components/discord-forwarded-message/DiscordForwardedMessage.js +2 -2
- package/dist/components/discord-forwarded-message/DiscordForwardedMessage.js.map +1 -1
- package/dist/components/discord-header/DiscordHeader.d.ts.map +1 -1
- package/dist/components/discord-header/DiscordHeader.js +4 -3
- package/dist/components/discord-header/DiscordHeader.js.map +1 -1
- package/dist/components/discord-message/DiscordMessage.d.ts +4 -0
- package/dist/components/discord-message/DiscordMessage.d.ts.map +1 -1
- package/dist/components/discord-message/DiscordMessage.js +31 -1
- package/dist/components/discord-message/DiscordMessage.js.map +1 -1
- package/dist/components/discord-section/DiscordSection.d.ts.map +1 -1
- package/dist/components/discord-section/DiscordSection.js +2 -0
- package/dist/components/discord-section/DiscordSection.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/util.d.ts +9 -1
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +24 -10
- package/dist/util.js.map +1 -1
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -1033,13 +1033,21 @@
|
|
|
1033
1033
|
"name": "date",
|
|
1034
1034
|
"type": {
|
|
1035
1035
|
"text": "Date | string"
|
|
1036
|
-
}
|
|
1036
|
+
},
|
|
1037
|
+
"description": "The date"
|
|
1037
1038
|
},
|
|
1038
1039
|
{
|
|
1039
1040
|
"name": "allowWeekday",
|
|
1040
|
-
"default": "false"
|
|
1041
|
+
"default": "false",
|
|
1042
|
+
"description": "Show the weekday for a date earlier this week"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"name": "withTime",
|
|
1046
|
+
"default": "false",
|
|
1047
|
+
"description": "Add the time after an older date, as Discord does in a message header"
|
|
1041
1048
|
}
|
|
1042
|
-
]
|
|
1049
|
+
],
|
|
1050
|
+
"description": "Format a message date the way Discord shows it: the time today, \"Yesterday at\" the time, and the\ndate before that."
|
|
1043
1051
|
}
|
|
1044
1052
|
],
|
|
1045
1053
|
"exports": [
|
|
@@ -3397,83 +3405,6 @@
|
|
|
3397
3405
|
}
|
|
3398
3406
|
]
|
|
3399
3407
|
},
|
|
3400
|
-
{
|
|
3401
|
-
"kind": "javascript-module",
|
|
3402
|
-
"path": "src/components/discord-components-column/DiscordComponentsColumn.ts",
|
|
3403
|
-
"declarations": [
|
|
3404
|
-
{
|
|
3405
|
-
"kind": "class",
|
|
3406
|
-
"description": "",
|
|
3407
|
-
"name": "DiscordComponentsColumn",
|
|
3408
|
-
"members": [
|
|
3409
|
-
{
|
|
3410
|
-
"kind": "field",
|
|
3411
|
-
"name": "isInContainer",
|
|
3412
|
-
"type": {
|
|
3413
|
-
"text": "boolean"
|
|
3414
|
-
},
|
|
3415
|
-
"privacy": "public",
|
|
3416
|
-
"default": "false",
|
|
3417
|
-
"attribute": "is-in-container",
|
|
3418
|
-
"reflects": true
|
|
3419
|
-
},
|
|
3420
|
-
{
|
|
3421
|
-
"kind": "field",
|
|
3422
|
-
"name": "isInForwardedMessage",
|
|
3423
|
-
"type": {
|
|
3424
|
-
"text": "boolean"
|
|
3425
|
-
},
|
|
3426
|
-
"privacy": "public",
|
|
3427
|
-
"default": "false",
|
|
3428
|
-
"attribute": "is-in-forwarded-message",
|
|
3429
|
-
"reflects": true
|
|
3430
|
-
}
|
|
3431
|
-
],
|
|
3432
|
-
"attributes": [
|
|
3433
|
-
{
|
|
3434
|
-
"name": "is-in-container",
|
|
3435
|
-
"type": {
|
|
3436
|
-
"text": "boolean"
|
|
3437
|
-
},
|
|
3438
|
-
"default": "false",
|
|
3439
|
-
"fieldName": "isInContainer"
|
|
3440
|
-
},
|
|
3441
|
-
{
|
|
3442
|
-
"name": "is-in-forwarded-message",
|
|
3443
|
-
"type": {
|
|
3444
|
-
"text": "boolean"
|
|
3445
|
-
},
|
|
3446
|
-
"default": "false",
|
|
3447
|
-
"fieldName": "isInForwardedMessage"
|
|
3448
|
-
}
|
|
3449
|
-
],
|
|
3450
|
-
"superclass": {
|
|
3451
|
-
"name": "LitElement",
|
|
3452
|
-
"package": "lit"
|
|
3453
|
-
},
|
|
3454
|
-
"tagName": "discord-components-column",
|
|
3455
|
-
"customElement": true
|
|
3456
|
-
}
|
|
3457
|
-
],
|
|
3458
|
-
"exports": [
|
|
3459
|
-
{
|
|
3460
|
-
"kind": "js",
|
|
3461
|
-
"name": "DiscordComponentsColumn",
|
|
3462
|
-
"declaration": {
|
|
3463
|
-
"name": "DiscordComponentsColumn",
|
|
3464
|
-
"module": "src/components/discord-components-column/DiscordComponentsColumn.ts"
|
|
3465
|
-
}
|
|
3466
|
-
},
|
|
3467
|
-
{
|
|
3468
|
-
"kind": "custom-element-definition",
|
|
3469
|
-
"name": "discord-components-column",
|
|
3470
|
-
"declaration": {
|
|
3471
|
-
"name": "DiscordComponentsColumn",
|
|
3472
|
-
"module": "src/components/discord-components-column/DiscordComponentsColumn.ts"
|
|
3473
|
-
}
|
|
3474
|
-
}
|
|
3475
|
-
]
|
|
3476
|
-
},
|
|
3477
3408
|
{
|
|
3478
3409
|
"kind": "javascript-module",
|
|
3479
3410
|
"path": "src/components/discord-command/DiscordCommand.ts",
|
|
@@ -3927,6 +3858,83 @@
|
|
|
3927
3858
|
}
|
|
3928
3859
|
]
|
|
3929
3860
|
},
|
|
3861
|
+
{
|
|
3862
|
+
"kind": "javascript-module",
|
|
3863
|
+
"path": "src/components/discord-components-column/DiscordComponentsColumn.ts",
|
|
3864
|
+
"declarations": [
|
|
3865
|
+
{
|
|
3866
|
+
"kind": "class",
|
|
3867
|
+
"description": "",
|
|
3868
|
+
"name": "DiscordComponentsColumn",
|
|
3869
|
+
"members": [
|
|
3870
|
+
{
|
|
3871
|
+
"kind": "field",
|
|
3872
|
+
"name": "isInContainer",
|
|
3873
|
+
"type": {
|
|
3874
|
+
"text": "boolean"
|
|
3875
|
+
},
|
|
3876
|
+
"privacy": "public",
|
|
3877
|
+
"default": "false",
|
|
3878
|
+
"attribute": "is-in-container",
|
|
3879
|
+
"reflects": true
|
|
3880
|
+
},
|
|
3881
|
+
{
|
|
3882
|
+
"kind": "field",
|
|
3883
|
+
"name": "isInForwardedMessage",
|
|
3884
|
+
"type": {
|
|
3885
|
+
"text": "boolean"
|
|
3886
|
+
},
|
|
3887
|
+
"privacy": "public",
|
|
3888
|
+
"default": "false",
|
|
3889
|
+
"attribute": "is-in-forwarded-message",
|
|
3890
|
+
"reflects": true
|
|
3891
|
+
}
|
|
3892
|
+
],
|
|
3893
|
+
"attributes": [
|
|
3894
|
+
{
|
|
3895
|
+
"name": "is-in-container",
|
|
3896
|
+
"type": {
|
|
3897
|
+
"text": "boolean"
|
|
3898
|
+
},
|
|
3899
|
+
"default": "false",
|
|
3900
|
+
"fieldName": "isInContainer"
|
|
3901
|
+
},
|
|
3902
|
+
{
|
|
3903
|
+
"name": "is-in-forwarded-message",
|
|
3904
|
+
"type": {
|
|
3905
|
+
"text": "boolean"
|
|
3906
|
+
},
|
|
3907
|
+
"default": "false",
|
|
3908
|
+
"fieldName": "isInForwardedMessage"
|
|
3909
|
+
}
|
|
3910
|
+
],
|
|
3911
|
+
"superclass": {
|
|
3912
|
+
"name": "LitElement",
|
|
3913
|
+
"package": "lit"
|
|
3914
|
+
},
|
|
3915
|
+
"tagName": "discord-components-column",
|
|
3916
|
+
"customElement": true
|
|
3917
|
+
}
|
|
3918
|
+
],
|
|
3919
|
+
"exports": [
|
|
3920
|
+
{
|
|
3921
|
+
"kind": "js",
|
|
3922
|
+
"name": "DiscordComponentsColumn",
|
|
3923
|
+
"declaration": {
|
|
3924
|
+
"name": "DiscordComponentsColumn",
|
|
3925
|
+
"module": "src/components/discord-components-column/DiscordComponentsColumn.ts"
|
|
3926
|
+
}
|
|
3927
|
+
},
|
|
3928
|
+
{
|
|
3929
|
+
"kind": "custom-element-definition",
|
|
3930
|
+
"name": "discord-components-column",
|
|
3931
|
+
"declaration": {
|
|
3932
|
+
"name": "DiscordComponentsColumn",
|
|
3933
|
+
"module": "src/components/discord-components-column/DiscordComponentsColumn.ts"
|
|
3934
|
+
}
|
|
3935
|
+
}
|
|
3936
|
+
]
|
|
3937
|
+
},
|
|
3930
3938
|
{
|
|
3931
3939
|
"kind": "javascript-module",
|
|
3932
3940
|
"path": "src/components/discord-container/DiscordContainer.ts",
|
|
@@ -7596,6 +7604,17 @@
|
|
|
7596
7604
|
"description": "The message author's avatar. Can be an avatar shortcut, relative path, or external link.",
|
|
7597
7605
|
"attribute": "avatar"
|
|
7598
7606
|
},
|
|
7607
|
+
{
|
|
7608
|
+
"kind": "field",
|
|
7609
|
+
"name": "avatarDecoration",
|
|
7610
|
+
"type": {
|
|
7611
|
+
"text": "string | undefined"
|
|
7612
|
+
},
|
|
7613
|
+
"privacy": "public",
|
|
7614
|
+
"default": "undefined",
|
|
7615
|
+
"description": "The image drawn around the author's avatar, such as a Discord avatar decoration.",
|
|
7616
|
+
"attribute": "avatar-decoration"
|
|
7617
|
+
},
|
|
7599
7618
|
{
|
|
7600
7619
|
"kind": "field",
|
|
7601
7620
|
"name": "bot",
|
|
@@ -7914,6 +7933,15 @@
|
|
|
7914
7933
|
"description": "The message author's avatar. Can be an avatar shortcut, relative path, or external link.",
|
|
7915
7934
|
"fieldName": "avatar"
|
|
7916
7935
|
},
|
|
7936
|
+
{
|
|
7937
|
+
"name": "avatar-decoration",
|
|
7938
|
+
"type": {
|
|
7939
|
+
"text": "string | undefined"
|
|
7940
|
+
},
|
|
7941
|
+
"default": "undefined",
|
|
7942
|
+
"description": "The image drawn around the author's avatar, such as a Discord avatar decoration.",
|
|
7943
|
+
"fieldName": "avatarDecoration"
|
|
7944
|
+
},
|
|
7917
7945
|
{
|
|
7918
7946
|
"name": "bot",
|
|
7919
7947
|
"type": {
|
|
@@ -9227,6 +9255,42 @@
|
|
|
9227
9255
|
}
|
|
9228
9256
|
]
|
|
9229
9257
|
},
|
|
9258
|
+
{
|
|
9259
|
+
"kind": "javascript-module",
|
|
9260
|
+
"path": "src/components/discord-reactions/DiscordReactions.ts",
|
|
9261
|
+
"declarations": [
|
|
9262
|
+
{
|
|
9263
|
+
"kind": "class",
|
|
9264
|
+
"description": "",
|
|
9265
|
+
"name": "DiscordReactions",
|
|
9266
|
+
"members": [],
|
|
9267
|
+
"superclass": {
|
|
9268
|
+
"name": "LitElement",
|
|
9269
|
+
"package": "lit"
|
|
9270
|
+
},
|
|
9271
|
+
"tagName": "discord-reactions",
|
|
9272
|
+
"customElement": true
|
|
9273
|
+
}
|
|
9274
|
+
],
|
|
9275
|
+
"exports": [
|
|
9276
|
+
{
|
|
9277
|
+
"kind": "js",
|
|
9278
|
+
"name": "DiscordReactions",
|
|
9279
|
+
"declaration": {
|
|
9280
|
+
"name": "DiscordReactions",
|
|
9281
|
+
"module": "src/components/discord-reactions/DiscordReactions.ts"
|
|
9282
|
+
}
|
|
9283
|
+
},
|
|
9284
|
+
{
|
|
9285
|
+
"kind": "custom-element-definition",
|
|
9286
|
+
"name": "discord-reactions",
|
|
9287
|
+
"declaration": {
|
|
9288
|
+
"name": "DiscordReactions",
|
|
9289
|
+
"module": "src/components/discord-reactions/DiscordReactions.ts"
|
|
9290
|
+
}
|
|
9291
|
+
}
|
|
9292
|
+
]
|
|
9293
|
+
},
|
|
9230
9294
|
{
|
|
9231
9295
|
"kind": "javascript-module",
|
|
9232
9296
|
"path": "src/components/discord-reaction/DiscordReaction.ts",
|
|
@@ -9390,42 +9454,6 @@
|
|
|
9390
9454
|
}
|
|
9391
9455
|
]
|
|
9392
9456
|
},
|
|
9393
|
-
{
|
|
9394
|
-
"kind": "javascript-module",
|
|
9395
|
-
"path": "src/components/discord-reactions/DiscordReactions.ts",
|
|
9396
|
-
"declarations": [
|
|
9397
|
-
{
|
|
9398
|
-
"kind": "class",
|
|
9399
|
-
"description": "",
|
|
9400
|
-
"name": "DiscordReactions",
|
|
9401
|
-
"members": [],
|
|
9402
|
-
"superclass": {
|
|
9403
|
-
"name": "LitElement",
|
|
9404
|
-
"package": "lit"
|
|
9405
|
-
},
|
|
9406
|
-
"tagName": "discord-reactions",
|
|
9407
|
-
"customElement": true
|
|
9408
|
-
}
|
|
9409
|
-
],
|
|
9410
|
-
"exports": [
|
|
9411
|
-
{
|
|
9412
|
-
"kind": "js",
|
|
9413
|
-
"name": "DiscordReactions",
|
|
9414
|
-
"declaration": {
|
|
9415
|
-
"name": "DiscordReactions",
|
|
9416
|
-
"module": "src/components/discord-reactions/DiscordReactions.ts"
|
|
9417
|
-
}
|
|
9418
|
-
},
|
|
9419
|
-
{
|
|
9420
|
-
"kind": "custom-element-definition",
|
|
9421
|
-
"name": "discord-reactions",
|
|
9422
|
-
"declaration": {
|
|
9423
|
-
"name": "DiscordReactions",
|
|
9424
|
-
"module": "src/components/discord-reactions/DiscordReactions.ts"
|
|
9425
|
-
}
|
|
9426
|
-
}
|
|
9427
|
-
]
|
|
9428
|
-
},
|
|
9429
9457
|
{
|
|
9430
9458
|
"kind": "javascript-module",
|
|
9431
9459
|
"path": "src/components/discord-reply/DiscordReply.ts",
|