@wix/origami-runtime 0.19.2 → 0.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
import React 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
|
+
};
|
|
2
11
|
export declare const withInteractions: (Component: any) => (props: any) => React.JSX.Element;
|
package/dist/withInteractions.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
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';
|
|
3
6
|
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');
|
|
4
14
|
// Copied from wix-next's @wix/builder-interactions, not imported from it: a component with
|
|
5
15
|
// interactions renders inside an <interact-element> keyed by its comp path, else its id.
|
|
6
16
|
export const withInteractions = Component => props => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withInteractions.js","sourceRoot":"","sources":["../src/withInteractions.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,
|
|
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;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAExD,2GAA2G;AAC3G,yGAAyG;AACzG,uGAAuG;AACvG,0GAA0G;AAC1G,iHAAiH;AACjH,oDAAoD;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAC/C,gCAAgC,CACnC,CAAA;AAED,2FAA2F;AAC3F,yFAAyF;AACzF,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;IACjD,MAAM,EAAE,eAAe,EAAE,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAA;IAE9D,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,EAAE,QAAQ,IAAI,KAAK,CAAC,EAAE,CAAA;IAE3C,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,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.
|
|
3
|
+
"version": "0.19.3",
|
|
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,7 +20,6 @@
|
|
|
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.28",
|
|
24
23
|
"jsdom": "^23.0.1",
|
|
25
24
|
"react": "^18.3.1",
|
|
26
25
|
"typescript": "^6.0.3",
|
|
@@ -29,7 +28,6 @@
|
|
|
29
28
|
"peerDependencies": {
|
|
30
29
|
"@wix/services-manager": "^1.0.7",
|
|
31
30
|
"@wix/services-manager-react": "^1.0.8",
|
|
32
|
-
"@wix/site-service-interactions": "^1.0.28",
|
|
33
31
|
"react": "^18.3.1"
|
|
34
32
|
},
|
|
35
33
|
"publishUnscoped": false,
|
|
@@ -61,5 +59,5 @@
|
|
|
61
59
|
}
|
|
62
60
|
},
|
|
63
61
|
"type": "module",
|
|
64
|
-
"falconPackageHash": "
|
|
62
|
+
"falconPackageHash": "1c7fa2cc4ad12662e15197def92c2d8b0e865371bf526813bc8c0933"
|
|
65
63
|
}
|