@keystrokehq/plasmic 0.1.2 → 0.1.3

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.
@@ -4,8 +4,8 @@ let zod = require("zod");
4
4
  const PlasmicGlobalActionsProviderInput = zod.z.object({ contexts: zod.z.array(zod.z.object({
5
5
  name: zod.z.string().describe("Context key used in Plasmic designs"),
6
6
  provider: zod.z.string().describe("Name of the React provider component for this context")
7
- }).describe("Defines a single global context entry.")).describe("List of global contexts with their associated provider components") }).describe("Request model for generating Plasmic globalContexts snippet.");
8
- const PlasmicGlobalActionsProviderOutput = zod.z.object({ snippet: zod.z.string().describe("JavaScript snippet for globalContexts configuration").nullable() }).describe("Response model containing the generated code snippet.");
7
+ }).passthrough().describe("Defines a single global context entry.")).describe("List of global contexts with their associated provider components") }).describe("Request model for generating Plasmic globalContexts snippet.");
8
+ const PlasmicGlobalActionsProviderOutput = zod.z.object({ snippet: zod.z.string().describe("JavaScript snippet for globalContexts configuration").nullable() }).passthrough().describe("Response model containing the generated code snippet.");
9
9
  const plasmicGlobalActionsProvider = require_action.action("PLASMIC_GLOBAL_ACTIONS_PROVIDER", {
10
10
  slug: "plasmic-global-actions-provider",
11
11
  name: "Plasmic Global Actions Provider",
@@ -1 +1 @@
1
- {"version":3,"file":"global-actions-provider.cjs","names":["z","action"],"sources":["../../src/actions/global-actions-provider.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlasmicGlobalActionsProviderInput = z.object({\n contexts: z.array(z.object({\n name: z.string().describe(\"Context key used in Plasmic designs\"),\n provider: z.string().describe(\"Name of the React provider component for this context\"),\n}).describe(\"Defines a single global context entry.\")).describe(\"List of global contexts with their associated provider components\"),\n}).describe(\"Request model for generating Plasmic globalContexts snippet.\");\nexport const PlasmicGlobalActionsProviderOutput = z.object({\n snippet: z.string().describe(\"JavaScript snippet for globalContexts configuration\").nullable(),\n}).describe(\"Response model containing the generated code snippet.\");\n\nexport const plasmicGlobalActionsProvider = action(\"PLASMIC_GLOBAL_ACTIONS_PROVIDER\", {\n slug: \"plasmic-global-actions-provider\",\n name: \"Plasmic Global Actions Provider\",\n description: \"Tool to generate the globalContexts configuration snippet for Plasmic loader. Use when you need to configure global contexts after defining your React providers.\",\n input: PlasmicGlobalActionsProviderInput,\n output: PlasmicGlobalActionsProviderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AACvF,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,mEAAmE,EACnI,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,EAC/F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"global-actions-provider.cjs","names":["z","action"],"sources":["../../src/actions/global-actions-provider.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlasmicGlobalActionsProviderInput = z.object({\n contexts: z.array(z.object({\n name: z.string().describe(\"Context key used in Plasmic designs\"),\n provider: z.string().describe(\"Name of the React provider component for this context\"),\n}).passthrough().describe(\"Defines a single global context entry.\")).describe(\"List of global contexts with their associated provider components\"),\n}).describe(\"Request model for generating Plasmic globalContexts snippet.\");\nexport const PlasmicGlobalActionsProviderOutput = z.object({\n snippet: z.string().describe(\"JavaScript snippet for globalContexts configuration\").nullable(),\n}).passthrough().describe(\"Response model containing the generated code snippet.\");\n\nexport const plasmicGlobalActionsProvider = action(\"PLASMIC_GLOBAL_ACTIONS_PROVIDER\", {\n slug: \"plasmic-global-actions-provider\",\n name: \"Plasmic Global Actions Provider\",\n description: \"Tool to generate the globalContexts configuration snippet for Plasmic loader. Use when you need to configure global contexts after defining your React providers.\",\n input: PlasmicGlobalActionsProviderInput,\n output: PlasmicGlobalActionsProviderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,mEAAmE,EACjJ,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -5,13 +5,14 @@ declare const PlasmicGlobalActionsProviderInput: z.ZodObject<{
5
5
  contexts: z.ZodArray<z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  provider: z.ZodString;
8
- }, z.core.$strip>>;
8
+ }, z.core.$loose>>;
9
9
  }, z.core.$strip>;
10
10
  declare const PlasmicGlobalActionsProviderOutput: z.ZodObject<{
11
11
  snippet: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>;
12
+ }, z.core.$loose>;
13
13
  declare const plasmicGlobalActionsProvider: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  contexts: {
15
+ [x: string]: unknown;
15
16
  name: string;
16
17
  provider: string;
17
18
  }[];
@@ -5,13 +5,14 @@ declare const PlasmicGlobalActionsProviderInput: z.ZodObject<{
5
5
  contexts: z.ZodArray<z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  provider: z.ZodString;
8
- }, z.core.$strip>>;
8
+ }, z.core.$loose>>;
9
9
  }, z.core.$strip>;
10
10
  declare const PlasmicGlobalActionsProviderOutput: z.ZodObject<{
11
11
  snippet: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>;
12
+ }, z.core.$loose>;
13
13
  declare const plasmicGlobalActionsProvider: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  contexts: {
15
+ [x: string]: unknown;
15
16
  name: string;
16
17
  provider: string;
17
18
  }[];
@@ -7,8 +7,8 @@ const plasmicGlobalActionsProvider = action("PLASMIC_GLOBAL_ACTIONS_PROVIDER", {
7
7
  input: z.object({ contexts: z.array(z.object({
8
8
  name: z.string().describe("Context key used in Plasmic designs"),
9
9
  provider: z.string().describe("Name of the React provider component for this context")
10
- }).describe("Defines a single global context entry.")).describe("List of global contexts with their associated provider components") }).describe("Request model for generating Plasmic globalContexts snippet."),
11
- output: z.object({ snippet: z.string().describe("JavaScript snippet for globalContexts configuration").nullable() }).describe("Response model containing the generated code snippet.")
10
+ }).passthrough().describe("Defines a single global context entry.")).describe("List of global contexts with their associated provider components") }).describe("Request model for generating Plasmic globalContexts snippet."),
11
+ output: z.object({ snippet: z.string().describe("JavaScript snippet for globalContexts configuration").nullable() }).passthrough().describe("Response model containing the generated code snippet.")
12
12
  });
13
13
  //#endregion
14
14
  export { plasmicGlobalActionsProvider };
@@ -1 +1 @@
1
- {"version":3,"file":"global-actions-provider.mjs","names":[],"sources":["../../src/actions/global-actions-provider.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlasmicGlobalActionsProviderInput = z.object({\n contexts: z.array(z.object({\n name: z.string().describe(\"Context key used in Plasmic designs\"),\n provider: z.string().describe(\"Name of the React provider component for this context\"),\n}).describe(\"Defines a single global context entry.\")).describe(\"List of global contexts with their associated provider components\"),\n}).describe(\"Request model for generating Plasmic globalContexts snippet.\");\nexport const PlasmicGlobalActionsProviderOutput = z.object({\n snippet: z.string().describe(\"JavaScript snippet for globalContexts configuration\").nullable(),\n}).describe(\"Response model containing the generated code snippet.\");\n\nexport const plasmicGlobalActionsProvider = action(\"PLASMIC_GLOBAL_ACTIONS_PROVIDER\", {\n slug: \"plasmic-global-actions-provider\",\n name: \"Plasmic Global Actions Provider\",\n description: \"Tool to generate the globalContexts configuration snippet for Plasmic loader. Use when you need to configure global contexts after defining your React providers.\",\n input: PlasmicGlobalActionsProviderInput,\n output: PlasmicGlobalActionsProviderOutput,\n});\n"],"mappings":";;AAcA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd+C,EAAE,OAAO,EACxD,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,mEAAmE,EACnI,CAAC,CAAC,CAAC,SAAS,8DASH;CACP,QATgD,EAAE,OAAO,EACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,EAC/F,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"global-actions-provider.mjs","names":[],"sources":["../../src/actions/global-actions-provider.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlasmicGlobalActionsProviderInput = z.object({\n contexts: z.array(z.object({\n name: z.string().describe(\"Context key used in Plasmic designs\"),\n provider: z.string().describe(\"Name of the React provider component for this context\"),\n}).passthrough().describe(\"Defines a single global context entry.\")).describe(\"List of global contexts with their associated provider components\"),\n}).describe(\"Request model for generating Plasmic globalContexts snippet.\");\nexport const PlasmicGlobalActionsProviderOutput = z.object({\n snippet: z.string().describe(\"JavaScript snippet for globalContexts configuration\").nullable(),\n}).passthrough().describe(\"Response model containing the generated code snippet.\");\n\nexport const plasmicGlobalActionsProvider = action(\"PLASMIC_GLOBAL_ACTIONS_PROVIDER\", {\n slug: \"plasmic-global-actions-provider\",\n name: \"Plasmic Global Actions Provider\",\n description: \"Tool to generate the globalContexts configuration snippet for Plasmic loader. Use when you need to configure global contexts after defining your React providers.\",\n input: PlasmicGlobalActionsProviderInput,\n output: PlasmicGlobalActionsProviderOutput,\n});\n"],"mappings":";;AAcA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd+C,EAAE,OAAO,EACxD,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,mEAAmE,EACjJ,CAAC,CAAC,CAAC,SAAS,8DASH;CACP,QATgD,EAAE,OAAO,EACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/plasmic",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"