@widgetic/workflows 0.2.2 → 0.2.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/README.md +24 -15
- package/dist/api/types.d.ts +19 -0
- package/dist/api/workflowsApi.d.ts +19 -1
- package/dist/api/workflowsApi.js +78 -0
- package/dist/components/WorkflowsWorkspace.svelte +6 -1
- package/dist/components/list/WorkflowList.svelte +18 -3
- package/dist/components/list/WorkflowList.svelte.d.ts +5 -0
- package/dist/components/list/WorkflowRow.svelte +20 -0
- package/dist/editor/editingWatcher.d.ts +90 -0
- package/dist/editor/editingWatcher.js +267 -0
- package/dist/editor/editorState.svelte.d.ts +2 -2
- package/dist/editor/listState.svelte.d.ts +25 -2
- package/dist/editor/listState.svelte.js +38 -0
- package/dist/i18n/language.d.ts +3 -3
- package/dist/i18n/messages.d.ts +4 -0
- package/dist/i18n/messages.js +4 -0
- package/dist/types/index.d.ts +5 -1
- package/package.json +1 -1
package/dist/i18n/messages.js
CHANGED
|
@@ -87,6 +87,10 @@ export const WORKFLOWS_MESSAGES = {
|
|
|
87
87
|
'workflows.list.noMatches': 'No workflow matches your search.',
|
|
88
88
|
'workflows.list.duplicated': 'The workflow was copied as a new draft.',
|
|
89
89
|
'workflows.list.deleted': 'The workflow was deleted.',
|
|
90
|
+
/** The badge on a row when a teammate is editing that workflow; `name` is the teammate. */
|
|
91
|
+
'workflows.list.editingNamed': '{name} is editing',
|
|
92
|
+
/** The same badge when the API gave no name for the teammate. */
|
|
93
|
+
'workflows.list.editingSomeone': 'Someone is editing',
|
|
90
94
|
// ===== Making a workflow =====
|
|
91
95
|
'workflows.create.title': 'New workflow',
|
|
92
96
|
'workflows.create.nameLabel': 'Name',
|
package/dist/types/index.d.ts
CHANGED
|
@@ -48,7 +48,11 @@ export interface WorkflowsProps {
|
|
|
48
48
|
*
|
|
49
49
|
* It is for the workflows of a team (an organization). In a personal workspace nobody else can edit, the API says so, and
|
|
50
50
|
* the screen carries on as it does without this. The token has to be a person's: one that may not ask who is editing (an
|
|
51
|
-
* embed's, say) is refused once and the screen carries on without it. Read when a workflow is opened.
|
|
51
|
+
* embed's, say) is refused once and the screen carries on without it. Read when the list or a workflow is opened.
|
|
52
|
+
*
|
|
53
|
+
* The list also says it on the rows: "Anna is editing" under the name of a workflow a teammate has open. The list asks the
|
|
54
|
+
* API once for a whole page of rows, again every few seconds while the tab is on the screen (never while it is hidden), and
|
|
55
|
+
* a row is advice only: it opens as always.
|
|
52
56
|
*/
|
|
53
57
|
presence?: boolean;
|
|
54
58
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widgetic/workflows",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Workflows for Widgetic: chain compositions together with filters that decide which composition an embed shows. One Svelte package that the Widgetic site, partners and Shopify all load.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|