@makeswift/runtime 0.0.0-20230323203449 → 0.0.0-20230323205407
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/Text.cjs.js
CHANGED
|
@@ -65,6 +65,7 @@ const ReadOnlyText = next.forwardNextDynamicRef((patch) => dynamic__default["def
|
|
|
65
65
|
}))));
|
|
66
66
|
const Text = React.forwardRef(function Text2(props, ref) {
|
|
67
67
|
const isPreview = next.useIsPreview();
|
|
68
|
+
console.log(isPreview);
|
|
68
69
|
return isPreview ? /* @__PURE__ */ jsxRuntime.jsx(EditableText, __spreadProps(__spreadValues({}, props), {
|
|
69
70
|
ref
|
|
70
71
|
})) : /* @__PURE__ */ jsxRuntime.jsx(ReadOnlyText, __spreadProps(__spreadValues({}, props), {
|
package/dist/Text.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.cjs.js","sources":["../src/components/builtin/Text/Text.tsx"],"sourcesContent":["import dynamic from 'next/dynamic'\nimport { ForwardedRef, forwardRef } from 'react'\nimport { forwardNextDynamicRef } from '../../../next'\nimport { RichTextValue } from '../../../prop-controllers'\nimport { ElementIDValue } from '../../../prop-controllers/descriptors'\nimport { useIsPreview } from '../../../runtimes/react'\n\nconst EditableText = forwardNextDynamicRef(patch => dynamic(() => patch(import('./EditableText'))))\nconst ReadOnlyText = forwardNextDynamicRef(patch => dynamic(() => patch(import('./ReadOnlyText'))))\n\ntype Props = {\n id?: ElementIDValue\n text?: RichTextValue\n width?: string\n margin?: string\n}\n\nconst Text = forwardRef(function Text(props: Props, ref: ForwardedRef<any>) {\n const isPreview = useIsPreview()\n\n return isPreview ? <EditableText {...props} ref={ref} /> : <ReadOnlyText {...props} ref={ref} />\n})\n\nexport default Text\n"],"names":["EditableText","forwardNextDynamicRef","patch","dynamic","ReadOnlyText","Text","forwardRef","props","ref","isPreview","useIsPreview","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAMA,eAAeC,KAAAA,sBAAsBC,CAASC,UAAAA,iBAAAA,WAAQ,MAAMD,MAAM,QAAO,QAAA,EAAA,KAAA,WAAA;AAAA,SAAA,QAAA,iBAAR;EAAA,CAAZ,CAAjB;AAC1C,MAAME,eAAeH,KAAAA,sBAAsBC,CAASC,UAAAA,iBAAAA,WAAQ,MAAMD,MAAM,QAAO,QAAA,EAAA,KAAA,WAAA;AAAA,SAAA,QAAA,uBAAR;EAAA,CAAZ,CAAjB;AAS1C,MAAMG,OAAOC,MAAAA,WAAW,eAAcC,OAAcC,KAAwB;AACpEC,QAAAA,YAAYC,KAAAA;
|
|
1
|
+
{"version":3,"file":"Text.cjs.js","sources":["../src/components/builtin/Text/Text.tsx"],"sourcesContent":["import dynamic from 'next/dynamic'\nimport { ForwardedRef, forwardRef } from 'react'\nimport { forwardNextDynamicRef } from '../../../next'\nimport { RichTextValue } from '../../../prop-controllers'\nimport { ElementIDValue } from '../../../prop-controllers/descriptors'\nimport { useIsPreview } from '../../../runtimes/react'\n\nconst EditableText = forwardNextDynamicRef(patch => dynamic(() => patch(import('./EditableText'))))\nconst ReadOnlyText = forwardNextDynamicRef(patch => dynamic(() => patch(import('./ReadOnlyText'))))\n\ntype Props = {\n id?: ElementIDValue\n text?: RichTextValue\n width?: string\n margin?: string\n}\n\nconst Text = forwardRef(function Text(props: Props, ref: ForwardedRef<any>) {\n const isPreview = useIsPreview()\n\n console.log(isPreview)\n\n return isPreview ? <EditableText {...props} ref={ref} /> : <ReadOnlyText {...props} ref={ref} />\n})\n\nexport default Text\n"],"names":["EditableText","forwardNextDynamicRef","patch","dynamic","ReadOnlyText","Text","forwardRef","props","ref","isPreview","useIsPreview","console","log","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAMA,eAAeC,KAAAA,sBAAsBC,CAASC,UAAAA,iBAAAA,WAAQ,MAAMD,MAAM,QAAO,QAAA,EAAA,KAAA,WAAA;AAAA,SAAA,QAAA,iBAAR;EAAA,CAAZ,CAAjB;AAC1C,MAAME,eAAeH,KAAAA,sBAAsBC,CAASC,UAAAA,iBAAAA,WAAQ,MAAMD,MAAM,QAAO,QAAA,EAAA,KAAA,WAAA;AAAA,SAAA,QAAA,uBAAR;EAAA,CAAZ,CAAjB;AAS1C,MAAMG,OAAOC,MAAAA,WAAW,eAAcC,OAAcC,KAAwB;AACpEC,QAAAA,YAAYC,KAAAA;AAElBC,UAAQC,IAAIH,SAAZ;AAEOA,SAAAA,2CAAa,+CAAiBF;IAAO;AAAA,EAAA,EAAzB,IAAwCM,2BAAA,IAAC,cAAD,iCAAkBN,QAAlB;AAAA,IAAyB;AAAA,EAAA,EAApF;AACD,CANsB;;"}
|
package/dist/Text.es.js
CHANGED
|
@@ -55,6 +55,7 @@ const EditableText = forwardNextDynamicRef((patch) => dynamic(() => patch(import
|
|
|
55
55
|
const ReadOnlyText = forwardNextDynamicRef((patch) => dynamic(() => patch(import("./ReadOnlyText.es.js"))));
|
|
56
56
|
const Text = forwardRef(function Text2(props, ref) {
|
|
57
57
|
const isPreview = useIsPreview();
|
|
58
|
+
console.log(isPreview);
|
|
58
59
|
return isPreview ? /* @__PURE__ */ jsx(EditableText, __spreadProps(__spreadValues({}, props), {
|
|
59
60
|
ref
|
|
60
61
|
})) : /* @__PURE__ */ jsx(ReadOnlyText, __spreadProps(__spreadValues({}, props), {
|
package/dist/Text.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.es.js","sources":["../src/components/builtin/Text/Text.tsx"],"sourcesContent":["import dynamic from 'next/dynamic'\nimport { ForwardedRef, forwardRef } from 'react'\nimport { forwardNextDynamicRef } from '../../../next'\nimport { RichTextValue } from '../../../prop-controllers'\nimport { ElementIDValue } from '../../../prop-controllers/descriptors'\nimport { useIsPreview } from '../../../runtimes/react'\n\nconst EditableText = forwardNextDynamicRef(patch => dynamic(() => patch(import('./EditableText'))))\nconst ReadOnlyText = forwardNextDynamicRef(patch => dynamic(() => patch(import('./ReadOnlyText'))))\n\ntype Props = {\n id?: ElementIDValue\n text?: RichTextValue\n width?: string\n margin?: string\n}\n\nconst Text = forwardRef(function Text(props: Props, ref: ForwardedRef<any>) {\n const isPreview = useIsPreview()\n\n return isPreview ? <EditableText {...props} ref={ref} /> : <ReadOnlyText {...props} ref={ref} />\n})\n\nexport default Text\n"],"names":["EditableText","forwardNextDynamicRef","patch","dynamic","ReadOnlyText","Text","forwardRef","props","ref","isPreview","useIsPreview","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAMA,eAAeC,sBAAsBC,CAASC,UAAAA,QAAQ,MAAMD,MAAM,OAAO,iBAAR,CAAZ,CAAjB;AAC1C,MAAME,eAAeH,sBAAsBC,CAASC,UAAAA,QAAQ,MAAMD,MAAM,OAAO,uBAAR,CAAZ,CAAjB;AAS1C,MAAMG,OAAOC,WAAW,eAAcC,OAAcC,KAAwB;AACpEC,QAAAA,YAAYC;
|
|
1
|
+
{"version":3,"file":"Text.es.js","sources":["../src/components/builtin/Text/Text.tsx"],"sourcesContent":["import dynamic from 'next/dynamic'\nimport { ForwardedRef, forwardRef } from 'react'\nimport { forwardNextDynamicRef } from '../../../next'\nimport { RichTextValue } from '../../../prop-controllers'\nimport { ElementIDValue } from '../../../prop-controllers/descriptors'\nimport { useIsPreview } from '../../../runtimes/react'\n\nconst EditableText = forwardNextDynamicRef(patch => dynamic(() => patch(import('./EditableText'))))\nconst ReadOnlyText = forwardNextDynamicRef(patch => dynamic(() => patch(import('./ReadOnlyText'))))\n\ntype Props = {\n id?: ElementIDValue\n text?: RichTextValue\n width?: string\n margin?: string\n}\n\nconst Text = forwardRef(function Text(props: Props, ref: ForwardedRef<any>) {\n const isPreview = useIsPreview()\n\n console.log(isPreview)\n\n return isPreview ? <EditableText {...props} ref={ref} /> : <ReadOnlyText {...props} ref={ref} />\n})\n\nexport default Text\n"],"names":["EditableText","forwardNextDynamicRef","patch","dynamic","ReadOnlyText","Text","forwardRef","props","ref","isPreview","useIsPreview","console","log","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAMA,eAAeC,sBAAsBC,CAASC,UAAAA,QAAQ,MAAMD,MAAM,OAAO,iBAAR,CAAZ,CAAjB;AAC1C,MAAME,eAAeH,sBAAsBC,CAASC,UAAAA,QAAQ,MAAMD,MAAM,OAAO,uBAAR,CAAZ,CAAjB;AAS1C,MAAMG,OAAOC,WAAW,eAAcC,OAAcC,KAAwB;AACpEC,QAAAA,YAAYC;AAElBC,UAAQC,IAAIH,SAAZ;AAEOA,SAAAA,gCAAa,+CAAiBF;IAAO;AAAA,EAAA,EAAzB,IAAwCM,oBAAC,cAAD,iCAAkBN,QAAlB;AAAA,IAAyB;AAAA,EAAA,EAApF;AACD,CANsB;;"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -1002,7 +1002,7 @@ function useCachedSite(siteId) {
|
|
|
1002
1002
|
const site = shim.useSyncExternalStore(client.subscribe, getSnapshot, getSnapshot);
|
|
1003
1003
|
return site;
|
|
1004
1004
|
}
|
|
1005
|
-
const version = "0.0.0-
|
|
1005
|
+
const version = "0.0.0-20230323205407";
|
|
1006
1006
|
class Makeswift {
|
|
1007
1007
|
constructor(apiKey, { apiOrigin = "https://api.makeswift.com" } = {}) {
|
|
1008
1008
|
__publicField(this, "apiKey");
|
package/dist/index.es.js
CHANGED
|
@@ -967,7 +967,7 @@ function useCachedSite(siteId) {
|
|
|
967
967
|
const site = useSyncExternalStore(client.subscribe, getSnapshot, getSnapshot);
|
|
968
968
|
return site;
|
|
969
969
|
}
|
|
970
|
-
const version = "0.0.0-
|
|
970
|
+
const version = "0.0.0-20230323205407";
|
|
971
971
|
class Makeswift {
|
|
972
972
|
constructor(apiKey, { apiOrigin = "https://api.makeswift.com" } = {}) {
|
|
973
973
|
__publicField(this, "apiKey");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../../src/components/builtin/Text/Text.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAA;AAMtE,aAAK,KAAK,GAAG;IACX,EAAE,CAAC,EAAE,cAAc,CAAA;IACnB,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../../src/components/builtin/Text/Text.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAA;AAMtE,aAAK,KAAK,GAAG;IACX,EAAE,CAAC,EAAE,cAAc,CAAA;IACnB,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,QAAA,MAAM,IAAI,uFAMR,CAAA;AAEF,eAAe,IAAI,CAAA"}
|