@fluid-app/fluid-cli-portal 0.1.78 → 0.1.80

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.
@@ -1169,7 +1169,12 @@ async function readSnapshot(portalSyncDir) {
1169
1169
  const content = await readFile(filePath, "utf-8");
1170
1170
  const parsed = JSON.parse(content);
1171
1171
  if (!isSnapshot(parsed)) throw new Error(`Malformed snapshot file: ${filePath}`);
1172
- return parsed;
1172
+ const snapshot = parsed;
1173
+ const widgetCapabilityGrants = snapshot.widget_capability_grants ?? migrateLegacyNetworkWidgetGrants(snapshot.network_widget_grants);
1174
+ return {
1175
+ ...snapshot,
1176
+ ...widgetCapabilityGrants === void 0 ? {} : { widget_capability_grants: widgetCapabilityGrants }
1177
+ };
1173
1178
  } catch (err) {
1174
1179
  if (err.code === "ENOENT") return null;
1175
1180
  throw err;
@@ -1240,26 +1245,27 @@ async function buildSnapshot(portalDir, definitionName, definitionId) {
1240
1245
  hashEntries.sort(([a], [b]) => a.localeCompare(b));
1241
1246
  const fileHashes = {};
1242
1247
  for (const [path, hash] of hashEntries) fileHashes[path] = hash;
1243
- const networkWidgetGrants = await collectSnapshotNetworkWidgetGrants(portalDir, files);
1248
+ const widgetCapabilityGrants = await collectSnapshotWidgetCapabilityGrants(portalDir, files);
1244
1249
  return {
1245
1250
  definition: definitionName,
1246
1251
  definition_id: definitionId,
1247
1252
  pulled_at: (/* @__PURE__ */ new Date()).toISOString(),
1248
1253
  files: fileHashes,
1249
- network_widget_grants: networkWidgetGrants
1254
+ widget_capability_grants: widgetCapabilityGrants,
1255
+ network_widget_grants: selectLegacyNetworkWidgetGrants(widgetCapabilityGrants)
1250
1256
  };
1251
1257
  }
1252
- async function collectSnapshotNetworkWidgetGrants(portalDir, files) {
1258
+ async function collectSnapshotWidgetCapabilityGrants(portalDir, files) {
1253
1259
  const entries = await mapWithLimit(files.filter((file) => file.startsWith("screens/") && file.endsWith(".json")), MAX_CONCURRENCY, async (file) => {
1254
1260
  try {
1255
- return [file, collectNetworkWidgetGrants(JSON.parse(await readFile(join(portalDir, file), "utf8")))];
1261
+ return [file, collectWidgetCapabilityGrants(JSON.parse(await readFile(join(portalDir, file), "utf8")))];
1256
1262
  } catch {
1257
1263
  return [file, []];
1258
1264
  }
1259
1265
  });
1260
1266
  return Object.fromEntries(entries.filter(([, grants]) => grants.length > 0));
1261
1267
  }
1262
- function collectNetworkWidgetGrants(value) {
1268
+ function collectWidgetCapabilityGrants(value) {
1263
1269
  const grants = [];
1264
1270
  const visit = (candidate) => {
1265
1271
  if (!candidate || typeof candidate !== "object") return;
@@ -1268,19 +1274,36 @@ function collectNetworkWidgetGrants(value) {
1268
1274
  return;
1269
1275
  }
1270
1276
  const record = candidate;
1271
- const networkAccess = asRecord(asRecord(record.capabilityGrants)?.networkAccess);
1272
- if (typeof record.id === "string" && typeof record.type === "string" && typeof networkAccess?.packageId === "string" && typeof networkAccess.packageVersion === "string" && typeof networkAccess.capabilityVersion === "string") grants.push({
1273
- widgetId: record.id,
1274
- widgetType: record.type,
1275
- packageId: networkAccess.packageId,
1276
- packageVersion: networkAccess.packageVersion,
1277
- capabilityVersion: networkAccess.capabilityVersion
1278
- });
1277
+ const capabilityGrants = asRecord(record.capabilityGrants);
1278
+ if (typeof record.id === "string" && typeof record.type === "string" && capabilityGrants) for (const [capability, rawGrant] of Object.entries(capabilityGrants)) {
1279
+ const grant = asRecord(rawGrant);
1280
+ if (typeof grant?.packageId === "string" && typeof grant.packageVersion === "string" && typeof grant.capabilityVersion === "string") grants.push({
1281
+ capability,
1282
+ widgetId: record.id,
1283
+ widgetType: record.type,
1284
+ packageId: grant.packageId,
1285
+ packageVersion: grant.packageVersion,
1286
+ capabilityVersion: grant.capabilityVersion
1287
+ });
1288
+ }
1279
1289
  for (const child of Object.values(record)) visit(child);
1280
1290
  };
1281
1291
  visit(value);
1282
1292
  return grants;
1283
1293
  }
1294
+ function selectLegacyNetworkWidgetGrants(grants) {
1295
+ return Object.fromEntries(Object.entries(grants).flatMap(([file, fileGrants]) => {
1296
+ const networkGrants = fileGrants.filter(({ capability }) => capability === "networkAccess").map(({ capability: _capability, ...grant }) => grant);
1297
+ return networkGrants.length === 0 ? [] : [[file, networkGrants]];
1298
+ }));
1299
+ }
1300
+ function migrateLegacyNetworkWidgetGrants(grants) {
1301
+ if (!grants) return void 0;
1302
+ return Object.fromEntries(Object.entries(grants).map(([file, fileGrants]) => [file, fileGrants.map((grant) => ({
1303
+ ...grant,
1304
+ capability: "networkAccess"
1305
+ }))]));
1306
+ }
1284
1307
  function asRecord(value) {
1285
1308
  return value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
1286
1309
  }
@@ -6714,7 +6737,7 @@ function transformProfile(profile, navIdToSlug, themeIdToSlug) {
6714
6737
  }
6715
6738
  };
6716
6739
  }
6717
- const PORTAL_SCHEMA_BASE_URL = `https://assets.fluid.app/docs/schema/portal/1.2.0`;
6740
+ const PORTAL_SCHEMA_BASE_URL = `https://assets.fluid.app/docs/schema/portal/1.3.0`;
6718
6741
  const PORTAL_RESOURCE_KINDS = [
6719
6742
  "definition",
6720
6743
  "screen",
@@ -12989,7 +13012,7 @@ var require__2020 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12989
13012
  const generatedSchemas = {
12990
13013
  "data-source": {
12991
13014
  $schema: "https://json-schema.org/draft/2020-12/schema",
12992
- $id: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
13015
+ $id: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
12993
13016
  title: "Fluid Portal Data Source",
12994
13017
  examples: [{ sources: [{
12995
13018
  type: "custom",
@@ -13261,7 +13284,7 @@ const generatedSchemas = {
13261
13284
  },
13262
13285
  "theme-config": {
13263
13286
  $schema: "https://json-schema.org/draft/2020-12/schema",
13264
- $id: "https://assets.fluid.app/docs/schema/portal/1.2.0/theme-config.schema.json",
13287
+ $id: "https://assets.fluid.app/docs/schema/portal/1.3.0/theme-config.schema.json",
13265
13288
  title: "Fluid Portal Structured Theme Configuration",
13266
13289
  examples: [{
13267
13290
  id: "default",
@@ -14291,7 +14314,7 @@ const generatedSchemas = {
14291
14314
  },
14292
14315
  widget: {
14293
14316
  $schema: "https://json-schema.org/draft/2020-12/schema",
14294
- $id: "https://assets.fluid.app/docs/schema/portal/1.2.0/widget.schema.json",
14317
+ $id: "https://assets.fluid.app/docs/schema/portal/1.3.0/widget.schema.json",
14295
14318
  title: "Fluid Portal Widget Node",
14296
14319
  examples: [{
14297
14320
  id: "welcome",
@@ -14548,7 +14571,10 @@ const generatedSchemas = {
14548
14571
  }],
14549
14572
  title: "Background",
14550
14573
  description: "Background for the text container",
14551
- default: "background"
14574
+ default: {
14575
+ type: "solid",
14576
+ color: "background"
14577
+ }
14552
14578
  },
14553
14579
  padding: {
14554
14580
  enum: [
@@ -14607,7 +14633,7 @@ const generatedSchemas = {
14607
14633
  description: "Properties accepted by the registered widget."
14608
14634
  },
14609
14635
  dataSource: {
14610
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
14636
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
14611
14637
  description: "Optional data-source configuration that populates widget props."
14612
14638
  },
14613
14639
  columnIndex: {
@@ -14747,7 +14773,10 @@ const generatedSchemas = {
14747
14773
  }],
14748
14774
  title: "Background",
14749
14775
  description: "Background for the list container",
14750
- default: "background"
14776
+ default: {
14777
+ type: "solid",
14778
+ color: "background"
14779
+ }
14751
14780
  },
14752
14781
  padding: {
14753
14782
  enum: [
@@ -14819,7 +14848,7 @@ const generatedSchemas = {
14819
14848
  description: "Properties accepted by the registered widget."
14820
14849
  },
14821
14850
  dataSource: {
14822
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
14851
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
14823
14852
  description: "Optional data-source configuration that populates widget props."
14824
14853
  },
14825
14854
  columnIndex: {
@@ -14913,7 +14942,10 @@ const generatedSchemas = {
14913
14942
  }],
14914
14943
  title: "Background",
14915
14944
  description: "Background for the calendar container",
14916
- default: "background"
14945
+ default: {
14946
+ type: "solid",
14947
+ color: "background"
14948
+ }
14917
14949
  },
14918
14950
  textColor: {
14919
14951
  enum: [
@@ -15029,7 +15061,7 @@ const generatedSchemas = {
15029
15061
  description: "Properties accepted by the registered widget."
15030
15062
  },
15031
15063
  dataSource: {
15032
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
15064
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
15033
15065
  description: "Optional data-source configuration that populates widget props."
15034
15066
  },
15035
15067
  columnIndex: {
@@ -15183,7 +15215,10 @@ const generatedSchemas = {
15183
15215
  }],
15184
15216
  title: "Background",
15185
15217
  description: "Background for the card",
15186
- default: "background"
15218
+ default: {
15219
+ type: "solid",
15220
+ color: "background"
15221
+ }
15187
15222
  },
15188
15223
  padding: {
15189
15224
  enum: [
@@ -15261,7 +15296,7 @@ const generatedSchemas = {
15261
15296
  description: "Properties accepted by the registered widget."
15262
15297
  },
15263
15298
  dataSource: {
15264
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
15299
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
15265
15300
  description: "Optional data-source configuration that populates widget props."
15266
15301
  },
15267
15302
  columnIndex: {
@@ -15545,7 +15580,7 @@ const generatedSchemas = {
15545
15580
  description: "Properties accepted by the registered widget."
15546
15581
  },
15547
15582
  dataSource: {
15548
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
15583
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
15549
15584
  description: "Optional data-source configuration that populates widget props."
15550
15585
  },
15551
15586
  columnIndex: {
@@ -15639,7 +15674,10 @@ const generatedSchemas = {
15639
15674
  }],
15640
15675
  title: "Background",
15641
15676
  description: "Background for the container",
15642
- default: "background"
15677
+ default: {
15678
+ type: "solid",
15679
+ color: "background"
15680
+ }
15643
15681
  },
15644
15682
  textColor: {
15645
15683
  enum: [
@@ -15739,7 +15777,7 @@ const generatedSchemas = {
15739
15777
  description: "Properties accepted by the registered widget."
15740
15778
  },
15741
15779
  dataSource: {
15742
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
15780
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
15743
15781
  description: "Optional data-source configuration that populates widget props."
15744
15782
  },
15745
15783
  columnIndex: {
@@ -15910,7 +15948,10 @@ const generatedSchemas = {
15910
15948
  }],
15911
15949
  title: "Background",
15912
15950
  description: "Background for the chart container",
15913
- default: "background"
15951
+ default: {
15952
+ type: "solid",
15953
+ color: "background"
15954
+ }
15914
15955
  },
15915
15956
  padding: {
15916
15957
  enum: [
@@ -15990,7 +16031,7 @@ const generatedSchemas = {
15990
16031
  description: "Properties accepted by the registered widget."
15991
16032
  },
15992
16033
  dataSource: {
15993
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
16034
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
15994
16035
  description: "Optional data-source configuration that populates widget props."
15995
16036
  },
15996
16037
  columnIndex: {
@@ -16069,7 +16110,10 @@ const generatedSchemas = {
16069
16110
  }],
16070
16111
  title: "Background",
16071
16112
  description: "Background for the container",
16072
- default: "background"
16113
+ default: {
16114
+ type: "solid",
16115
+ color: "background"
16116
+ }
16073
16117
  },
16074
16118
  children: {
16075
16119
  type: "array",
@@ -16081,7 +16125,7 @@ const generatedSchemas = {
16081
16125
  description: "Properties accepted by the registered widget."
16082
16126
  },
16083
16127
  dataSource: {
16084
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
16128
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
16085
16129
  description: "Optional data-source configuration that populates widget props."
16086
16130
  },
16087
16131
  columnIndex: {
@@ -16280,7 +16324,7 @@ const generatedSchemas = {
16280
16324
  description: "Properties accepted by the registered widget."
16281
16325
  },
16282
16326
  dataSource: {
16283
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
16327
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
16284
16328
  description: "Optional data-source configuration that populates widget props."
16285
16329
  },
16286
16330
  columnIndex: {
@@ -16448,7 +16492,7 @@ const generatedSchemas = {
16448
16492
  description: "Properties accepted by the registered widget."
16449
16493
  },
16450
16494
  dataSource: {
16451
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
16495
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
16452
16496
  description: "Optional data-source configuration that populates widget props."
16453
16497
  },
16454
16498
  columnIndex: {
@@ -16529,7 +16573,10 @@ const generatedSchemas = {
16529
16573
  }],
16530
16574
  title: "Background",
16531
16575
  description: "Background for the layout container",
16532
- default: "background"
16576
+ default: {
16577
+ type: "solid",
16578
+ color: "background"
16579
+ }
16533
16580
  },
16534
16581
  padding: {
16535
16582
  enum: [
@@ -16594,7 +16641,7 @@ const generatedSchemas = {
16594
16641
  description: "Properties accepted by the registered widget."
16595
16642
  },
16596
16643
  dataSource: {
16597
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
16644
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
16598
16645
  description: "Optional data-source configuration that populates widget props."
16599
16646
  },
16600
16647
  columnIndex: {
@@ -16830,7 +16877,7 @@ const generatedSchemas = {
16830
16877
  description: "Properties accepted by the registered widget."
16831
16878
  },
16832
16879
  dataSource: {
16833
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
16880
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
16834
16881
  description: "Optional data-source configuration that populates widget props."
16835
16882
  },
16836
16883
  columnIndex: {
@@ -16990,7 +17037,10 @@ const generatedSchemas = {
16990
17037
  }],
16991
17038
  title: "Background",
16992
17039
  description: "Background color or image for the widget",
16993
- default: "background"
17040
+ default: {
17041
+ type: "solid",
17042
+ color: "background"
17043
+ }
16994
17044
  },
16995
17045
  listType: {
16996
17046
  enum: ["unordered", "ordered"],
@@ -17274,7 +17324,7 @@ const generatedSchemas = {
17274
17324
  description: "Properties accepted by the registered widget."
17275
17325
  },
17276
17326
  dataSource: {
17277
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
17327
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
17278
17328
  description: "Optional data-source configuration that populates widget props."
17279
17329
  },
17280
17330
  columnIndex: {
@@ -17351,7 +17401,10 @@ const generatedSchemas = {
17351
17401
  }],
17352
17402
  title: "Background",
17353
17403
  description: "Background for the widget container",
17354
- default: "background"
17404
+ default: {
17405
+ type: "solid",
17406
+ color: "background"
17407
+ }
17355
17408
  },
17356
17409
  textColor: {
17357
17410
  enum: [
@@ -17403,7 +17456,7 @@ const generatedSchemas = {
17403
17456
  description: "Properties accepted by the registered widget."
17404
17457
  },
17405
17458
  dataSource: {
17406
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
17459
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
17407
17460
  description: "Optional data-source configuration that populates widget props."
17408
17461
  },
17409
17462
  columnIndex: {
@@ -17640,7 +17693,10 @@ const generatedSchemas = {
17640
17693
  }],
17641
17694
  title: "Background",
17642
17695
  description: "Background color for nested media container",
17643
- default: "background"
17696
+ default: {
17697
+ type: "solid",
17698
+ color: "background"
17699
+ }
17644
17700
  },
17645
17701
  shareables: {
17646
17702
  $ref: "#/$defs/jsonValue",
@@ -17651,7 +17707,7 @@ const generatedSchemas = {
17651
17707
  description: "Properties accepted by the registered widget."
17652
17708
  },
17653
17709
  dataSource: {
17654
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
17710
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
17655
17711
  description: "Optional data-source configuration that populates widget props."
17656
17712
  },
17657
17713
  columnIndex: {
@@ -17773,7 +17829,10 @@ const generatedSchemas = {
17773
17829
  }],
17774
17830
  title: "Background",
17775
17831
  description: "Background for the widget",
17776
- default: "background"
17832
+ default: {
17833
+ type: "solid",
17834
+ color: "background"
17835
+ }
17777
17836
  },
17778
17837
  textColor: {
17779
17838
  enum: [
@@ -17865,7 +17924,7 @@ const generatedSchemas = {
17865
17924
  description: "Properties accepted by the registered widget."
17866
17925
  },
17867
17926
  dataSource: {
17868
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
17927
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
17869
17928
  description: "Optional data-source configuration that populates widget props."
17870
17929
  },
17871
17930
  columnIndex: {
@@ -18488,7 +18547,10 @@ const generatedSchemas = {
18488
18547
  }],
18489
18548
  title: "Background",
18490
18549
  description: "Background for the widget container",
18491
- default: "background"
18550
+ default: {
18551
+ type: "solid",
18552
+ color: "background"
18553
+ }
18492
18554
  },
18493
18555
  textColor: {
18494
18556
  enum: [
@@ -18564,7 +18626,7 @@ const generatedSchemas = {
18564
18626
  description: "Properties accepted by the registered widget."
18565
18627
  },
18566
18628
  dataSource: {
18567
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
18629
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
18568
18630
  description: "Optional data-source configuration that populates widget props."
18569
18631
  },
18570
18632
  columnIndex: {
@@ -18776,7 +18838,7 @@ const generatedSchemas = {
18776
18838
  description: "Properties accepted by the registered widget."
18777
18839
  },
18778
18840
  dataSource: {
18779
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
18841
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
18780
18842
  description: "Optional data-source configuration that populates widget props."
18781
18843
  },
18782
18844
  columnIndex: {
@@ -18897,7 +18959,10 @@ const generatedSchemas = {
18897
18959
  }],
18898
18960
  title: "Background",
18899
18961
  description: "Background for the widget container",
18900
- default: "background"
18962
+ default: {
18963
+ type: "solid",
18964
+ color: "background"
18965
+ }
18901
18966
  },
18902
18967
  textColor: {
18903
18968
  enum: [
@@ -18989,7 +19054,7 @@ const generatedSchemas = {
18989
19054
  description: "Properties accepted by the registered widget."
18990
19055
  },
18991
19056
  dataSource: {
18992
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
19057
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
18993
19058
  description: "Optional data-source configuration that populates widget props."
18994
19059
  },
18995
19060
  columnIndex: {
@@ -19087,7 +19152,7 @@ const generatedSchemas = {
19087
19152
  description: "Properties accepted by the registered widget."
19088
19153
  },
19089
19154
  dataSource: {
19090
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
19155
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
19091
19156
  description: "Optional data-source configuration that populates widget props."
19092
19157
  },
19093
19158
  columnIndex: {
@@ -19192,7 +19257,10 @@ const generatedSchemas = {
19192
19257
  }],
19193
19258
  title: "Background",
19194
19259
  description: "Container background",
19195
- default: "background"
19260
+ default: {
19261
+ type: "solid",
19262
+ color: "background"
19263
+ }
19196
19264
  },
19197
19265
  padding: {
19198
19266
  enum: [
@@ -19271,7 +19339,7 @@ const generatedSchemas = {
19271
19339
  description: "Properties accepted by the registered widget."
19272
19340
  },
19273
19341
  dataSource: {
19274
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
19342
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
19275
19343
  description: "Optional data-source configuration that populates widget props."
19276
19344
  },
19277
19345
  columnIndex: {
@@ -19312,7 +19380,7 @@ const generatedSchemas = {
19312
19380
  description: "Properties accepted by the registered widget."
19313
19381
  },
19314
19382
  dataSource: {
19315
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
19383
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
19316
19384
  description: "Optional data-source configuration that populates widget props."
19317
19385
  },
19318
19386
  columnIndex: {
@@ -19406,7 +19474,10 @@ const generatedSchemas = {
19406
19474
  }],
19407
19475
  title: "Background",
19408
19476
  description: "Background for the table container",
19409
- default: "background"
19477
+ default: {
19478
+ type: "solid",
19479
+ color: "background"
19480
+ }
19410
19481
  },
19411
19482
  alternatingColorEnabled: {
19412
19483
  type: "boolean",
@@ -19555,7 +19626,7 @@ const generatedSchemas = {
19555
19626
  description: "Properties accepted by the registered widget."
19556
19627
  },
19557
19628
  dataSource: {
19558
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
19629
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
19559
19630
  description: "Optional data-source configuration that populates widget props."
19560
19631
  },
19561
19632
  columnIndex: {
@@ -19726,7 +19797,10 @@ const generatedSchemas = {
19726
19797
  }],
19727
19798
  title: "Background",
19728
19799
  description: "Background for the text container",
19729
- default: "background"
19800
+ default: {
19801
+ type: "solid",
19802
+ color: "background"
19803
+ }
19730
19804
  },
19731
19805
  padding: {
19732
19806
  enum: [
@@ -19785,7 +19859,7 @@ const generatedSchemas = {
19785
19859
  description: "Properties accepted by the registered widget."
19786
19860
  },
19787
19861
  dataSource: {
19788
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
19862
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
19789
19863
  description: "Optional data-source configuration that populates widget props."
19790
19864
  },
19791
19865
  columnIndex: {
@@ -19879,7 +19953,10 @@ const generatedSchemas = {
19879
19953
  }],
19880
19954
  title: "Background",
19881
19955
  description: "Background for the widget container",
19882
- default: "background"
19956
+ default: {
19957
+ type: "solid",
19958
+ color: "background"
19959
+ }
19883
19960
  },
19884
19961
  textColor: {
19885
19962
  enum: [
@@ -19980,7 +20057,7 @@ const generatedSchemas = {
19980
20057
  description: "Properties accepted by the registered widget."
19981
20058
  },
19982
20059
  dataSource: {
19983
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
20060
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
19984
20061
  description: "Optional data-source configuration that populates widget props."
19985
20062
  },
19986
20063
  columnIndex: {
@@ -20228,7 +20305,7 @@ const generatedSchemas = {
20228
20305
  description: "Properties accepted by the registered widget."
20229
20306
  },
20230
20307
  dataSource: {
20231
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
20308
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
20232
20309
  description: "Optional data-source configuration that populates widget props."
20233
20310
  },
20234
20311
  columnIndex: {
@@ -20263,7 +20340,7 @@ const generatedSchemas = {
20263
20340
  description: "Package-defined serializable widget properties."
20264
20341
  },
20265
20342
  dataSource: {
20266
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/data-source.schema.json",
20343
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/data-source.schema.json",
20267
20344
  description: "Optional data-source configuration that populates widget props."
20268
20345
  },
20269
20346
  columnIndex: {
@@ -20273,23 +20350,23 @@ const generatedSchemas = {
20273
20350
  },
20274
20351
  capabilityGrants: {
20275
20352
  type: "object",
20276
- properties: { networkAccess: {
20353
+ additionalProperties: {
20277
20354
  type: "object",
20278
20355
  properties: {
20279
20356
  packageId: {
20280
20357
  type: "string",
20281
20358
  pattern: "\\S",
20282
- description: "Canonical package identifier approved for network access."
20359
+ description: "Canonical package identifier approved for the capability."
20283
20360
  },
20284
20361
  packageVersion: {
20285
20362
  type: "string",
20286
20363
  pattern: "\\S",
20287
- description: "Exact package version approved for network access."
20364
+ description: "Exact package version approved for the capability."
20288
20365
  },
20289
20366
  capabilityVersion: {
20290
20367
  type: "string",
20291
20368
  pattern: "\\S",
20292
- description: "Exact network capability contract version approved."
20369
+ description: "Exact capability contract version approved."
20293
20370
  }
20294
20371
  },
20295
20372
  required: [
@@ -20297,11 +20374,9 @@ const generatedSchemas = {
20297
20374
  "packageVersion",
20298
20375
  "capabilityVersion"
20299
20376
  ],
20300
- additionalProperties: false,
20301
- description: "Consent grant for this exact package and capability version to use public HTTP fetch."
20302
- } },
20303
- additionalProperties: false,
20304
- description: "Placement-specific consent grants for third-party capabilities."
20377
+ additionalProperties: false
20378
+ },
20379
+ description: "Placement-specific consent grants keyed by capability."
20305
20380
  }
20306
20381
  },
20307
20382
  required: [
@@ -20317,7 +20392,7 @@ const generatedSchemas = {
20317
20392
  },
20318
20393
  definition: {
20319
20394
  $schema: "https://json-schema.org/draft/2020-12/schema",
20320
- $id: "https://assets.fluid.app/docs/schema/portal/1.2.0/definition.schema.json",
20395
+ $id: "https://assets.fluid.app/docs/schema/portal/1.3.0/definition.schema.json",
20321
20396
  title: "Fluid Portal Definition",
20322
20397
  examples: [{ name: "Partner Portal" }],
20323
20398
  type: "object",
@@ -20338,7 +20413,7 @@ const generatedSchemas = {
20338
20413
  },
20339
20414
  screen: {
20340
20415
  $schema: "https://json-schema.org/draft/2020-12/schema",
20341
- $id: "https://assets.fluid.app/docs/schema/portal/1.2.0/screen.schema.json",
20416
+ $id: "https://assets.fluid.app/docs/schema/portal/1.3.0/screen.schema.json",
20342
20417
  title: "Fluid Portal Screen",
20343
20418
  examples: [{
20344
20419
  name: "home",
@@ -20358,7 +20433,7 @@ const generatedSchemas = {
20358
20433
  component_tree: {
20359
20434
  type: "array",
20360
20435
  maxItems: 1,
20361
- items: { $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/widget.schema.json" },
20436
+ items: { $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/widget.schema.json" },
20362
20437
  description: "Zero or one root widget nodes for this screen."
20363
20438
  }
20364
20439
  },
@@ -20368,7 +20443,7 @@ const generatedSchemas = {
20368
20443
  },
20369
20444
  theme: {
20370
20445
  $schema: "https://json-schema.org/draft/2020-12/schema",
20371
- $id: "https://assets.fluid.app/docs/schema/portal/1.2.0/theme.schema.json",
20446
+ $id: "https://assets.fluid.app/docs/schema/portal/1.3.0/theme.schema.json",
20372
20447
  title: "Fluid Portal Theme",
20373
20448
  examples: [{
20374
20449
  name: "Default",
@@ -20496,7 +20571,7 @@ const generatedSchemas = {
20496
20571
  description: "Human-readable theme name referenced by profiles."
20497
20572
  },
20498
20573
  config: {
20499
- $ref: "https://assets.fluid.app/docs/schema/portal/1.2.0/theme-config.schema.json",
20574
+ $ref: "https://assets.fluid.app/docs/schema/portal/1.3.0/theme-config.schema.json",
20500
20575
  description: "Complete structured theme token configuration."
20501
20576
  },
20502
20577
  active: {
@@ -20514,7 +20589,7 @@ const generatedSchemas = {
20514
20589
  },
20515
20590
  navigation: {
20516
20591
  $schema: "https://json-schema.org/draft/2020-12/schema",
20517
- $id: "https://assets.fluid.app/docs/schema/portal/1.2.0/navigation.schema.json",
20592
+ $id: "https://assets.fluid.app/docs/schema/portal/1.3.0/navigation.schema.json",
20518
20593
  title: "Fluid Portal Navigation",
20519
20594
  examples: [{
20520
20595
  name: "Primary",
@@ -20605,7 +20680,7 @@ const generatedSchemas = {
20605
20680
  },
20606
20681
  profile: {
20607
20682
  $schema: "https://json-schema.org/draft/2020-12/schema",
20608
- $id: "https://assets.fluid.app/docs/schema/portal/1.2.0/profile.schema.json",
20683
+ $id: "https://assets.fluid.app/docs/schema/portal/1.3.0/profile.schema.json",
20609
20684
  title: "Fluid Portal Profile",
20610
20685
  examples: [{
20611
20686
  name: "Everyone",
@@ -21071,6 +21146,6 @@ const pullCommand = new Command("pull").description("Pull a Fluid OS definition'
21071
21146
  console.log();
21072
21147
  });
21073
21148
  //#endregion
21074
- export { toFluidOsDynamicObject as A, resolveIdToSlug as C, atomicWriteFile as D, writeMappings as E, ApiError as M, __exportAll as N, createFluidOsClient as O, removeMapping as S, updateMapping as T, diffAgainstSnapshot as _, buildNavigationIdToSlugMap as a, deriveSlug as b, transformNavigation as c, transformScreen as d, transformTheme as f, computeFileHash as g, collectSnapshotNetworkWidgetGrants as h, buildIdToSlugMap as i, createFluidOsHeyApiClient as j, fluidOsApi as k, transformNavigationItems as l, collectNetworkWidgetGrants as m, pull_exports as n, buildThemeIdToSlugMap as o, buildSnapshot as p, validatePortalResource as r, deriveScreenSlug as s, pullCommand as t, transformProfile as u, readSnapshot as v, resolveSlugToId as w, readMappings as x, writeSnapshot as y };
21149
+ export { fluidOsApi as A, removeMapping as C, writeMappings as D, updateMapping as E, createFluidOsHeyApiClient as M, ApiError as N, atomicWriteFile as O, __exportAll as P, readMappings as S, resolveSlugToId as T, diffAgainstSnapshot as _, buildNavigationIdToSlugMap as a, writeSnapshot as b, transformNavigation as c, transformScreen as d, transformTheme as f, computeFileHash as g, collectWidgetCapabilityGrants as h, buildIdToSlugMap as i, toFluidOsDynamicObject as j, createFluidOsClient as k, transformNavigationItems as l, collectSnapshotWidgetCapabilityGrants as m, pull_exports as n, buildThemeIdToSlugMap as o, buildSnapshot as p, validatePortalResource as r, deriveScreenSlug as s, pullCommand as t, transformProfile as u, readSnapshot as v, resolveIdToSlug as w, deriveSlug as x, selectLegacyNetworkWidgetGrants as y };
21075
21150
 
21076
- //# sourceMappingURL=pull-BWnby_pY.mjs.map
21151
+ //# sourceMappingURL=pull-B1bXrPhS.mjs.map