@plasmicpkgs/react-awesome-reveal 3.8.0 → 3.8.4

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.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import registerComponent, { ComponentMeta } from "@plasmicapp/host/registerComponent";
1
2
  import React from "react";
2
3
  import { Fade } from "react-awesome-reveal";
3
4
  declare const effectNameToComponent: {
@@ -6,14 +7,18 @@ declare const effectNameToComponent: {
6
7
  readonly flip: React.FC<import("react-awesome-reveal").FlipProps>;
7
8
  readonly hinge: React.FC<Pick<import("react-awesome-reveal").RevealProps, "cascade" | "damping" | "delay" | "duration" | "fraction" | "triggerOnce" | "className" | "style" | "childClassName" | "childStyle" | "onVisibilityChange">>;
8
9
  readonly jackinthebox: React.FC<Pick<import("react-awesome-reveal").RevealProps, "cascade" | "damping" | "delay" | "duration" | "fraction" | "triggerOnce" | "className" | "style" | "childClassName" | "childStyle" | "onVisibilityChange">>;
9
- readonly roll: React.FC<import("react-awesome-reveal").RollProps>;
10
10
  readonly rotate: React.FC<import("react-awesome-reveal").RotateProps>;
11
11
  readonly slide: React.FC<import("react-awesome-reveal").SlideProps>;
12
12
  readonly zoom: React.FC<import("react-awesome-reveal").ZoomProps>;
13
13
  };
14
14
  declare type Effect = keyof typeof effectNameToComponent;
15
- export declare function Reveal({ effect, className, ...props }: React.ComponentProps<typeof Fade> & {
15
+ export interface RevealProps extends React.ComponentProps<typeof Fade> {
16
16
  className?: string;
17
17
  effect?: Effect;
18
- }): JSX.Element;
18
+ }
19
+ export declare function Reveal({ effect, className, ...props }: RevealProps): JSX.Element;
20
+ export declare const revealMeta: ComponentMeta<RevealProps>;
21
+ export declare function registerReveal(loader?: {
22
+ registerComponent: typeof registerComponent;
23
+ }, customRevealMeta?: ComponentMeta<RevealProps>): void;
19
24
  export {};
@@ -29,7 +29,10 @@ var effectNameToComponent = {
29
29
  flip: reactAwesomeReveal.Flip,
30
30
  hinge: reactAwesomeReveal.Hinge,
31
31
  jackinthebox: reactAwesomeReveal.JackInTheBox,
32
- roll: reactAwesomeReveal.Roll,
32
+ // Roll seems not to be working properly in the canvas as of
33
+ // `react-awesome-reveal@3.8.1`
34
+
35
+ /* roll: Roll, */
33
36
  rotate: reactAwesomeReveal.Rotate,
34
37
  slide: reactAwesomeReveal.Slide,
35
38
  zoom: reactAwesomeReveal.Zoom
@@ -38,6 +41,7 @@ var effects = /*#__PURE__*/Object.keys(effectNameToComponent);
38
41
  function Reveal(_ref) {
39
42
  var _ref$effect = _ref.effect,
40
43
  effect = _ref$effect === void 0 ? "fade" : _ref$effect,
44
+ className = _ref.className,
41
45
  props = _objectWithoutPropertiesLoose(_ref, ["effect", "className"]);
42
46
 
43
47
  var Comp = effectNameToComponent[effect];
@@ -50,19 +54,25 @@ function Reveal(_ref) {
50
54
 
51
55
 
52
56
  var children = props.cascade || !["string", "number", "boolean"].includes(typeof props.children) ? props.children : React.createElement("div", null, " ", props.children, " ");
53
- return React.createElement(Comp, Object.assign({}, props, {
57
+ return React.createElement(Comp, Object.assign({
58
+ className: className
59
+ }, props, {
54
60
  children: children
55
61
  }));
56
62
  }
57
- registerComponent(Reveal, {
58
- name: "Reveal",
63
+ var revealMeta = {
64
+ name: "hostless-reveal",
65
+ importName: "Reveal",
66
+ displayName: "Reveal",
59
67
  importPath: "@plasmicpkgs/react-awesome-reveal",
60
68
  props: {
61
- big: {
62
- type: "boolean",
63
- displayName: "Big",
64
- description: "Causes the animation to start farther. Only applied to \"fade\" Effect and \"down\", \"left\", \"right\" and \"up\" directions"
65
- },
69
+ // `big` seems not to be working properly as of `react-awesome-reveal@3.8.1`
70
+
71
+ /* big: {
72
+ type: "boolean",
73
+ displayName: "Big",
74
+ description: `Causes the animation to start farther. Only applied to "fade" Effect and "down", "left", "right" and "up" directions`,
75
+ }, */
66
76
  cascade: {
67
77
  type: "boolean",
68
78
  displayName: "Cascade",
@@ -70,7 +80,10 @@ registerComponent(Reveal, {
70
80
  },
71
81
  children: {
72
82
  type: "slot",
73
- defaultValue: "Reveal text"
83
+ defaultValue: [{
84
+ type: "img",
85
+ src: "https://placekitten.com/300/200"
86
+ }]
74
87
  },
75
88
  damping: {
76
89
  type: "number",
@@ -85,6 +98,7 @@ registerComponent(Reveal, {
85
98
  direction: {
86
99
  type: "choice",
87
100
  options: ["horizontal", "vertical", "bottom-left", "bottom-right", "down", "left", "right", "top-left", "top-right", "up"],
101
+ defaultValue: "up",
88
102
  displayName: "Direction",
89
103
  description: "Origin of the animation (the valid values depend on the chosen Effect)"
90
104
  },
@@ -95,17 +109,20 @@ registerComponent(Reveal, {
95
109
  },
96
110
  effect: {
97
111
  type: "choice",
98
- options: effects.map(function (v) {
112
+ options: /*#__PURE__*/effects.map(function (v) {
99
113
  return v;
100
114
  }),
101
115
  displayName: "Effect",
102
116
  description: "The Reveal animation effect to be applied"
103
117
  },
104
- fraction: {
105
- type: "number",
106
- displayName: "Fraction",
107
- description: "Float number between 0 and 1 indicating how much the element should be in viewport before the animation is triggered"
108
- },
118
+ // `fraction` seems not to be working properly as of `react-awesome-reveal@3.8.1`
119
+
120
+ /* fraction: {
121
+ type: "number",
122
+ displayName: "Fraction",
123
+ description:
124
+ "Float number between 0 and 1 indicating how much the element should be in viewport before the animation is triggered",
125
+ }, */
109
126
  reverse: {
110
127
  type: "boolean",
111
128
  displayName: "Reverse",
@@ -117,7 +134,16 @@ registerComponent(Reveal, {
117
134
  description: "Whether the animation should run only once, instead of everytime the element enters, exits and re-enters the viewport"
118
135
  }
119
136
  }
120
- });
137
+ };
138
+ function registerReveal(loader, customRevealMeta) {
139
+ if (loader) {
140
+ loader.registerComponent(Reveal, customRevealMeta != null ? customRevealMeta : revealMeta);
141
+ } else {
142
+ registerComponent(Reveal, customRevealMeta != null ? customRevealMeta : revealMeta);
143
+ }
144
+ }
121
145
 
122
146
  exports.Reveal = Reveal;
147
+ exports.registerReveal = registerReveal;
148
+ exports.revealMeta = revealMeta;
123
149
  //# sourceMappingURL=react-awesome-reveal.cjs.development.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-awesome-reveal.cjs.development.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent from \"@plasmicapp/host/registerComponent\";\nimport React from \"react\";\nimport {\n Bounce,\n Fade,\n Flip,\n Hinge,\n JackInTheBox,\n Roll,\n Rotate,\n Slide,\n Zoom,\n} from \"react-awesome-reveal\";\n\nconst effectNameToComponent = {\n bounce: Bounce,\n fade: Fade,\n flip: Flip,\n hinge: Hinge,\n jackinthebox: JackInTheBox,\n roll: Roll,\n rotate: Rotate,\n slide: Slide,\n zoom: Zoom,\n} as const;\n\ntype Effect = keyof typeof effectNameToComponent;\n\nconst effects = Object.keys(effectNameToComponent);\n\nexport function Reveal({\n effect = \"fade\",\n className,\n ...props\n}: React.ComponentProps<typeof Fade> & {\n className?: string;\n effect?: Effect;\n}) {\n const Comp = effectNameToComponent[effect] as any;\n if (!Comp) {\n throw new Error(`Please specify a valid effect: ${effects.join(\", \")}`);\n }\n // Rendering plain strings seems to result in an infinite loop from\n // \"react-awesome-reveal\" (except for when `cascading` is set).\n // So we create a wrapper `div`.\n const children =\n props.cascade ||\n ![\"string\", \"number\", \"boolean\"].includes(typeof props.children) ? (\n props.children\n ) : (\n <div> {props.children} </div>\n );\n return <Comp {...props} children={children} />;\n}\n\nregisterComponent(Reveal, {\n name: \"Reveal\",\n importPath: \"@plasmicpkgs/react-awesome-reveal\",\n props: {\n big: {\n type: \"boolean\",\n displayName: \"Big\",\n description: `Causes the animation to start farther. Only applied to \"fade\" Effect and \"down\", \"left\", \"right\" and \"up\" directions`,\n },\n cascade: {\n type: \"boolean\",\n displayName: \"Cascade\",\n description: \"Stagger its children animations\",\n },\n children: {\n type: \"slot\",\n defaultValue: \"Reveal text\",\n },\n damping: {\n type: \"number\",\n displayName: \"Damping\",\n description:\n \"Factor that affects the delay that each animated element in a cascade animation will be assigned (defaults to 0.5)\",\n },\n delay: {\n type: \"number\",\n displayName: \"Delay\",\n description: \"Initial delay, in milliseconds\",\n },\n direction: {\n type: \"choice\",\n options: [\n \"horizontal\",\n \"vertical\",\n \"bottom-left\",\n \"bottom-right\",\n \"down\",\n \"left\",\n \"right\",\n \"top-left\",\n \"top-right\",\n \"up\",\n ],\n displayName: \"Direction\",\n description:\n \"Origin of the animation (the valid values depend on the chosen Effect)\",\n },\n duration: {\n type: \"number\",\n displayName: \"Duration\",\n description: \"Animation duration, in milliseconds (defaults to 1000)\",\n },\n effect: {\n type: \"choice\",\n options: effects.map((v) => v),\n displayName: \"Effect\",\n description: \"The Reveal animation effect to be applied\",\n },\n fraction: {\n type: \"number\",\n displayName: \"Fraction\",\n description:\n \"Float number between 0 and 1 indicating how much the element should be in viewport before the animation is triggered\",\n },\n reverse: {\n type: \"boolean\",\n displayName: \"Reverse\",\n description: `Whether the animation should make element(s) disappear. Not applied to \"hinge\" and \"jackinthebox\" effects`,\n },\n triggerOnce: {\n type: \"boolean\",\n displayName: \"Trigger Once\",\n description:\n \"Whether the animation should run only once, instead of everytime the element enters, exits and re-enters the viewport\",\n },\n },\n});\n"],"names":["effectNameToComponent","bounce","Bounce","fade","Fade","flip","Flip","hinge","Hinge","jackinthebox","JackInTheBox","roll","Roll","rotate","Rotate","slide","Slide","zoom","Zoom","effects","Object","keys","Reveal","effect","props","Comp","Error","join","children","cascade","includes","React","registerComponent","name","importPath","big","type","displayName","description","defaultValue","damping","delay","direction","options","duration","map","v","fraction","reverse","triggerOnce"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAcA,IAAMA,qBAAqB,GAAG;AAC5BC,EAAAA,MAAM,EAAEC,yBADoB;AAE5BC,EAAAA,IAAI,EAAEC,uBAFsB;AAG5BC,EAAAA,IAAI,EAAEC,uBAHsB;AAI5BC,EAAAA,KAAK,EAAEC,wBAJqB;AAK5BC,EAAAA,YAAY,EAAEC,+BALc;AAM5BC,EAAAA,IAAI,EAAEC,uBANsB;AAO5BC,EAAAA,MAAM,EAAEC,yB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,CAAjB;;;;"}
1
+ {"version":3,"file":"react-awesome-reveal.cjs.development.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport React from \"react\";\nimport {\n Bounce,\n Fade,\n Flip,\n Hinge,\n JackInTheBox,\n Rotate,\n Slide,\n Zoom,\n} from \"react-awesome-reveal\";\n\nconst effectNameToComponent = {\n bounce: Bounce,\n fade: Fade,\n flip: Flip,\n hinge: Hinge,\n jackinthebox: JackInTheBox,\n // Roll seems not to be working properly in the canvas as of\n // `react-awesome-reveal@3.8.1`\n /* roll: Roll, */\n rotate: Rotate,\n slide: Slide,\n zoom: Zoom,\n} as const;\n\ntype Effect = keyof typeof effectNameToComponent;\n\nconst effects = Object.keys(effectNameToComponent);\n\nexport interface RevealProps extends React.ComponentProps<typeof Fade> {\n className?: string;\n effect?: Effect;\n}\n\nexport function Reveal({ effect = \"fade\", className, ...props }: RevealProps) {\n const Comp = effectNameToComponent[effect] as any;\n if (!Comp) {\n throw new Error(`Please specify a valid effect: ${effects.join(\", \")}`);\n }\n // Rendering plain strings seems to result in an infinite loop from\n // \"react-awesome-reveal\" (except for when `cascading` is set).\n // So we create a wrapper `div`.\n const children =\n props.cascade ||\n ![\"string\", \"number\", \"boolean\"].includes(typeof props.children) ? (\n props.children\n ) : (\n <div> {props.children} </div>\n );\n return <Comp className={className} {...props} children={children} />;\n}\n\nexport const revealMeta: ComponentMeta<RevealProps> = {\n name: \"hostless-reveal\",\n importName: \"Reveal\",\n displayName: \"Reveal\",\n importPath: \"@plasmicpkgs/react-awesome-reveal\",\n props: {\n // `big` seems not to be working properly as of `react-awesome-reveal@3.8.1`\n /* big: {\n type: \"boolean\",\n displayName: \"Big\",\n description: `Causes the animation to start farther. Only applied to \"fade\" Effect and \"down\", \"left\", \"right\" and \"up\" directions`,\n }, */\n cascade: {\n type: \"boolean\",\n displayName: \"Cascade\",\n description: \"Stagger its children animations\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://placekitten.com/300/200\",\n },\n ],\n },\n damping: {\n type: \"number\",\n displayName: \"Damping\",\n description:\n \"Factor that affects the delay that each animated element in a cascade animation will be assigned (defaults to 0.5)\",\n },\n delay: {\n type: \"number\",\n displayName: \"Delay\",\n description: \"Initial delay, in milliseconds\",\n },\n direction: {\n type: \"choice\",\n options: [\n \"horizontal\",\n \"vertical\",\n \"bottom-left\",\n \"bottom-right\",\n \"down\",\n \"left\",\n \"right\",\n \"top-left\",\n \"top-right\",\n \"up\",\n ],\n defaultValue: \"up\",\n displayName: \"Direction\",\n description:\n \"Origin of the animation (the valid values depend on the chosen Effect)\",\n },\n duration: {\n type: \"number\",\n displayName: \"Duration\",\n description: \"Animation duration, in milliseconds (defaults to 1000)\",\n },\n effect: {\n type: \"choice\",\n options: effects.map((v) => v),\n displayName: \"Effect\",\n description: \"The Reveal animation effect to be applied\",\n },\n // `fraction` seems not to be working properly as of `react-awesome-reveal@3.8.1`\n /* fraction: {\n type: \"number\",\n displayName: \"Fraction\",\n description:\n \"Float number between 0 and 1 indicating how much the element should be in viewport before the animation is triggered\",\n }, */\n reverse: {\n type: \"boolean\",\n displayName: \"Reverse\",\n description: `Whether the animation should make element(s) disappear. Not applied to \"hinge\" and \"jackinthebox\" effects`,\n },\n triggerOnce: {\n type: \"boolean\",\n displayName: \"Trigger Once\",\n description:\n \"Whether the animation should run only once, instead of everytime the element enters, exits and re-enters the viewport\",\n },\n },\n};\n\nexport function registerReveal(\n loader?: { registerComponent: typeof registerComponent },\n customRevealMeta?: ComponentMeta<RevealProps>\n) {\n if (loader) {\n loader.registerComponent(Reveal, customRevealMeta ?? revealMeta);\n } else {\n registerComponent(Reveal, customRevealMeta ?? revealMeta);\n }\n}\n"],"names":["effectNameToComponent","bounce","Bounce","fade","Fade","flip","Flip","hinge","Hinge","jackinthebox","JackInTheBox","rotate","Rotate","slide","Slide","zoom","Zoom","effects","Object","keys","Reveal","effect","className","props","Comp","Error","join","children","cascade","includes","React","revealMeta","name","importName","displayName","importPath","type","description","defaultValue","src","damping","delay","direction","options","duration","map","v","reverse","triggerOnce","registerReveal","loader","customRevealMeta","registerComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAMA,qBAAqB,GAAG;AAC5BC,EAAAA,MAAM,EAAEC,yBADoB;AAE5BC,EAAAA,IAAI,EAAEC,uBAFsB;AAG5BC,EAAAA,IAAI,EAAEC,uBAHsB;AAI5BC,EAAAA,KAAK,EAAEC,wBAJqB;AAK5BC,EAAAA,YAAY,EAAEC,+BALc;AAM5B;AACA;;AACA;AACAC,EAAAA,MAAM,EAAEC,yBAToB;AAU5BC,EAAAA,KAAK,EAAEC,wBAVqB;AAW5BC,EAAAA,IAAI,EAAEC;AAXsB,CAA9B;AAgBA,IAAMC,OAAO,gBAAGC,MAAM,CAACC,IAAP,CAAYnB,qBAAZ,CAAhB;SAOgBoB;yBAASC;MAAAA,kCAAS;MAAQC,iBAAAA;MAAcC;;AACtD,MAAMC,IAAI,GAAGxB,qBAAqB,CAACqB,MAAD,CAAlC;;AACA,MAAI,CAACG,IAAL,EAAW;AACT,UAAM,IAAIC,KAAJ,qCAA4CR,OAAO,CAACS,IAAR,CAAa,IAAb,CAA5C,CAAN;AACD;AAED;AACA;;;AACA,MAAMC,QAAQ,GACZJ,KAAK,CAACK,OAAN,IACA,CAAC,CAAC,QAAD,EAAW,QAAX,EAAqB,SAArB,EAAgCC,QAAhC,CAAyC,OAAON,KAAK,CAACI,QAAtD,CADD,GAEEJ,KAAK,CAACI,QAFR,GAIEG,mBAAA,MAAA,MAAA,KAAA,EAAOP,KAAK,CAACI,QAAb,KAAA,CALJ;AAOA,SAAOG,mBAAA,CAACN,IAAD;AAAMF,IAAAA,SAAS,EAAEA;KAAeC;AAAOI,IAAAA,QAAQ,EAAEA;IAAjD,CAAP;AACD;IAEYI,UAAU,GAA+B;AACpDC,EAAAA,IAAI,EAAE,iBAD8C;AAEpDC,E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AC4B,GAAR,CAAY,UAACC,CAAD;AAAA,eAAOA,CAAP;AAAA,OAAZ,CAFH;AAGNZ,MAAAA,WAAW,EAAE,QAHP;AAING,MAAAA,WAAW,EAAE;AAJP,KAxDH;AA8DL;;AACA;;;;;;AAMAU,IAAAA,OAAO,EAAE;AACPX,MAAAA,IAAI,EAAE,SADC;AAEPF,MAAAA,WAAW,EAAE,SAFN;AAGPG,MAAAA,WAAW;AAHJ,KArEJ;AA0ELW,IAAAA,WAAW,EAAE;AACXZ,MAAAA,IAAI,EAAE,SADK;AAEXF,MAAAA,WAAW,EAAE,cAFF;AAGXG,MAAAA,WAAW,EACT;AAJS;AA1ER;AAL6C;SAwFtCY,eACdC,QACAC;AAEA,MAAID,MAAJ,EAAY;AACVA,IAAAA,MAAM,CAACE,iBAAP,CAAyBhC,MAAzB,EAAiC+B,gBAAjC,WAAiCA,gBAAjC,GAAqDpB,UAArD;AACD,GAFD,MAEO;AACLqB,IAAAA,iBAAiB,CAAChC,MAAD,EAAS+B,gBAAT,WAASA,gBAAT,GAA6BpB,UAA7B,CAAjB;AACD;AACF;;;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@plasmicapp/host/registerComponent")),i=e(require("react")),a=require("react-awesome-reveal"),n={bounce:a.Bounce,fade:a.Fade,flip:a.Flip,hinge:a.Hinge,jackinthebox:a.JackInTheBox,roll:a.Roll,rotate:a.Rotate,slide:a.Slide,zoom:a.Zoom},o=Object.keys(n);function r(e){var t=e.effect,a=void 0===t?"fade":t,r=function(e,t){if(null==e)return{};var i,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)t.indexOf(i=o[a])>=0||(n[i]=e[i]);return n}(e,["effect","className"]),l=n[a];if(!l)throw new Error("Please specify a valid effect: "+o.join(", "));var s=r.cascade||!["string","number","boolean"].includes(typeof r.children)?r.children:i.createElement("div",null," ",r.children," ");return i.createElement(l,Object.assign({},r,{children:s}))}t(r,{name:"Reveal",importPath:"@plasmicpkgs/react-awesome-reveal",props:{big:{type:"boolean",displayName:"Big",description:'Causes the animation to start farther. Only applied to "fade" Effect and "down", "left", "right" and "up" directions'},cascade:{type:"boolean",displayName:"Cascade",description:"Stagger its children animations"},children:{type:"slot",defaultValue:"Reveal text"},damping:{type:"number",displayName:"Damping",description:"Factor that affects the delay that each animated element in a cascade animation will be assigned (defaults to 0.5)"},delay:{type:"number",displayName:"Delay",description:"Initial delay, in milliseconds"},direction:{type:"choice",options:["horizontal","vertical","bottom-left","bottom-right","down","left","right","top-left","top-right","up"],displayName:"Direction",description:"Origin of the animation (the valid values depend on the chosen Effect)"},duration:{type:"number",displayName:"Duration",description:"Animation duration, in milliseconds (defaults to 1000)"},effect:{type:"choice",options:o.map((function(e){return e})),displayName:"Effect",description:"The Reveal animation effect to be applied"},fraction:{type:"number",displayName:"Fraction",description:"Float number between 0 and 1 indicating how much the element should be in viewport before the animation is triggered"},reverse:{type:"boolean",displayName:"Reverse",description:'Whether the animation should make element(s) disappear. Not applied to "hinge" and "jackinthebox" effects'},triggerOnce:{type:"boolean",displayName:"Trigger Once",description:"Whether the animation should run only once, instead of everytime the element enters, exits and re-enters the viewport"}}}),exports.Reveal=r;
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@plasmicapp/host/registerComponent")),a=e(require("react")),i=require("react-awesome-reveal"),n={bounce:i.Bounce,fade:i.Fade,flip:i.Flip,hinge:i.Hinge,jackinthebox:i.JackInTheBox,rotate:i.Rotate,slide:i.Slide,zoom:i.Zoom},o=Object.keys(n);function r(e){var t=e.effect,i=void 0===t?"fade":t,r=e.className,l=function(e,t){if(null==e)return{};var a,i,n={},o=Object.keys(e);for(i=0;i<o.length;i++)t.indexOf(a=o[i])>=0||(n[a]=e[a]);return n}(e,["effect","className"]),s=n[i];if(!s)throw new Error("Please specify a valid effect: "+o.join(", "));var c=l.cascade||!["string","number","boolean"].includes(typeof l.children)?l.children:a.createElement("div",null," ",l.children," ");return a.createElement(s,Object.assign({className:r},l,{children:c}))}var l={name:"hostless-reveal",importName:"Reveal",displayName:"Reveal",importPath:"@plasmicpkgs/react-awesome-reveal",props:{cascade:{type:"boolean",displayName:"Cascade",description:"Stagger its children animations"},children:{type:"slot",defaultValue:[{type:"img",src:"https://placekitten.com/300/200"}]},damping:{type:"number",displayName:"Damping",description:"Factor that affects the delay that each animated element in a cascade animation will be assigned (defaults to 0.5)"},delay:{type:"number",displayName:"Delay",description:"Initial delay, in milliseconds"},direction:{type:"choice",options:["horizontal","vertical","bottom-left","bottom-right","down","left","right","top-left","top-right","up"],defaultValue:"up",displayName:"Direction",description:"Origin of the animation (the valid values depend on the chosen Effect)"},duration:{type:"number",displayName:"Duration",description:"Animation duration, in milliseconds (defaults to 1000)"},effect:{type:"choice",options:o.map((function(e){return e})),displayName:"Effect",description:"The Reveal animation effect to be applied"},reverse:{type:"boolean",displayName:"Reverse",description:'Whether the animation should make element(s) disappear. Not applied to "hinge" and "jackinthebox" effects'},triggerOnce:{type:"boolean",displayName:"Trigger Once",description:"Whether the animation should run only once, instead of everytime the element enters, exits and re-enters the viewport"}}};exports.Reveal=r,exports.registerReveal=function(e,a){e?e.registerComponent(r,null!=a?a:l):t(r,null!=a?a:l)},exports.revealMeta=l;
2
2
  //# sourceMappingURL=react-awesome-reveal.cjs.production.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-awesome-reveal.cjs.production.min.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent from \"@plasmicapp/host/registerComponent\";\nimport React from \"react\";\nimport {\n Bounce,\n Fade,\n Flip,\n Hinge,\n JackInTheBox,\n Roll,\n Rotate,\n Slide,\n Zoom,\n} from \"react-awesome-reveal\";\n\nconst effectNameToComponent = {\n bounce: Bounce,\n fade: Fade,\n flip: Flip,\n hinge: Hinge,\n jackinthebox: JackInTheBox,\n roll: Roll,\n rotate: Rotate,\n slide: Slide,\n zoom: Zoom,\n} as const;\n\ntype Effect = keyof typeof effectNameToComponent;\n\nconst effects = Object.keys(effectNameToComponent);\n\nexport function Reveal({\n effect = \"fade\",\n className,\n ...props\n}: React.ComponentProps<typeof Fade> & {\n className?: string;\n effect?: Effect;\n}) {\n const Comp = effectNameToComponent[effect] as any;\n if (!Comp) {\n throw new Error(`Please specify a valid effect: ${effects.join(\", \")}`);\n }\n // Rendering plain strings seems to result in an infinite loop from\n // \"react-awesome-reveal\" (except for when `cascading` is set).\n // So we create a wrapper `div`.\n const children =\n props.cascade ||\n ![\"string\", \"number\", \"boolean\"].includes(typeof props.children) ? (\n props.children\n ) : (\n <div> {props.children} </div>\n );\n return <Comp {...props} children={children} />;\n}\n\nregisterComponent(Reveal, {\n name: \"Reveal\",\n importPath: \"@plasmicpkgs/react-awesome-reveal\",\n props: {\n big: {\n type: \"boolean\",\n displayName: \"Big\",\n description: `Causes the animation to start farther. Only applied to \"fade\" Effect and \"down\", \"left\", \"right\" and \"up\" directions`,\n },\n cascade: {\n type: \"boolean\",\n displayName: \"Cascade\",\n description: \"Stagger its children animations\",\n },\n children: {\n type: \"slot\",\n defaultValue: \"Reveal text\",\n },\n damping: {\n type: \"number\",\n displayName: \"Damping\",\n description:\n \"Factor that affects the delay that each animated element in a cascade animation will be assigned (defaults to 0.5)\",\n },\n delay: {\n type: \"number\",\n displayName: \"Delay\",\n description: \"Initial delay, in milliseconds\",\n },\n direction: {\n type: \"choice\",\n options: [\n \"horizontal\",\n \"vertical\",\n \"bottom-left\",\n \"bottom-right\",\n \"down\",\n \"left\",\n \"right\",\n \"top-left\",\n \"top-right\",\n \"up\",\n ],\n displayName: \"Direction\",\n description:\n \"Origin of the animation (the valid values depend on the chosen Effect)\",\n },\n duration: {\n type: \"number\",\n displayName: \"Duration\",\n description: \"Animation duration, in milliseconds (defaults to 1000)\",\n },\n effect: {\n type: \"choice\",\n options: effects.map((v) => v),\n displayName: \"Effect\",\n description: \"The Reveal animation effect to be applied\",\n },\n fraction: {\n type: \"number\",\n displayName: \"Fraction\",\n description:\n \"Float number between 0 and 1 indicating how much the element should be in viewport before the animation is triggered\",\n },\n reverse: {\n type: \"boolean\",\n displayName: \"Reverse\",\n description: `Whether the animation should make element(s) disappear. Not applied to \"hinge\" and \"jackinthebox\" effects`,\n },\n triggerOnce: {\n type: \"boolean\",\n displayName: \"Trigger Once\",\n description:\n \"Whether the animation should run only once, instead of everytime the element enters, exits and re-enters the viewport\",\n },\n },\n});\n"],"names":["effectNameToComponent","bounce","Bounce","fade","Fade","flip","Flip","hinge","Hinge","jackinthebox","JackInTheBox","roll","Roll","rotate","Rotate","slide","Slide","zoom","Zoom","effects","Object","keys","Reveal","effect","props","Comp","Error","join","children","cascade","includes","React","registerComponent","name","importPath","big","type","displayName","description","defaultValue","damping","delay","direction","options","duration","map","v","fraction","reverse","triggerOnce"],"mappings":"yPAcMA,EAAwB,CAC5BC,OAAQC,SACRC,KAAMC,OACNC,KAAMC,OACNC,MAAOC,QACPC,aAAcC,eACdC,KAAMC,OACNC,OAAQC,SACRC,MAAOC,QACPC,KAAMC,QAKFC,EAAUC,OAAOC,KAAKrB,YAEZsB,aACdC,OAAAA,aAAS,SAENC,+JAKGC,EAAOzB,EAAsBuB,OAC9BE,QACG,IAAIC,wCAAwCP,EAAQQ,KAAK,WAK3DC,EACJJ,EAAMK,UACL,CAAC,SAAU,SAAU,WAAWC,gBAAgBN,EAAMI,UACrDJ,EAAMI,SAENG,+BAAOP,EAAMI,qBAEVG,gBAACN,mBAASD,GAAOI,SAAUA,KAGpCI,EAAkBV,EAAQ,CACxBW,KAAM,SACNC,WAAY,oCACZV,MAAO,CACLW,IAAK,CACHC,KAAM,UACNC,YAAa,MACbC,oIAEFT,QAAS,CACPO,KAAM,UACNC,YAAa,UACbC,YAAa,mCAEfV,SAAU,CACRQ,KAAM,OACNG,aAAc,eAEhBC,QAAS,CACPJ,KAAM,SACNC,YAAa,UACbC,YACE,sHAEJG,MAAO,CACLL,KAAM,SACNC,YAAa,QACbC,YAAa,kCAEfI,UAAW,CACTN,KAAM,SACNO,QAAS,CACP,aACA,WACA,cACA,eACA,OACA,OACA,QACA,WACA,YACA,MAEFN,YAAa,YACbC,YACE,0EAEJM,SAAU,CACRR,KAAM,SACNC,YAAa,WACbC,YAAa,0DAEff,OAAQ,CACNa,KAAM,SACNO,QAASxB,EAAQ0B,KAAI,SAACC,UAAMA,KAC5BT,YAAa,SACbC,YAAa,6CAEfS,SAAU,CACRX,KAAM,SACNC,YAAa,WACbC,YACE,wHAEJU,QAAS,CACPZ,KAAM,UACNC,YAAa,UACbC,yHAEFW,YAAa,CACXb,KAAM,UACNC,YAAa,eACbC,YACE"}
1
+ {"version":3,"file":"react-awesome-reveal.cjs.production.min.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport React from \"react\";\nimport {\n Bounce,\n Fade,\n Flip,\n Hinge,\n JackInTheBox,\n Rotate,\n Slide,\n Zoom,\n} from \"react-awesome-reveal\";\n\nconst effectNameToComponent = {\n bounce: Bounce,\n fade: Fade,\n flip: Flip,\n hinge: Hinge,\n jackinthebox: JackInTheBox,\n // Roll seems not to be working properly in the canvas as of\n // `react-awesome-reveal@3.8.1`\n /* roll: Roll, */\n rotate: Rotate,\n slide: Slide,\n zoom: Zoom,\n} as const;\n\ntype Effect = keyof typeof effectNameToComponent;\n\nconst effects = Object.keys(effectNameToComponent);\n\nexport interface RevealProps extends React.ComponentProps<typeof Fade> {\n className?: string;\n effect?: Effect;\n}\n\nexport function Reveal({ effect = \"fade\", className, ...props }: RevealProps) {\n const Comp = effectNameToComponent[effect] as any;\n if (!Comp) {\n throw new Error(`Please specify a valid effect: ${effects.join(\", \")}`);\n }\n // Rendering plain strings seems to result in an infinite loop from\n // \"react-awesome-reveal\" (except for when `cascading` is set).\n // So we create a wrapper `div`.\n const children =\n props.cascade ||\n ![\"string\", \"number\", \"boolean\"].includes(typeof props.children) ? (\n props.children\n ) : (\n <div> {props.children} </div>\n );\n return <Comp className={className} {...props} children={children} />;\n}\n\nexport const revealMeta: ComponentMeta<RevealProps> = {\n name: \"hostless-reveal\",\n importName: \"Reveal\",\n displayName: \"Reveal\",\n importPath: \"@plasmicpkgs/react-awesome-reveal\",\n props: {\n // `big` seems not to be working properly as of `react-awesome-reveal@3.8.1`\n /* big: {\n type: \"boolean\",\n displayName: \"Big\",\n description: `Causes the animation to start farther. Only applied to \"fade\" Effect and \"down\", \"left\", \"right\" and \"up\" directions`,\n }, */\n cascade: {\n type: \"boolean\",\n displayName: \"Cascade\",\n description: \"Stagger its children animations\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://placekitten.com/300/200\",\n },\n ],\n },\n damping: {\n type: \"number\",\n displayName: \"Damping\",\n description:\n \"Factor that affects the delay that each animated element in a cascade animation will be assigned (defaults to 0.5)\",\n },\n delay: {\n type: \"number\",\n displayName: \"Delay\",\n description: \"Initial delay, in milliseconds\",\n },\n direction: {\n type: \"choice\",\n options: [\n \"horizontal\",\n \"vertical\",\n \"bottom-left\",\n \"bottom-right\",\n \"down\",\n \"left\",\n \"right\",\n \"top-left\",\n \"top-right\",\n \"up\",\n ],\n defaultValue: \"up\",\n displayName: \"Direction\",\n description:\n \"Origin of the animation (the valid values depend on the chosen Effect)\",\n },\n duration: {\n type: \"number\",\n displayName: \"Duration\",\n description: \"Animation duration, in milliseconds (defaults to 1000)\",\n },\n effect: {\n type: \"choice\",\n options: effects.map((v) => v),\n displayName: \"Effect\",\n description: \"The Reveal animation effect to be applied\",\n },\n // `fraction` seems not to be working properly as of `react-awesome-reveal@3.8.1`\n /* fraction: {\n type: \"number\",\n displayName: \"Fraction\",\n description:\n \"Float number between 0 and 1 indicating how much the element should be in viewport before the animation is triggered\",\n }, */\n reverse: {\n type: \"boolean\",\n displayName: \"Reverse\",\n description: `Whether the animation should make element(s) disappear. Not applied to \"hinge\" and \"jackinthebox\" effects`,\n },\n triggerOnce: {\n type: \"boolean\",\n displayName: \"Trigger Once\",\n description:\n \"Whether the animation should run only once, instead of everytime the element enters, exits and re-enters the viewport\",\n },\n },\n};\n\nexport function registerReveal(\n loader?: { registerComponent: typeof registerComponent },\n customRevealMeta?: ComponentMeta<RevealProps>\n) {\n if (loader) {\n loader.registerComponent(Reveal, customRevealMeta ?? revealMeta);\n } else {\n registerComponent(Reveal, customRevealMeta ?? revealMeta);\n }\n}\n"],"names":["effectNameToComponent","bounce","Bounce","fade","Fade","flip","Flip","hinge","Hinge","jackinthebox","JackInTheBox","rotate","Rotate","slide","Slide","zoom","Zoom","effects","Object","keys","Reveal","effect","className","props","Comp","Error","join","children","cascade","includes","React","revealMeta","name","importName","displayName","importPath","type","description","defaultValue","src","damping","delay","direction","options","duration","map","v","reverse","triggerOnce","loader","customRevealMeta","registerComponent"],"mappings":"yPAeMA,EAAwB,CAC5BC,OAAQC,SACRC,KAAMC,OACNC,KAAMC,OACNC,MAAOC,QACPC,aAAcC,eAIdC,OAAQC,SACRC,MAAOC,QACPC,KAAMC,QAKFC,EAAUC,OAAOC,KAAKnB,YAOZoB,aAASC,OAAAA,aAAS,SAAQC,IAAAA,UAAcC,+JAChDC,EAAOxB,EAAsBqB,OAC9BG,QACG,IAAIC,wCAAwCR,EAAQS,KAAK,WAK3DC,EACJJ,EAAMK,UACL,CAAC,SAAU,SAAU,WAAWC,gBAAgBN,EAAMI,UACrDJ,EAAMI,SAENG,+BAAOP,EAAMI,qBAEVG,gBAACN,iBAAKF,UAAWA,GAAeC,GAAOI,SAAUA,SAG7CI,EAAyC,CACpDC,KAAM,kBACNC,WAAY,SACZC,YAAa,SACbC,WAAY,oCACZZ,MAAO,CAOLK,QAAS,CACPQ,KAAM,UACNF,YAAa,UACbG,YAAa,mCAEfV,SAAU,CACRS,KAAM,OACNE,aAAc,CACZ,CACEF,KAAM,MACNG,IAAK,qCAIXC,QAAS,CACPJ,KAAM,SACNF,YAAa,UACbG,YACE,sHAEJI,MAAO,CACLL,KAAM,SACNF,YAAa,QACbG,YAAa,kCAEfK,UAAW,CACTN,KAAM,SACNO,QAAS,CACP,aACA,WACA,cACA,eACA,OACA,OACA,QACA,WACA,YACA,MAEFL,aAAc,KACdJ,YAAa,YACbG,YACE,0EAEJO,SAAU,CACRR,KAAM,SACNF,YAAa,WACbG,YAAa,0DAEfhB,OAAQ,CACNe,KAAM,SACNO,QAAS1B,EAAQ4B,KAAI,SAACC,UAAMA,KAC5BZ,YAAa,SACbG,YAAa,6CASfU,QAAS,CACPX,KAAM,UACNF,YAAa,UACbG,yHAEFW,YAAa,CACXZ,KAAM,UACNF,YAAa,eACbG,YACE,4KAMNY,EACAC,GAEID,EACFA,EAAOE,kBAAkB/B,QAAQ8B,EAAAA,EAAoBnB,GAErDoB,EAAkB/B,QAAQ8B,EAAAA,EAAoBnB"}
@@ -1,6 +1,6 @@
1
1
  import registerComponent from '@plasmicapp/host/registerComponent';
2
2
  import React from 'react';
3
- import { Bounce, Fade, Flip, Hinge, JackInTheBox, Roll, Rotate, Slide, Zoom } from 'react-awesome-reveal';
3
+ import { Bounce, Fade, Flip, Hinge, JackInTheBox, Rotate, Slide, Zoom } from 'react-awesome-reveal';
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) {
6
6
  if (source == null) return {};
@@ -23,7 +23,10 @@ var effectNameToComponent = {
23
23
  flip: Flip,
24
24
  hinge: Hinge,
25
25
  jackinthebox: JackInTheBox,
26
- roll: Roll,
26
+ // Roll seems not to be working properly in the canvas as of
27
+ // `react-awesome-reveal@3.8.1`
28
+
29
+ /* roll: Roll, */
27
30
  rotate: Rotate,
28
31
  slide: Slide,
29
32
  zoom: Zoom
@@ -32,6 +35,7 @@ var effects = /*#__PURE__*/Object.keys(effectNameToComponent);
32
35
  function Reveal(_ref) {
33
36
  var _ref$effect = _ref.effect,
34
37
  effect = _ref$effect === void 0 ? "fade" : _ref$effect,
38
+ className = _ref.className,
35
39
  props = _objectWithoutPropertiesLoose(_ref, ["effect", "className"]);
36
40
 
37
41
  var Comp = effectNameToComponent[effect];
@@ -44,19 +48,25 @@ function Reveal(_ref) {
44
48
 
45
49
 
46
50
  var children = props.cascade || !["string", "number", "boolean"].includes(typeof props.children) ? props.children : React.createElement("div", null, " ", props.children, " ");
47
- return React.createElement(Comp, Object.assign({}, props, {
51
+ return React.createElement(Comp, Object.assign({
52
+ className: className
53
+ }, props, {
48
54
  children: children
49
55
  }));
50
56
  }
51
- registerComponent(Reveal, {
52
- name: "Reveal",
57
+ var revealMeta = {
58
+ name: "hostless-reveal",
59
+ importName: "Reveal",
60
+ displayName: "Reveal",
53
61
  importPath: "@plasmicpkgs/react-awesome-reveal",
54
62
  props: {
55
- big: {
56
- type: "boolean",
57
- displayName: "Big",
58
- description: "Causes the animation to start farther. Only applied to \"fade\" Effect and \"down\", \"left\", \"right\" and \"up\" directions"
59
- },
63
+ // `big` seems not to be working properly as of `react-awesome-reveal@3.8.1`
64
+
65
+ /* big: {
66
+ type: "boolean",
67
+ displayName: "Big",
68
+ description: `Causes the animation to start farther. Only applied to "fade" Effect and "down", "left", "right" and "up" directions`,
69
+ }, */
60
70
  cascade: {
61
71
  type: "boolean",
62
72
  displayName: "Cascade",
@@ -64,7 +74,10 @@ registerComponent(Reveal, {
64
74
  },
65
75
  children: {
66
76
  type: "slot",
67
- defaultValue: "Reveal text"
77
+ defaultValue: [{
78
+ type: "img",
79
+ src: "https://placekitten.com/300/200"
80
+ }]
68
81
  },
69
82
  damping: {
70
83
  type: "number",
@@ -79,6 +92,7 @@ registerComponent(Reveal, {
79
92
  direction: {
80
93
  type: "choice",
81
94
  options: ["horizontal", "vertical", "bottom-left", "bottom-right", "down", "left", "right", "top-left", "top-right", "up"],
95
+ defaultValue: "up",
82
96
  displayName: "Direction",
83
97
  description: "Origin of the animation (the valid values depend on the chosen Effect)"
84
98
  },
@@ -89,17 +103,20 @@ registerComponent(Reveal, {
89
103
  },
90
104
  effect: {
91
105
  type: "choice",
92
- options: effects.map(function (v) {
106
+ options: /*#__PURE__*/effects.map(function (v) {
93
107
  return v;
94
108
  }),
95
109
  displayName: "Effect",
96
110
  description: "The Reveal animation effect to be applied"
97
111
  },
98
- fraction: {
99
- type: "number",
100
- displayName: "Fraction",
101
- description: "Float number between 0 and 1 indicating how much the element should be in viewport before the animation is triggered"
102
- },
112
+ // `fraction` seems not to be working properly as of `react-awesome-reveal@3.8.1`
113
+
114
+ /* fraction: {
115
+ type: "number",
116
+ displayName: "Fraction",
117
+ description:
118
+ "Float number between 0 and 1 indicating how much the element should be in viewport before the animation is triggered",
119
+ }, */
103
120
  reverse: {
104
121
  type: "boolean",
105
122
  displayName: "Reverse",
@@ -111,7 +128,14 @@ registerComponent(Reveal, {
111
128
  description: "Whether the animation should run only once, instead of everytime the element enters, exits and re-enters the viewport"
112
129
  }
113
130
  }
114
- });
131
+ };
132
+ function registerReveal(loader, customRevealMeta) {
133
+ if (loader) {
134
+ loader.registerComponent(Reveal, customRevealMeta != null ? customRevealMeta : revealMeta);
135
+ } else {
136
+ registerComponent(Reveal, customRevealMeta != null ? customRevealMeta : revealMeta);
137
+ }
138
+ }
115
139
 
116
- export { Reveal };
140
+ export { Reveal, registerReveal, revealMeta };
117
141
  //# sourceMappingURL=react-awesome-reveal.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-awesome-reveal.esm.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent from \"@plasmicapp/host/registerComponent\";\nimport React from \"react\";\nimport {\n Bounce,\n Fade,\n Flip,\n Hinge,\n JackInTheBox,\n Roll,\n Rotate,\n Slide,\n Zoom,\n} from \"react-awesome-reveal\";\n\nconst effectNameToComponent = {\n bounce: Bounce,\n fade: Fade,\n flip: Flip,\n hinge: Hinge,\n jackinthebox: JackInTheBox,\n roll: Roll,\n rotate: Rotate,\n slide: Slide,\n zoom: Zoom,\n} as const;\n\ntype Effect = keyof typeof effectNameToComponent;\n\nconst effects = Object.keys(effectNameToComponent);\n\nexport function Reveal({\n effect = \"fade\",\n className,\n ...props\n}: React.ComponentProps<typeof Fade> & {\n className?: string;\n effect?: Effect;\n}) {\n const Comp = effectNameToComponent[effect] as any;\n if (!Comp) {\n throw new Error(`Please specify a valid effect: ${effects.join(\", \")}`);\n }\n // Rendering plain strings seems to result in an infinite loop from\n // \"react-awesome-reveal\" (except for when `cascading` is set).\n // So we create a wrapper `div`.\n const children =\n props.cascade ||\n ![\"string\", \"number\", \"boolean\"].includes(typeof props.children) ? (\n props.children\n ) : (\n <div> {props.children} </div>\n );\n return <Comp {...props} children={children} />;\n}\n\nregisterComponent(Reveal, {\n name: \"Reveal\",\n importPath: \"@plasmicpkgs/react-awesome-reveal\",\n props: {\n big: {\n type: \"boolean\",\n displayName: \"Big\",\n description: `Causes the animation to start farther. Only applied to \"fade\" Effect and \"down\", \"left\", \"right\" and \"up\" directions`,\n },\n cascade: {\n type: \"boolean\",\n displayName: \"Cascade\",\n description: \"Stagger its children animations\",\n },\n children: {\n type: \"slot\",\n defaultValue: \"Reveal text\",\n },\n damping: {\n type: \"number\",\n displayName: \"Damping\",\n description:\n \"Factor that affects the delay that each animated element in a cascade animation will be assigned (defaults to 0.5)\",\n },\n delay: {\n type: \"number\",\n displayName: \"Delay\",\n description: \"Initial delay, in milliseconds\",\n },\n direction: {\n type: \"choice\",\n options: [\n \"horizontal\",\n \"vertical\",\n \"bottom-left\",\n \"bottom-right\",\n \"down\",\n \"left\",\n \"right\",\n \"top-left\",\n \"top-right\",\n \"up\",\n ],\n displayName: \"Direction\",\n description:\n \"Origin of the animation (the valid values depend on the chosen Effect)\",\n },\n duration: {\n type: \"number\",\n displayName: \"Duration\",\n description: \"Animation duration, in milliseconds (defaults to 1000)\",\n },\n effect: {\n type: \"choice\",\n options: effects.map((v) => v),\n displayName: \"Effect\",\n description: \"The Reveal animation effect to be applied\",\n },\n fraction: {\n type: \"number\",\n displayName: \"Fraction\",\n description:\n \"Float number between 0 and 1 indicating how much the element should be in viewport before the animation is triggered\",\n },\n reverse: {\n type: \"boolean\",\n displayName: \"Reverse\",\n description: `Whether the animation should make element(s) disappear. Not applied to \"hinge\" and \"jackinthebox\" effects`,\n },\n triggerOnce: {\n type: \"boolean\",\n displayName: \"Trigger Once\",\n description:\n \"Whether the animation should run only once, instead of everytime the element enters, exits and re-enters the viewport\",\n },\n },\n});\n"],"names":["effectNameToComponent","bounce","Bounce","fade","Fade","flip","Flip","hinge","Hinge","jackinthebox","JackInTheBox","roll","Roll","rotate","Rotate","slide","Slide","zoom","Zoom","effects","Object","keys","Reveal","effect","props","Comp","Error","join","children","cascade","includes","React","registerComponent","name","importPath","big","type","displayName","description","defaultValue","damping","delay","direction","options","duration","map","v","fraction","reverse","triggerOnce"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,IAAMA,qBAAqB,GAAG;AAC5BC,EAAAA,MAAM,EAAEC,MADoB;AAE5BC,EAAAA,IAAI,EAAEC,IAFsB;AAG5BC,EAAAA,IAAI,EAAEC,IAHsB;AAI5BC,EAAAA,KAAK,EAAEC,KAJqB;AAK5BC,EAAAA,YAAY,EAAEC,YALc;AAM5BC,EAAAA,IAAI,EAAEC,IANsB;AAO5BC,EAAAA,MAAM,EAAEC,MAPoB;AAQ5BC,EAAAA,KAAK,EAAEC,KARqB;AAS5BC,EAAAA,IAAI,EAAEC;AATsB,CAA9B;AAcA,IAAMC,OAAO,gBAAGC,MAAM,CAACC,IAAP,CAAYrB,qBAAZ,CAAhB;SAEgBsB;yBACdC;MAAAA,kCAAS;MAENC;;AAKH,MAAMC,IAAI,GAAGzB,qBAAqB,CAACuB,MAAD,CAAlC;;AACA,MAAI,CAACE,IAAL,EAAW;AACT,UAAM,IAAIC,KAAJ,qCAA4CP,OAAO,CAACQ,IAAR,CAAa,IAAb,CAA5C,CAAN;AACD;AAED;AACA;;;AACA,MAAMC,QAAQ,GACZJ,KAAK,CAACK,OAAN,IACA,CAAC,CAAC,QAAD,EAAW,QAAX,EAAqB,SAArB,EAAgCC,QA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LM,IAAAA,QAAQ,EAAE;AACRR,MAAAA,IAAI,EAAE,QADE;AAERC,MAAAA,WAAW,EAAE,UAFL;AAGRC,MAAAA,WAAW,EAAE;AAHL,KA5CL;AAiDLf,IAAAA,MAAM,EAAE;AACNa,MAAAA,IAAI,EAAE,QADA;AAENO,MAAAA,OAAO,EAAExB,OAAO,CAAC0B,GAAR,CAAY,UAACC,CAAD;AAAA,eAAOA,CAAP;AAAA,OAAZ,CAFH;AAGNT,MAAAA,WAAW,EAAE,QAHP;AAINC,MAAAA,WAAW,EAAE;AAJP,KAjDH;AAuDLS,IAAAA,QAAQ,EAAE;AACRX,MAAAA,IAAI,EAAE,QADE;AAERC,MAAAA,WAAW,EAAE,UAFL;AAGRC,MAAAA,WAAW,EACT;AAJM,KAvDL;AA6DLU,IAAAA,OAAO,EAAE;AACPZ,MAAAA,IAAI,EAAE,SADC;AAEPC,MAAAA,WAAW,EAAE,SAFN;AAGPC,MAAAA,WAAW;AAHJ,KA7DJ;AAkELW,IAAAA,WAAW,EAAE;AACXb,MAAAA,IAAI,EAAE,SADK;AAEXC,MAAAA,WAAW,EAAE,cAFF;AAGXC,MAAAA,WAAW,EACT;AAJS;AAlER;AAHiB,CAAT,CAAjB;;;;"}
1
+ {"version":3,"file":"react-awesome-reveal.esm.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport React from \"react\";\nimport {\n Bounce,\n Fade,\n Flip,\n Hinge,\n JackInTheBox,\n Rotate,\n Slide,\n Zoom,\n} from \"react-awesome-reveal\";\n\nconst effectNameToComponent = {\n bounce: Bounce,\n fade: Fade,\n flip: Flip,\n hinge: Hinge,\n jackinthebox: JackInTheBox,\n // Roll seems not to be working properly in the canvas as of\n // `react-awesome-reveal@3.8.1`\n /* roll: Roll, */\n rotate: Rotate,\n slide: Slide,\n zoom: Zoom,\n} as const;\n\ntype Effect = keyof typeof effectNameToComponent;\n\nconst effects = Object.keys(effectNameToComponent);\n\nexport interface RevealProps extends React.ComponentProps<typeof Fade> {\n className?: string;\n effect?: Effect;\n}\n\nexport function Reveal({ effect = \"fade\", className, ...props }: RevealProps) {\n const Comp = effectNameToComponent[effect] as any;\n if (!Comp) {\n throw new Error(`Please specify a valid effect: ${effects.join(\", \")}`);\n }\n // Rendering plain strings seems to result in an infinite loop from\n // \"react-awesome-reveal\" (except for when `cascading` is set).\n // So we create a wrapper `div`.\n const children =\n props.cascade ||\n ![\"string\", \"number\", \"boolean\"].includes(typeof props.children) ? (\n props.children\n ) : (\n <div> {props.children} </div>\n );\n return <Comp className={className} {...props} children={children} />;\n}\n\nexport const revealMeta: ComponentMeta<RevealProps> = {\n name: \"hostless-reveal\",\n importName: \"Reveal\",\n displayName: \"Reveal\",\n importPath: \"@plasmicpkgs/react-awesome-reveal\",\n props: {\n // `big` seems not to be working properly as of `react-awesome-reveal@3.8.1`\n /* big: {\n type: \"boolean\",\n displayName: \"Big\",\n description: `Causes the animation to start farther. Only applied to \"fade\" Effect and \"down\", \"left\", \"right\" and \"up\" directions`,\n }, */\n cascade: {\n type: \"boolean\",\n displayName: \"Cascade\",\n description: \"Stagger its children animations\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"img\",\n src: \"https://placekitten.com/300/200\",\n },\n ],\n },\n damping: {\n type: \"number\",\n displayName: \"Damping\",\n description:\n \"Factor that affects the delay that each animated element in a cascade animation will be assigned (defaults to 0.5)\",\n },\n delay: {\n type: \"number\",\n displayName: \"Delay\",\n description: \"Initial delay, in milliseconds\",\n },\n direction: {\n type: \"choice\",\n options: [\n \"horizontal\",\n \"vertical\",\n \"bottom-left\",\n \"bottom-right\",\n \"down\",\n \"left\",\n \"right\",\n \"top-left\",\n \"top-right\",\n \"up\",\n ],\n defaultValue: \"up\",\n displayName: \"Direction\",\n description:\n \"Origin of the animation (the valid values depend on the chosen Effect)\",\n },\n duration: {\n type: \"number\",\n displayName: \"Duration\",\n description: \"Animation duration, in milliseconds (defaults to 1000)\",\n },\n effect: {\n type: \"choice\",\n options: effects.map((v) => v),\n displayName: \"Effect\",\n description: \"The Reveal animation effect to be applied\",\n },\n // `fraction` seems not to be working properly as of `react-awesome-reveal@3.8.1`\n /* fraction: {\n type: \"number\",\n displayName: \"Fraction\",\n description:\n \"Float number between 0 and 1 indicating how much the element should be in viewport before the animation is triggered\",\n }, */\n reverse: {\n type: \"boolean\",\n displayName: \"Reverse\",\n description: `Whether the animation should make element(s) disappear. Not applied to \"hinge\" and \"jackinthebox\" effects`,\n },\n triggerOnce: {\n type: \"boolean\",\n displayName: \"Trigger Once\",\n description:\n \"Whether the animation should run only once, instead of everytime the element enters, exits and re-enters the viewport\",\n },\n },\n};\n\nexport function registerReveal(\n loader?: { registerComponent: typeof registerComponent },\n customRevealMeta?: ComponentMeta<RevealProps>\n) {\n if (loader) {\n loader.registerComponent(Reveal, customRevealMeta ?? revealMeta);\n } else {\n registerComponent(Reveal, customRevealMeta ?? revealMeta);\n }\n}\n"],"names":["effectNameToComponent","bounce","Bounce","fade","Fade","flip","Flip","hinge","Hinge","jackinthebox","JackInTheBox","rotate","Rotate","slide","Slide","zoom","Zoom","effects","Object","keys","Reveal","effect","className","props","Comp","Error","join","children","cascade","includes","React","revealMeta","name","importName","displayName","importPath","type","description","defaultValue","src","damping","delay","direction","options","duration","map","v","reverse","triggerOnce","registerReveal","loader","customRevealMeta","registerComponent"],"mappings":";;;;;;;;;;;;;;;;;;;AAeA,IAAMA,qBAAqB,GAAG;AAC5BC,EAAAA,MAAM,EAAEC,MADoB;AAE5BC,EAAAA,IAAI,EAAEC,IAFsB;AAG5BC,EAAAA,IAAI,EAAEC,IAHsB;AAI5BC,EAAAA,KAAK,EAAEC,KAJqB;AAK5BC,EAAAA,YAAY,EAAEC,YALc;AAM5B;AACA;;AACA;AACAC,EAAAA,MAAM,EAAEC,MAToB;AAU5BC,EAAAA,KAAK,EAAEC,KAVqB;AAW5BC,EAAAA,IAAI,EAAEC;AAXsB,CAA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CAAyBhC,MAAzB,EAAiC+B,gBAAjC,WAAiCA,gBAAjC,GAAqDpB,UAArD;AACD,GAFD,MAEO;AACLqB,IAAAA,iBAAiB,CAAChC,MAAD,EAAS+B,gBAAT,WAASA,gBAAT,GAA6BpB,UAA7B,CAAjB;AACD;AACF;;;;"}
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/react-awesome-reveal",
3
- "version": "3.8.0",
4
- "description": "Plasmic registration call for react-youtube",
3
+ "version": "3.8.4",
4
+ "description": "Plasmic registration call for react-awesome-reveal",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "module": "dist/react-youtube.esm.js",
7
+ "module": "dist/react-awesome-reveal.esm.js",
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
11
  "size-limit": [
12
12
  {
13
- "path": "dist/react-youtube.cjs.production.min.js",
14
- "limit": "10 KB"
13
+ "path": "dist/react-awesome-reveal.cjs.production.min.js",
14
+ "limit": "15 KB"
15
15
  },
16
16
  {
17
- "path": "dist/react-youtube.esm.js",
18
- "limit": "10 KB"
17
+ "path": "dist/react-awesome-reveal.esm.js",
18
+ "limit": "15 KB"
19
19
  }
20
20
  ],
21
21
  "scripts": {