@plasmicapp/react-web 0.2.189 → 0.2.191

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.
Files changed (2) hide show
  1. package/dist/all.d.ts +13 -1
  2. package/package.json +4 -4
package/dist/all.d.ts CHANGED
@@ -11050,6 +11050,11 @@ interface PropTypeBase<P> {
11050
11050
  * If true, does not allow the user to use a dynamic expression for this prop
11051
11051
  */
11052
11052
  disableDynamicValue?: boolean;
11053
+ /**
11054
+ * If set to true, the component will be remounted when the prop value is updated.
11055
+ * (This behavior only appliees to canvas)
11056
+ */
11057
+ forceRemount?: boolean;
11053
11058
  }
11054
11059
  declare type DefaultValueOrExpr<P, T> = {
11055
11060
  defaultExpr?: undefined;
@@ -11190,6 +11195,10 @@ declare type JSONLikeType<P> = "object" | ({
11190
11195
  */
11191
11196
  nameFunc?: (item: any, ...args: ControlContext<P>) => string | undefined;
11192
11197
  };
11198
+ /**
11199
+ * Optional function that determines whether the user can delete a given item.
11200
+ */
11201
+ unstable__canDelete?: (item: any, ...args: ControlContext<P>) => boolean;
11193
11202
  /**
11194
11203
  * Specify how to let Plasmic know how to update its own internal representation of the data when the value has
11195
11204
  * changed, or when issuing a minimalValue or shownValue that is different.
@@ -11224,6 +11233,9 @@ declare type DataPickerType<P> = ({
11224
11233
  type: "exprEditor";
11225
11234
  data: Record<string, any> | ContextDependentConfig<P, Record<string, any>>;
11226
11235
  } & DefaultValueOrExpr<P, DataPickerValueType> & PropTypeBase<P>);
11236
+ declare type FormValidationRulesType<P> = {
11237
+ type: "formValidationRules";
11238
+ } & DefaultValueOrExpr<P, any> & PropTypeBase<P>;
11227
11239
  declare type EventHandlerType<P> = {
11228
11240
  type: "eventHandler";
11229
11241
  argTypes: {
@@ -11338,7 +11350,7 @@ declare type ControlTypeBase = {
11338
11350
  uncontrolledProp?: string;
11339
11351
  };
11340
11352
  declare type SupportControlled<T> = Extract<T, String | CustomControl<any>> | (Exclude<T, String | CustomControl<any>> & ControlTypeBase);
11341
- declare type PropType$1<P> = SupportControlled<StringType<P> | BooleanType<P> | NumberType<P> | JSONLikeType<P> | ChoiceType<P> | ImageUrlType<P> | CustomType<P> | GraphQLType<P> | DataPickerType<P> | EventHandlerType<P>> | SlotType<P>;
11353
+ declare type PropType$1<P> = SupportControlled<StringType<P> | BooleanType<P> | NumberType<P> | JSONLikeType<P> | ChoiceType<P> | ImageUrlType<P> | CustomType<P> | GraphQLType<P> | DataPickerType<P> | FormValidationRulesType<P> | EventHandlerType<P>> | SlotType<P>;
11342
11354
  declare type RestrictPropType$1<T, P> = T extends string ? SupportControlled<StringType<P> | ChoiceType<P> | JSONLikeType<P> | ImageUrlType<P> | CustomType<P> | DataPickerType<P>> : T extends boolean ? SupportControlled<BooleanType<P> | JSONLikeType<P> | CustomType<P> | DataPickerType<P>> : T extends number ? SupportControlled<NumberType<P> | JSONLikeType<P> | CustomType<P> | DataPickerType<P>> : PropType$1<P>;
11343
11355
  interface ActionProps<P> {
11344
11356
  componentProps: P;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/react-web",
3
- "version": "0.2.189",
3
+ "version": "0.2.191",
4
4
  "description": "plasmic library for rendering in the presentational style",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -102,9 +102,9 @@
102
102
  },
103
103
  "prettier": {},
104
104
  "dependencies": {
105
- "@plasmicapp/data-sources": "0.1.59",
105
+ "@plasmicapp/data-sources": "0.1.61",
106
106
  "@plasmicapp/data-sources-context": "0.1.9",
107
- "@plasmicapp/host": "1.0.121",
107
+ "@plasmicapp/host": "1.0.123",
108
108
  "@plasmicapp/query": "0.1.61",
109
109
  "@react-aria/checkbox": "^3.5.0",
110
110
  "@react-aria/focus": "^3.7.0",
@@ -171,5 +171,5 @@
171
171
  "react": ">=16.8.0",
172
172
  "react-dom": ">=16.8.0"
173
173
  },
174
- "gitHead": "a9fb9ed8d9fb397f60a30f9078e0c05912130a7c"
174
+ "gitHead": "0edb216f831947b2f9d02daf62262258f2c2c68c"
175
175
  }