@prismicio/types-internal 1.1.0 → 1.2.0-alpha.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/lib/customtypes/Comparators/Changes.d.ts +17 -0
- package/lib/customtypes/Comparators/Changes.js +9 -0
- package/lib/customtypes/Comparators/SharedSlice.d.ts +679 -0
- package/lib/customtypes/Comparators/SharedSlice.js +55 -0
- package/lib/customtypes/Comparators/Variation.d.ts +662 -0
- package/lib/customtypes/Comparators/Variation.js +75 -0
- package/lib/customtypes/Comparators/index.d.ts +3 -0
- package/lib/customtypes/Comparators/index.js +6 -0
- package/lib/customtypes/CustomType.d.ts +932 -932
- package/lib/customtypes/Format.d.ts +4 -0
- package/lib/customtypes/Format.js +8 -0
- package/lib/customtypes/Section.d.ts +932 -932
- package/lib/customtypes/comp/Changes.d.ts +17 -0
- package/lib/customtypes/comp/Changes.js +9 -0
- package/lib/customtypes/comp/SharedSlice.d.ts +679 -0
- package/lib/customtypes/comp/SharedSlice.js +55 -0
- package/lib/customtypes/comp/Variation.d.ts +662 -0
- package/lib/customtypes/comp/Variation.js +76 -0
- package/lib/customtypes/comp/index.d.ts +3 -0
- package/lib/customtypes/comp/index.js +6 -0
- package/lib/customtypes/index.d.ts +1 -0
- package/lib/customtypes/index.js +2 -1
- package/lib/customtypes/utils/Comparator.d.ts +1353 -0
- package/lib/customtypes/utils/Comparator.js +59 -0
- package/lib/customtypes/utils/index.d.ts +1 -0
- package/lib/customtypes/utils/index.js +4 -0
- package/lib/customtypes/widgets/Widget.d.ts +664 -664
- package/lib/customtypes/widgets/slices/Slices.d.ts +792 -792
- package/lib/documents/widgets/index.js +1 -1
- package/lib/documents/widgets/nestable/EmbedContent.d.ts +4 -4
- package/lib/documents/widgets/nestable/ImageContent.d.ts +14 -14
- package/lib/documents/widgets/nestable/Link/ExternalLink.d.ts +4 -4
- package/lib/documents/widgets/nestable/Link/LinkContent.d.ts +2 -2
- package/lib/documents/widgets/nestable/Link/index.d.ts +4 -4
- package/lib/documents/widgets/nestable/StructuredTextContent/Block.d.ts +8 -8
- package/lib/utils/Arrays.d.ts +1 -0
- package/lib/utils/Arrays.js +13 -0
- package/lib/utils/Objects.d.ts +5 -0
- package/lib/utils/Objects.js +21 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +6 -0
- package/package.json +2 -2
- package/src/customtypes/comparators/Changes.ts +21 -0
- package/src/customtypes/comparators/SharedSlice.ts +77 -0
- package/src/customtypes/comparators/Variation.ts +101 -0
- package/src/customtypes/comparators/index.ts +3 -0
- package/src/customtypes/index.ts +1 -0
- package/src/documents/widgets/index.ts +4 -2
- package/src/utils/Arrays.ts +12 -0
- package/src/utils/Objects.ts +24 -0
- package/src/utils/index.ts +2 -0
- package/CHANGELOG.md +0 -13
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum DiffOperation {
|
|
2
|
+
Added = "added",
|
|
3
|
+
Removed = "removed",
|
|
4
|
+
Updated = "updated"
|
|
5
|
+
}
|
|
6
|
+
export declare type AddChange<A> = {
|
|
7
|
+
op: DiffOperation.Added;
|
|
8
|
+
value: A;
|
|
9
|
+
};
|
|
10
|
+
export declare type RemovedChange = {
|
|
11
|
+
op: DiffOperation.Removed;
|
|
12
|
+
};
|
|
13
|
+
export declare type UpdatedChange<A> = {
|
|
14
|
+
op: DiffOperation.Updated;
|
|
15
|
+
value: A;
|
|
16
|
+
};
|
|
17
|
+
export declare type DiffChange<A, U> = AddChange<A> | UpdatedChange<U> | RemovedChange;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiffOperation = void 0;
|
|
4
|
+
var DiffOperation;
|
|
5
|
+
(function (DiffOperation) {
|
|
6
|
+
DiffOperation["Added"] = "added";
|
|
7
|
+
DiffOperation["Removed"] = "removed";
|
|
8
|
+
DiffOperation["Updated"] = "updated";
|
|
9
|
+
})(DiffOperation = exports.DiffOperation || (exports.DiffOperation = {}));
|