@w6w/embed 0.2.23 → 0.2.24

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.
@@ -1,2 +1,12 @@
1
- /** A fresh, minimal workflow definition for a brand-new id (a new object on every call). */
2
- export declare function blankDefinition(id: string): Record<string, unknown>;
1
+ export declare const UNTITLED_WORKFLOW = "Untitled workflow";
2
+ /**
3
+ * The name a new workflow gets: "Untitled workflow", or — when that is taken — the next number
4
+ * after the highest "Untitled workflow N" in `taken`, so a list of new workflows reads 1, 2, 3
5
+ * instead of the same name over and over. Names are compared case-insensitively, trimmed.
6
+ */
7
+ export declare function nextUntitledName(taken: Iterable<string | null | undefined>): string;
8
+ /**
9
+ * A fresh, minimal workflow definition for a brand-new id (a new object on every call). Pass
10
+ * `displayName` (from {@link nextUntitledName}) so a new workflow does not repeat an existing name.
11
+ */
12
+ export declare function blankDefinition(id: string, displayName?: string): Record<string, unknown>;
package/dist/lib.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { d as l, f as d, a as c, i as p, p as u, b as m, r as f, c as g, s as S, t as b, e as w, w as v, g as R } from "./setup-incomplete-BHs3Lpfy.js";
3
- import { d as F, a as y, e as I, i as x, b as D, p as C, r as P, c as A, f as E, s as K, g as T, t as U, v as k, h as V } from "./document-sources-DNmBojx6.js";
4
- import { a as L, b as W, e as _, h as N, c as j, d as H, i as q, m as G, p as M, r as O, f as Y, g as $, s as z, j as J, k as Q, l as X, t as Z, v as aa, w as ea, n as sa } from "./import-bindings-EUtxZ9Ti.js";
2
+ import { d as l, f as d, a as c, i as p, p as u, b as m, r as f, c as g, s as S, t as b, e as w, w as R, g as v } from "./setup-incomplete-BHs3Lpfy.js";
3
+ import { d as h, a as y, e as I, i as x, b as D, p as C, r as P, c as U, f as A, s as E, g as K, t as T, v as k, h as L } from "./document-sources-DNmBojx6.js";
4
+ import { a as W, b as N, e as _, h as B, c as O, d as j, i as H, m as q, p as G, r as M, f as Y, g as $, s as z, j as J, k as Q, l as X, t as Z, v as aa, w as ea, n as sa } from "./import-bindings-EUtxZ9Ti.js";
5
5
  import { c as ra, d as ia, i as oa, p as na } from "./settings-rail--GdRMusb.js";
6
6
  import { A as da, b as ca, f as pa, i as ua, a as ma, c as fa, s as ga, u as Sa } from "./slug-BVdgiP_L.js";
7
- import { i as wa, s as va } from "./spec-import-invalidation-D3retX4Q.js";
8
- import { b as ha } from "./workflow-blank-CorOIrSj.js";
9
- import { I as ya, c as Ia, f as xa, i as Da, a as Ca, m as Pa, p as Aa, s as Ea, t as Ka, b as Ta, d as Ua, u as ka, e as Va, g as Ba } from "./coerce-input-DFJ4n_wc.js";
7
+ import { i as wa, s as Ra } from "./spec-import-invalidation-D3retX4Q.js";
8
+ import { U as Fa, b as ha, n as ya } from "./workflow-blank-BJFLdGyE.js";
9
+ import { I as xa, c as Da, f as Ca, i as Pa, a as Ua, m as Aa, p as Ea, s as Ka, t as Ta, b as ka, d as La, u as Va, e as Wa, g as Na } from "./coerce-input-DFJ4n_wc.js";
10
10
  function r(s) {
11
11
  const e = new URLSearchParams(s), a = e.get("edit");
12
12
  if (a === null || a === "") return null;
@@ -20,82 +20,84 @@ function i(s) {
20
20
  }
21
21
  export {
22
22
  da as ACCOUNT_SLUG_RE,
23
- ya as INPUT_TYPES,
24
- L as allowedModes,
23
+ xa as INPUT_TYPES,
24
+ Fa as UNTITLED_WORKFLOW,
25
+ W as allowedModes,
25
26
  ha as blankDefinition,
26
- W as buildRows,
27
+ N as buildRows,
27
28
  ca as buildSnippet,
28
29
  ra as callableRecord,
29
- Ia as coerceInput,
30
+ Da as coerceInput,
30
31
  ia as definitionWithPolicy,
31
32
  l as disabledBannerState,
32
- F as documentSampleValues,
33
+ h as documentSampleValues,
33
34
  y as duplicateKeyIndexes,
34
35
  I as errorHandlerSelfDecision,
35
36
  _ as evaluateEdit,
36
- xa as fieldsFromWorkflow,
37
+ Ca as fieldsFromWorkflow,
37
38
  pa as filterKeyInput,
38
39
  d as findBindingProblems,
39
40
  c as findSetupIncomplete,
40
- N as hasDefinitionActions,
41
- j as hasDelete,
42
- H as hasVersionHistory,
43
- Da as implToTarget,
44
- Ca as inputsForSave,
41
+ B as hasDefinitionActions,
42
+ O as hasDelete,
43
+ j as hasVersionHistory,
44
+ Pa as implToTarget,
45
+ Ua as inputsForSave,
45
46
  p as invalidReason,
46
47
  wa as invalidateImportedCallable,
47
48
  x as isCodeRailAvailable,
48
49
  ua as isEndpointKey,
49
50
  D as isExprDefault,
50
- q as isRowArchived,
51
+ H as isRowArchived,
51
52
  oa as isSettingsRailAvailable,
52
53
  ma as isUrnAddressable,
53
54
  fa as isValidAccountSlug,
54
55
  r as legacyEditRedirect,
55
- Pa as mergeSeed,
56
- G as metadataFieldsForKind,
57
- Aa as paramsToFields,
58
- M as parseImportPaste,
56
+ Aa as mergeSeed,
57
+ q as metadataFieldsForKind,
58
+ ya as nextUntitledName,
59
+ Ea as paramsToFields,
60
+ G as parseImportPaste,
59
61
  na as policyFromDefinition,
60
62
  C as projectDocumentSources,
61
63
  u as publishDisabledReason,
62
64
  m as publishProblems,
63
65
  f as readSettings,
64
66
  P as readStartingData,
65
- A as readVariables,
67
+ U as readVariables,
66
68
  g as readWorkflowStatus,
67
- O as restoreRailState,
69
+ M as restoreRailState,
68
70
  Y as rowReady,
69
71
  $ as rowsReady,
70
- E as runFormFields,
72
+ A as runFormFields,
71
73
  i as runParamFromSearch,
72
74
  z as setBind,
73
75
  J as setCreateName,
74
76
  Q as setUnconfigured,
75
- Ea as shouldSeed,
77
+ Ka as shouldSeed,
76
78
  ga as slugify,
77
79
  X as specCollectionForKind,
78
- va as specImportListKey,
79
- K as startingDataCollisions,
80
- T as startingDataForSave,
80
+ Ra as specImportListKey,
81
+ E as startingDataCollisions,
82
+ K as startingDataForSave,
81
83
  S as stepValid,
82
- Ka as targetIsBound,
83
- Ta as targetRef,
84
- Ua as targetToImpl,
84
+ Ta as targetIsBound,
85
+ ka as targetRef,
86
+ La as targetToImpl,
85
87
  Z as toSelections,
86
- U as toSnippetCallable,
88
+ T as toSnippetCallable,
87
89
  b as triggerInputSeed,
88
90
  w as triggerPreviews,
89
91
  Sa as unavailableReason,
90
- ka as uncoveredForEndpoint,
91
- Va as uncoveredForFunction,
92
- Ba as uncoveredRequiredKeys,
92
+ Va as uncoveredForEndpoint,
93
+ Wa as uncoveredForFunction,
94
+ Na as uncoveredRequiredKeys,
93
95
  k as variablesForSave,
94
- V as varsRailFor,
96
+ L as varsRailFor,
95
97
  aa as visibleRows,
96
98
  ea as withCreatedConnection,
97
99
  sa as workflowKeyEditAllowed,
98
- v as workflowValid,
99
- R as writeSetting
100
+ R as workflowValid,
101
+ v as writeSetting
100
102
  };
101
103
  //# sourceMappingURL=lib.mjs.map