@wix/origami-runtime 0.19.9 → 0.19.10

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.
@@ -1,11 +1,2 @@
1
1
  import type { ComponentType, FunctionComponent } from 'react';
2
- export declare const InteractionsDefinition: string & {
3
- __api: {
4
- hasInteractions: (key: string) => boolean;
5
- };
6
- __config: {};
7
- isServiceDefinition?: boolean;
8
- } & {
9
- hasInteractions: (key: string) => boolean;
10
- };
11
2
  export declare const withInteractions: <P extends object>(Component: ComponentType<P>) => FunctionComponent<P>;
@@ -1,16 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // Restore once @wix/site-service-interactions' dependencies are on public npm, and delete the local
3
- // InteractionsDefinition below:
4
- // import { InteractionsDefinition } from '@wix/site-service-interactions/definition'
5
- import { defineService } from '@wix/services-manager/helpers';
2
+ import { InteractionsDefinition } from '@wix/site-service-interactions/definition';
6
3
  import { useService } from '@wix/services-manager-react';
7
- // The id @wix/site-service-interactions defines its service with; a definition is only its id. The service
8
- // itself is bundled in @wix/origami-services, so a site doesn't install that package, whose dependencies
9
- // aren't all on public npm (@wix/interact-experience-renderer@0.21.0, @wix/interact-experience@0.16.0,
10
- // @wix/viewer-service-pages@1.0.18). A workaround until they are; then import InteractionsDefinition from
11
- // '@wix/site-service-interactions/definition' again, make it a peer, list it in the generator's siteDependencies
12
- // (packageJson.ts) and delete interactElement.d.ts.
13
- export const InteractionsDefinition = defineService('@wix/site-service-interactions');
14
4
  // Copied from wix-next's @wix/builder-interactions, not imported from it: a component with
15
5
  // interactions renders inside an <interact-element> keyed by its comp path, else its id.
16
6
  export const withInteractions = (Component) => props => {
@@ -1 +1 @@
1
- {"version":3,"file":"withInteractions.js","sourceRoot":"","sources":["../src/withInteractions.tsx"],"names":[],"mappings":";AACA,oGAAoG;AACpG,gCAAgC;AAChC,qFAAqF;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC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AI,EAAE,CAAA;IAE/B,IAAI,GAAG,KAAK,SAAS,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5C,OAAO,CACH,gDAAqC,GAAG,YACpC,KAAC,SAAS,OAAK,KAAK,GAAI,GACT,CACtB,CAAA;IACL,CAAC;IACD,OAAO,KAAC,SAAS,OAAK,KAAK,GAAI,CAAA;AACnC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/origami-runtime",
3
- "version": "0.19.9",
3
+ "version": "0.19.10",
4
4
  "description": "React runtime for Origami-generated component wrappers: context bindings, providers, and className resolution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,6 +20,7 @@
20
20
  "@types/react": "^18.3.1",
21
21
  "@wix/services-manager": "^1.0.7",
22
22
  "@wix/services-manager-react": "^1.0.8",
23
+ "@wix/site-service-interactions": "^1.0.45",
23
24
  "jsdom": "^23.0.1",
24
25
  "react": "^18.3.1",
25
26
  "typescript": "^6.0.3",
@@ -28,6 +29,7 @@
28
29
  "peerDependencies": {
29
30
  "@wix/services-manager": "^1.0.7",
30
31
  "@wix/services-manager-react": "^1.0.8",
32
+ "@wix/site-service-interactions": "^1.0.45",
31
33
  "react": "^18.3.1"
32
34
  },
33
35
  "publishUnscoped": false,
@@ -59,5 +61,5 @@
59
61
  }
60
62
  },
61
63
  "type": "module",
62
- "falconPackageHash": "e1ffc65c2fd2c686eafdd02cb1f3dd3ae8070e34df26bf3c5d224720"
64
+ "falconPackageHash": "ab5ed7fd6ee9762090bdc08378a2b24b580834c83cd6dcd1a9f21e21"
63
65
  }