makeswift

The official Makeswift CLI

MIT License

Downloads
1.6K
Stars
103
Committers
16

Bot releases are visible (Hide)

makeswift - @makeswift/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

  • b7a2a4c: Add data type to legacy TextInput prop controller and move it to @makeswift/prop-controllers.
  • c65e6a8: Add data type to legacy ResponsiveSelect prop controller, move it to @makeswift/prop-controllers
  • 8f019cd: Add data type to legacy ResponsiveNumber prop controller, move it to @makeswift/prop-controllers
  • f32d402: Add data type to legacy SocialLinks prop controller and move it to @makeswift/prop-controllers.
  • 7d05094: Add data type to legacy ResponsiveOpacity prop controller and move it to @makeswift/prop-controllers.

Patch Changes

  • 2ac496f: Add data type to legacy ResponsiveIconRadioGroup prop controller, move it to @makeswift/prop-controllers
  • 28e07c3: Fix global component cannot be selected after it is blurred.
  • f6fae30: Add a README
  • 2b14406: Separate many controls into a @makeswift/controls package.
  • 526f71e: Handle ResponsiveNumber prop data on component registration.
  • f9f2c0c: fix: correctly render controls with versioned ResponsiveSelect data
  • Updated dependencies [2ac496f]
  • Updated dependencies [b7a2a4c]
  • Updated dependencies [c65e6a8]
  • Updated dependencies [8f019cd]
  • Updated dependencies [2b14406]
  • Updated dependencies [f32d402]
  • Updated dependencies [7d05094]
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

  • b7a2a4c: Add data type to legacy TextInput prop controller and move it to @makeswift/prop-controllers.
  • c65e6a8: Add data type to legacy ResponsiveSelect prop controller, move it to @makeswift/prop-controllers
  • 8f019cd: Add data type to legacy ResponsiveNumber prop controller, move it to @makeswift/prop-controllers
  • f32d402: Add data type to legacy SocialLinks prop controller and move it to @makeswift/prop-controllers.
  • 7d05094: Add data type to legacy ResponsiveOpacity prop controller and move it to @makeswift/prop-controllers.

Patch Changes

  • 2ac496f: Add data type to legacy ResponsiveIconRadioGroup prop controller, move it to @makeswift/prop-controllers
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • 2b14406: Separate many controls into a @makeswift/controls package.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

makeswift - @makeswift/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • 9a439d5: Update BackgroundsDescriptorV1 version field to be optional to match previous behavior.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 6 months ago

Minor Changes

  • f5c3617: Add data type to legacy TableFormFields prop controller and move it to @makeswift/prop-controllers.

  • bb82576: Add data type to legacy Image prop controller and move it to @makeswift/prop-controllers.

  • 860f92a: Add data type to legacy Backgrounds prop controller and move it to @makeswift/prop-controllers.

  • 61d43cc: Add data type to legacy Images prop controller and move it to @makeswift/prop-controllers.

  • 092784c: Add data type to legacy ElementID prop controller and move it to @makeswift/prop-controllers.

  • 87e1665: Add data type to legacy Grid prop controller and move it to @makeswift/prop-controllers.

  • 346b1f3: BREAKING CHANGE: Remove deprecated RichText PropControllers from @makeswift/runtime/prop-controllers.

    This breaking change only affects a minority of users who are upgrading from versions older than 0.0.7.

    To migrate to the new version: update your components to use RichText from @makeswift/runtime/controls instead of @makeswift/runtime/prop-controllers.

    Example migration:

    - import { RichText } from '@makeswift/runtime/prop-controllers';
    + import { RichText } from '@makeswift/runtime/controls';
    

Patch Changes

  • 4b0d47c: Use correct copy method for ElementID.
  • 4d38a0b: Fix v2 data values not properly transformed for ResponsiveValue option.
  • Updated dependencies [f5c3617]
  • Updated dependencies [bb82576]
  • Updated dependencies [860f92a]
  • Updated dependencies [61d43cc]
  • Updated dependencies [092784c]
  • Updated dependencies [87e1665]
  • Updated dependencies [4b0d47c]
  • Updated dependencies [4d38a0b]
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 6 months ago

Minor Changes

  • f5c3617: Add data type to legacy TableFormFields prop controller and move it to @makeswift/prop-controllers.
  • bb82576: Add data type to legacy Image prop controller and move it to @makeswift/prop-controllers.
  • 860f92a: Add data type to legacy Backgrounds prop controller and move it to @makeswift/prop-controllers.
  • 61d43cc: Add data type to legacy Images prop controller and move it to @makeswift/prop-controllers.
  • 092784c: Add data type to legacy ElementID prop controller and move it to @makeswift/prop-controllers.
  • 87e1665: Add data type to legacy Grid prop controller and move it to @makeswift/prop-controllers.

Patch Changes

  • 4b0d47c: Use correct copy method for ElementID.
  • 4d38a0b: Fix v2 data values not properly transformed for ResponsiveValue option.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • a64a640: Use turbo in prepublishing step to automatically build dependencies as needed
  • Updated dependencies [a64a640]

0.16.0

Minor Changes

  • cf79dcb: Add data type to legacy ResponsiveLength prop controller and move it to @makeswift/prop-controllers.

  • defb8d9: Next.js 14.2 compatibility fix: decouple PreviewProvider's message channel setup from the middleware creation to make store initialization compatible with React's strict mode.

  • 89a6d77: Add data type to legacy BorderRadius prop controller and move it to @makeswift/prop-controllers.

  • 5bd9b5f: Add data type to legacy Shadows prop controller and move it to @makeswift/prop-controllers.

  • 0a9a89c: Add data type to legacy ResponsiveColor prop controller and move it to @makeswift/prop-controllers.

  • 4847f1b: Add data type to legacy Checkbox prop controller and move it to @makeswift/prop-controllers.

  • 38f8798: Add data type to legacy Border prop controller and move it to @makeswift/prop-controllers.

  • b5fe83a: Add data type to legacy Date prop controller and move it to @makeswift/prop-controllers.

  • c37a850: Add data type to legacy Number prop controller and move it to @makeswift/prop-controllers.

  • 56343d0: BREAKING CHANGE: Remove deprecated List, Shape, and Typeahead PropControllers from @makeswift/runtime/prop-controllers.

    This breaking change only affects a minority of users who are upgrading from versions older than 0.0.7.

    To migrate to the new version: update your components to use List, Shape, and Combobox from @makeswift/runtime/controls instead of @makeswift/runtime/prop-controllers.

    Example migration:

    - import { List, Shape } from '@makeswift/runtime/prop-controllers';
    + import { List, Shape } from '@makeswift/runtime/controls';
    
  • a909fa1: Use the @makeswift/prop-controllers package, and migrate LinkPropController.

Patch Changes

  • 24f76a8: Add data type to legacy TextStyle prop controller and move it to @makeswift/prop-controllers.
  • 6bab3df: Add data type to legacy GapY prop controller and move it to @makeswift/prop-controllers.
  • 9b61ad8: Add data type to legacy NavigationLinks prop controller and move it to @makeswift/prop-controllers.
  • 045799d: Add data type to legacy Width prop controller and move it to @makeswift/prop-controllers.
  • abf95d6: Add data type to legacy Margin prop controller and move it to @makeswift/prop-controllers.
  • bc036af: Add data type to legacy Font prop controller and move it to @makeswift/prop-controllers.
  • f377f89: Add data type to legacy Table prop controller and move it to @makeswift/prop-controllers.
  • 66c8c6c: Fix "function components cannot be given refs" warning on the built-in Text component
  • fe5c346: Add data type to legacy GapX prop controller and move it to @makeswift/prop-controllers.
  • 6e48054: Add data type to legacy Video prop controller and move it to @makeswift/prop-controllers.
  • f7fc53e: Add data type to legacy Padding prop controller and move it to @makeswift/prop-controllers.
  • 612a40b: Resolve occasional ERR_INVALID_ARG_TYPE error when previewing a site built using Next.js Pages router.
  • df976f6: Add data type to legacy TextArea prop controller and move it to @makeswift/prop-controllers.
  • 2602000: Handle the new data type for LinkPropController.
  • Updated dependencies [24f76a8]
  • Updated dependencies [cf79dcb]
  • Updated dependencies [6bab3df]
  • Updated dependencies [89a6d77]
  • Updated dependencies [9b61ad8]
  • Updated dependencies [2602000]
  • Updated dependencies [5bd9b5f]
  • Updated dependencies [045799d]
  • Updated dependencies [abf95d6]
  • Updated dependencies [0a9a89c]
  • Updated dependencies [4847f1b]
  • Updated dependencies [38f8798]
  • Updated dependencies [bc036af]
  • Updated dependencies [b5fe83a]
  • Updated dependencies [f377f89]
  • Updated dependencies [c37a850]
  • Updated dependencies [fe5c346]
  • Updated dependencies [6e48054]
  • Updated dependencies [a909fa1]
  • Updated dependencies [f7fc53e]
  • Updated dependencies [6b62ab6]
  • Updated dependencies [df976f6]
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • a64a640: Use turbo in prepublishing step to automatically build dependencies as needed

0.1.0

Minor Changes

  • cf79dcb: Add data type to legacy ResponsiveLength prop controller and move it to @makeswift/prop-controllers.
  • 89a6d77: Add data type to legacy BorderRadius prop controller and move it to @makeswift/prop-controllers.
  • 5bd9b5f: Add data type to legacy Shadows prop controller and move it to @makeswift/prop-controllers.
  • 0a9a89c: Add data type to legacy ResponsiveColor prop controller and move it to @makeswift/prop-controllers.
  • 4847f1b: Add data type to legacy Checkbox prop controller and move it to @makeswift/prop-controllers.
  • 38f8798: Add data type to legacy Border prop controller and move it to @makeswift/prop-controllers.
  • b5fe83a: Add data type to legacy Date prop controller and move it to @makeswift/prop-controllers.
  • c37a850: Add data type to legacy Number prop controller and move it to @makeswift/prop-controllers.
  • 6b62ab6: Add Zod to @makeswift/prop-controllers and schemas for legacy Shadows prop controller.

Patch Changes

  • 24f76a8: Add data type to legacy TextStyle prop controller and move it to @makeswift/prop-controllers.
  • 6bab3df: Add data type to legacy GapY prop controller and move it to @makeswift/prop-controllers.
  • 9b61ad8: Add data type to legacy NavigationLinks prop controller and move it to @makeswift/prop-controllers.
  • 2602000: Add data type to LinkPropController.
  • 045799d: Add data type to legacy Width prop controller and move it to @makeswift/prop-controllers.
  • abf95d6: Add data type to legacy Margin prop controller and move it to @makeswift/prop-controllers.
  • bc036af: Add data type to legacy Font prop controller and move it to @makeswift/prop-controllers.
  • f377f89: Add data type to legacy Table prop controller and move it to @makeswift/prop-controllers.
  • fe5c346: Add data type to legacy GapX prop controller and move it to @makeswift/prop-controllers.
  • 6e48054: Add data type to legacy Video prop controller and move it to @makeswift/prop-controllers.
  • a909fa1: Add a new @makeswift/prop-controllers package that contains deprecated prop-controllers. This package is intended for internal use only.
  • f7fc53e: Add data type to legacy Padding prop controller and move it to @makeswift/prop-controllers.
  • df976f6: Add data type to legacy TextArea prop controller and move it to @makeswift/prop-controllers.
makeswift - [email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • a64a640: Use turbo in prepublishing step to automatically build dependencies as needed
makeswift - [email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • 6e001e7: Fix an issue with the CLI's HTTP connection that would break usage in the Arc web browser.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 7 months ago

Minor Changes

  • 1b08b60: BREAKING: Remove runtime prop from Page component and introduce new ReactRuntimeProvider component.

    This change is an incremental step in adding App Router support to @makeswift/runtime.

    Remove the runtime prop from any occurrence of the Page component:

    import { Page as MakeswiftPage } from '@makeswift/runtime/next'
    import { runtime } from '@/makeswift/runtime'
    
    export default function Page({ snapshot }: Props) {
    -  return <MakeswiftPage snapshot={snapshot} runtime={runtime} />
    +  return <MakeswiftPage snapshot={snapshot} />
    }
    

    Add ReactRuntimeProvider to your Next.js Custom App. If you don't have a Custom App, you'll need to add one.

    import { runtime } from '@/makeswift/runtime'
    import { ReactRuntimeProvider } from '@makeswift/runtime/next'
    import type { AppProps } from 'next/app'
    
    export default function App({ Component, pageProps }: AppProps) {
      return (
        <ReactRuntimeProvider runtime={runtime}>
          <Component {...pageProps} />
        </ReactRuntimeProvider>
      )
    }
    
  • 39e160a: BREAKING: Drop support for Next.js versions lower than 13.4.0.

    We're moving our Preview Mode implementation to Draft Mode, which was added on Next.js v13.4.0.

  • e5fbb9c: BREAKING: Remove client-side routing code.

    There should be no changes to consumers of the runtime as the builder should be the only consumer of this API. Because we are removing functionality, this warrants a breaking change.

  • 3226974: BREAKING: Refactor MakeswiftApiHandler to support Next.js App Router Route Handlers.

    This change introduces function overloads for the MakeswiftApiHandler so that it can be used with the new signature of App Router Route Handlers. It currently implements compatibility for Preview Mode by using the new Draft Mode and storing data in a x-makeswift-draft-mode-data cookie. This can be read from App Router using the getSiteVersion function exported from @makesiwft/runtime/next/server.

    There shouldn't be any breaking API changes for Pages Router so there's no changes to upgrade.

    This is what a Makeswift page in App Router should now look like:

    import { client } from '@/makeswift/client'
    import '@/makeswift/components'
    import { getSiteVersion } from '@makeswift/runtime/next/server'
    import { notFound } from 'next/navigation'
    import { Page as MakeswiftPage } from '@makeswift/runtime/next'
    
    type ParsedUrlQuery = { path?: string[] }
    
    export async function generateStaticParams() {
      const pages = await client.getPages()
    
      return pages.map((page) => ({
        path: page.path.split('/').filter((segment) => segment !== ''),
      }))
    }
    
    export default async function Page({ params }: { params: ParsedUrlQuery }) {
      const path = '/' + (params?.path ?? []).join('/')
      const snapshot = await client.getPageSnapshot(path, {
        siteVersion: getSiteVersion(),
      })
    
      if (snapshot == null) return notFound()
    
      return <MakeswiftPage snapshot={snapshot} />
    }
    
  • 7d314f3: BREAKING: Use React.lazy instead of next/dynamic for code-splitting.

    There's no API changes but this change is significant enough to warrant a minor version bump.

Patch Changes

  • 9e4113f: Upgrade Next.js (dev dependency) in @makeswift/runtime.

  • 0ffe2be: Add support for snippets (including cleanup) for App Router.

  • 96d5e9a: Introduces PageHead component to the base Makeswift Page. This component renders head tag data (link/title/meta) for pages in both app router and pages router. Currently does not support snippets for app router.

  • 49bdf15: Removes the http-proxy dependency and uses native API's to proxy preview mode.

  • 2bbe16a: Update the http-proxy within /api/[...makeswift].tsx to use xfwd: true. This enables forwarding of x- headers.

  • e0f7e0e: Add console warning when runtime prop is passed to the Page component.
    runtime should now be passed to the ReactRuntimeProvider instead of to Page.

  • 056aac1: Resolves issue where rewritten host API requests are unauthorized due to not checking the request header for the secret.

  • fcf2a68: Avoid throwing an error in SocialLinks builtin component if an option is not found.

  • 7d9d9b0: Update Facebook logo for SocialLinks builtin component.

  • 266f246: Add RootStyleRegistry component. This component provides support for Makeswift's CSS-in-JS runtime in Next.js' App Router.

    For example, in app/layout.tsx:

    import { RootStyleRegistry } from '@makeswift/runtime/next'
    
    export default function RootLayout({
      children,
    }: Readonly<{
      children: React.ReactNode
    }>) {
      return (
        <html lang="en">
          <body>
            <RootStyleRegistry>{children}</RootStyleRegistry>
          </body>
        </html>
      )
    }
    
  • e5c6f8d: Add 'use client' directive to Page component module.

  • 3b25c9a: Moves locale switching logic out of the redux middleware state and closer to Next.js logic.

  • 2b25571: If useRouter is used within the App Router it'll throw an error as it can't be used there. This wraps the useRouter usage in a try/catch to conditional return undefined if we can't use it. We will probably use a different method of syncing the current locale in the App Router, so for now, noop this effect.

  • e7c330f: Fix exports for internal @makeswift/runtime/state/breakpoints.

  • 547b87f: Add X and Slack icons to legacy SocialLinks prop controller.

  • 67df869: Fix types export for @makeswift/runtime/slate

  • 0d78c22: Fix a bug in translating Text components containing detached typography.

  • 79a91e0: Transpile dynamic imports when building CommonJS format.

  • 2719416: Introduces draft mode for Next.js app router applications. Existing pages router applications are still supported via preview mode.

  • 9d4ac99: Rename internal MakeswiftClient to MakeswiftHostApiClient.

  • b953798: Button component and Link control now hydrate page links with the locale, if present. Brings automatic link localization to App Router, while still supporting Pages Router.

  • cc8e615: Add deprecation JSDoc to undocumented, legacy prop controllers.

  • 63b3a42: Move Page component into its own file.

  • 805f9f0: Use the provided runtime in the /api/makeswift/element-tree handler.

  • 0d706f7: Extract context from src/api/react.ts so that it can be imported in RSC.

  • 8a6e453: Wraps the RuntimeProvider component in a Suspense boundary as it uses React.lazy. Not wrapping the component would cause a hydration mismatch between the server and client.

  • Updated dependencies [39e160a]

  • Updated dependencies [9cb2f76]

  • Updated dependencies [2719416]

  • Updated dependencies [a220ecb]

makeswift - @makeswift/[email protected]

Published by github-actions[bot] 7 months ago

Minor Changes

  • 39e160a: BREAKING: Drop support for Next.js versions lower than 13.4.0.

    We're moving our Preview Mode implementation to Draft Mode, which was added on Next.js v13.4.0.

  • 9cb2f76: BREAKING: Stop transpiling @makeswift/runtime.

    This was needed because of next/dynamic which we're now using React.lazy.

Patch Changes

  • 2719416: Introduces draft mode for Next.js app router applications. Existing pages router applications are still supported via preview mode.
  • a220ecb: Add Next.js as a peer dependency of @makeswift/next-plugin.
makeswift - [email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • 7afc198: Change all CLI documentation references to point to the new documentation site (docs.makeswift.com)
makeswift - @makeswift/[email protected]

Published by migueloller 8 months ago

Patch Changes

  • 9bf0537: Fix types export for @makeswift/runtime/slate
makeswift - @makeswift/[email protected]

Published by migueloller 8 months ago

Patch Changes

  • cfd1039: Transpile dynamic imports when building CommonJS format.
makeswift - @makeswift/[email protected]

Published by migueloller 8 months ago

Patch Changes

  • f146a6c: Fix exports for internal @makeswift/runtime/state/breakpoints.
makeswift - @makeswift/[email protected]

Published by migueloller 8 months ago

Patch Changes

  • 665f6e1: Avoid throwing an error in SocialLinks builtin component if an option is not found.
  • 3587117: Update Facebook logo for SocialLinks builtin component.
  • 88fb167: Add X and Slack icons to legacy SocialLinks prop controller.
  • 8717b5a: Add deprecation JSDoc to undocumented, legacy prop controllers.
makeswift - @makeswift/[email protected]

Published by joshuawootonn 8 months ago

Patch Changes

  • b19d110: Fix a bug in translating Text components containing detached typography.
makeswift - [email protected]

Published by joshuawootonn 9 months ago

Patch Changes

  • e94272f: Fix issue with CLI where it wouldn't automatically start your app if used with Bun.