@wix/origami-runtime 0.19.8 → 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.
package/dist/define.d.ts CHANGED
@@ -1,9 +1,17 @@
1
1
  import type { SvgProps } from './svgContent';
2
+ /**
3
+ * `Wix` from `@wix/editor-react-types` (wix-next `documentation/props.md`, "wix"): what the Wix ecosystem gives a
4
+ * component, and each of its elements, under `wix`. Plus `wixPath`, which the viewer passes too. Every field is
5
+ * optional: a wrapper passes on what the page set.
6
+ */
2
7
  export interface WixProps {
3
- wixPath?: string;
8
+ /** The keys of this element's own direct children the Wix user removed; a removed one is not rendered. */
9
+ elementsRemovalState?: Record<string, 'REMOVED'>;
10
+ /** Props to spread onto the outermost wrapper element of an element with presets. */
4
11
  presetsWrapperProps?: {
5
- className?: string;
12
+ className: string;
6
13
  };
14
+ wixPath?: string;
7
15
  }
8
16
  export interface WixElementProps {
9
17
  wix?: WixProps;
@@ -1 +1 @@
1
- {"version":3,"file":"define.js","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAsDA,MAAM,QAAQ,GAAG,CAAI,IAAY,EAAE,OAAgC,EAAE,EAAkB,EAAE,CACrF,CAAC,EAAE,KAAK,EAAE,SAAyB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAmB,CAAA;AAExE,MAAM,CAAC,MAAM,IAAI,GAAG;IAChB,IAAI,EAAE,CAAC,IAA6B,EAAE,EAAE,CAAC,QAAQ,CAAS,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC;IAC7E,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAW,UAAU,CAAC;IAC9C,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAU,SAAS,CAAC;IAC3C,MAAM,EAAE,CAAC,IAAqC,EAAE,EAAE,CAAC,QAAQ,CAAS,QAAQ,EAAE,IAAI,IAAI,EAAE,CAAC;IACzF,KAAK,EAAE,CAAY,QAAgB,EAAE,E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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;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAExD,2GAA2G;AAC3G,yGAAyG;AACzG,uGAAuG;AACvG,0GAA0G;AAC1G,iHAAiH;AACjH,oDAAoD;AACpD,MAAM,CAAC,MAA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ACT,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.8",
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": "cd3d9137168c2658c0ddce1f1c1710b63d98351ef8f1dafb09af4577"
64
+ "falconPackageHash": "ab5ed7fd6ee9762090bdc08378a2b24b580834c83cd6dcd1a9f21e21"
63
65
  }