Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Commit 4a7ef0d

Browse files
docs(types,core): name resolveRecordSourceConfig, not getDataConfig, for the gantt and calendar record-source ladder (objectui#9618) (#10550)
Fixes #9618 Clause-②: no ## What changed Text only: no schema shape, accept-set or export moves. The ladder ORDER (`data`, then `staticData`, then `objectName`) is unchanged everywhere. The gantt and calendar record-source text named a `getDataConfig` that their renderers do not contain. objectui#7632 (commit `ce2aaefe1`) took it out of `ObjectGantt.tsx`, and `ObjectCalendar.tsx` has none either. Both renderers call the shared `resolveRecordSourceConfig` from `@object-ui/core`. This PR rewrites only the false mentions so they name that function. The map text stays as it is, because `ObjectMap.tsx` still has its local `function getDataConfig(` wrapper, which delegates to the shared ladder. ## Census: every `getDataConfig` mention in the two types files on `origin/main` (c2c4372) The renderer check greps each renderer file. The control reads `ObjectMap.tsx`: it has `function getDataConfig(` and 7 mentions, while `ObjectGantt.tsx` and `ObjectCalendar.tsx` have 0 each. Positions are given by the owning symbol, not by line. | file | where | schema | renderer has `getDataConfig`? | action | |---|---|---|---|---| | `zod/objectql.zod.ts` | `requireRecordSource` docblock (the refinement shared by map, gantt and calendar), 2 mentions | shared | map yes, gantt no | rewritten: it named the ladder and attributed it to both files. It now names `resolveRecordSourceConfig` and says the map reaches it through its local wrapper | | `zod/objectql.zod.ts` | `ObjectMapSchema` docblock + `objectName` / `data` / `staticData` describes, 4 mentions | map | **yes** | untouched | | `zod/objectql.zod.ts` | `ObjectGanttSchema` docblock + `objectName` / `data` / `staticData` describes, 4 mentions | gantt | no | rewritten | | `zod/objectql.zod.ts` | `ObjectCalendarSchema` `objectName` / `staticData` describes, 2 mentions | calendar | no | rewritten | | `objectql.ts` | `ObjectMapSchema.objectName` / `.data` JSDoc, 2 mentions | map | **yes** | untouched | | `objectql.ts` | `ObjectGanttSchema.objectName` / `.data` / `.staticData` JSDoc, 3 mentions | gantt | no | rewritten. The `.data` doc quoted the code `if (schema.data) return schema.data;`, which the shared ladder no longer contains (rung 1 is judged by arm), so that quote is replaced with a description | | `objectql.ts` | `ObjectCalendarSchema.objectName` / `.staticData` JSDoc, 2 mentions | calendar | no | rewritten | After the change, 5 mentions remain in the zod file and 2 in `objectql.ts`. All of them are on map text, plus the new wording that names the map's local wrapper. **Second site, `packages/core/src/utils/record-source.ts`.** Two docblocks quoted the describes as the ruled contract and attributed that text to the map and gantt twins. Both now say that the quoted text is the map faces' text, and that the gantt (and calendar) faces name `resolveRecordSourceConfig`. The `resolveRecordSourceObjectName` docblock said callers pass "their `getDataConfig(schema)` output". It now says they pass their `resolveRecordSourceConfig` output, directly or through a local wrapper. This stays clear of the regions that objectui#10540 edits in the same file. **Test header.** The `objectql-record-source-refinement-6939.test.ts` header made the same attribution, and it is corrected in the same way. That file also holds the new pin. ## Pin and reverse verification A new `describe` block, `objectui#9618 — the record-source text names the function each renderer actually has`, in `packages/types/src/__tests__/objectql-record-source-refinement-6939.test.ts`: - For `ObjectGanttSchema` and `ObjectCalendarSchema`, no zod member describe contains `getDataConfig`. The `objectName` and `staticData` describes name `resolveRecordSourceConfig`, and the TS `export interface` block contains no `getDataConfig`. - Control: the map zod describe and the TS face still name `getDataConfig`, and `ObjectMap.tsx` still declares `function getDataConfig(`. Reverse verification ran from the committed fix (`a709aab8f`), with restore from `HEAD` under an EXIT/INT/TERM trap. The mutation put `getDataConfig` back into the gantt `objectName` describe. On disk the marker count went from 1 to 0 and the `getDataConfig` count from 5 to 6. Vitest then reported `Tests 1 failed | 19 passed (20)`, and the failure was `ObjectGanttSchema: no zod describe and no TS doc names getDataConfig`. After the restore, `git diff HEAD` was 0 bytes and the file hash matched the `HEAD` blob. ## Local verification (head `27ac561f0`, after merging `origin/main`) - `pnpm exec vitest run packages/types/ packages/core/src/utils/` gave `Test Files 324 passed (324)` and `Tests 6923 passed (6923)`. This covers the zod mirror parity suites in `packages/types`. - `pnpm --filter '@object-ui/core^...' run build`, then `pnpm --filter @object-ui/types --filter @object-ui/core run type-check`: both printed `Done`, exit 0. - eslint on the 4 touched source files (`--format json`, 4 files): 0 errors. The warnings are existing `no-explicit-any` hits on untouched lines. `eslint.config.js` sets no `parserOptions` or type-aware config, so this diff cannot change the verdict on any untouched file. The repo-wide `pnpm lint` is left to CI. - `check-changeset-presence` passed with 1 changeset for 4 source files in 2 released packages. `check-changeset-no-major`, `check:new-line-citations` (`0 new citation(s)`), `check:control-bytes` and `check:test-path-roots` all exited 0. `check-governed-queue-guard --test` reports NOT GOVERNED. ## Acceptance notes (not in this PR) - `packages/plugin-gantt/src/index.tsx` still has 3 comment mentions that say `ObjectGantt` reads through `getDataConfig`. They have the same false attribution, but the file is outside this card's claimed surface and the text is comment-only. Carrier: none. - Several pending `.changeset/*.md` bodies name `getDataConfig` for the renderers of their time. They are release records of those changes and are left alone. --- _Generated by [Claude Code](https://claude.ai/code/session_01D486C1axmXnrkJMNUfz2eb)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 64563a9 commit 4a7ef0d

5 files changed

Lines changed: 104 additions & 33 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@object-ui/types': patch
3+
'@object-ui/core': patch
4+
---
5+
6+
The `ObjectGanttSchema` and `ObjectCalendarSchema` record-source text now names
7+
the function their renderers actually call (objectui#9618).
8+
9+
Their zod `.describe` strings and TS docs said the `data` → `staticData` →
10+
`objectName` ladder is resolved by `getDataConfig`. Neither renderer has had a
11+
function by that name since the ladder moved into `@object-ui/core`'s shared
12+
`resolveRecordSourceConfig` (objectui#7632), so the text now names that
13+
function. The ladder order is unchanged, and so is every accepted document.
14+
The `ObjectMapSchema` text still says `getDataConfig`, which is true:
15+
`ObjectMap.tsx` keeps a local wrapper by that name that delegates to the shared
16+
ladder. The `resolveRecordSourceConfig` docblock in `@object-ui/core` now says
17+
that the text it quotes is the map faces' text.

‎packages/core/src/utils/record-source.ts‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ import type { ViewData } from '@object-ui/types';
2424
* more than one binding?** — the published three-rung record-source ladder
2525
* (`data`, then `staticData`, then `objectName`), declared on both faces of
2626
* the contract (`ObjectMapSchema.objectName` / `ObjectGanttSchema.objectName`
27-
* in `@object-ui/types`, and the `.describe` on their zod twins:
28-
* *"objectName — the THIRD record source `getDataConfig` resolves, after
29-
* `data` and `staticData`"*), ruled objectui#6939 (2026-09-02) and pinned by
27+
* in `@object-ui/types`, and the `.describe` on their zod twins — the map
28+
* twin's reads *"objectName — the THIRD record source `getDataConfig`
29+
* resolves, after `data` and `staticData`"*, naming `ObjectMap.tsx`'s local
30+
* wrapper; the gantt twin names `resolveRecordSourceConfig` itself), ruled
31+
* objectui#6939 (2026-09-02) and pinned by
3032
* `objectql-record-source-refinement-6939.test.ts`. **That is this
3133
* function.**
3234
* 2. **How does `objectName` get POPULATED when it is absent?** — the
@@ -47,8 +49,9 @@ import type { ViewData } from '@object-ui/types';
4749
* ladder reduces to two rungs — the resolved config's object when it names one,
4850
* else the schema's own `objectName`, which is what a `value`/`api`-backed block
4951
* still needs for metadata reads, i18n field labels and permission verdicts.
50-
* Callers pass the ALREADY-RESOLVED config (their `getDataConfig(schema)`
51-
* output), so rung ordering is settled before this function is reached.
52+
* Callers pass the ALREADY-RESOLVED config (their
53+
* {@link resolveRecordSourceConfig} output, direct or through a local wrapper),
54+
* so rung ordering is settled before this function is reached.
5255
*
5356
* ## No lenient rung was added (AGENTS.md #0.1)
5457
*
@@ -62,7 +65,7 @@ import type { ViewData } from '@object-ui/types';
6265
*
6366
* @param schema - The block's schema; only `objectName` is read.
6467
* @param dataConfig - The RESOLVED data config — the caller's own
65-
* `getDataConfig(schema)` output, `null` when nothing is bound.
68+
* {@link resolveRecordSourceConfig} output, `null` when nothing is bound.
6669
* @returns The bound object's name, or `undefined` when neither the resolved
6770
* config nor the schema names one.
6871
*
@@ -186,7 +189,10 @@ function authoredDataIsOnTheDeclaredArm(authored: unknown, arm: RecordSourceData
186189
*
187190
* `data`, then `staticData`, then `objectName` — declared on both faces of the
188191
* published contract and pinned by
189-
* `objectql-record-source-refinement-6939.test.ts`:
192+
* `objectql-record-source-refinement-6939.test.ts`. Quoted here from the
193+
* `ObjectMapSchema` faces, whose `getDataConfig` is `ObjectMap.tsx`'s local
194+
* wrapper around this function; the gantt and calendar faces name
195+
* `resolveRecordSourceConfig` instead (objectui#9618):
190196
*
191197
* 1. **`data`** — *"Data source configuration. Read FIRST by `getDataConfig`"*,
192198
* honoured ONLY on the arm `dataArm` names. Returned verbatim, so a config

‎packages/types/src/__tests__/objectql-record-source-refinement-6939.test.ts‎

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
* ## The defect
1919
*
2020
* Both mirrors REQUIRED `objectName`. Both renderers resolve their records from
21-
* one of THREE keys, in this order — `getDataConfig` in
22-
* `plugin-map/src/ObjectMap.tsx` (`schema.data`, `schema.staticData`,
23-
* `schema.objectName`) and `plugin-gantt/src/ObjectGantt.tsx` (the same three,
24-
* the same order). A document authored on `staticData` alone draws correctly
21+
* one of THREE keys, in this order (`schema.data`, `schema.staticData`,
22+
* `schema.objectName`) — today through the shared `resolveRecordSourceConfig`
23+
* in `@object-ui/core` (objectui#7632), which `plugin-map/src/ObjectMap.tsx`
24+
* reaches via its local `getDataConfig` wrapper and
25+
* `plugin-gantt/src/ObjectGantt.tsx` calls directly. A document authored on
26+
* `staticData` alone draws correctly
2527
* and was refused by `safeValidateSchema`: six catalog entries, three per
2628
* component, every one of them `staticData`-only.
2729
*
@@ -43,7 +45,7 @@ import { describe, it, expect } from 'vitest';
4345
import fs from 'node:fs';
4446
import path from 'node:path';
4547
import { fileURLToPath } from 'node:url';
46-
import { ObjectGanttSchema, ObjectMapSchema, safeValidateSchema } from '../zod/index.zod';
48+
import { ObjectCalendarSchema, ObjectGanttSchema, ObjectMapSchema, safeValidateSchema } from '../zod/index.zod';
4749

4850
const REPO_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..', '..', '..');
4951

@@ -149,3 +151,46 @@ describe('objectui#6939 — the refinement sits on declared keys, and the object
149151
expect(ObjectMapSchema.safeParse({ type: 'object-map', objectName: 'stores', data: 'nope' }).success).toBe(false);
150152
});
151153
});
154+
155+
describe('objectui#9618 — the record-source text names the function each renderer actually has', () => {
156+
// `getDataConfig` left `ObjectGantt.tsx` (and never lived in
157+
// `ObjectCalendar.tsx`) when objectui#7632 moved the ladder into
158+
// `resolveRecordSourceConfig`; only `ObjectMap.tsx` keeps a local wrapper by
159+
// that name. So the gantt and calendar faces must not name it, and the map
160+
// face — whose text is TRUE — is the control that the descriptions and the
161+
// source slice are actually being read.
162+
type Described = { shape: Record<string, { description?: string }> };
163+
const describes = (member: unknown): Record<string, string> =>
164+
Object.fromEntries(
165+
Object.entries((member as Described).shape).map(([k, v]) => [k, v.description ?? '']),
166+
);
167+
168+
/** The `export interface NAME` block of the TS face, up to the next export. */
169+
function tsFace(name: string): string {
170+
const src = fs.readFileSync(path.join(REPO_ROOT, 'packages/types/src/objectql.ts'), 'utf8');
171+
const at = src.indexOf(`export interface ${name} `);
172+
expect(at, `${name} interface not found in objectql.ts`).toBeGreaterThan(-1);
173+
const end = src.indexOf('\nexport ', at + 1);
174+
return src.slice(at, end === -1 ? undefined : end);
175+
}
176+
177+
it.each([
178+
['ObjectGanttSchema', ObjectGanttSchema],
179+
['ObjectCalendarSchema', ObjectCalendarSchema],
180+
] as const)('%s: no zod describe and no TS doc names `getDataConfig`', (name, member) => {
181+
const d = describes(member);
182+
expect(Object.entries(d).filter(([, text]) => text.includes('getDataConfig'))).toEqual([]);
183+
expect(d.objectName).toContain('resolveRecordSourceConfig');
184+
expect(d.staticData).toContain('resolveRecordSourceConfig');
185+
const face = tsFace(name);
186+
expect(face).not.toContain('getDataConfig');
187+
expect(face).toContain('resolveRecordSourceConfig');
188+
});
189+
190+
it('⛔ CONTROL: the map faces still name its real local `getDataConfig`', () => {
191+
expect(describes(ObjectMapSchema).objectName).toContain('getDataConfig');
192+
expect(tsFace('ObjectMapSchema')).toContain('getDataConfig');
193+
const renderer = fs.readFileSync(path.join(REPO_ROOT, 'packages/plugin-map/src/ObjectMap.tsx'), 'utf8');
194+
expect(renderer).toContain('function getDataConfig(');
195+
});
196+
});

‎packages/types/src/objectql.ts‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2938,9 +2938,9 @@ export interface ObjectTreeSchema extends BaseSchema {
29382938
export interface ObjectGanttSchema extends BaseSchema {
29392939
type: 'object-gantt';
29402940
/**
2941-
* ObjectQL object name — the THIRD record source `getDataConfig` resolves,
2942-
* after {@link ObjectGanttSchema.data} and {@link ObjectGanttSchema.staticData}
2943-
* (`plugin-gantt/src/ObjectGantt.tsx`).
2941+
* ObjectQL object name — the THIRD record source `resolveRecordSourceConfig`
2942+
* (`@object-ui/core`) resolves, after {@link ObjectGanttSchema.data} and
2943+
* {@link ObjectGanttSchema.staticData} (called by `plugin-gantt/src/ObjectGantt.tsx`).
29442944
*
29452945
* Optional since objectui#6939: a gantt authored on inline rows never reads
29462946
* this key, and requiring it refused three catalog entries that draw
@@ -2951,8 +2951,9 @@ export interface ObjectGanttSchema extends BaseSchema {
29512951
*/
29522952
objectName?: string;
29532953
/**
2954-
* Data source configuration. Read FIRST by `getDataConfig` — `if
2955-
* (schema.data) return schema.data;` — ahead of `staticData` / `objectName`.
2954+
* Data source configuration. Read FIRST by `resolveRecordSourceConfig`
2955+
* (`@object-ui/core`), which returns it verbatim when it is on the block's
2956+
* declared arm — ahead of `staticData` / `objectName`.
29562957
*
29572958
* Declared by objectui#6939, in the same stroke as the mirror's `data`: until
29582959
* then the read landed on `BaseSchema`'s index signature on this side and
@@ -3242,7 +3243,7 @@ export interface ObjectGanttSchema extends BaseSchema {
32423243
// correct and is why they now have to be declared HERE. `plugin-gantt`'s
32433244
// registry mapping (`OBJECT_GANTT_DATA_SOURCE` in `index.tsx`) names `filter`
32443245
// and `sort` as the two keys the element data-source binding maps onto.
3245-
/** Inline records, wrapped into a `{ provider: 'value' }` config by `getDataConfig`. */
3246+
/** Inline records, wrapped into a `{ provider: 'value' }` config by `resolveRecordSourceConfig`. */
32463247
staticData?: any[];
32473248
/** Query filter (JSON Rules format), forwarded verbatim as `$filter`. */
32483249
filter?: any[];
@@ -3270,9 +3271,9 @@ export interface ObjectGanttSchema extends BaseSchema {
32703271
export interface ObjectCalendarSchema extends BaseSchema {
32713272
type: 'object-calendar';
32723273
/**
3273-
* ObjectQL object name — the THIRD record source `getDataConfig` resolves,
3274-
* after {@link ObjectCalendarSchema.data} and {@link ObjectCalendarSchema.staticData}
3275-
* (`plugin-calendar/src/ObjectCalendar.tsx`).
3274+
* ObjectQL object name — the THIRD record source `resolveRecordSourceConfig`
3275+
* (`@object-ui/core`) resolves, after {@link ObjectCalendarSchema.data} and
3276+
* {@link ObjectCalendarSchema.staticData} (called by `plugin-calendar/src/ObjectCalendar.tsx`).
32763277
*
32773278
* Optional since objectui#7313 (the objectui#6939 shape): a calendar authored
32783279
* on inline rows never reads this key, and requiring it refused the two
@@ -3325,7 +3326,7 @@ export interface ObjectCalendarSchema extends BaseSchema {
33253326
* — `ViewData` on both, deliberately kept.
33263327
*/
33273328
data?: SpecObjectCalendarProps['data'];
3328-
/** Inline records, wrapped into a `{ provider: 'value' }` config by `getDataConfig`. */
3329+
/** Inline records, wrapped into a `{ provider: 'value' }` config by `resolveRecordSourceConfig`. */
33293330
staticData?: any[];
33303331
/**
33313332
* The configuration container, and the FIRST thing this element's renderer

‎packages/types/src/zod/objectql.zod.ts‎

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,16 +1716,17 @@ export const ObjectMapConfigSchema = z.object({
17161716
*
17171717
* Those renderers resolve their records from ONE of three keys, in this order:
17181718
* `data`, `staticData` (inline rows, wrapped into a `{ provider: 'value' }`
1719-
* config) or `objectName` (the bound object) —
1720-
* `getDataConfig` in `plugin-map/src/ObjectMap.tsx` and
1721-
* `plugin-gantt/src/ObjectGantt.tsx`, each `if (schema.data) … if
1722-
* (schema.staticData) … if (schema.objectName) … return null`. Both mirrors
1719+
* config) or `objectName` (the bound object) — the shared ladder
1720+
* `resolveRecordSourceConfig` in `@object-ui/core`, which
1721+
* `plugin-map/src/ObjectMap.tsx` reaches through its local `getDataConfig`
1722+
* wrapper and `plugin-gantt/src/ObjectGantt.tsx` calls directly: `data`, then
1723+
* `staticData`, then `objectName`, else `null`. Both mirrors
17231724
* used to REQUIRE `objectName` alone, so a document authored on `staticData`
17241725
* (6 of the 20 catalog entries objectui#6939 measured) drew correctly and was
17251726
* refused by `safeValidateSchema` — `declared !== enforced`, with the corpus
17261727
* on the right side. `objectName` is optional on both members now, and this
17271728
* refinement carries the requirement the renderers actually have: with none of
1728-
* the three present `getDataConfig` returns `null` and nothing is drawn.
1729+
* the three present the ladder returns `null` and nothing is drawn.
17291730
*
17301731
* Presence is `!== undefined` — the ruling's wording ("at least one of `data`,
17311732
* `staticData`, `objectName` is present"), NOT the renderers' truthiness: an
@@ -1836,7 +1837,8 @@ export const ObjectTreeSchema = BaseSchema.extend({
18361837
* ObjectGantt Schema
18371838
*
18381839
* `objectName` is OPTIONAL and the member ends in `requireRecordSource`
1839-
* (objectui#6939): `getDataConfig` (`plugin-gantt/src/ObjectGantt.tsx`) reads
1840+
* (objectui#6939): the shared record-source ladder `resolveRecordSourceConfig`
1841+
* (`@object-ui/core`, called by `plugin-gantt/src/ObjectGantt.tsx`) reads
18401842
* `data`, then `staticData`, then `objectName`, so a gantt authored on inline
18411843
* rows never reads the object name — three catalog entries drew correctly and
18421844
* were refused here. `data` is declared for the first time in the same stroke:
@@ -1848,8 +1850,8 @@ export const ObjectTreeSchema = BaseSchema.extend({
18481850
*/
18491851
export const ObjectGanttSchema = BaseSchema.extend({
18501852
type: z.literal('object-gantt'),
1851-
objectName: z.string().optional().describe('ObjectQL object name — the THIRD record source getDataConfig resolves, after data and staticData; one of the three must be present (objectui#6939)'),
1852-
data: ViewDataSchema.optional().describe('Data source configuration — read FIRST by getDataConfig; undeclared on either face until objectui#6939'),
1853+
objectName: z.string().optional().describe('ObjectQL object name — the THIRD record source resolveRecordSourceConfig resolves, after data and staticData; one of the three must be present (objectui#6939)'),
1854+
data: ViewDataSchema.optional().describe('Data source configuration — read FIRST by resolveRecordSourceConfig; undeclared on either face until objectui#6939'),
18531855
startDateField: z.string().optional().describe('Start date field'),
18541856
endDateField: z.string().optional().describe('End date field'),
18551857
titleField: z.string().optional().describe('Title field'),
@@ -1968,7 +1970,7 @@ export const ObjectGanttSchema = BaseSchema.extend({
19681970
// The query/data keys the fetch path reads. They were declared on
19691971
// `ObjectGridSchema` — what `ObjectGanttProps.schema` used to be typed as before
19701972
// objectui#5903 retyped it to `ObjectGanttSchema` — so they need declaring here.
1971-
staticData: z.array(z.any()).optional().describe('Inline records, wrapped into a { provider: value } data config — read SECOND by getDataConfig'),
1973+
staticData: z.array(z.any()).optional().describe('Inline records, wrapped into a { provider: value } data config — read SECOND by resolveRecordSourceConfig'),
19721974
filter: z.array(z.any()).optional().describe('Query filter, forwarded verbatim as $filter'),
19731975
sort: z.array(SortConfigSchema).optional().describe('Sort configuration, forwarded as $orderby (array only; the legacy string clause is retired — objectui#8221)'),
19741976
// objectui#10250 — the full-text pair the record query carries, declared in
@@ -1997,7 +1999,7 @@ export const ObjectGanttSchema = BaseSchema.extend({
19971999
*/
19982000
export const ObjectCalendarSchema = BaseSchema.extend({
19992001
type: z.literal('object-calendar'),
2000-
objectName: z.string().optional().describe('ObjectQL object name — the THIRD record source getDataConfig resolves, after data and staticData; one of the three must be present (objectui#7313)'),
2002+
objectName: z.string().optional().describe('ObjectQL object name — the THIRD record source resolveRecordSourceConfig resolves, after data and staticData; one of the three must be present (objectui#7313)'),
20012003
// objectui#9239 — the ARRAY arm, mirroring `ComponentPropsMap['object-calendar'].data`
20022004
// on `@objectstack/spec` (`z.array(z.unknown()).optional()`, "Pre-fetched
20032005
// records — skips the internal fetch"). ⛔ NOT `ViewDataSchema`: this member
@@ -2017,7 +2019,7 @@ export const ObjectCalendarSchema = BaseSchema.extend({
20172019
// TYPE: the TS face derives `SpecObjectCalendarProps['data']`, whose input is
20182020
// `unknown[]`, which is exactly what `z.array(z.unknown())` infers here.
20192021
data: z.array(z.unknown()).optional().describe('Pre-fetched records — an ARRAY, drawn in place of the calendar\'s own query; read FIRST by the record-source ladder. Mirrors ComponentPropsMap[\'object-calendar\'].data — the { provider, items } config object is refused by kind on this block (objectui#9239, ruling objectui#8348)'),
2020-
staticData: z.array(z.any()).optional().describe('Inline records, wrapped into a { provider: value } data config — read SECOND by getDataConfig'),
2022+
staticData: z.array(z.any()).optional().describe('Inline records, wrapped into a { provider: value } data config — read SECOND by resolveRecordSourceConfig'),
20212023
// objectui#8651 — the configuration container the SPEC declares for this
20222024
// element (`ComponentPropsMap['object-calendar'].calendar`), which this
20232025
// package's registration `inputs` already publishes and which

0 commit comments

Comments
 (0)