From 71d5040cd2b87e97acf91d809b8faf39c2714f9a Mon Sep 17 00:00:00 2001 From: Po <25153080+vir2alexport@users.noreply.github.com> Date: Sun, 1 Sep 2024 16:23:55 +0300 Subject: [PATCH] Update 22.md fixing typos --- 22.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/22.md b/22.md index 798f5821..8cc8f47d 100644 --- a/22.md +++ b/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": , "tags": [ ["d", "UUID"], - ["m", ], + ["m", ], ["title", ""], ["summary", "<description of smart widget event>"], ["client", "<client_name>", "31990:app1_pubkey:<d_identifier>"],