@uniformdev/canvas 19.142.2-alpha.1 → 19.146.1-alpha.1
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/index.d.mts +56 -35
- package/dist/index.d.ts +56 -35
- package/dist/index.esm.js +21 -3
- package/dist/index.js +22 -3
- package/dist/index.mjs +21 -3
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
@@ -445,7 +445,7 @@ interface components$7 {
|
|
445
445
|
id: string;
|
446
446
|
/** @description Display name of the data source */
|
447
447
|
displayName: string;
|
448
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
448
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
449
449
|
connectorType: string;
|
450
450
|
/** @description Base resource URL of the data source. No trailing slash. */
|
451
451
|
baseUrl: string;
|
@@ -1651,7 +1651,7 @@ interface external$h {
|
|
1651
1651
|
id: string;
|
1652
1652
|
/** @description Display name of the data source */
|
1653
1653
|
displayName: string;
|
1654
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
1654
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
1655
1655
|
connectorType: string;
|
1656
1656
|
/** @description Base resource URL of the data source. No trailing slash. */
|
1657
1657
|
baseUrl: string;
|
@@ -2895,7 +2895,7 @@ interface external$g {
|
|
2895
2895
|
id: string;
|
2896
2896
|
/** @description Display name of the data source */
|
2897
2897
|
displayName: string;
|
2898
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
2898
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
2899
2899
|
connectorType: string;
|
2900
2900
|
/** @description Base resource URL of the data source. No trailing slash. */
|
2901
2901
|
baseUrl: string;
|
@@ -4069,7 +4069,7 @@ interface external$f {
|
|
4069
4069
|
id: string;
|
4070
4070
|
/** @description Display name of the data source */
|
4071
4071
|
displayName: string;
|
4072
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
4072
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
4073
4073
|
connectorType: string;
|
4074
4074
|
/** @description Base resource URL of the data source. No trailing slash. */
|
4075
4075
|
baseUrl: string;
|
@@ -5632,7 +5632,7 @@ interface external$e {
|
|
5632
5632
|
id: string;
|
5633
5633
|
/** @description Display name of the data source */
|
5634
5634
|
displayName: string;
|
5635
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
5635
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
5636
5636
|
connectorType: string;
|
5637
5637
|
/** @description Base resource URL of the data source. No trailing slash. */
|
5638
5638
|
baseUrl: string;
|
@@ -6740,7 +6740,7 @@ interface external$d {
|
|
6740
6740
|
id: string;
|
6741
6741
|
/** @description Display name of the data source */
|
6742
6742
|
displayName: string;
|
6743
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
6743
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
6744
6744
|
connectorType: string;
|
6745
6745
|
/** @description Base resource URL of the data source. No trailing slash. */
|
6746
6746
|
baseUrl: string;
|
@@ -7905,7 +7905,7 @@ interface external$c {
|
|
7905
7905
|
id: string;
|
7906
7906
|
/** @description Display name of the data source */
|
7907
7907
|
displayName: string;
|
7908
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
7908
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
7909
7909
|
connectorType: string;
|
7910
7910
|
/** @description Base resource URL of the data source. No trailing slash. */
|
7911
7911
|
baseUrl: string;
|
@@ -9007,7 +9007,7 @@ interface external$b {
|
|
9007
9007
|
id: string;
|
9008
9008
|
/** @description Display name of the data source */
|
9009
9009
|
displayName: string;
|
9010
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
9010
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
9011
9011
|
connectorType: string;
|
9012
9012
|
/** @description Base resource URL of the data source. No trailing slash. */
|
9013
9013
|
baseUrl: string;
|
@@ -10144,7 +10144,7 @@ interface external$a {
|
|
10144
10144
|
id: string;
|
10145
10145
|
/** @description Display name of the data source */
|
10146
10146
|
displayName: string;
|
10147
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
10147
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
10148
10148
|
connectorType: string;
|
10149
10149
|
/** @description Base resource URL of the data source. No trailing slash. */
|
10150
10150
|
baseUrl: string;
|
@@ -11281,7 +11281,7 @@ interface external$9 {
|
|
11281
11281
|
id: string;
|
11282
11282
|
/** @description Display name of the data source */
|
11283
11283
|
displayName: string;
|
11284
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
11284
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
11285
11285
|
connectorType: string;
|
11286
11286
|
/** @description Base resource URL of the data source. No trailing slash. */
|
11287
11287
|
baseUrl: string;
|
@@ -13093,7 +13093,7 @@ interface external$7 {
|
|
13093
13093
|
id: string;
|
13094
13094
|
/** @description Display name of the data source */
|
13095
13095
|
displayName: string;
|
13096
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
13096
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
13097
13097
|
connectorType: string;
|
13098
13098
|
/** @description Base resource URL of the data source. No trailing slash. */
|
13099
13099
|
baseUrl: string;
|
@@ -14201,7 +14201,7 @@ interface external$6 {
|
|
14201
14201
|
id: string;
|
14202
14202
|
/** @description Display name of the data source */
|
14203
14203
|
displayName: string;
|
14204
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
14204
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
14205
14205
|
connectorType: string;
|
14206
14206
|
/** @description Base resource URL of the data source. No trailing slash. */
|
14207
14207
|
baseUrl: string;
|
@@ -15449,7 +15449,7 @@ interface external$5 {
|
|
15449
15449
|
id: string;
|
15450
15450
|
/** @description Display name of the data source */
|
15451
15451
|
displayName: string;
|
15452
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
15452
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
15453
15453
|
connectorType: string;
|
15454
15454
|
/** @description Base resource URL of the data source. No trailing slash. */
|
15455
15455
|
baseUrl: string;
|
@@ -18149,7 +18149,7 @@ interface external$4 {
|
|
18149
18149
|
id: string;
|
18150
18150
|
/** @description Display name of the data source */
|
18151
18151
|
displayName: string;
|
18152
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
18152
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
18153
18153
|
connectorType: string;
|
18154
18154
|
/** @description Base resource URL of the data source. No trailing slash. */
|
18155
18155
|
baseUrl: string;
|
@@ -19508,9 +19508,9 @@ type CompositionPutParameters = Api['put']['requestBody']['content']['applicatio
|
|
19508
19508
|
type CompositionDeleteParameters = Api['delete']['requestBody']['content']['application/json'];
|
19509
19509
|
/** Defines an editable parameter on a component. */
|
19510
19510
|
type ComponentParameter<TValue = unknown> = Omit<SharedComponents['ComponentParameter'], 'value'> & {
|
19511
|
-
/** The
|
19511
|
+
/** The value of the parameter */
|
19512
19512
|
value?: TValue;
|
19513
|
-
/** The
|
19513
|
+
/** The value of the localizable parameter */
|
19514
19514
|
locales?: Record<string, TValue>;
|
19515
19515
|
};
|
19516
19516
|
/** Parameter which stores blocks of entry types */
|
@@ -19714,7 +19714,7 @@ type CanvasClientOptions = ClientOptions & {
|
|
19714
19714
|
edgeApiHost?: string;
|
19715
19715
|
disableSWR?: boolean;
|
19716
19716
|
};
|
19717
|
-
type CompositionFilters = Partial<Record<'entityId' | '
|
19717
|
+
type CompositionFilters = Partial<Record<'entityId' | 'type' | 'uiStatus', {
|
19718
19718
|
eq: string;
|
19719
19719
|
} | {
|
19720
19720
|
neq: string;
|
@@ -19722,7 +19722,7 @@ type CompositionFilters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'ui
|
|
19722
19722
|
in: string[];
|
19723
19723
|
} | {
|
19724
19724
|
nin: string[];
|
19725
|
-
}> | Record<`${'entityId' | '
|
19725
|
+
}> | Record<`${'entityId' | 'type' | 'uiStatus'}[${'eq' | 'neq'}]`, string> | Record<`${'entityId' | 'type' | 'uiStatus'}[${'in' | 'nin'}]`, string[]> | Record<'created' | 'modified', {
|
19726
19726
|
eq: string;
|
19727
19727
|
} | {
|
19728
19728
|
neq: string;
|
@@ -19738,7 +19738,7 @@ type CompositionFilters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'ui
|
|
19738
19738
|
lt: string;
|
19739
19739
|
} | {
|
19740
19740
|
lte: string;
|
19741
|
-
}> | Record<`${'created' | 'modified'}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string> | Record<`${'created' | 'modified'}[${'in' | 'nin'}]`, string[]> | Record<'locale' | 'patternId', {
|
19741
|
+
}> | Record<`${'created' | 'modified'}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string> | Record<`${'created' | 'modified'}[${'in' | 'nin'}]`, string[]> | Record<'locale' | 'releaseId' | 'patternId' | 'projectMapId' | 'projectMapNodeId', {
|
19742
19742
|
eq: string;
|
19743
19743
|
} | {
|
19744
19744
|
neq: string;
|
@@ -19748,8 +19748,10 @@ type CompositionFilters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'ui
|
|
19748
19748
|
nin: string[];
|
19749
19749
|
} | {
|
19750
19750
|
def: boolean | 'true' | 'false';
|
19751
|
-
}> | Record<`${'locale' | 'patternId'}[${'eq' | 'neq'}]`, string> | Record<`${'locale' | 'patternId'}[${'in' | 'nin'}]`, string[]> | Record<`${'locale' | 'patternId'}[def]`, boolean | 'true' | 'false'> | Record<'name' | 'slug', {
|
19751
|
+
}> | Record<`${'locale' | 'releaseId' | 'patternId' | 'projectMapId' | 'projectMapNodeId'}[${'eq' | 'neq'}]`, string> | Record<`${'locale' | 'releaseId' | 'patternId' | 'projectMapId' | 'projectMapNodeId'}[${'in' | 'nin'}]`, string[]> | Record<`${'locale' | 'releaseId' | 'patternId' | 'projectMapId' | 'projectMapNodeId'}[def]`, boolean | 'true' | 'false'> | Record<'name' | 'slug', {
|
19752
19752
|
match: string;
|
19753
|
+
} | {
|
19754
|
+
starts: string;
|
19753
19755
|
} | {
|
19754
19756
|
eq: string;
|
19755
19757
|
} | {
|
@@ -19760,12 +19762,14 @@ type CompositionFilters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'ui
|
|
19760
19762
|
nin: string[];
|
19761
19763
|
} | {
|
19762
19764
|
def: boolean | 'true' | 'false';
|
19763
|
-
}> | Record<`${'name' | 'slug'}[${'match' | 'eq' | 'neq'}]`, string> | Record<`${'name' | 'slug'}[${'in' | 'nin'}]`, string[]> | Record<`${'name' | 'slug'}[def]`, boolean | 'true' | 'false'> | Record<'isPattern', {
|
19765
|
+
}> | Record<`${'name' | 'slug'}[${'match' | 'starts' | 'eq' | 'neq'}]`, string> | Record<`${'name' | 'slug'}[${'in' | 'nin'}]`, string[]> | Record<`${'name' | 'slug'}[def]`, boolean | 'true' | 'false'> | Record<'isPattern', {
|
19764
19766
|
eq: boolean | 'true' | 'false';
|
19765
19767
|
} | {
|
19766
19768
|
neq: boolean | 'true' | 'false';
|
19767
19769
|
}> | Record<`isPattern[${'eq' | 'neq'}]`, boolean | 'true' | 'false'> | Record<`parameters.${string}`, {
|
19768
19770
|
match: string;
|
19771
|
+
} | {
|
19772
|
+
starts: string;
|
19769
19773
|
} | {
|
19770
19774
|
eq: string | number | boolean;
|
19771
19775
|
} | {
|
@@ -19784,7 +19788,7 @@ type CompositionFilters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'ui
|
|
19784
19788
|
lte: string | number;
|
19785
19789
|
} | {
|
19786
19790
|
def: boolean | 'true' | 'false';
|
19787
|
-
}> | Record<`parameters.${string}[match]`, string> | Record<`parameters.${string}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string | number> | Record<`parameters.${string}[${'in' | 'nin'}]`, (string | number)[]> | Record<`parameters.${string}[def]`, boolean | 'true' | 'false'>>;
|
19791
|
+
}> | Record<`parameters.${string}[${'match' | 'starts'}]`, string> | Record<`parameters.${string}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string | number> | Record<`parameters.${string}[${'in' | 'nin'}]`, (string | number)[]> | Record<`parameters.${string}[def]`, boolean | 'true' | 'false'>>;
|
19788
19792
|
declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
19789
19793
|
private edgeApiHost;
|
19790
19794
|
private edgeApiRequestInit?;
|
@@ -20847,7 +20851,7 @@ interface external$3 {
|
|
20847
20851
|
id: string;
|
20848
20852
|
/** @description Display name of the data source */
|
20849
20853
|
displayName: string;
|
20850
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
20854
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
20851
20855
|
connectorType: string;
|
20852
20856
|
/** @description Base resource URL of the data source. No trailing slash. */
|
20853
20857
|
baseUrl: string;
|
@@ -21473,6 +21477,8 @@ interface paths$2 {
|
|
21473
21477
|
/** Adds or updates a release */
|
21474
21478
|
put: {
|
21475
21479
|
responses: {
|
21480
|
+
/** OK */
|
21481
|
+
201: unknown;
|
21476
21482
|
/** OK */
|
21477
21483
|
204: never;
|
21478
21484
|
400: external$2["swagger.yml"]["components"]["responses"]["BadRequestError"];
|
@@ -21670,7 +21676,7 @@ type ContentClientOptions = ClientOptions & {
|
|
21670
21676
|
edgeApiHost?: string;
|
21671
21677
|
disableSWR?: boolean;
|
21672
21678
|
};
|
21673
|
-
type Filters = Partial<Record<'entityId' | '
|
21679
|
+
type Filters = Partial<Record<'entityId' | 'type' | 'uiStatus', {
|
21674
21680
|
eq: string;
|
21675
21681
|
} | {
|
21676
21682
|
neq: string;
|
@@ -21678,7 +21684,7 @@ type Filters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'uiStatus', {
|
|
21678
21684
|
in: string[];
|
21679
21685
|
} | {
|
21680
21686
|
nin: string[];
|
21681
|
-
}> | Record<`${'entityId' | '
|
21687
|
+
}> | Record<`${'entityId' | 'type' | 'uiStatus'}[${'eq' | 'neq'}]`, string> | Record<`${'entityId' | 'type' | 'uiStatus'}[${'in' | 'nin'}]`, string[]> | Record<'created' | 'modified', {
|
21682
21688
|
eq: string;
|
21683
21689
|
} | {
|
21684
21690
|
neq: string;
|
@@ -21694,7 +21700,7 @@ type Filters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'uiStatus', {
|
|
21694
21700
|
lt: string;
|
21695
21701
|
} | {
|
21696
21702
|
lte: string;
|
21697
|
-
}> | Record<`${'created' | 'modified'}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string> | Record<`${'created' | 'modified'}[${'in' | 'nin'}]`, string[]> | Record<'locale' | 'patternId', {
|
21703
|
+
}> | Record<`${'created' | 'modified'}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string> | Record<`${'created' | 'modified'}[${'in' | 'nin'}]`, string[]> | Record<'locale' | 'releaseId' | 'patternId', {
|
21698
21704
|
eq: string;
|
21699
21705
|
} | {
|
21700
21706
|
neq: string;
|
@@ -21704,8 +21710,10 @@ type Filters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'uiStatus', {
|
|
21704
21710
|
nin: string[];
|
21705
21711
|
} | {
|
21706
21712
|
def: boolean | 'true' | 'false';
|
21707
|
-
}> | Record<`${'locale' | 'patternId'}[${'eq' | 'neq'}]`, string> | Record<`${'locale' | 'patternId'}[${'in' | 'nin'}]`, string[]> | Record<`${'locale' | 'patternId'}[def]`, boolean | 'true' | 'false'> | Record<'name' | 'slug', {
|
21713
|
+
}> | Record<`${'locale' | 'releaseId' | 'patternId'}[${'eq' | 'neq'}]`, string> | Record<`${'locale' | 'releaseId' | 'patternId'}[${'in' | 'nin'}]`, string[]> | Record<`${'locale' | 'releaseId' | 'patternId'}[def]`, boolean | 'true' | 'false'> | Record<'name' | 'slug', {
|
21708
21714
|
match: string;
|
21715
|
+
} | {
|
21716
|
+
starts: string;
|
21709
21717
|
} | {
|
21710
21718
|
eq: string;
|
21711
21719
|
} | {
|
@@ -21716,8 +21724,10 @@ type Filters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'uiStatus', {
|
|
21716
21724
|
nin: string[];
|
21717
21725
|
} | {
|
21718
21726
|
def: boolean | 'true' | 'false';
|
21719
|
-
}> | Record<`${'name' | 'slug'}[${'match' | 'eq' | 'neq'}]`, string> | Record<`${'name' | 'slug'}[${'in' | 'nin'}]`, string[]> | Record<`${'name' | 'slug'}[def]`, boolean | 'true' | 'false'> | Record<'creator' | 'author', {
|
21727
|
+
}> | Record<`${'name' | 'slug'}[${'match' | 'starts' | 'eq' | 'neq'}]`, string> | Record<`${'name' | 'slug'}[${'in' | 'nin'}]`, string[]> | Record<`${'name' | 'slug'}[def]`, boolean | 'true' | 'false'> | Record<'creator' | 'author', {
|
21720
21728
|
match: string;
|
21729
|
+
} | {
|
21730
|
+
starts: string;
|
21721
21731
|
} | {
|
21722
21732
|
eq: string;
|
21723
21733
|
} | {
|
@@ -21726,12 +21736,14 @@ type Filters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'uiStatus', {
|
|
21726
21736
|
in: string[];
|
21727
21737
|
} | {
|
21728
21738
|
nin: string[];
|
21729
|
-
}> | Record<`${'creator' | 'author'}[${'match' | 'eq' | 'neq'}]`, string> | Record<`${'creator' | 'author'}[${'in' | 'nin'}]`, string[]> | Record<'isPattern', {
|
21739
|
+
}> | Record<`${'creator' | 'author'}[${'match' | 'starts' | 'eq' | 'neq'}]`, string> | Record<`${'creator' | 'author'}[${'in' | 'nin'}]`, string[]> | Record<'isPattern', {
|
21730
21740
|
eq: boolean | 'true' | 'false';
|
21731
21741
|
} | {
|
21732
21742
|
neq: boolean | 'true' | 'false';
|
21733
21743
|
}> | Record<`isPattern[${'eq' | 'neq'}]`, boolean | 'true' | 'false'> | Record<`fields.${string}`, {
|
21734
21744
|
match: string;
|
21745
|
+
} | {
|
21746
|
+
starts: string;
|
21735
21747
|
} | {
|
21736
21748
|
eq: string | number | boolean;
|
21737
21749
|
} | {
|
@@ -21750,7 +21762,7 @@ type Filters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'uiStatus', {
|
|
21750
21762
|
lte: string | number;
|
21751
21763
|
} | {
|
21752
21764
|
def: boolean | 'true' | 'false';
|
21753
|
-
}> | Record<`fields.${string}[match]`, string> | Record<`fields.${string}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string | number> | Record<`fields.${string}[${'in' | 'nin'}]`, (string | number)[]> | Record<`fields.${string}[def]`, boolean | 'true' | 'false'>>;
|
21765
|
+
}> | Record<`fields.${string}[${'match' | 'starts'}]`, string> | Record<`fields.${string}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string | number> | Record<`fields.${string}[${'in' | 'nin'}]`, (string | number)[]> | Record<`fields.${string}[def]`, boolean | 'true' | 'false'>>;
|
21754
21766
|
declare class ContentClient extends ApiClient<ContentClientOptions> {
|
21755
21767
|
#private;
|
21756
21768
|
private edgeApiHost;
|
@@ -22247,11 +22259,10 @@ type UpdateCompositionMessage = {
|
|
22247
22259
|
type: 'update-composition';
|
22248
22260
|
composition: RootComponentInstance;
|
22249
22261
|
hash: number | undefined;
|
22262
|
+
eventTimestamp: number | undefined;
|
22250
22263
|
};
|
22251
|
-
type UpdateCompositionInternalMessage = {
|
22264
|
+
type UpdateCompositionInternalMessage = Omit<UpdateCompositionMessage, 'type'> & {
|
22252
22265
|
type: 'update-composition-internal';
|
22253
|
-
composition: RootComponentInstance;
|
22254
|
-
hash: number | undefined;
|
22255
22266
|
};
|
22256
22267
|
type AddComponentMessage = {
|
22257
22268
|
type: 'add-component';
|
@@ -22371,7 +22382,7 @@ type Channel = {
|
|
22371
22382
|
selectParameter: (options: Omit<SelectParameterMessage, 'type'>) => void;
|
22372
22383
|
openParameterEditor: (options: Omit<OpenParameterEditorMessage, 'type'>) => void;
|
22373
22384
|
updateComposition: (composition: RootComponentInstance, secret?: string) => void;
|
22374
|
-
updateCompositionInternal: (composition: RootComponentInstance, hash?: number) => void;
|
22385
|
+
updateCompositionInternal: (composition: RootComponentInstance, hash?: number, eventTimestamp?: number) => void;
|
22375
22386
|
addComponent: (options: Omit<AddComponentMessage, 'type'>) => void;
|
22376
22387
|
moveComponent: (options: Omit<MoveComponentMessage, 'type'>) => void;
|
22377
22388
|
updateComponentParameter: (options: Omit<UpdateComponentParameterMessage, 'type'>) => void;
|
@@ -23118,6 +23129,16 @@ interface FlattenValuesOptions {
|
|
23118
23129
|
declare function getPropertyValue<TValue, T extends ComponentParameter<TValue>>(parameter: T): TValue;
|
23119
23130
|
declare function getPropertyValue(parameter: null): null;
|
23120
23131
|
declare function getPropertyValue(parameter: undefined): undefined;
|
23132
|
+
/**
|
23133
|
+
* Get the localized values of a component parameter
|
23134
|
+
* or a field attached to an Entry, Block or Asset.
|
23135
|
+
*
|
23136
|
+
* The values are returned as a Map where the key is the locale,
|
23137
|
+
* or undefined for the non-localized parameter.
|
23138
|
+
*/
|
23139
|
+
declare function getLocalizedPropertyValues<TValue, T extends ComponentParameter<TValue>>(parameter: T): Map<string | undefined, TValue>;
|
23140
|
+
declare function getLocalizedPropertyValues(parameter: null): null;
|
23141
|
+
declare function getLocalizedPropertyValues(parameter: undefined): undefined;
|
23121
23142
|
type DataWithProperties = Pick<ComponentInstance, 'parameters'> | Pick<EntryData, 'fields'>;
|
23122
23143
|
declare function flattenValues(data: null, options?: FlattenValuesOptions): null;
|
23123
23144
|
declare function flattenValues(data: undefined, options?: FlattenValuesOptions): undefined;
|
@@ -23186,4 +23207,4 @@ declare function parseVariableExpression(serialized: string, onToken?: (token: s
|
|
23186
23207
|
|
23187
23208
|
declare const CanvasClientError: typeof ApiClientError;
|
23188
23209
|
|
23189
|
-
export { ASSETS_SOURCE_CUSTOM_URL, ASSETS_SOURCE_UNIFORM, ASSET_PARAMETER_TYPE, ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, type AddComponentMessage, type AssetParamValue, type AssetParamValueItem, type BatchEnhancer, BatchEntry, type BatchInvalidationPayload, type BindVariablesOptions, type BindVariablesResult, type BindVariablesToObjectOptions, type BlockLocationReference, type BlockValue, CANVAS_BLOCK_PARAM_TYPE, CANVAS_DRAFT_STATE, CANVAS_EDITOR_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_SLOT_SECTION_SLOT, CANVAS_SLOT_SECTION_TYPE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CanvasClient, CanvasClientError, type CanvasDefinitions, type CategoriesDeleteParameters, type CategoriesGetParameters, type CategoriesGetResponse, type CategoriesPutParameters, type Category, CategoryClient, type Channel, type ChannelMessage, type ChannelSubscription, ChildEnhancerBuilder, type ComponentDefinition, type ComponentDefinitionDeleteParameters, type ComponentDefinitionGetParameters, type ComponentDefinitionGetResponse, type ComponentDefinitionParameter, type ComponentDefinitionPermission, type ComponentDefinitionPutParameters, type ComponentDefinitionSlot, type ComponentDefinitionSlugSettings, type ComponentDefinitionVariant, type ComponentEnhancer, type ComponentEnhancerFunction, type ComponentEnhancerOptions, type ComponentInstance, type ComponentInstanceContextualEditing, type ComponentInstanceHistoryEntry, type ComponentInstanceHistoryGetParameters, type ComponentInstanceHistoryGetResponse, type ComponentLocationReference, type ComponentLocationReferenceV2, type ComponentOverridability, type ComponentOverride, type ComponentOverrides, type ComponentParameter, type ComponentParameterBlock, type ComponentParameterContextualEditing, type ComponentParameterEnhancer, type ComponentParameterEnhancerFunction, type ComponentParameterEnhancerOptions, type CompositionDataDiagnostic, type CompositionDeleteParameters, type CompositionDiagnostics, type CompositionFilters, type CompositionGetByComponentIdParameters, type CompositionGetByIdParameters, type CompositionGetByNodeIdParameters, type CompositionGetByNodePathParameters, type CompositionGetBySlugParameters, type CompositionGetListResponse, type CompositionGetOrderBy, type CompositionGetParameters, type CompositionGetResponse, type CompositionGetValidResponses, type CompositionIssue, type CompositionPatternIssue, type CompositionPutParameters, type CompositionResolvedGetResponse, type CompositionResolvedListResponse, type CompositionUIStatus, ContentClient, type ContentType, type ContentTypeField, type ContextualEditingComponentReference, type CopiedComponentSubtree, type DataDiagnostic, type DataElementBindingIssue, type DataElementConnectionDefinition, type DataElementConnectionFailureAction, type DataElementConnectionFailureLogLevel, type DataResolutionConfigIssue, type DataResolutionIssue, type DataResolutionOption, type DataResolutionOptionNegative, type DataResolutionOptionPositive, type DataResolutionParameters, type DataResourceDefinition, type DataResourceDefinitions, type DataResourceIssue, type DataResourceVariables, type DataSource, DataSourceClient, type DataSourceDeleteParameters, type DataSourceGetParameters, type DataSourceGetResponse, type DataSourcePutParameters, type DataSourcesGetParameters, type DataSourcesGetResponse, type DataType, DataTypeClient, type DataTypeDeleteParameters, type DataTypeGetParameters, type DataTypeGetResponse, type DataTypePutParameters, type DataVariableDefinition, type DataWithProperties, type DeleteContentTypeOptions, type DeleteEntryOptions, type DismissPlaceholderMessage, type DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_MAX_CACHE_TTL, EDGE_MIN_CACHE_TTL, EMPTY_COMPOSITION, type EdgehancersDiagnostics, type EdgehancersWholeResponseCacheDiagnostics, type EditorStateUpdatedMessage, EnhancerBuilder, type EnhancerContext, type EnhancerError, type EntriesGetParameters, type EntriesGetResponse, type EntriesHistoryGetParameters, type EntriesHistoryGetResponse, type EntriesResolvedListResponse, type Entry, type EntryData, type EntryList, type EventNames, type Filters, type FindInNodeTreeReference, type FlattenProperty, type FlattenValues, type FlattenValuesOptions, type GetContentTypesOptions, type GetContentTypesResponse, type GetEntriesOptions, type GetEntriesResponse, type GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_FORCED_SETTINGS_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, type InvalidationPayload, LOCALE_DYNAMIC_INPUT_NAME, type LimitPolicy, type LinkComponentParameterValue, type LinkParamConfiguration, type LinkParamValue, type LinkParameterType, type LinkTypeConfiguration, type Locale, LocaleClient, type LocaleDeleteParameters, type LocalePutParameters, type LocalesGetParameters, type LocalesGetResponse, type LocalizeDeprecatedOptions, type LocalizeModernOptions, type MessageHandler, type MoveComponentMessage, type NodeLocationReference, type NonProjectMapLinkParamValue, type OpenParameterEditorMessage, type OverrideOptions, PLACEHOLDER_ID, type PatternIssue, type PreviewEventBus, type PreviewPanelSettings, type ProjectMapLinkComponentParameterValue, type ProjectMapLinkParamValue, type Prompt, PromptClient, type PromptsDeleteParameters, type PromptsGetParameters, type PromptsGetResponse, type PromptsPutParameters, type PutContentTypeBody, type PutEntryBody, type ReadyMessage, RelationshipClient, type RelationshipResultInstance, type Release, ReleaseClient, type ReleaseContent, ReleaseContentsClient, type ReleaseContentsDeleteBody, type ReleaseContentsGetParameters, type ReleaseContentsGetResponse, type ReleaseDeleteParameters, type ReleasePatchParameters, type ReleasePutParameters, type ReleaseState, type ReleasesGetParameters, type ReleasesGetResponse, type ReportRenderedCompositionsMessage, type RequestComponentSuggestionMessage, type ResolvedRouteGetResponse, type RichTextBuiltInElement, type RichTextBuiltInFormat, type RichTextParamConfiguration, type RichTextParamValue, type RootComponentInstance, type RootEntryReference, type RootLocationReference, RouteClient, type RouteDynamicInputs, type RouteGetParameters, type RouteGetResponse, type RouteGetResponseComposition, type RouteGetResponseEdgehancedComposition, type RouteGetResponseEdgehancedNotFound, type RouteGetResponseNotFound, type RouteGetResponseRedirect, SECRET_QUERY_STRING_PARAM, type SelectComponentMessage, type SelectParameterMessage, type SpecificProjectMap, type SubscribeToCompositionOptions, type SuggestComponentMessage, type TreeNodeInfoTypes, type TriggerComponentActionMessage, type TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UncachedContentClient, UniqueBatchEntries, type UnsubscribeCallback, type UpdateComponentParameterMessage, type UpdateComponentReferencesMessage, type UpdateCompositionInternalMessage, type UpdateCompositionMessage, type UpdateContextualEditingStateInternalMessage, type UpdateFeatureFlagsMessage, type UpdatePreviewSettingsMessage, type WalkComponentTreeActions, type WalkNodeTreeActions, type WalkNodeTreeOptions, bindVariables, bindVariablesToObject, compose, convertEntryToPutEntry, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, createVariableReference, enhance, extractLocales, findParameterInNodeTree, flattenValues, generateComponentPlaceholderId, generateHash, getBlockValue, getChannelName, getComponentJsonPointer, getComponentPath, getNounForLocation, getNounForNode, getParameterAttributes, getPropertiesValue, getPropertyValue, isAddComponentMessage, isAllowedReferrer, isAssetParamValue, isAssetParamValueItem, isComponentActionMessage, isComponentPlaceholderId, isDismissPlaceholderMessage, isEntryData, isMovingComponentMessage, isNestedNodeType, isOpenParameterEditorMessage, isReadyMessage, isReportRenderedCompositionsMessage, isRequestComponentSuggestionMessage, isRootEntryReference, isSelectComponentMessage, isSelectParameterMessage, isSuggestComponentMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateComponentReferencesMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdateFeatureFlagsMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseComponentPlaceholderId, parseVariableExpression, subscribeToComposition, walkComponentTree, walkNodeTree };
|
23210
|
+
export { ASSETS_SOURCE_CUSTOM_URL, ASSETS_SOURCE_UNIFORM, ASSET_PARAMETER_TYPE, ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, type AddComponentMessage, type AssetParamValue, type AssetParamValueItem, type BatchEnhancer, BatchEntry, type BatchInvalidationPayload, type BindVariablesOptions, type BindVariablesResult, type BindVariablesToObjectOptions, type BlockLocationReference, type BlockValue, CANVAS_BLOCK_PARAM_TYPE, CANVAS_DRAFT_STATE, CANVAS_EDITOR_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_SLOT_SECTION_SLOT, CANVAS_SLOT_SECTION_TYPE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CanvasClient, CanvasClientError, type CanvasDefinitions, type CategoriesDeleteParameters, type CategoriesGetParameters, type CategoriesGetResponse, type CategoriesPutParameters, type Category, CategoryClient, type Channel, type ChannelMessage, type ChannelSubscription, ChildEnhancerBuilder, type ComponentDefinition, type ComponentDefinitionDeleteParameters, type ComponentDefinitionGetParameters, type ComponentDefinitionGetResponse, type ComponentDefinitionParameter, type ComponentDefinitionPermission, type ComponentDefinitionPutParameters, type ComponentDefinitionSlot, type ComponentDefinitionSlugSettings, type ComponentDefinitionVariant, type ComponentEnhancer, type ComponentEnhancerFunction, type ComponentEnhancerOptions, type ComponentInstance, type ComponentInstanceContextualEditing, type ComponentInstanceHistoryEntry, type ComponentInstanceHistoryGetParameters, type ComponentInstanceHistoryGetResponse, type ComponentLocationReference, type ComponentLocationReferenceV2, type ComponentOverridability, type ComponentOverride, type ComponentOverrides, type ComponentParameter, type ComponentParameterBlock, type ComponentParameterContextualEditing, type ComponentParameterEnhancer, type ComponentParameterEnhancerFunction, type ComponentParameterEnhancerOptions, type CompositionDataDiagnostic, type CompositionDeleteParameters, type CompositionDiagnostics, type CompositionFilters, type CompositionGetByComponentIdParameters, type CompositionGetByIdParameters, type CompositionGetByNodeIdParameters, type CompositionGetByNodePathParameters, type CompositionGetBySlugParameters, type CompositionGetListResponse, type CompositionGetOrderBy, type CompositionGetParameters, type CompositionGetResponse, type CompositionGetValidResponses, type CompositionIssue, type CompositionPatternIssue, type CompositionPutParameters, type CompositionResolvedGetResponse, type CompositionResolvedListResponse, type CompositionUIStatus, ContentClient, type ContentType, type ContentTypeField, type ContextualEditingComponentReference, type CopiedComponentSubtree, type DataDiagnostic, type DataElementBindingIssue, type DataElementConnectionDefinition, type DataElementConnectionFailureAction, type DataElementConnectionFailureLogLevel, type DataResolutionConfigIssue, type DataResolutionIssue, type DataResolutionOption, type DataResolutionOptionNegative, type DataResolutionOptionPositive, type DataResolutionParameters, type DataResourceDefinition, type DataResourceDefinitions, type DataResourceIssue, type DataResourceVariables, type DataSource, DataSourceClient, type DataSourceDeleteParameters, type DataSourceGetParameters, type DataSourceGetResponse, type DataSourcePutParameters, type DataSourcesGetParameters, type DataSourcesGetResponse, type DataType, DataTypeClient, type DataTypeDeleteParameters, type DataTypeGetParameters, type DataTypeGetResponse, type DataTypePutParameters, type DataVariableDefinition, type DataWithProperties, type DeleteContentTypeOptions, type DeleteEntryOptions, type DismissPlaceholderMessage, type DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_MAX_CACHE_TTL, EDGE_MIN_CACHE_TTL, EMPTY_COMPOSITION, type EdgehancersDiagnostics, type EdgehancersWholeResponseCacheDiagnostics, type EditorStateUpdatedMessage, EnhancerBuilder, type EnhancerContext, type EnhancerError, type EntriesGetParameters, type EntriesGetResponse, type EntriesHistoryGetParameters, type EntriesHistoryGetResponse, type EntriesResolvedListResponse, type Entry, type EntryData, type EntryList, type EventNames, type Filters, type FindInNodeTreeReference, type FlattenProperty, type FlattenValues, type FlattenValuesOptions, type GetContentTypesOptions, type GetContentTypesResponse, type GetEntriesOptions, type GetEntriesResponse, type GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_FORCED_SETTINGS_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, type InvalidationPayload, LOCALE_DYNAMIC_INPUT_NAME, type LimitPolicy, type LinkComponentParameterValue, type LinkParamConfiguration, type LinkParamValue, type LinkParameterType, type LinkTypeConfiguration, type Locale, LocaleClient, type LocaleDeleteParameters, type LocalePutParameters, type LocalesGetParameters, type LocalesGetResponse, type LocalizeDeprecatedOptions, type LocalizeModernOptions, type MessageHandler, type MoveComponentMessage, type NodeLocationReference, type NonProjectMapLinkParamValue, type OpenParameterEditorMessage, type OverrideOptions, PLACEHOLDER_ID, type PatternIssue, type PreviewEventBus, type PreviewPanelSettings, type ProjectMapLinkComponentParameterValue, type ProjectMapLinkParamValue, type Prompt, PromptClient, type PromptsDeleteParameters, type PromptsGetParameters, type PromptsGetResponse, type PromptsPutParameters, type PutContentTypeBody, type PutEntryBody, type ReadyMessage, RelationshipClient, type RelationshipResultInstance, type Release, ReleaseClient, type ReleaseContent, ReleaseContentsClient, type ReleaseContentsDeleteBody, type ReleaseContentsGetParameters, type ReleaseContentsGetResponse, type ReleaseDeleteParameters, type ReleasePatchParameters, type ReleasePutParameters, type ReleaseState, type ReleasesGetParameters, type ReleasesGetResponse, type ReportRenderedCompositionsMessage, type RequestComponentSuggestionMessage, type ResolvedRouteGetResponse, type RichTextBuiltInElement, type RichTextBuiltInFormat, type RichTextParamConfiguration, type RichTextParamValue, type RootComponentInstance, type RootEntryReference, type RootLocationReference, RouteClient, type RouteDynamicInputs, type RouteGetParameters, type RouteGetResponse, type RouteGetResponseComposition, type RouteGetResponseEdgehancedComposition, type RouteGetResponseEdgehancedNotFound, type RouteGetResponseNotFound, type RouteGetResponseRedirect, SECRET_QUERY_STRING_PARAM, type SelectComponentMessage, type SelectParameterMessage, type SpecificProjectMap, type SubscribeToCompositionOptions, type SuggestComponentMessage, type TreeNodeInfoTypes, type TriggerComponentActionMessage, type TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UncachedContentClient, UniqueBatchEntries, type UnsubscribeCallback, type UpdateComponentParameterMessage, type UpdateComponentReferencesMessage, type UpdateCompositionInternalMessage, type UpdateCompositionMessage, type UpdateContextualEditingStateInternalMessage, type UpdateFeatureFlagsMessage, type UpdatePreviewSettingsMessage, type WalkComponentTreeActions, type WalkNodeTreeActions, type WalkNodeTreeOptions, bindVariables, bindVariablesToObject, compose, convertEntryToPutEntry, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, createVariableReference, enhance, extractLocales, findParameterInNodeTree, flattenValues, generateComponentPlaceholderId, generateHash, getBlockValue, getChannelName, getComponentJsonPointer, getComponentPath, getLocalizedPropertyValues, getNounForLocation, getNounForNode, getParameterAttributes, getPropertiesValue, getPropertyValue, isAddComponentMessage, isAllowedReferrer, isAssetParamValue, isAssetParamValueItem, isComponentActionMessage, isComponentPlaceholderId, isDismissPlaceholderMessage, isEntryData, isMovingComponentMessage, isNestedNodeType, isOpenParameterEditorMessage, isReadyMessage, isReportRenderedCompositionsMessage, isRequestComponentSuggestionMessage, isRootEntryReference, isSelectComponentMessage, isSelectParameterMessage, isSuggestComponentMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateComponentReferencesMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdateFeatureFlagsMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseComponentPlaceholderId, parseVariableExpression, subscribeToComposition, walkComponentTree, walkNodeTree };
|
package/dist/index.d.ts
CHANGED
@@ -445,7 +445,7 @@ interface components$7 {
|
|
445
445
|
id: string;
|
446
446
|
/** @description Display name of the data source */
|
447
447
|
displayName: string;
|
448
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
448
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
449
449
|
connectorType: string;
|
450
450
|
/** @description Base resource URL of the data source. No trailing slash. */
|
451
451
|
baseUrl: string;
|
@@ -1651,7 +1651,7 @@ interface external$h {
|
|
1651
1651
|
id: string;
|
1652
1652
|
/** @description Display name of the data source */
|
1653
1653
|
displayName: string;
|
1654
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
1654
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
1655
1655
|
connectorType: string;
|
1656
1656
|
/** @description Base resource URL of the data source. No trailing slash. */
|
1657
1657
|
baseUrl: string;
|
@@ -2895,7 +2895,7 @@ interface external$g {
|
|
2895
2895
|
id: string;
|
2896
2896
|
/** @description Display name of the data source */
|
2897
2897
|
displayName: string;
|
2898
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
2898
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
2899
2899
|
connectorType: string;
|
2900
2900
|
/** @description Base resource URL of the data source. No trailing slash. */
|
2901
2901
|
baseUrl: string;
|
@@ -4069,7 +4069,7 @@ interface external$f {
|
|
4069
4069
|
id: string;
|
4070
4070
|
/** @description Display name of the data source */
|
4071
4071
|
displayName: string;
|
4072
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
4072
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
4073
4073
|
connectorType: string;
|
4074
4074
|
/** @description Base resource URL of the data source. No trailing slash. */
|
4075
4075
|
baseUrl: string;
|
@@ -5632,7 +5632,7 @@ interface external$e {
|
|
5632
5632
|
id: string;
|
5633
5633
|
/** @description Display name of the data source */
|
5634
5634
|
displayName: string;
|
5635
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
5635
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
5636
5636
|
connectorType: string;
|
5637
5637
|
/** @description Base resource URL of the data source. No trailing slash. */
|
5638
5638
|
baseUrl: string;
|
@@ -6740,7 +6740,7 @@ interface external$d {
|
|
6740
6740
|
id: string;
|
6741
6741
|
/** @description Display name of the data source */
|
6742
6742
|
displayName: string;
|
6743
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
6743
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
6744
6744
|
connectorType: string;
|
6745
6745
|
/** @description Base resource URL of the data source. No trailing slash. */
|
6746
6746
|
baseUrl: string;
|
@@ -7905,7 +7905,7 @@ interface external$c {
|
|
7905
7905
|
id: string;
|
7906
7906
|
/** @description Display name of the data source */
|
7907
7907
|
displayName: string;
|
7908
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
7908
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
7909
7909
|
connectorType: string;
|
7910
7910
|
/** @description Base resource URL of the data source. No trailing slash. */
|
7911
7911
|
baseUrl: string;
|
@@ -9007,7 +9007,7 @@ interface external$b {
|
|
9007
9007
|
id: string;
|
9008
9008
|
/** @description Display name of the data source */
|
9009
9009
|
displayName: string;
|
9010
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
9010
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
9011
9011
|
connectorType: string;
|
9012
9012
|
/** @description Base resource URL of the data source. No trailing slash. */
|
9013
9013
|
baseUrl: string;
|
@@ -10144,7 +10144,7 @@ interface external$a {
|
|
10144
10144
|
id: string;
|
10145
10145
|
/** @description Display name of the data source */
|
10146
10146
|
displayName: string;
|
10147
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
10147
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
10148
10148
|
connectorType: string;
|
10149
10149
|
/** @description Base resource URL of the data source. No trailing slash. */
|
10150
10150
|
baseUrl: string;
|
@@ -11281,7 +11281,7 @@ interface external$9 {
|
|
11281
11281
|
id: string;
|
11282
11282
|
/** @description Display name of the data source */
|
11283
11283
|
displayName: string;
|
11284
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
11284
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
11285
11285
|
connectorType: string;
|
11286
11286
|
/** @description Base resource URL of the data source. No trailing slash. */
|
11287
11287
|
baseUrl: string;
|
@@ -13093,7 +13093,7 @@ interface external$7 {
|
|
13093
13093
|
id: string;
|
13094
13094
|
/** @description Display name of the data source */
|
13095
13095
|
displayName: string;
|
13096
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
13096
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
13097
13097
|
connectorType: string;
|
13098
13098
|
/** @description Base resource URL of the data source. No trailing slash. */
|
13099
13099
|
baseUrl: string;
|
@@ -14201,7 +14201,7 @@ interface external$6 {
|
|
14201
14201
|
id: string;
|
14202
14202
|
/** @description Display name of the data source */
|
14203
14203
|
displayName: string;
|
14204
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
14204
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
14205
14205
|
connectorType: string;
|
14206
14206
|
/** @description Base resource URL of the data source. No trailing slash. */
|
14207
14207
|
baseUrl: string;
|
@@ -15449,7 +15449,7 @@ interface external$5 {
|
|
15449
15449
|
id: string;
|
15450
15450
|
/** @description Display name of the data source */
|
15451
15451
|
displayName: string;
|
15452
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
15452
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
15453
15453
|
connectorType: string;
|
15454
15454
|
/** @description Base resource URL of the data source. No trailing slash. */
|
15455
15455
|
baseUrl: string;
|
@@ -18149,7 +18149,7 @@ interface external$4 {
|
|
18149
18149
|
id: string;
|
18150
18150
|
/** @description Display name of the data source */
|
18151
18151
|
displayName: string;
|
18152
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
18152
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
18153
18153
|
connectorType: string;
|
18154
18154
|
/** @description Base resource URL of the data source. No trailing slash. */
|
18155
18155
|
baseUrl: string;
|
@@ -19508,9 +19508,9 @@ type CompositionPutParameters = Api['put']['requestBody']['content']['applicatio
|
|
19508
19508
|
type CompositionDeleteParameters = Api['delete']['requestBody']['content']['application/json'];
|
19509
19509
|
/** Defines an editable parameter on a component. */
|
19510
19510
|
type ComponentParameter<TValue = unknown> = Omit<SharedComponents['ComponentParameter'], 'value'> & {
|
19511
|
-
/** The
|
19511
|
+
/** The value of the parameter */
|
19512
19512
|
value?: TValue;
|
19513
|
-
/** The
|
19513
|
+
/** The value of the localizable parameter */
|
19514
19514
|
locales?: Record<string, TValue>;
|
19515
19515
|
};
|
19516
19516
|
/** Parameter which stores blocks of entry types */
|
@@ -19714,7 +19714,7 @@ type CanvasClientOptions = ClientOptions & {
|
|
19714
19714
|
edgeApiHost?: string;
|
19715
19715
|
disableSWR?: boolean;
|
19716
19716
|
};
|
19717
|
-
type CompositionFilters = Partial<Record<'entityId' | '
|
19717
|
+
type CompositionFilters = Partial<Record<'entityId' | 'type' | 'uiStatus', {
|
19718
19718
|
eq: string;
|
19719
19719
|
} | {
|
19720
19720
|
neq: string;
|
@@ -19722,7 +19722,7 @@ type CompositionFilters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'ui
|
|
19722
19722
|
in: string[];
|
19723
19723
|
} | {
|
19724
19724
|
nin: string[];
|
19725
|
-
}> | Record<`${'entityId' | '
|
19725
|
+
}> | Record<`${'entityId' | 'type' | 'uiStatus'}[${'eq' | 'neq'}]`, string> | Record<`${'entityId' | 'type' | 'uiStatus'}[${'in' | 'nin'}]`, string[]> | Record<'created' | 'modified', {
|
19726
19726
|
eq: string;
|
19727
19727
|
} | {
|
19728
19728
|
neq: string;
|
@@ -19738,7 +19738,7 @@ type CompositionFilters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'ui
|
|
19738
19738
|
lt: string;
|
19739
19739
|
} | {
|
19740
19740
|
lte: string;
|
19741
|
-
}> | Record<`${'created' | 'modified'}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string> | Record<`${'created' | 'modified'}[${'in' | 'nin'}]`, string[]> | Record<'locale' | 'patternId', {
|
19741
|
+
}> | Record<`${'created' | 'modified'}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string> | Record<`${'created' | 'modified'}[${'in' | 'nin'}]`, string[]> | Record<'locale' | 'releaseId' | 'patternId' | 'projectMapId' | 'projectMapNodeId', {
|
19742
19742
|
eq: string;
|
19743
19743
|
} | {
|
19744
19744
|
neq: string;
|
@@ -19748,8 +19748,10 @@ type CompositionFilters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'ui
|
|
19748
19748
|
nin: string[];
|
19749
19749
|
} | {
|
19750
19750
|
def: boolean | 'true' | 'false';
|
19751
|
-
}> | Record<`${'locale' | 'patternId'}[${'eq' | 'neq'}]`, string> | Record<`${'locale' | 'patternId'}[${'in' | 'nin'}]`, string[]> | Record<`${'locale' | 'patternId'}[def]`, boolean | 'true' | 'false'> | Record<'name' | 'slug', {
|
19751
|
+
}> | Record<`${'locale' | 'releaseId' | 'patternId' | 'projectMapId' | 'projectMapNodeId'}[${'eq' | 'neq'}]`, string> | Record<`${'locale' | 'releaseId' | 'patternId' | 'projectMapId' | 'projectMapNodeId'}[${'in' | 'nin'}]`, string[]> | Record<`${'locale' | 'releaseId' | 'patternId' | 'projectMapId' | 'projectMapNodeId'}[def]`, boolean | 'true' | 'false'> | Record<'name' | 'slug', {
|
19752
19752
|
match: string;
|
19753
|
+
} | {
|
19754
|
+
starts: string;
|
19753
19755
|
} | {
|
19754
19756
|
eq: string;
|
19755
19757
|
} | {
|
@@ -19760,12 +19762,14 @@ type CompositionFilters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'ui
|
|
19760
19762
|
nin: string[];
|
19761
19763
|
} | {
|
19762
19764
|
def: boolean | 'true' | 'false';
|
19763
|
-
}> | Record<`${'name' | 'slug'}[${'match' | 'eq' | 'neq'}]`, string> | Record<`${'name' | 'slug'}[${'in' | 'nin'}]`, string[]> | Record<`${'name' | 'slug'}[def]`, boolean | 'true' | 'false'> | Record<'isPattern', {
|
19765
|
+
}> | Record<`${'name' | 'slug'}[${'match' | 'starts' | 'eq' | 'neq'}]`, string> | Record<`${'name' | 'slug'}[${'in' | 'nin'}]`, string[]> | Record<`${'name' | 'slug'}[def]`, boolean | 'true' | 'false'> | Record<'isPattern', {
|
19764
19766
|
eq: boolean | 'true' | 'false';
|
19765
19767
|
} | {
|
19766
19768
|
neq: boolean | 'true' | 'false';
|
19767
19769
|
}> | Record<`isPattern[${'eq' | 'neq'}]`, boolean | 'true' | 'false'> | Record<`parameters.${string}`, {
|
19768
19770
|
match: string;
|
19771
|
+
} | {
|
19772
|
+
starts: string;
|
19769
19773
|
} | {
|
19770
19774
|
eq: string | number | boolean;
|
19771
19775
|
} | {
|
@@ -19784,7 +19788,7 @@ type CompositionFilters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'ui
|
|
19784
19788
|
lte: string | number;
|
19785
19789
|
} | {
|
19786
19790
|
def: boolean | 'true' | 'false';
|
19787
|
-
}> | Record<`parameters.${string}[match]`, string> | Record<`parameters.${string}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string | number> | Record<`parameters.${string}[${'in' | 'nin'}]`, (string | number)[]> | Record<`parameters.${string}[def]`, boolean | 'true' | 'false'>>;
|
19791
|
+
}> | Record<`parameters.${string}[${'match' | 'starts'}]`, string> | Record<`parameters.${string}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string | number> | Record<`parameters.${string}[${'in' | 'nin'}]`, (string | number)[]> | Record<`parameters.${string}[def]`, boolean | 'true' | 'false'>>;
|
19788
19792
|
declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
19789
19793
|
private edgeApiHost;
|
19790
19794
|
private edgeApiRequestInit?;
|
@@ -20847,7 +20851,7 @@ interface external$3 {
|
|
20847
20851
|
id: string;
|
20848
20852
|
/** @description Display name of the data source */
|
20849
20853
|
displayName: string;
|
20850
|
-
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an
|
20854
|
+
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an installed integration) */
|
20851
20855
|
connectorType: string;
|
20852
20856
|
/** @description Base resource URL of the data source. No trailing slash. */
|
20853
20857
|
baseUrl: string;
|
@@ -21473,6 +21477,8 @@ interface paths$2 {
|
|
21473
21477
|
/** Adds or updates a release */
|
21474
21478
|
put: {
|
21475
21479
|
responses: {
|
21480
|
+
/** OK */
|
21481
|
+
201: unknown;
|
21476
21482
|
/** OK */
|
21477
21483
|
204: never;
|
21478
21484
|
400: external$2["swagger.yml"]["components"]["responses"]["BadRequestError"];
|
@@ -21670,7 +21676,7 @@ type ContentClientOptions = ClientOptions & {
|
|
21670
21676
|
edgeApiHost?: string;
|
21671
21677
|
disableSWR?: boolean;
|
21672
21678
|
};
|
21673
|
-
type Filters = Partial<Record<'entityId' | '
|
21679
|
+
type Filters = Partial<Record<'entityId' | 'type' | 'uiStatus', {
|
21674
21680
|
eq: string;
|
21675
21681
|
} | {
|
21676
21682
|
neq: string;
|
@@ -21678,7 +21684,7 @@ type Filters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'uiStatus', {
|
|
21678
21684
|
in: string[];
|
21679
21685
|
} | {
|
21680
21686
|
nin: string[];
|
21681
|
-
}> | Record<`${'entityId' | '
|
21687
|
+
}> | Record<`${'entityId' | 'type' | 'uiStatus'}[${'eq' | 'neq'}]`, string> | Record<`${'entityId' | 'type' | 'uiStatus'}[${'in' | 'nin'}]`, string[]> | Record<'created' | 'modified', {
|
21682
21688
|
eq: string;
|
21683
21689
|
} | {
|
21684
21690
|
neq: string;
|
@@ -21694,7 +21700,7 @@ type Filters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'uiStatus', {
|
|
21694
21700
|
lt: string;
|
21695
21701
|
} | {
|
21696
21702
|
lte: string;
|
21697
|
-
}> | Record<`${'created' | 'modified'}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string> | Record<`${'created' | 'modified'}[${'in' | 'nin'}]`, string[]> | Record<'locale' | 'patternId', {
|
21703
|
+
}> | Record<`${'created' | 'modified'}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string> | Record<`${'created' | 'modified'}[${'in' | 'nin'}]`, string[]> | Record<'locale' | 'releaseId' | 'patternId', {
|
21698
21704
|
eq: string;
|
21699
21705
|
} | {
|
21700
21706
|
neq: string;
|
@@ -21704,8 +21710,10 @@ type Filters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'uiStatus', {
|
|
21704
21710
|
nin: string[];
|
21705
21711
|
} | {
|
21706
21712
|
def: boolean | 'true' | 'false';
|
21707
|
-
}> | Record<`${'locale' | 'patternId'}[${'eq' | 'neq'}]`, string> | Record<`${'locale' | 'patternId'}[${'in' | 'nin'}]`, string[]> | Record<`${'locale' | 'patternId'}[def]`, boolean | 'true' | 'false'> | Record<'name' | 'slug', {
|
21713
|
+
}> | Record<`${'locale' | 'releaseId' | 'patternId'}[${'eq' | 'neq'}]`, string> | Record<`${'locale' | 'releaseId' | 'patternId'}[${'in' | 'nin'}]`, string[]> | Record<`${'locale' | 'releaseId' | 'patternId'}[def]`, boolean | 'true' | 'false'> | Record<'name' | 'slug', {
|
21708
21714
|
match: string;
|
21715
|
+
} | {
|
21716
|
+
starts: string;
|
21709
21717
|
} | {
|
21710
21718
|
eq: string;
|
21711
21719
|
} | {
|
@@ -21716,8 +21724,10 @@ type Filters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'uiStatus', {
|
|
21716
21724
|
nin: string[];
|
21717
21725
|
} | {
|
21718
21726
|
def: boolean | 'true' | 'false';
|
21719
|
-
}> | Record<`${'name' | 'slug'}[${'match' | 'eq' | 'neq'}]`, string> | Record<`${'name' | 'slug'}[${'in' | 'nin'}]`, string[]> | Record<`${'name' | 'slug'}[def]`, boolean | 'true' | 'false'> | Record<'creator' | 'author', {
|
21727
|
+
}> | Record<`${'name' | 'slug'}[${'match' | 'starts' | 'eq' | 'neq'}]`, string> | Record<`${'name' | 'slug'}[${'in' | 'nin'}]`, string[]> | Record<`${'name' | 'slug'}[def]`, boolean | 'true' | 'false'> | Record<'creator' | 'author', {
|
21720
21728
|
match: string;
|
21729
|
+
} | {
|
21730
|
+
starts: string;
|
21721
21731
|
} | {
|
21722
21732
|
eq: string;
|
21723
21733
|
} | {
|
@@ -21726,12 +21736,14 @@ type Filters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'uiStatus', {
|
|
21726
21736
|
in: string[];
|
21727
21737
|
} | {
|
21728
21738
|
nin: string[];
|
21729
|
-
}> | Record<`${'creator' | 'author'}[${'match' | 'eq' | 'neq'}]`, string> | Record<`${'creator' | 'author'}[${'in' | 'nin'}]`, string[]> | Record<'isPattern', {
|
21739
|
+
}> | Record<`${'creator' | 'author'}[${'match' | 'starts' | 'eq' | 'neq'}]`, string> | Record<`${'creator' | 'author'}[${'in' | 'nin'}]`, string[]> | Record<'isPattern', {
|
21730
21740
|
eq: boolean | 'true' | 'false';
|
21731
21741
|
} | {
|
21732
21742
|
neq: boolean | 'true' | 'false';
|
21733
21743
|
}> | Record<`isPattern[${'eq' | 'neq'}]`, boolean | 'true' | 'false'> | Record<`fields.${string}`, {
|
21734
21744
|
match: string;
|
21745
|
+
} | {
|
21746
|
+
starts: string;
|
21735
21747
|
} | {
|
21736
21748
|
eq: string | number | boolean;
|
21737
21749
|
} | {
|
@@ -21750,7 +21762,7 @@ type Filters = Partial<Record<'entityId' | 'releaseId' | 'type' | 'uiStatus', {
|
|
21750
21762
|
lte: string | number;
|
21751
21763
|
} | {
|
21752
21764
|
def: boolean | 'true' | 'false';
|
21753
|
-
}> | Record<`fields.${string}[match]`, string> | Record<`fields.${string}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string | number> | Record<`fields.${string}[${'in' | 'nin'}]`, (string | number)[]> | Record<`fields.${string}[def]`, boolean | 'true' | 'false'>>;
|
21765
|
+
}> | Record<`fields.${string}[${'match' | 'starts'}]`, string> | Record<`fields.${string}[${'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte'}]`, string | number> | Record<`fields.${string}[${'in' | 'nin'}]`, (string | number)[]> | Record<`fields.${string}[def]`, boolean | 'true' | 'false'>>;
|
21754
21766
|
declare class ContentClient extends ApiClient<ContentClientOptions> {
|
21755
21767
|
#private;
|
21756
21768
|
private edgeApiHost;
|
@@ -22247,11 +22259,10 @@ type UpdateCompositionMessage = {
|
|
22247
22259
|
type: 'update-composition';
|
22248
22260
|
composition: RootComponentInstance;
|
22249
22261
|
hash: number | undefined;
|
22262
|
+
eventTimestamp: number | undefined;
|
22250
22263
|
};
|
22251
|
-
type UpdateCompositionInternalMessage = {
|
22264
|
+
type UpdateCompositionInternalMessage = Omit<UpdateCompositionMessage, 'type'> & {
|
22252
22265
|
type: 'update-composition-internal';
|
22253
|
-
composition: RootComponentInstance;
|
22254
|
-
hash: number | undefined;
|
22255
22266
|
};
|
22256
22267
|
type AddComponentMessage = {
|
22257
22268
|
type: 'add-component';
|
@@ -22371,7 +22382,7 @@ type Channel = {
|
|
22371
22382
|
selectParameter: (options: Omit<SelectParameterMessage, 'type'>) => void;
|
22372
22383
|
openParameterEditor: (options: Omit<OpenParameterEditorMessage, 'type'>) => void;
|
22373
22384
|
updateComposition: (composition: RootComponentInstance, secret?: string) => void;
|
22374
|
-
updateCompositionInternal: (composition: RootComponentInstance, hash?: number) => void;
|
22385
|
+
updateCompositionInternal: (composition: RootComponentInstance, hash?: number, eventTimestamp?: number) => void;
|
22375
22386
|
addComponent: (options: Omit<AddComponentMessage, 'type'>) => void;
|
22376
22387
|
moveComponent: (options: Omit<MoveComponentMessage, 'type'>) => void;
|
22377
22388
|
updateComponentParameter: (options: Omit<UpdateComponentParameterMessage, 'type'>) => void;
|
@@ -23118,6 +23129,16 @@ interface FlattenValuesOptions {
|
|
23118
23129
|
declare function getPropertyValue<TValue, T extends ComponentParameter<TValue>>(parameter: T): TValue;
|
23119
23130
|
declare function getPropertyValue(parameter: null): null;
|
23120
23131
|
declare function getPropertyValue(parameter: undefined): undefined;
|
23132
|
+
/**
|
23133
|
+
* Get the localized values of a component parameter
|
23134
|
+
* or a field attached to an Entry, Block or Asset.
|
23135
|
+
*
|
23136
|
+
* The values are returned as a Map where the key is the locale,
|
23137
|
+
* or undefined for the non-localized parameter.
|
23138
|
+
*/
|
23139
|
+
declare function getLocalizedPropertyValues<TValue, T extends ComponentParameter<TValue>>(parameter: T): Map<string | undefined, TValue>;
|
23140
|
+
declare function getLocalizedPropertyValues(parameter: null): null;
|
23141
|
+
declare function getLocalizedPropertyValues(parameter: undefined): undefined;
|
23121
23142
|
type DataWithProperties = Pick<ComponentInstance, 'parameters'> | Pick<EntryData, 'fields'>;
|
23122
23143
|
declare function flattenValues(data: null, options?: FlattenValuesOptions): null;
|
23123
23144
|
declare function flattenValues(data: undefined, options?: FlattenValuesOptions): undefined;
|
@@ -23186,4 +23207,4 @@ declare function parseVariableExpression(serialized: string, onToken?: (token: s
|
|
23186
23207
|
|
23187
23208
|
declare const CanvasClientError: typeof ApiClientError;
|
23188
23209
|
|
23189
|
-
export { ASSETS_SOURCE_CUSTOM_URL, ASSETS_SOURCE_UNIFORM, ASSET_PARAMETER_TYPE, ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, type AddComponentMessage, type AssetParamValue, type AssetParamValueItem, type BatchEnhancer, BatchEntry, type BatchInvalidationPayload, type BindVariablesOptions, type BindVariablesResult, type BindVariablesToObjectOptions, type BlockLocationReference, type BlockValue, CANVAS_BLOCK_PARAM_TYPE, CANVAS_DRAFT_STATE, CANVAS_EDITOR_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_SLOT_SECTION_SLOT, CANVAS_SLOT_SECTION_TYPE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CanvasClient, CanvasClientError, type CanvasDefinitions, type CategoriesDeleteParameters, type CategoriesGetParameters, type CategoriesGetResponse, type CategoriesPutParameters, type Category, CategoryClient, type Channel, type ChannelMessage, type ChannelSubscription, ChildEnhancerBuilder, type ComponentDefinition, type ComponentDefinitionDeleteParameters, type ComponentDefinitionGetParameters, type ComponentDefinitionGetResponse, type ComponentDefinitionParameter, type ComponentDefinitionPermission, type ComponentDefinitionPutParameters, type ComponentDefinitionSlot, type ComponentDefinitionSlugSettings, type ComponentDefinitionVariant, type ComponentEnhancer, type ComponentEnhancerFunction, type ComponentEnhancerOptions, type ComponentInstance, type ComponentInstanceContextualEditing, type ComponentInstanceHistoryEntry, type ComponentInstanceHistoryGetParameters, type ComponentInstanceHistoryGetResponse, type ComponentLocationReference, type ComponentLocationReferenceV2, type ComponentOverridability, type ComponentOverride, type ComponentOverrides, type ComponentParameter, type ComponentParameterBlock, type ComponentParameterContextualEditing, type ComponentParameterEnhancer, type ComponentParameterEnhancerFunction, type ComponentParameterEnhancerOptions, type CompositionDataDiagnostic, type CompositionDeleteParameters, type CompositionDiagnostics, type CompositionFilters, type CompositionGetByComponentIdParameters, type CompositionGetByIdParameters, type CompositionGetByNodeIdParameters, type CompositionGetByNodePathParameters, type CompositionGetBySlugParameters, type CompositionGetListResponse, type CompositionGetOrderBy, type CompositionGetParameters, type CompositionGetResponse, type CompositionGetValidResponses, type CompositionIssue, type CompositionPatternIssue, type CompositionPutParameters, type CompositionResolvedGetResponse, type CompositionResolvedListResponse, type CompositionUIStatus, ContentClient, type ContentType, type ContentTypeField, type ContextualEditingComponentReference, type CopiedComponentSubtree, type DataDiagnostic, type DataElementBindingIssue, type DataElementConnectionDefinition, type DataElementConnectionFailureAction, type DataElementConnectionFailureLogLevel, type DataResolutionConfigIssue, type DataResolutionIssue, type DataResolutionOption, type DataResolutionOptionNegative, type DataResolutionOptionPositive, type DataResolutionParameters, type DataResourceDefinition, type DataResourceDefinitions, type DataResourceIssue, type DataResourceVariables, type DataSource, DataSourceClient, type DataSourceDeleteParameters, type DataSourceGetParameters, type DataSourceGetResponse, type DataSourcePutParameters, type DataSourcesGetParameters, type DataSourcesGetResponse, type DataType, DataTypeClient, type DataTypeDeleteParameters, type DataTypeGetParameters, type DataTypeGetResponse, type DataTypePutParameters, type DataVariableDefinition, type DataWithProperties, type DeleteContentTypeOptions, type DeleteEntryOptions, type DismissPlaceholderMessage, type DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_MAX_CACHE_TTL, EDGE_MIN_CACHE_TTL, EMPTY_COMPOSITION, type EdgehancersDiagnostics, type EdgehancersWholeResponseCacheDiagnostics, type EditorStateUpdatedMessage, EnhancerBuilder, type EnhancerContext, type EnhancerError, type EntriesGetParameters, type EntriesGetResponse, type EntriesHistoryGetParameters, type EntriesHistoryGetResponse, type EntriesResolvedListResponse, type Entry, type EntryData, type EntryList, type EventNames, type Filters, type FindInNodeTreeReference, type FlattenProperty, type FlattenValues, type FlattenValuesOptions, type GetContentTypesOptions, type GetContentTypesResponse, type GetEntriesOptions, type GetEntriesResponse, type GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_FORCED_SETTINGS_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, type InvalidationPayload, LOCALE_DYNAMIC_INPUT_NAME, type LimitPolicy, type LinkComponentParameterValue, type LinkParamConfiguration, type LinkParamValue, type LinkParameterType, type LinkTypeConfiguration, type Locale, LocaleClient, type LocaleDeleteParameters, type LocalePutParameters, type LocalesGetParameters, type LocalesGetResponse, type LocalizeDeprecatedOptions, type LocalizeModernOptions, type MessageHandler, type MoveComponentMessage, type NodeLocationReference, type NonProjectMapLinkParamValue, type OpenParameterEditorMessage, type OverrideOptions, PLACEHOLDER_ID, type PatternIssue, type PreviewEventBus, type PreviewPanelSettings, type ProjectMapLinkComponentParameterValue, type ProjectMapLinkParamValue, type Prompt, PromptClient, type PromptsDeleteParameters, type PromptsGetParameters, type PromptsGetResponse, type PromptsPutParameters, type PutContentTypeBody, type PutEntryBody, type ReadyMessage, RelationshipClient, type RelationshipResultInstance, type Release, ReleaseClient, type ReleaseContent, ReleaseContentsClient, type ReleaseContentsDeleteBody, type ReleaseContentsGetParameters, type ReleaseContentsGetResponse, type ReleaseDeleteParameters, type ReleasePatchParameters, type ReleasePutParameters, type ReleaseState, type ReleasesGetParameters, type ReleasesGetResponse, type ReportRenderedCompositionsMessage, type RequestComponentSuggestionMessage, type ResolvedRouteGetResponse, type RichTextBuiltInElement, type RichTextBuiltInFormat, type RichTextParamConfiguration, type RichTextParamValue, type RootComponentInstance, type RootEntryReference, type RootLocationReference, RouteClient, type RouteDynamicInputs, type RouteGetParameters, type RouteGetResponse, type RouteGetResponseComposition, type RouteGetResponseEdgehancedComposition, type RouteGetResponseEdgehancedNotFound, type RouteGetResponseNotFound, type RouteGetResponseRedirect, SECRET_QUERY_STRING_PARAM, type SelectComponentMessage, type SelectParameterMessage, type SpecificProjectMap, type SubscribeToCompositionOptions, type SuggestComponentMessage, type TreeNodeInfoTypes, type TriggerComponentActionMessage, type TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UncachedContentClient, UniqueBatchEntries, type UnsubscribeCallback, type UpdateComponentParameterMessage, type UpdateComponentReferencesMessage, type UpdateCompositionInternalMessage, type UpdateCompositionMessage, type UpdateContextualEditingStateInternalMessage, type UpdateFeatureFlagsMessage, type UpdatePreviewSettingsMessage, type WalkComponentTreeActions, type WalkNodeTreeActions, type WalkNodeTreeOptions, bindVariables, bindVariablesToObject, compose, convertEntryToPutEntry, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, createVariableReference, enhance, extractLocales, findParameterInNodeTree, flattenValues, generateComponentPlaceholderId, generateHash, getBlockValue, getChannelName, getComponentJsonPointer, getComponentPath, getNounForLocation, getNounForNode, getParameterAttributes, getPropertiesValue, getPropertyValue, isAddComponentMessage, isAllowedReferrer, isAssetParamValue, isAssetParamValueItem, isComponentActionMessage, isComponentPlaceholderId, isDismissPlaceholderMessage, isEntryData, isMovingComponentMessage, isNestedNodeType, isOpenParameterEditorMessage, isReadyMessage, isReportRenderedCompositionsMessage, isRequestComponentSuggestionMessage, isRootEntryReference, isSelectComponentMessage, isSelectParameterMessage, isSuggestComponentMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateComponentReferencesMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdateFeatureFlagsMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseComponentPlaceholderId, parseVariableExpression, subscribeToComposition, walkComponentTree, walkNodeTree };
|
23210
|
+
export { ASSETS_SOURCE_CUSTOM_URL, ASSETS_SOURCE_UNIFORM, ASSET_PARAMETER_TYPE, ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, type AddComponentMessage, type AssetParamValue, type AssetParamValueItem, type BatchEnhancer, BatchEntry, type BatchInvalidationPayload, type BindVariablesOptions, type BindVariablesResult, type BindVariablesToObjectOptions, type BlockLocationReference, type BlockValue, CANVAS_BLOCK_PARAM_TYPE, CANVAS_DRAFT_STATE, CANVAS_EDITOR_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_SLOT_SECTION_SLOT, CANVAS_SLOT_SECTION_TYPE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CanvasClient, CanvasClientError, type CanvasDefinitions, type CategoriesDeleteParameters, type CategoriesGetParameters, type CategoriesGetResponse, type CategoriesPutParameters, type Category, CategoryClient, type Channel, type ChannelMessage, type ChannelSubscription, ChildEnhancerBuilder, type ComponentDefinition, type ComponentDefinitionDeleteParameters, type ComponentDefinitionGetParameters, type ComponentDefinitionGetResponse, type ComponentDefinitionParameter, type ComponentDefinitionPermission, type ComponentDefinitionPutParameters, type ComponentDefinitionSlot, type ComponentDefinitionSlugSettings, type ComponentDefinitionVariant, type ComponentEnhancer, type ComponentEnhancerFunction, type ComponentEnhancerOptions, type ComponentInstance, type ComponentInstanceContextualEditing, type ComponentInstanceHistoryEntry, type ComponentInstanceHistoryGetParameters, type ComponentInstanceHistoryGetResponse, type ComponentLocationReference, type ComponentLocationReferenceV2, type ComponentOverridability, type ComponentOverride, type ComponentOverrides, type ComponentParameter, type ComponentParameterBlock, type ComponentParameterContextualEditing, type ComponentParameterEnhancer, type ComponentParameterEnhancerFunction, type ComponentParameterEnhancerOptions, type CompositionDataDiagnostic, type CompositionDeleteParameters, type CompositionDiagnostics, type CompositionFilters, type CompositionGetByComponentIdParameters, type CompositionGetByIdParameters, type CompositionGetByNodeIdParameters, type CompositionGetByNodePathParameters, type CompositionGetBySlugParameters, type CompositionGetListResponse, type CompositionGetOrderBy, type CompositionGetParameters, type CompositionGetResponse, type CompositionGetValidResponses, type CompositionIssue, type CompositionPatternIssue, type CompositionPutParameters, type CompositionResolvedGetResponse, type CompositionResolvedListResponse, type CompositionUIStatus, ContentClient, type ContentType, type ContentTypeField, type ContextualEditingComponentReference, type CopiedComponentSubtree, type DataDiagnostic, type DataElementBindingIssue, type DataElementConnectionDefinition, type DataElementConnectionFailureAction, type DataElementConnectionFailureLogLevel, type DataResolutionConfigIssue, type DataResolutionIssue, type DataResolutionOption, type DataResolutionOptionNegative, type DataResolutionOptionPositive, type DataResolutionParameters, type DataResourceDefinition, type DataResourceDefinitions, type DataResourceIssue, type DataResourceVariables, type DataSource, DataSourceClient, type DataSourceDeleteParameters, type DataSourceGetParameters, type DataSourceGetResponse, type DataSourcePutParameters, type DataSourcesGetParameters, type DataSourcesGetResponse, type DataType, DataTypeClient, type DataTypeDeleteParameters, type DataTypeGetParameters, type DataTypeGetResponse, type DataTypePutParameters, type DataVariableDefinition, type DataWithProperties, type DeleteContentTypeOptions, type DeleteEntryOptions, type DismissPlaceholderMessage, type DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_MAX_CACHE_TTL, EDGE_MIN_CACHE_TTL, EMPTY_COMPOSITION, type EdgehancersDiagnostics, type EdgehancersWholeResponseCacheDiagnostics, type EditorStateUpdatedMessage, EnhancerBuilder, type EnhancerContext, type EnhancerError, type EntriesGetParameters, type EntriesGetResponse, type EntriesHistoryGetParameters, type EntriesHistoryGetResponse, type EntriesResolvedListResponse, type Entry, type EntryData, type EntryList, type EventNames, type Filters, type FindInNodeTreeReference, type FlattenProperty, type FlattenValues, type FlattenValuesOptions, type GetContentTypesOptions, type GetContentTypesResponse, type GetEntriesOptions, type GetEntriesResponse, type GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_FORCED_SETTINGS_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, type InvalidationPayload, LOCALE_DYNAMIC_INPUT_NAME, type LimitPolicy, type LinkComponentParameterValue, type LinkParamConfiguration, type LinkParamValue, type LinkParameterType, type LinkTypeConfiguration, type Locale, LocaleClient, type LocaleDeleteParameters, type LocalePutParameters, type LocalesGetParameters, type LocalesGetResponse, type LocalizeDeprecatedOptions, type LocalizeModernOptions, type MessageHandler, type MoveComponentMessage, type NodeLocationReference, type NonProjectMapLinkParamValue, type OpenParameterEditorMessage, type OverrideOptions, PLACEHOLDER_ID, type PatternIssue, type PreviewEventBus, type PreviewPanelSettings, type ProjectMapLinkComponentParameterValue, type ProjectMapLinkParamValue, type Prompt, PromptClient, type PromptsDeleteParameters, type PromptsGetParameters, type PromptsGetResponse, type PromptsPutParameters, type PutContentTypeBody, type PutEntryBody, type ReadyMessage, RelationshipClient, type RelationshipResultInstance, type Release, ReleaseClient, type ReleaseContent, ReleaseContentsClient, type ReleaseContentsDeleteBody, type ReleaseContentsGetParameters, type ReleaseContentsGetResponse, type ReleaseDeleteParameters, type ReleasePatchParameters, type ReleasePutParameters, type ReleaseState, type ReleasesGetParameters, type ReleasesGetResponse, type ReportRenderedCompositionsMessage, type RequestComponentSuggestionMessage, type ResolvedRouteGetResponse, type RichTextBuiltInElement, type RichTextBuiltInFormat, type RichTextParamConfiguration, type RichTextParamValue, type RootComponentInstance, type RootEntryReference, type RootLocationReference, RouteClient, type RouteDynamicInputs, type RouteGetParameters, type RouteGetResponse, type RouteGetResponseComposition, type RouteGetResponseEdgehancedComposition, type RouteGetResponseEdgehancedNotFound, type RouteGetResponseNotFound, type RouteGetResponseRedirect, SECRET_QUERY_STRING_PARAM, type SelectComponentMessage, type SelectParameterMessage, type SpecificProjectMap, type SubscribeToCompositionOptions, type SuggestComponentMessage, type TreeNodeInfoTypes, type TriggerComponentActionMessage, type TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UncachedContentClient, UniqueBatchEntries, type UnsubscribeCallback, type UpdateComponentParameterMessage, type UpdateComponentReferencesMessage, type UpdateCompositionInternalMessage, type UpdateCompositionMessage, type UpdateContextualEditingStateInternalMessage, type UpdateFeatureFlagsMessage, type UpdatePreviewSettingsMessage, type WalkComponentTreeActions, type WalkNodeTreeActions, type WalkNodeTreeOptions, bindVariables, bindVariablesToObject, compose, convertEntryToPutEntry, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, createVariableReference, enhance, extractLocales, findParameterInNodeTree, flattenValues, generateComponentPlaceholderId, generateHash, getBlockValue, getChannelName, getComponentJsonPointer, getComponentPath, getLocalizedPropertyValues, getNounForLocation, getNounForNode, getParameterAttributes, getPropertiesValue, getPropertyValue, isAddComponentMessage, isAllowedReferrer, isAssetParamValue, isAssetParamValueItem, isComponentActionMessage, isComponentPlaceholderId, isDismissPlaceholderMessage, isEntryData, isMovingComponentMessage, isNestedNodeType, isOpenParameterEditorMessage, isReadyMessage, isReportRenderedCompositionsMessage, isRequestComponentSuggestionMessage, isRootEntryReference, isSelectComponentMessage, isSelectParameterMessage, isSuggestComponentMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateComponentReferencesMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdateFeatureFlagsMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseComponentPlaceholderId, parseVariableExpression, subscribeToComposition, walkComponentTree, walkNodeTree };
|
package/dist/index.esm.js
CHANGED
@@ -992,6 +992,21 @@ function getPropertiesValue(entity) {
|
|
992
992
|
function getPropertyValue(parameter) {
|
993
993
|
return parameter ? parameter.value : parameter;
|
994
994
|
}
|
995
|
+
function getLocalizedPropertyValues(parameter) {
|
996
|
+
if (!parameter) {
|
997
|
+
return parameter;
|
998
|
+
}
|
999
|
+
const localizedValues = /* @__PURE__ */ new Map();
|
1000
|
+
if (typeof parameter.value !== "undefined") {
|
1001
|
+
localizedValues.set(void 0, parameter.value);
|
1002
|
+
}
|
1003
|
+
if (parameter.locales !== void 0) {
|
1004
|
+
for (const [locale, localeValue] of Object.entries(parameter.locales)) {
|
1005
|
+
localizedValues.set(locale, localeValue);
|
1006
|
+
}
|
1007
|
+
}
|
1008
|
+
return localizedValues;
|
1009
|
+
}
|
995
1010
|
function flattenValues(data, options = {}) {
|
996
1011
|
if (!data) {
|
997
1012
|
return data;
|
@@ -1985,15 +2000,17 @@ var createCanvasChannel = ({
|
|
1985
2000
|
hash: generateHash({
|
1986
2001
|
composition,
|
1987
2002
|
secret
|
1988
|
-
})
|
2003
|
+
}),
|
2004
|
+
eventTimestamp: Date.now()
|
1989
2005
|
};
|
1990
2006
|
postMessage(message);
|
1991
2007
|
};
|
1992
|
-
const updateCompositionInternal = (composition, hash) => {
|
2008
|
+
const updateCompositionInternal = (composition, hash, eventTimestamp) => {
|
1993
2009
|
const message = {
|
1994
2010
|
type: "update-composition-internal",
|
1995
2011
|
composition,
|
1996
|
-
hash
|
2012
|
+
hash,
|
2013
|
+
eventTimestamp: eventTimestamp != null ? eventTimestamp : Date.now()
|
1997
2014
|
};
|
1998
2015
|
postMessage(message);
|
1999
2016
|
};
|
@@ -2847,6 +2864,7 @@ export {
|
|
2847
2864
|
getChannelName,
|
2848
2865
|
getComponentJsonPointer,
|
2849
2866
|
getComponentPath,
|
2867
|
+
getLocalizedPropertyValues,
|
2850
2868
|
getNounForLocation,
|
2851
2869
|
getNounForNode,
|
2852
2870
|
getParameterAttributes,
|
package/dist/index.js
CHANGED
@@ -359,6 +359,7 @@ __export(src_exports, {
|
|
359
359
|
getChannelName: () => getChannelName,
|
360
360
|
getComponentJsonPointer: () => getComponentJsonPointer,
|
361
361
|
getComponentPath: () => getComponentPath,
|
362
|
+
getLocalizedPropertyValues: () => getLocalizedPropertyValues,
|
362
363
|
getNounForLocation: () => getNounForLocation,
|
363
364
|
getNounForNode: () => getNounForNode,
|
364
365
|
getParameterAttributes: () => getParameterAttributes,
|
@@ -1127,6 +1128,21 @@ function getPropertiesValue(entity) {
|
|
1127
1128
|
function getPropertyValue(parameter) {
|
1128
1129
|
return parameter ? parameter.value : parameter;
|
1129
1130
|
}
|
1131
|
+
function getLocalizedPropertyValues(parameter) {
|
1132
|
+
if (!parameter) {
|
1133
|
+
return parameter;
|
1134
|
+
}
|
1135
|
+
const localizedValues = /* @__PURE__ */ new Map();
|
1136
|
+
if (typeof parameter.value !== "undefined") {
|
1137
|
+
localizedValues.set(void 0, parameter.value);
|
1138
|
+
}
|
1139
|
+
if (parameter.locales !== void 0) {
|
1140
|
+
for (const [locale, localeValue] of Object.entries(parameter.locales)) {
|
1141
|
+
localizedValues.set(locale, localeValue);
|
1142
|
+
}
|
1143
|
+
}
|
1144
|
+
return localizedValues;
|
1145
|
+
}
|
1130
1146
|
function flattenValues(data, options = {}) {
|
1131
1147
|
if (!data) {
|
1132
1148
|
return data;
|
@@ -2120,15 +2136,17 @@ var createCanvasChannel = ({
|
|
2120
2136
|
hash: generateHash({
|
2121
2137
|
composition,
|
2122
2138
|
secret
|
2123
|
-
})
|
2139
|
+
}),
|
2140
|
+
eventTimestamp: Date.now()
|
2124
2141
|
};
|
2125
2142
|
postMessage(message);
|
2126
2143
|
};
|
2127
|
-
const updateCompositionInternal = (composition, hash) => {
|
2144
|
+
const updateCompositionInternal = (composition, hash, eventTimestamp) => {
|
2128
2145
|
const message = {
|
2129
2146
|
type: "update-composition-internal",
|
2130
2147
|
composition,
|
2131
|
-
hash
|
2148
|
+
hash,
|
2149
|
+
eventTimestamp: eventTimestamp != null ? eventTimestamp : Date.now()
|
2132
2150
|
};
|
2133
2151
|
postMessage(message);
|
2134
2152
|
};
|
@@ -2983,6 +3001,7 @@ var CanvasClientError = import_api13.ApiClientError;
|
|
2983
3001
|
getChannelName,
|
2984
3002
|
getComponentJsonPointer,
|
2985
3003
|
getComponentPath,
|
3004
|
+
getLocalizedPropertyValues,
|
2986
3005
|
getNounForLocation,
|
2987
3006
|
getNounForNode,
|
2988
3007
|
getParameterAttributes,
|
package/dist/index.mjs
CHANGED
@@ -992,6 +992,21 @@ function getPropertiesValue(entity) {
|
|
992
992
|
function getPropertyValue(parameter) {
|
993
993
|
return parameter ? parameter.value : parameter;
|
994
994
|
}
|
995
|
+
function getLocalizedPropertyValues(parameter) {
|
996
|
+
if (!parameter) {
|
997
|
+
return parameter;
|
998
|
+
}
|
999
|
+
const localizedValues = /* @__PURE__ */ new Map();
|
1000
|
+
if (typeof parameter.value !== "undefined") {
|
1001
|
+
localizedValues.set(void 0, parameter.value);
|
1002
|
+
}
|
1003
|
+
if (parameter.locales !== void 0) {
|
1004
|
+
for (const [locale, localeValue] of Object.entries(parameter.locales)) {
|
1005
|
+
localizedValues.set(locale, localeValue);
|
1006
|
+
}
|
1007
|
+
}
|
1008
|
+
return localizedValues;
|
1009
|
+
}
|
995
1010
|
function flattenValues(data, options = {}) {
|
996
1011
|
if (!data) {
|
997
1012
|
return data;
|
@@ -1985,15 +2000,17 @@ var createCanvasChannel = ({
|
|
1985
2000
|
hash: generateHash({
|
1986
2001
|
composition,
|
1987
2002
|
secret
|
1988
|
-
})
|
2003
|
+
}),
|
2004
|
+
eventTimestamp: Date.now()
|
1989
2005
|
};
|
1990
2006
|
postMessage(message);
|
1991
2007
|
};
|
1992
|
-
const updateCompositionInternal = (composition, hash) => {
|
2008
|
+
const updateCompositionInternal = (composition, hash, eventTimestamp) => {
|
1993
2009
|
const message = {
|
1994
2010
|
type: "update-composition-internal",
|
1995
2011
|
composition,
|
1996
|
-
hash
|
2012
|
+
hash,
|
2013
|
+
eventTimestamp: eventTimestamp != null ? eventTimestamp : Date.now()
|
1997
2014
|
};
|
1998
2015
|
postMessage(message);
|
1999
2016
|
};
|
@@ -2847,6 +2864,7 @@ export {
|
|
2847
2864
|
getChannelName,
|
2848
2865
|
getComponentJsonPointer,
|
2849
2866
|
getComponentPath,
|
2867
|
+
getLocalizedPropertyValues,
|
2850
2868
|
getNounForLocation,
|
2851
2869
|
getNounForNode,
|
2852
2870
|
getParameterAttributes,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.146.1-alpha.1+09e4a2e410",
|
4
4
|
"description": "Common functionality and types for Uniform Canvas",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -38,8 +38,8 @@
|
|
38
38
|
"pusher-js": "8.2.0"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@uniformdev/assets": "19.
|
42
|
-
"@uniformdev/context": "19.
|
41
|
+
"@uniformdev/assets": "19.146.1-alpha.1+09e4a2e410",
|
42
|
+
"@uniformdev/context": "19.146.1-alpha.1+09e4a2e410",
|
43
43
|
"immer": "10.0.4"
|
44
44
|
},
|
45
45
|
"files": [
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"publishConfig": {
|
49
49
|
"access": "public"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "09e4a2e410c296598810ae2d1bf3b5988390e4d6"
|
52
52
|
}
|