Update 22.md

fixing typos
This commit is contained in:
Po 2024-09-01 16:23:55 +03:00 committed by GitHub
parent 2442642aaf
commit 71d5040cd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

12
22.md
View File

@ -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. 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 ## 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. 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 ## 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. 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)
For more info [see](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)
The list of tags are as follows: The list of tags are as follows:
`d` (required) universally unique identifier (UUID). Generated by the client creating the smart widget event. `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. `title` (optional) title of the smart widget.
`summary` (optional) description of the smart widget and its usage. `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. `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>, "content": <JSON-stringified-data>,
"tags": [ "tags": [
["d", "UUID"], ["d", "UUID"],
["m", <mime-type>], ["m", <MIME-type>],
["title", "<title of smart widget event>"], ["title", "<title of smart widget event>"],
["summary", "<description of smart widget event>"], ["summary", "<description of smart widget event>"],
["client", "<client_name>", "31990:app1_pubkey:<d_identifier>"], ["client", "<client_name>", "31990:app1_pubkey:<d_identifier>"],