@wix/site-service-pages 1.0.2 → 1.1.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/README.md CHANGED
@@ -50,6 +50,10 @@ type PageConfig = {
50
50
  path: string
51
51
  parentPageId?: string
52
52
  popup: boolean
53
+ /** TPA page identifier (e.g. `ecom_side_cart`). Not globally unique on its own — pair with `appDefinitionId`. */
54
+ appPageId?: string
55
+ /** App definition ID of the TPA that owns this page. Use together with `appPageId` to identify a TPA popup. */
56
+ appDefinitionId?: string
53
57
  }
54
58
 
55
59
  type Page = PageConfig & { id: string }
@@ -1,16 +1,14 @@
1
1
  import type { ServiceDefinition } from '@wix/services-definitions';
2
- export type Page = {
3
- id: string;
4
- title: string;
5
- path: string;
6
- parentPageId?: string;
7
- popup: boolean;
8
- };
9
2
  export type PageConfig = {
10
3
  title: string;
11
4
  path: string;
12
5
  parentPageId?: string;
13
6
  popup: boolean;
7
+ appPageId?: string;
8
+ appDefinitionId?: string;
9
+ };
10
+ export type Page = PageConfig & {
11
+ id: string;
14
12
  };
15
13
  export type IPagesServiceConfig = {
16
14
  /** id-as-key map; values omit `id` — callers use the key as the id (P3). */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AAoC5C,QAAA,eAAe,GAAG,IAAA,oCAAa,EAAqC,yBAAyB,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AAkC5C,QAAA,eAAe,GAAG,IAAA,oCAAa,EAAqC,yBAAyB,CAAC,CAAA"}
@@ -1,16 +1,14 @@
1
1
  import type { ServiceDefinition } from '@wix/services-definitions';
2
- export type Page = {
3
- id: string;
4
- title: string;
5
- path: string;
6
- parentPageId?: string;
7
- popup: boolean;
8
- };
9
2
  export type PageConfig = {
10
3
  title: string;
11
4
  path: string;
12
5
  parentPageId?: string;
13
6
  popup: boolean;
7
+ appPageId?: string;
8
+ appDefinitionId?: string;
9
+ };
10
+ export type Page = PageConfig & {
11
+ id: string;
14
12
  };
15
13
  export type IPagesServiceConfig = {
16
14
  /** id-as-key map; values omit `id` — callers use the key as the id (P3). */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAoCzD,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAqC,yBAAyB,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAkCzD,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAqC,yBAAyB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/site-service-pages",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "main": "cjs/build/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -77,5 +77,5 @@
77
77
  ]
78
78
  }
79
79
  },
80
- "falconPackageHash": "3ff54f019adc45b0bfc800cd99bbe11da3dd1be133207c04a6b6ddf5"
80
+ "falconPackageHash": "ad6a7183cbe192fd4bead163896afebed99b2afaeac948176a4029dc"
81
81
  }
@@ -1,19 +1,17 @@
1
1
  import { defineService } from '@wix/services-definitions'
2
2
  import type { ServiceDefinition } from '@wix/services-definitions'
3
3
 
4
- export type Page = {
5
- id: string
4
+ export type PageConfig = {
6
5
  title: string
7
6
  path: string
8
7
  parentPageId?: string
9
8
  popup: boolean
9
+ appPageId?: string
10
+ appDefinitionId?: string
10
11
  }
11
12
 
12
- export type PageConfig = {
13
- title: string
14
- path: string
15
- parentPageId?: string
16
- popup: boolean
13
+ export type Page = PageConfig & {
14
+ id: string
17
15
  }
18
16
 
19
17
  export type IPagesServiceConfig = {