@prismicio/types-internal 3.16.2-alpha.2 → 3.16.2-alpha.3

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.
@@ -2,6 +2,7 @@ import * as t from "io-ts";
2
2
  import { type StaticSlices, CompositeSlice, Group, NestableWidget, VariationFields } from "../../../customtypes";
3
3
  import type { LegacyContentCtx, WithTypes } from "../../LegacyContentCtx";
4
4
  import { ContentPath, TraverseSliceContentFn, TraverseSliceContentWithModelFn, TraverseWidgetContentFn, TraverseWidgetContentWithModelFn } from "../../utils";
5
+ import { SharedSliceItemContent } from "./SliceItem";
5
6
  export declare const SlicesContentType = "SliceContentType";
6
7
  export declare const isSlicesContent: (u: unknown) => u is {
7
8
  __TYPE__: "SliceContentType";
@@ -9807,6 +9808,13 @@ export declare function traverseSlices({ path, key, model, content, }: {
9807
9808
  transformWidget?: TraverseWidgetContentFn;
9808
9809
  transformSlice?: TraverseSliceContentFn;
9809
9810
  }) => SlicesContent | undefined;
9811
+ export declare function traverseSharedSliceContentWithModel({ path, sliceKey, sliceName, model, content, }: {
9812
+ path: ContentPath;
9813
+ sliceKey: string;
9814
+ sliceName: string;
9815
+ model: VariationFields;
9816
+ content: SharedSliceItemContent | undefined;
9817
+ }): (transformWidget: TraverseWidgetContentWithModelFn, transformSlice: TraverseSliceContentWithModelFn) => SharedSliceItemContent | undefined;
9810
9818
  export declare function traverseSlicesWithModel({ path, key, model, content, }: {
9811
9819
  path: ContentPath;
9812
9820
  key: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.traverseSlicesWithModel = exports.traverseSlices = exports.slicesContentWithDefaultValues = exports.SlicesContent = exports.SlicesLegacy = exports.isSlicesContent = exports.SlicesContentType = void 0;
3
+ exports.traverseSlicesWithModel = exports.traverseSharedSliceContentWithModel = exports.traverseSlices = exports.slicesContentWithDefaultValues = exports.SlicesContent = exports.SlicesLegacy = exports.isSlicesContent = exports.SlicesContentType = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
@@ -288,6 +288,7 @@ function traverseSharedSliceContentWithModel({ path, sliceKey, sliceName, model,
288
288
  });
289
289
  };
290
290
  }
291
+ exports.traverseSharedSliceContentWithModel = traverseSharedSliceContentWithModel;
291
292
  function traverseCompositeSliceContentWithModel({ path, sliceKey, sliceName, model, content, }) {
292
293
  return (transformWidget, transformSlice) => {
293
294
  var _a, _b, _c, _d;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/types-internal",
3
- "version": "3.16.2-alpha.2",
3
+ "version": "3.16.2-alpha.3",
4
4
  "description": "Prismic types for Custom Types and Prismic Data",
5
5
  "keywords": [
6
6
  "typescript",
@@ -333,7 +333,7 @@ function buildVariationFields(
333
333
  }
334
334
  }
335
335
 
336
- function traverseSharedSliceContentWithModel({
336
+ export function traverseSharedSliceContentWithModel({
337
337
  path,
338
338
  sliceKey,
339
339
  sliceName,