Sha256: bb1d91ae267956e9b80bc59f1a5f161bb7d351cb4eee07089f65f5ba89a3108c

Contents?: true

Size: 651 Bytes

Versions: 62

Compression:

Stored size: 651 Bytes

Contents

module Extension
  module Features
    module Runtimes
      class CheckoutUiExtension < Base
        CHECKOUT_UI_EXTENSIONS_RUN = "@shopify/checkout-ui-extensions-run"

        IDENTIFIERS = [
          "CHECKOUT_ARGO_EXTENSION",
          "CHECKOUT_UI_EXTENSION",
        ]

        AVAILABLE_FLAGS = [
          :port,
          :public_url,
          :resource_url,
          :shop,
        ]

        def available_flags
          AVAILABLE_FLAGS
        end

        def active_runtime?(cli_package, identifier)
          cli_package.name == CHECKOUT_UI_EXTENSIONS_RUN && IDENTIFIERS.include?(identifier)
        end
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
shopify-cli-2.19.0 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.18.1 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.18.0 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.17.0 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.16.1 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.16.0 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.15.6 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.15.5 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.15.4 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.15.3 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.15.2 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.15.1 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.15.0 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.14.0 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.13.0 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.12.0 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.11.2 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.11.1 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.11.0 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb
shopify-cli-2.10.2 lib/project_types/extension/features/runtimes/checkout_ui_extension.rb