mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-13 23:39:08 -05:00
Update 22.md
fixing typos
This commit is contained in:
parent
2442642aaf
commit
71d5040cd2
12
22.md
12
22.md
|
@ -1,5 +1,6 @@
|
|||
# NIP-22 Smart Widgets
|
||||
# NIP-22
|
||||
|
||||
## Smart Widgets
|
||||
Smart Widgets are customizable, interactive components that can be embedded within Nostr events and allow to create rich, dynamic content. This proposal outlines the structure, implementation, and potential use cases of Smart Widgets.
|
||||
|
||||
## Motivation
|
||||
|
@ -9,20 +10,19 @@ Traditional static content limits user interaction and engagement. Smart Widgets
|
|||
A new addressable event kind is proposed for Smart Widgets kind 30031. This event kind will encapsulate the data necessary to render and interact with the Smart Widgets.
|
||||
|
||||
## Event Structure
|
||||
The content of these events `MUST` be of a specified `mime-type` in a corresponding `m` tag. It is required and can't be empty.
|
||||
For more info [see](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)
|
||||
The content of these events `MUST` be of a specified `MIME types` in a corresponding `m` tag. It is required and can't be empty. For more info about `MIME types` [see](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)
|
||||
|
||||
The list of tags are as follows:
|
||||
|
||||
`d` (required) universally unique identifier (UUID). Generated by the client creating the smart widget event.
|
||||
|
||||
`m` (required) allows clients to easily know file type before downloading it
|
||||
`m` (required) allows clients to easily know `MIME types` before proceeding it.
|
||||
|
||||
`title` (optional) title of the smart widget.
|
||||
|
||||
`summary` (optional) description of the smart widget and its usage.
|
||||
|
||||
`client` (optional) reference for the used client for creating the smart widget according to [NIP-89](../blob/master/89.md).
|
||||
`client` (optional) reference for the used client for creating the smart widget according to [NIP-89](../master/89.md).
|
||||
|
||||
`published_at` (optional) Publishing time of the smart widget differs from the created_at for edited smart widgets.
|
||||
|
||||
|
@ -35,7 +35,7 @@ The list of tags are as follows:
|
|||
"content": <JSON-stringified-data>,
|
||||
"tags": [
|
||||
["d", "UUID"],
|
||||
["m", <mime-type>],
|
||||
["m", <MIME-type>],
|
||||
["title", "<title of smart widget event>"],
|
||||
["summary", "<description of smart widget event>"],
|
||||
["client", "<client_name>", "31990:app1_pubkey:<d_identifier>"],
|
||||
|
|
Loading…
Reference in New Issue
Block a user