lucid-extension-sdk 0.0.450 → 0.0.451

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/commandtypes.d.ts CHANGED
@@ -830,6 +830,8 @@ export type AutoSyncSettings = {
830
830
  'p'?: {
831
831
  /** Header */
832
832
  'h': string;
833
+ /** Label */
834
+ 'l'?: string | undefined;
833
835
  /** query placeholder */
834
836
  'qph': string;
835
837
  /**remove non matching label */
@@ -63,6 +63,10 @@ export interface AutoSyncConfigPhrasesType {
63
63
  * The header to display for the integration in the autosync modal.
64
64
  */
65
65
  header: string;
66
+ /**
67
+ * The label to display next to the toggle in the import modal (e.g. WIQL/JQL).
68
+ */
69
+ label?: string | undefined;
66
70
  /**
67
71
  * The query placeholder string to display for the integration. For example, the Jira integration displays "Search with a JQL query..."
68
72
  */
@@ -87,9 +91,11 @@ export interface AutoSyncConfigPhrasesType {
87
91
  export declare const SupportedAutoSyncGeneratorType: {
88
92
  readonly Timeline: "timeline";
89
93
  readonly DynamicMatrix: "dynamic matrix";
94
+ readonly Frame: "frame";
90
95
  };
91
96
  export type SupportedAutoSyncGeneratorType = (typeof SupportedAutoSyncGeneratorType)[keyof typeof SupportedAutoSyncGeneratorType];
92
97
  export declare const isSupportedAutoSyncGeneratorType: (x: unknown) => x is {} extends {
93
98
  readonly Timeline: "timeline";
94
99
  readonly DynamicMatrix: "dynamic matrix";
95
- } ? never : "timeline" | "dynamic matrix";
100
+ readonly Frame: "frame";
101
+ } ? never : "timeline" | "dynamic matrix" | "frame";
@@ -11,5 +11,6 @@ exports.AutoSyncPaginationSize = 50;
11
11
  exports.SupportedAutoSyncGeneratorType = {
12
12
  Timeline: 'timeline',
13
13
  DynamicMatrix: 'dynamic matrix',
14
+ Frame: 'frame',
14
15
  };
15
16
  exports.isSupportedAutoSyncGeneratorType = (0, validators_1.stringEnumValidator)(exports.SupportedAutoSyncGeneratorType);
@@ -130,6 +130,7 @@ declare const CardIntegrationConfigFormatter: import("../format/format").Format<
130
130
  } | null | undefined;
131
131
  } | null | undefined;
132
132
  }> | null | undefined>];
133
+ readonly supportsParentCards: readonly ["spc", import("../format/format").Format<boolean | null | undefined, boolean | null | undefined>];
133
134
  }>, {
134
135
  readonly fieldNames: readonly string[];
135
136
  readonly fieldStyles?: Map<string, {
@@ -171,6 +172,7 @@ declare const CardIntegrationConfigFormatter: import("../format/format").Format<
171
172
  } | null | undefined;
172
173
  } | null | undefined;
173
174
  }> | null | undefined;
175
+ readonly supportsParentCards?: boolean | null | undefined;
174
176
  }>];
175
177
  readonly cardDetailsPanelConfig: readonly ["cdpc", import("../format/format").Format<import("../format/objectformat").ObjectFormatSerializedType<{
176
178
  /**
@@ -255,6 +257,7 @@ declare const CardIntegrationConfigFormatter: import("../format/format").Format<
255
257
  } | null | undefined;
256
258
  } | null | undefined;
257
259
  }> | null | undefined;
260
+ readonly supportsParentCards?: boolean | null | undefined;
258
261
  };
259
262
  readonly cardDetailsPanelConfig: {
260
263
  readonly fields: readonly {
@@ -34,6 +34,7 @@ const CardIntegrationConfigFormatter = (0, objectformat_1.ObjectFormat)({
34
34
  'fd',
35
35
  (0, format_1.OptionFormat)((0, mapformat_1.MapEntriesFormat)(primitiveformat_1.StringFormat, cardfielddisplaysettings_1.CardFieldDisplaySettingsFormatter)),
36
36
  ],
37
+ supportsParentCards: ['spc', (0, format_1.OptionFormat)(primitiveformat_1.BooleanFormat)],
37
38
  }),
38
39
  ],
39
40
  cardDetailsPanelConfig: [
@@ -343,6 +343,7 @@ class LucidCardIntegrationRegistry {
343
343
  if (autoSync.phrases) {
344
344
  serialized['as']['p'] = {
345
345
  'h': autoSync.phrases.header,
346
+ 'l': autoSync.phrases.label,
346
347
  'qph': autoSync.phrases.queryPlaceholder,
347
348
  'rnml': LucidCardIntegrationRegistry.nextHookName(),
348
349
  'nml': autoSync.phrases.noMatchedLabel,
package/core/checks.d.ts CHANGED
@@ -134,7 +134,8 @@ export declare function isMap(val: unknown): val is Map<unknown, unknown>;
134
134
  export type Tuple<T, N extends number> = N extends N ? (number extends N ? T[] : TupleOfHelper<T, N, []>) : never;
135
135
  type TupleOfHelper<T, N extends number, R extends unknown[]> = R['length'] extends N ? R : TupleOfHelper<T, N, [T, ...R]>;
136
136
  export declare function isExactLength<T, N extends number>(arr: readonly T[], exactLength: N): arr is Tuple<T, N>;
137
- export declare function isAtLeastLength<T, N extends number>(arr: readonly T[], minimumLength: N): arr is [...Tuple<T, N>, ...T[]];
137
+ export type ArrayAtLeastLength<T, N extends number> = [...Tuple<T, N>, ...T[]];
138
+ export declare function isAtLeastLength<T, N extends number>(arr: readonly T[], minimumLength: N): arr is ArrayAtLeastLength<T, N>;
138
139
  /**
139
140
  * Returns true if the specified value is a tuple where the first element, T, passes the tGuard function
140
141
  * and the second element, U, passes the uGuard function
@@ -17,6 +17,11 @@ export declare const SemanticCollection: {
17
17
  * This collection contains changes for {@link BranchedCollection}
18
18
  */
19
19
  readonly Patch: "Patch";
20
+ /**
21
+ * This collection is populated by a query (e.g., JQL, WIQL) executed during background sync.
22
+ * Query collections contain foreign key references to an items collection rather than duplicated data.
23
+ */
24
+ readonly Query: "Query";
20
25
  };
21
26
  export type SemanticCollection = (typeof SemanticCollection)[keyof typeof SemanticCollection];
22
27
  export declare const isSemanticCollection: (x: unknown) => x is {} extends {
@@ -33,4 +38,9 @@ export declare const isSemanticCollection: (x: unknown) => x is {} extends {
33
38
  * This collection contains changes for {@link BranchedCollection}
34
39
  */
35
40
  readonly Patch: "Patch";
36
- } ? never : "Patch" | "Items" | "Metadata";
41
+ /**
42
+ * This collection is populated by a query (e.g., JQL, WIQL) executed during background sync.
43
+ * Query collections contain foreign key references to an items collection rather than duplicated data.
44
+ */
45
+ readonly Query: "Query";
46
+ } ? never : "Patch" | "Items" | "Metadata" | "Query";
@@ -21,5 +21,10 @@ exports.SemanticCollection = {
21
21
  * This collection contains changes for {@link BranchedCollection}
22
22
  */
23
23
  Patch: 'Patch',
24
+ /**
25
+ * This collection is populated by a query (e.g., JQL, WIQL) executed during background sync.
26
+ * Query collections contain foreign key references to an items collection rather than duplicated data.
27
+ */
28
+ Query: 'Query',
24
29
  };
25
30
  exports.isSemanticCollection = (0, validators_1.enumValidator)(exports.SemanticCollection);
@@ -263,6 +263,7 @@ export declare const isPartialSize: (subject: unknown) => subject is Partial<Des
263
263
  }>>;
264
264
  export declare function isPositiveNumber(x: unknown): x is number;
265
265
  export declare function isDate(x: unknown): x is Date;
266
+ export declare function isUrl(x: unknown): x is URL;
266
267
  export declare function maxLengthValidator(max: number): (x: unknown) => x is string;
267
268
  export declare function minLengthValidator(min: number): (x: unknown) => x is string;
268
269
  export declare function isEmptyObject(x: unknown): x is {};
@@ -33,6 +33,7 @@ exports.isTrue = isTrue;
33
33
  exports.isFalse = isFalse;
34
34
  exports.isPositiveNumber = isPositiveNumber;
35
35
  exports.isDate = isDate;
36
+ exports.isUrl = isUrl;
36
37
  exports.maxLengthValidator = maxLengthValidator;
37
38
  exports.minLengthValidator = minLengthValidator;
38
39
  exports.isEmptyObject = isEmptyObject;
@@ -515,6 +516,9 @@ function isPositiveNumber(x) {
515
516
  function isDate(x) {
516
517
  return x instanceof Date;
517
518
  }
519
+ function isUrl(x) {
520
+ return x instanceof URL;
521
+ }
518
522
  function maxLengthValidator(max) {
519
523
  return (x) => (0, checks_1.isString)(x) && x.length <= max;
520
524
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.450",
3
+ "version": "0.0.451",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",