-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from undone-labs/feat-plugins-docs
feat: plugins docs
- Loading branch information
Showing
30 changed files
with
647 additions
and
520 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/docs/content/zero-core/composables/highlight-code.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<a name="zeroHighlightCode"></a> | ||
#### zeroHighlightCode() | ||
|
||
|
||
|
||
## zeroHighlightCode() | ||
**Kind**: global function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<a name="zeroOpenPopup"></a> | ||
#### zeroOpenPopup() | ||
|
||
|
||
|
||
## zeroOpenPopup() | ||
**Kind**: global function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#### exports() | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<a name="zeroUuid"></a> | ||
#### zeroUuid() | ||
|
||
|
||
|
||
## zeroUuid() | ||
**Kind**: global function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
<a name="module_useZeroAlertStore"></a> | ||
|
||
# useZeroAlertStore | ||
The alert store module | ||
|
||
|
||
* [useZeroAlertStore](#module_useZeroAlertStore) | ||
* [~alerts](#module_useZeroAlertStore..alerts) : <code>Object</code> | ||
* [~setAlert()](#module_useZeroAlertStore..setAlert) | ||
* [~getAlert()](#module_useZeroAlertStore..getAlert) | ||
* [~removeAlert()](#module_useZeroAlertStore..removeAlert) | ||
* [~updateAlertData()](#module_useZeroAlertStore..updateAlertData) | ||
* [~openAlert()](#module_useZeroAlertStore..openAlert) | ||
* [~closeAlert()](#module_useZeroAlertStore..closeAlert) | ||
|
||
<a name="module_useZeroAlertStore..alerts"></a> | ||
|
||
## useZeroAlertStore~alerts : <code>Object</code> | ||
An object that contains a nested objects for each [Alert component](/zero-core/modules/alert/components) instance. The top level key referencing each nested alert object is that alert's AlertId. | ||
|
||
**Kind**: inner ref of [<code>useZeroAlertStore</code>](#module_useZeroAlertStore) | ||
<a name="module_useZeroAlertStore..setAlert"></a> | ||
|
||
## useZeroAlertStore~setAlert() | ||
- set alert | ||
|
||
**Kind**: inner method of [<code>useZeroAlertStore</code>](#module_useZeroAlertStore) | ||
<a name="module_useZeroAlertStore..getAlert"></a> | ||
|
||
## useZeroAlertStore~getAlert() | ||
**Kind**: inner method of [<code>useZeroAlertStore</code>](#module_useZeroAlertStore) | ||
<a name="module_useZeroAlertStore..removeAlert"></a> | ||
|
||
## useZeroAlertStore~removeAlert() | ||
**Kind**: inner method of [<code>useZeroAlertStore</code>](#module_useZeroAlertStore) | ||
<a name="module_useZeroAlertStore..updateAlertData"></a> | ||
|
||
## useZeroAlertStore~updateAlertData() | ||
**Kind**: inner method of [<code>useZeroAlertStore</code>](#module_useZeroAlertStore) | ||
<a name="module_useZeroAlertStore..openAlert"></a> | ||
|
||
## useZeroAlertStore~openAlert() | ||
**Kind**: inner method of [<code>useZeroAlertStore</code>](#module_useZeroAlertStore) | ||
<a name="module_useZeroAlertStore..closeAlert"></a> | ||
|
||
## useZeroAlertStore~closeAlert() | ||
**Kind**: inner method of [<code>useZeroAlertStore</code>](#module_useZeroAlertStore) |
35 changes: 0 additions & 35 deletions
35
packages/docs/content/zero-core/modules/accordion/store.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1 @@ | ||
|
||
## Functions | ||
|
||
<dl> | ||
<dt><a href="#setAccordion">setAccordion()</a></dt> | ||
<dd></dd> | ||
<dt><a href="#removeAccordion">removeAccordion()</a></dt> | ||
<dd></dd> | ||
<dt><a href="#setAccordionSection">setAccordionSection()</a></dt> | ||
<dd></dd> | ||
<dt><a href="#toggleAccordionSection">toggleAccordionSection()</a></dt> | ||
<dd></dd> | ||
<dt><a href="#toggleAllSections">toggleAllSections()</a></dt> | ||
<dd></dd> | ||
</dl> | ||
|
||
<a name="setAccordion"></a> | ||
|
||
## setAccordion() | ||
**Kind**: global function | ||
<a name="removeAccordion"></a> | ||
|
||
## removeAccordion() | ||
**Kind**: global function | ||
<a name="setAccordionSection"></a> | ||
|
||
## setAccordionSection() | ||
**Kind**: global function | ||
<a name="toggleAccordionSection"></a> | ||
|
||
## toggleAccordionSection() | ||
**Kind**: global function | ||
<a name="toggleAllSections"></a> | ||
|
||
## toggleAllSections() | ||
**Kind**: global function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
packages/docs/content/zero-core/modules/alert/components/zero-alert.md
This file was deleted.
Oops, something went wrong.
153 changes: 112 additions & 41 deletions
153
packages/docs/content/zero-core/modules/alert/store.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,113 @@ | ||
|
||
## Functions | ||
|
||
<dl> | ||
<dt><a href="#setAlert">setAlert()</a></dt> | ||
<dd></dd> | ||
<dt><a href="#getAlert">getAlert()</a></dt> | ||
<dd></dd> | ||
<dt><a href="#removeAlert">removeAlert()</a></dt> | ||
<dd></dd> | ||
<dt><a href="#updateAlertData">updateAlertData()</a></dt> | ||
<dd></dd> | ||
<dt><a href="#openAlert">openAlert()</a></dt> | ||
<dd></dd> | ||
<dt><a href="#closeAlert">closeAlert()</a></dt> | ||
<dd></dd> | ||
</dl> | ||
|
||
<a name="setAlert"></a> | ||
|
||
## setAlert() | ||
**Kind**: global function | ||
<a name="getAlert"></a> | ||
|
||
## getAlert() | ||
**Kind**: global function | ||
<a name="removeAlert"></a> | ||
|
||
## removeAlert() | ||
**Kind**: global function | ||
<a name="updateAlertData"></a> | ||
|
||
## updateAlertData() | ||
**Kind**: global function | ||
<a name="openAlert"></a> | ||
|
||
## openAlert() | ||
**Kind**: global function | ||
<a name="closeAlert"></a> | ||
|
||
## closeAlert() | ||
**Kind**: global function | ||
# useZeroAlertStore() | ||
|
||
|
||
A store that registers [Alert component](/zero-core/modules/alert/components) instances, records their open/closed states and contains methods to update them. | ||
|
||
## Data | ||
|
||
|
||
- [alerts](#alerts) | ||
|
||
## Methods | ||
|
||
|
||
- [setAlert()](#setalert) | ||
- [getAlert()](#getalert) | ||
- [removeAlert()](#removealert) | ||
- [updateAlertData()](#updatealertdata) | ||
- [openAlert()](#openalert) | ||
- [closeAlert()](#closealert) | ||
|
||
## All Members | ||
|
||
#### alerts | ||
|
||
|
||
**type:** `Object` | ||
|
||
|
||
An object that maps alert IDs to nested tracking objects for each [Alert component](/zero-core/modules/alert/components) instance. The top level key referencing each nested alert object is that alert's AlertId. | ||
|
||
|
||
**Kind:** inner ref of [useZeroAlertStore](#usezeroalertstore) | ||
|
||
#### setAlert() | ||
|
||
|
||
Register an alert instance. | ||
|
||
|
||
**Kind:** inner method of [useZeroAlertStore](#usezeroalertstore) | ||
|
||
| param | type | description | | ||
| ----- | ---- | ----------- | | ||
| `payload` | Object | A tracking object containing data about an alert instance. | | ||
| `payload.id` | string | The Alert ID. | | ||
| `payload.status` | string | The status of the alert; either `open` or `closed`. | | ||
| `payload.data`<span>(optional)</span> | any | Data to associate with the alert. | | ||
|
||
#### getAlert() | ||
|
||
|
||
Returns a single alert object stored at a key in the [alerts](#alerts) map. | ||
|
||
|
||
**Kind:** inner method of [useZeroAlertStore](#usezeroalertstore) | ||
|
||
| param | type | description | | ||
| ----- | ---- | ----------- | | ||
| `alertId` | string | The ID of the alert object to retrieve. | | ||
|
||
|
||
- **Returns:** `Object` | ||
|
||
#### removeAlert() | ||
|
||
|
||
Removes an alert mapping from the [alerts](#alerts) map. | ||
|
||
|
||
**Kind:** inner method of [useZeroAlertStore](#usezeroalertstore) | ||
|
||
| param | type | description | | ||
| ----- | ---- | ----------- | | ||
| `alertId` | string | The ID of the alert object to remove. | | ||
|
||
#### updateAlertData() | ||
|
||
|
||
Updates the `data` key of an alert object. | ||
|
||
|
||
**Kind:** inner method of [useZeroAlertStore](#usezeroalertstore) | ||
|
||
| param | type | description | | ||
| ----- | ---- | ----------- | | ||
| `alertId` | string | The ID of the alert object to update. | | ||
| `payload` | any | Data to save to the `data` key of the alert object. | | ||
|
||
#### openAlert() | ||
|
||
|
||
Sets the status of an alert to 'open'. | ||
|
||
|
||
**Kind:** inner method of [useZeroAlertStore](#usezeroalertstore) | ||
|
||
| param | type | description | | ||
| ----- | ---- | ----------- | | ||
| `alertId` | string | The ID of the alert object to update. | | ||
| `data`<span>(optional)</span> | any | Data to save to the `data` key of the alert object. | | ||
|
||
#### closeAlert() | ||
|
||
|
||
Sets the status of an alert to 'closed'. Sets the alert's `data` key to `null`. | ||
|
||
|
||
**Kind:** inner method of [useZeroAlertStore](#usezeroalertstore) | ||
|
||
| param | type | description | | ||
| ----- | ---- | ----------- | | ||
| `alertId` | string | The ID of the alert object to update. | |
Oops, something went wrong.