@widgetic/workflows 0.2.2 → 0.2.4

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.
@@ -41,7 +41,6 @@ export declare const WORKFLOWS_MESSAGES: {
41
41
  'workflows.error.archived': string;
42
42
  'workflows.error.nothingToPublish': string;
43
43
  'workflows.error.nothingToDiscard': string;
44
- 'workflows.error.everPublished': string;
45
44
  'workflows.error.wrongState': string;
46
45
  'workflows.error.tooManyWorkflows': string;
47
46
  'workflows.error.presetGone': string;
@@ -81,6 +80,10 @@ export declare const WORKFLOWS_MESSAGES: {
81
80
  'workflows.list.noMatches': string;
82
81
  'workflows.list.duplicated': string;
83
82
  'workflows.list.deleted': string;
83
+ /** The badge on a row when a teammate is editing that workflow; `name` is the teammate. */
84
+ 'workflows.list.editingNamed': string;
85
+ /** The same badge when the API gave no name for the teammate. */
86
+ 'workflows.list.editingSomeone': string;
84
87
  'workflows.create.title': string;
85
88
  'workflows.create.nameLabel': string;
86
89
  'workflows.create.namePlaceholder': string;
@@ -46,7 +46,6 @@ export const WORKFLOWS_MESSAGES = {
46
46
  'workflows.error.archived': 'This workflow is archived. Restore it first.',
47
47
  'workflows.error.nothingToPublish': 'There are no changes to publish.',
48
48
  'workflows.error.nothingToDiscard': 'There are no unpublished changes to discard.',
49
- 'workflows.error.everPublished': 'A workflow that was published cannot be deleted. Archive it instead.',
50
49
  'workflows.error.wrongState': 'This cannot be done in the current state of the workflow.',
51
50
  'workflows.error.tooManyWorkflows': 'You have reached the limit of workflows for this workspace.',
52
51
  'workflows.error.presetGone': 'This preset is not available any more. Choose another one, or start from a blank workflow.',
@@ -87,6 +86,10 @@ export const WORKFLOWS_MESSAGES = {
87
86
  'workflows.list.noMatches': 'No workflow matches your search.',
88
87
  'workflows.list.duplicated': 'The workflow was copied as a new draft.',
89
88
  'workflows.list.deleted': 'The workflow was deleted.',
89
+ /** The badge on a row when a teammate is editing that workflow; `name` is the teammate. */
90
+ 'workflows.list.editingNamed': '{name} is editing',
91
+ /** The same badge when the API gave no name for the teammate. */
92
+ 'workflows.list.editingSomeone': 'Someone is editing',
90
93
  // ===== Making a workflow =====
91
94
  'workflows.create.title': 'New workflow',
92
95
  'workflows.create.nameLabel': 'Name',
@@ -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.2",
3
+ "version": "0.2.4",
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",