@factorialco/f0-react 6.87.1 → 6.88.0

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/dist/f0.d.ts CHANGED
@@ -1786,11 +1786,25 @@ declare type BaseQuestionProps = {
1786
1786
  * also locked when its containing section is locked.
1787
1787
  */
1788
1788
  locked?: boolean;
1789
+ /**
1790
+ * Freezes only the named fields, leaving the rest of the question editable —
1791
+ * the actions menu included, so it can still be made optional, duplicated or
1792
+ * removed. Use it when the wording is what the consumer depends on: a
1793
+ * question whose answer feeds a validated field stops meaning the same thing
1794
+ * once it is renamed, while deleting it is a legitimate choice.
1795
+ *
1796
+ * `locked` is the stronger form and wins: a locked question (or one inside a
1797
+ * locked section) freezes everything regardless of this.
1798
+ */
1799
+ lockedFields?: LockedFields;
1789
1800
  /**
1790
1801
  * Optional notice shown in the lock tooltip when the question is locked. Use
1791
1802
  * it to say what this specific question is — it takes precedence over the
1792
1803
  * parent section's `LockedSectionNotice` and over the default question notice
1793
1804
  * from the i18n provider.
1805
+ *
1806
+ * Also used by `lockedFields`, where saying which part is frozen and why is
1807
+ * the only cue the author gets.
1794
1808
  */
1795
1809
  lockedNote?: LockedQuestionNotice;
1796
1810
  };
@@ -15379,6 +15393,13 @@ declare interface LocalizedOption<T> {
15379
15393
  value: T;
15380
15394
  }
15381
15395
 
15396
+ /**
15397
+ * The parts of a question that `lockedFields` can freeze on their own, without
15398
+ * locking the question outright. Both are the question's wording — what it asks
15399
+ * — as opposed to the answer it collects.
15400
+ */
15401
+ export declare type LockedFields = ReadonlyArray<"title" | "description">;
15402
+
15382
15403
  export declare type LockedQuestionNotice = {
15383
15404
  description: string;
15384
15405
  };